2020-01-28 10:50:41 +13:00
|
|
|
let sdk = new Appwrite();
|
|
|
|
|
2020-01-31 05:18:59 +13:00
|
|
|
let promise = sdk.account.createOAuthSession('bitbucket', 'https://example.com', 'https://example.com');
|
2020-01-28 10:50:41 +13:00
|
|
|
|
|
|
|
promise.then(function (response) {
|
|
|
|
console.log(response);
|
|
|
|
}, function (error) {
|
|
|
|
console.log(error);
|
|
|
|
});
|