Updated SDKs
This commit is contained in:
parent
43396eb24d
commit
a428e49a25
9 changed files with 9 additions and 9 deletions
|
@ -19,7 +19,7 @@ Add this to your package's pubspec.yaml file:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
dependencies:
|
dependencies:
|
||||||
appwrite: ^v0.0.1
|
appwrite: ^0.0.1
|
||||||
```
|
```
|
||||||
|
|
||||||
You can install packages from the command line:
|
You can install packages from the command line:
|
||||||
|
|
|
@ -12,7 +12,7 @@ class Client {
|
||||||
this.endPoint = 'https://appwrite.test/v1';
|
this.endPoint = 'https://appwrite.test/v1';
|
||||||
this.headers = {
|
this.headers = {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
'x-sdk-version': 'appwrite:dart:v0.0.1',
|
'x-sdk-version': 'appwrite:dart:0.0.1',
|
||||||
};
|
};
|
||||||
this.selfSigned = false;
|
this.selfSigned = false;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: appwrite
|
name: appwrite
|
||||||
version: v0.0.1
|
version: 0.0.1
|
||||||
description: Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
|
description: Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
|
||||||
author: Appwrite Team <team@appwrite.io>
|
author: Appwrite Team <team@appwrite.io>
|
||||||
homepage: https://github.com/appwrite/sdk-for-dart
|
homepage: https://github.com/appwrite/sdk-for-dart
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
setKey('')
|
setKey('')
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
|
let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -5,7 +5,7 @@ sdk
|
||||||
setKey('')
|
setKey('')
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1);
|
let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0);
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -10,7 +10,7 @@ client
|
||||||
setKey('')
|
setKey('')
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
|
let promise = projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -10,7 +10,7 @@ client
|
||||||
setKey('')
|
setKey('')
|
||||||
;
|
;
|
||||||
|
|
||||||
let promise = projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1);
|
let promise = projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0);
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
@ -12,4 +12,4 @@ $client
|
||||||
|
|
||||||
$projects = new Projects($client);
|
$projects = new Projects($client);
|
||||||
|
|
||||||
$result = $projects->updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
|
$result = $projects->updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
|
|
@ -12,4 +12,4 @@ $client
|
||||||
|
|
||||||
$projects = new Projects($client);
|
$projects = new Projects($client);
|
||||||
|
|
||||||
$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1);
|
$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0);
|
Loading…
Reference in a new issue