This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
Spotify OAuth Doc #403
Open
asutoshranjan
wants to merge
4
commits into
appwrite:oauth-providers
Choose a base branch
from
asutoshranjan:spotify-oauth
base: oauth-providers
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Spotify OAuth Doc #403
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ const account = new Account(client); | |
|
||
client | ||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint | ||
.setProject('[PROJECT_ID]') // Your project ID | ||
.setProject('[PROJECT_ID]') // Your Project ID | ||
; | ||
|
||
// Go to Spotify OAuth login page | ||
|
@@ -99,7 +99,7 @@ void main() async { | |
|
||
client | ||
.setEndpoint('https://cloud.appwrite.io/v1') // YOUR API Endpoint | ||
.setProject('[PROJECT_ID]') // YOUR PROJECT ID | ||
.setProject('[PROJECT_ID]') // YOUR PROJECT ID | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||
; | ||
|
||
// OAuth Login, for simplest implementation you can leave both success and | ||
|
@@ -140,7 +140,7 @@ import io.appwrite.services.Account | |
|
||
val client = Client(context) | ||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint | ||
.setProject("[PROJECT_ID]") // Your project ID | ||
.setProject("[PROJECT_ID]") // Your Project ID | ||
Haimantika marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
val account = Account(client) | ||
|
||
|
@@ -179,7 +179,7 @@ import io.appwrite.services.Account; | |
|
||
Client client = new Client(context) | ||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint | ||
.setProject("[PROJECT_ID]"); // Your project ID | ||
.setProject("[PROJECT_ID]"); // Your Project ID | ||
|
||
Account account = new Account(client); | ||
|
||
|
@@ -233,7 +233,7 @@ import Appwrite | |
|
||
let client = Client() | ||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint | ||
.setProject("[PROJECT_ID]") // Your project ID | ||
.setProject("[PROJECT_ID]") // Your Project ID | ||
|
||
let account = Account(client) | ||
|
||
|
@@ -253,7 +253,7 @@ const account = new Account(client); | |
|
||
client | ||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint | ||
.setProject('[PROJECT_ID]') // Your project ID | ||
.setProject('[PROJECT_ID]') // Your Project ID | ||
; | ||
|
||
// Updates current session | ||
|
@@ -262,7 +262,7 @@ const promise = account.updateSession('current'); | |
promise.then(function (response) { | ||
console.log(response); // Success | ||
}, function (error) { | ||
console.log(error); // Failure | ||
console.log(error); // Failure | ||
}); | ||
``` | ||
|
||
|
@@ -276,15 +276,15 @@ void main() async { | |
|
||
client | ||
.setEndpoint('https://cloud.appwrite.io/v1') // YOUR API Endpoint | ||
.setProject('[PROJECT_ID]'); // YOUR PROJECT ID | ||
.setProject('[PROJECT_ID]'); // YOUR PROJECT ID | ||
|
||
// Simplest implementation of updating an OAuth2 session | ||
// prints Session Object value on success and error message on failure | ||
try { | ||
final future = await account.updateSession(sessionId: 'current'); | ||
print(future.toMap()); // Success | ||
} on AppwriteException catch(e){ | ||
print(e.message); // Failure | ||
print(e.message); // Failure | ||
} | ||
} | ||
``` | ||
|
@@ -296,7 +296,7 @@ import io.appwrite.services.Account | |
|
||
val client = Client(context) | ||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint | ||
.setProject("[PROJECT_ID]") // Your project ID | ||
.setProject("[PROJECT_ID]") // Your Project ID | ||
|
||
val account = Account(client) | ||
|
||
|
@@ -311,7 +311,7 @@ import io.appwrite.services.Account; | |
|
||
Client client = new Client(context) | ||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint | ||
.setProject("[PROJECT_ID]"); // Your project ID | ||
.setProject("[PROJECT_ID]"); // Your Project ID | ||
|
||
Account account = new Account(client); | ||
|
||
|
@@ -334,7 +334,7 @@ import Appwrite | |
|
||
let client = Client() | ||
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint | ||
.setProject("[PROJECT_ID]") // Your project ID | ||
.setProject("[PROJECT_ID]") // Your Project ID | ||
|
||
let account = Account(client) | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment still doesn't look aligned. Can you please recheck? @asutoshranjan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surely! checking it