1
0
Fork 0
mirror of synced 2024-06-24 01:00:35 +12:00

Updated SDKs

This commit is contained in:
Eldad Fux 2020-05-17 12:13:48 +03:00
parent 561bb8e880
commit 8677e001cc
256 changed files with 70 additions and 124 deletions

View file

@ -102,7 +102,7 @@ return [
'beta' => false,
'languages' => [ // TODO change key to 'sdks'
[
'key' => 'javascript',
'key' => 'web',
'name' => 'Console',
'version' => '1.0.0',
'url' => 'https://github.com/appwrite/sdk-for-console',
@ -110,7 +110,7 @@ return [
'beta' => false,
'family' => APP_PLATFORM_CONSOLE,
'prism' => 'console',
'source' => realpath(__DIR__ . '/../sdks/console-javascript'),
'source' => realpath(__DIR__ . '/../sdks/console-web'),
'gitUrl' => null,
'gitRepoName' => 'sdk-for-console',
'gitUserName' => 'appwrite',

View file

@ -1,4 +1,4 @@
# Appwrite SDK for Dart
# Appwrite SDK
[![pub package](https://img.shields.io/pub/v/appwrite.svg)](https://pub.dartlang.org/packages/appwrite)
![License](https://img.shields.io/github/license/appwrite/sdk-for-flutter.svg?v=1)

View file

@ -324,7 +324,7 @@ class Account extends Service {
return FlutterWebAuth.authenticate(
url: url.toString(),
callbackUrlScheme: "appwrite-callback"
callbackUrlScheme: "appwrite-callback" + client.config['project']
).then((value) {
Uri url = Uri.parse(value);
List<Cookie> cookies = [new Cookie(url.queryParameters['key'], url.queryParameters['secret'])];

View file

@ -14,7 +14,7 @@ dependencies:
dio: ^3.0.0
cookie_jar: ^1.0.0
dio_cookie_manager: ^1.0.0
flutter_web_auth: ^0.2.0
flutter_web_auth: ^0.2.4
flutter:
sdk: flutter

View file

@ -1,4 +1,4 @@
# Appwrite SDK for JavaScript
# Appwrite SDK
![License](https://img.shields.io/github/license/appwrite/sdk-for-js.svg?v=1)
![Version](https://img.shields.io/badge/api%20version-0.6.0-blue.svg?v=1)
@ -33,21 +33,6 @@ To install with a CDN (content delivery network) add the following scripts to th
<script src="https://cdn.jsdelivr.net/npm/appwrite@1.0.29"></script>
```
## Getting Started
Initialise the Appwrite SDK in your code, and setup your API credentials:
```js
// Init your JS SDK
var appwrite = new Appwrite();
appwrite
.setEndpoint('http://localhost/v1') // Set only when using self-hosted solution
.setProject('455x34dfkj') // Your Appwrite Project UID
;
```
## Contribution

Some files were not shown because too many files have changed in this diff Show more