Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Spotify OAuth Doc #403

Open
wants to merge 4 commits into
base: oauth-providers
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions app/views/docs/oauth-providers/spotify.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely! checking it

;

// Go to Spotify OAuth login page
Expand Down Expand Up @@ -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

Choose a reason for hiding this comment

The 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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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)

Expand All @@ -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
Expand All @@ -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
});
```

Expand All @@ -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
}
}
```
Expand All @@ -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)

Expand All @@ -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);

Expand All @@ -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)

Expand Down