Updated SDKs
This commit is contained in:
parent
0ea43c0cdd
commit
91730da10a
|
@ -1,4 +1,4 @@
|
|||
# [Appwrite SDK for Dart](https://appwrite.io) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
|
||||
# Appwrite SDK for Dart
|
||||
|
||||
![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1)
|
||||
|
@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
|||
|
||||
![Appwrite](https://appwrite.io/images/github.png)
|
||||
|
||||
**API Version: latest**
|
||||
|
||||
## Installation
|
||||
|
||||
Add this to your package's pubspec.yaml file:
|
||||
|
|
|
@ -9,7 +9,7 @@ class Client {
|
|||
Dio http;
|
||||
|
||||
Client() {
|
||||
this.endPoint = 'https://appwrite.test/v1';
|
||||
this.endPoint = 'https://https://appwrite.io/v1';
|
||||
this.headers = {
|
||||
'content-type': 'application/json',
|
||||
'x-sdk-version': 'appwrite:dart:0.0.2',
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# [Appwrite SDK for Javascript](https://appwrite.io) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
|
||||
# Appwrite SDK for Javascript
|
||||
|
||||
![License](https://img.shields.io/github/license/appwrite/sdk-for-js.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1)
|
||||
|
||||
This SDK is compitable with Appwrite server version 0.2.0 for older versions check previous releases.
|
||||
**This SDK is compatible with Appwrite server version 0.2.0. For older versions, please check previous releases.**
|
||||
|
||||
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)
|
||||
|
||||
|
@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
|||
|
||||
![Appwrite](https://appwrite.io/images/github.png)
|
||||
|
||||
**API Version: latest**
|
||||
|
||||
## Installation
|
||||
|
||||
To install via [NPM](https://www.npmjs.com/):
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
window.Appwrite = function () {
|
||||
|
||||
let config = {
|
||||
endpoint: 'https://appwrite.test/v1',
|
||||
endpoint: 'https://https://appwrite.io/v1',
|
||||
project: '',
|
||||
key: '',
|
||||
locale: '',
|
||||
|
|
2
app/sdks/js/src/sdk.min.js
vendored
2
app/sdks/js/src/sdk.min.js
vendored
|
@ -1,4 +1,4 @@
|
|||
(function(window){window.Appwrite=function(){let config={endpoint:'https://appwrite.test/v1',project:'',key:'',locale:'',mode:'',};let setEndpoint=function(endpoint){config.endpoint=endpoint;return this};let setProject=function(value){http.addGlobalHeader('X-Appwrite-Project',value);config.project=value;return this};let setKey=function(value){http.addGlobalHeader('X-Appwrite-Key',value);config.key=value;return this};let setLocale=function(value){http.addGlobalHeader('X-Appwrite-Locale',value);config.locale=value;return this};let setMode=function(value){http.addGlobalHeader('X-Appwrite-Mode',value);config.mode=value;return this};let http=function(document){let globalParams=[],globalHeaders=[];let addParam=function(url,param,value){let a=document.createElement('a'),regex=/(?:\?|&|&)+([^=]+)(?:=([^&]*))*/g;let match,str=[];a.href=url;param=encodeURIComponent(param);while(match=regex.exec(a.search))if(param!==match[1])str.push(match[1]+(match[2]?"="+match[2]:""));str.push(param+(value?"="+encodeURIComponent(value):""));a.search=str.join("&");return a.href};let buildQuery=function(params){let str=[];for(let p in params){if(Array.isArray(params[p])){for(let index=0;index<params[p].length;index++){let param=params[p][index];str.push(encodeURIComponent(p+'[]')+"="+encodeURIComponent(param))}}else{str.push(encodeURIComponent(p)+"="+encodeURIComponent(params[p]))}}
|
||||
(function(window){window.Appwrite=function(){let config={endpoint:'https://https://appwrite.io/v1',project:'',key:'',locale:'',mode:'',};let setEndpoint=function(endpoint){config.endpoint=endpoint;return this};let setProject=function(value){http.addGlobalHeader('X-Appwrite-Project',value);config.project=value;return this};let setKey=function(value){http.addGlobalHeader('X-Appwrite-Key',value);config.key=value;return this};let setLocale=function(value){http.addGlobalHeader('X-Appwrite-Locale',value);config.locale=value;return this};let setMode=function(value){http.addGlobalHeader('X-Appwrite-Mode',value);config.mode=value;return this};let http=function(document){let globalParams=[],globalHeaders=[];let addParam=function(url,param,value){let a=document.createElement('a'),regex=/(?:\?|&|&)+([^=]+)(?:=([^&]*))*/g;let match,str=[];a.href=url;param=encodeURIComponent(param);while(match=regex.exec(a.search))if(param!==match[1])str.push(match[1]+(match[2]?"="+match[2]:""));str.push(param+(value?"="+encodeURIComponent(value):""));a.search=str.join("&");return a.href};let buildQuery=function(params){let str=[];for(let p in params){if(Array.isArray(params[p])){for(let index=0;index<params[p].length;index++){let param=params[p][index];str.push(encodeURIComponent(p+'[]')+"="+encodeURIComponent(param))}}else{str.push(encodeURIComponent(p)+"="+encodeURIComponent(params[p]))}}
|
||||
return str.join("&")};let addGlobalHeader=function(key,value){globalHeaders[key]={key:key.toLowerCase(),value:value.toLowerCase()}};let addGlobalParam=function(key,value){globalParams.push({key:key,value:value})};addGlobalHeader('x-sdk-version','appwrite:javascript:1.0.22');addGlobalHeader('content-type','');let call=function(method,path,headers={},params={},progress=null){let i;path=config.endpoint+path;if(-1===['GET','POST','PUT','DELETE','TRACE','HEAD','OPTIONS','CONNECT','PATCH'].indexOf(method)){throw new Error('var method must contain a valid HTTP method name')}
|
||||
if(typeof path!=='string'){throw new Error('var path must be of type string')}
|
||||
if(typeof headers!=='object'){throw new Error('var headers must be of type object')}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# [Appwrite SDK for NodeJS](https://appwrite.io) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
|
||||
# Appwrite SDK for NodeJS
|
||||
|
||||
![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1)
|
||||
|
||||
This SDK is compitable with Appwrite server version 0.2.0 for older versions check previous releases.
|
||||
**This SDK is compatible with Appwrite server version 0.2.0. For older versions, please check previous releases.**
|
||||
|
||||
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)
|
||||
|
||||
|
@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
|||
|
||||
![Appwrite](https://appwrite.io/images/github.png)
|
||||
|
||||
**API Version: latest**
|
||||
|
||||
## Installation
|
||||
|
||||
To install via [NPM](https://www.npmjs.com/):
|
||||
|
|
|
@ -10,7 +10,7 @@ client
|
|||
.setKey('')
|
||||
;
|
||||
|
||||
let promise = projects.createTask('[PROJECT_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com');
|
||||
let promise = projects.createTask('[PROJECT_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com');
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
|
|
@ -10,7 +10,7 @@ client
|
|||
.setKey('')
|
||||
;
|
||||
|
||||
let promise = projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 0);
|
||||
let promise = projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 1);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
|
|
@ -10,7 +10,7 @@ client
|
|||
.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) {
|
||||
console.log(response);
|
||||
|
|
|
@ -10,7 +10,7 @@ client
|
|||
.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) {
|
||||
console.log(response);
|
||||
|
|
|
@ -4,7 +4,7 @@ const request = require('request-promise-native');
|
|||
class Client {
|
||||
|
||||
constructor() {
|
||||
this.endpoint = 'https://appwrite.test/v1';
|
||||
this.endpoint = 'https://https://appwrite.io/v1';
|
||||
this.headers = {
|
||||
'content-type': '',
|
||||
'x-sdk-version': 'appwrite:nodejs:1.0.26',
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# [Appwrite SDK for PHP](https://appwrite.io) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
|
||||
# Appwrite SDK for PHP
|
||||
|
||||
![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1)
|
||||
|
||||
This SDK is compitable with Appwrite server version 0.2.0 for older versions check previous releases.
|
||||
**This SDK is compatible with Appwrite server version 0.2.0. For older versions, please check previous releases.**
|
||||
|
||||
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)
|
||||
|
||||
|
@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
|||
|
||||
![Appwrite](https://appwrite.io/images/github.png)
|
||||
|
||||
**API Version: latest**
|
||||
|
||||
## Installation
|
||||
|
||||
To install via [Composer](http://getcomposer.org/):
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## Get Account
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/account
|
||||
GET https://https://appwrite.io/v1/account
|
||||
```
|
||||
|
||||
** Get currently logged in user data as JSON object. **
|
||||
|
@ -11,7 +11,7 @@ GET https://appwrite.test/v1/account
|
|||
## Delete Account
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/account
|
||||
DELETE https://https://appwrite.io/v1/account
|
||||
```
|
||||
|
||||
** Delete currently logged in user account. **
|
||||
|
@ -19,7 +19,7 @@ DELETE https://appwrite.test/v1/account
|
|||
## Update Account Email
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/account/email
|
||||
PATCH https://https://appwrite.io/v1/account/email
|
||||
```
|
||||
|
||||
** Update currently logged in user account email address. After changing user address, user confirmation status is being reset and a new confirmation mail is sent. For security measures, user password is required to complete this request. **
|
||||
|
@ -34,7 +34,7 @@ PATCH https://appwrite.test/v1/account/email
|
|||
## Update Account Name
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/account/name
|
||||
PATCH https://https://appwrite.io/v1/account/name
|
||||
```
|
||||
|
||||
** Update currently logged in user account name. **
|
||||
|
@ -48,7 +48,7 @@ PATCH https://appwrite.test/v1/account/name
|
|||
## Update Account Password
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/account/password
|
||||
PATCH https://https://appwrite.io/v1/account/password
|
||||
```
|
||||
|
||||
** Update currently logged in user password. For validation, user is required to pass the password twice. **
|
||||
|
@ -63,7 +63,7 @@ PATCH https://appwrite.test/v1/account/password
|
|||
## Get Account Preferences
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/account/prefs
|
||||
GET https://https://appwrite.io/v1/account/prefs
|
||||
```
|
||||
|
||||
** Get currently logged in user preferences key-value object. **
|
||||
|
@ -71,7 +71,7 @@ GET https://appwrite.test/v1/account/prefs
|
|||
## Update Account Prefs
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/account/prefs
|
||||
PATCH https://https://appwrite.io/v1/account/prefs
|
||||
```
|
||||
|
||||
** Update currently logged in user account preferences. You can pass only the specific settings you wish to update. **
|
||||
|
@ -85,7 +85,7 @@ PATCH https://appwrite.test/v1/account/prefs
|
|||
## Get Account Security Log
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/account/security
|
||||
GET https://https://appwrite.io/v1/account/security
|
||||
```
|
||||
|
||||
** Get currently logged in user list of latest security activity logs. Each log returns user IP address, location and date and time of log. **
|
||||
|
@ -93,7 +93,7 @@ GET https://appwrite.test/v1/account/security
|
|||
## Get Account Active Sessions
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/account/sessions
|
||||
GET https://https://appwrite.io/v1/account/sessions
|
||||
```
|
||||
|
||||
** Get currently logged in user list of active sessions across different devices. **
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## Login User
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/auth/login
|
||||
POST https://https://appwrite.io/v1/auth/login
|
||||
```
|
||||
|
||||
** Allow the user to login into his account by providing a valid email and password combination. Use the success and failure arguments to provide a redirect URL\'s back to your app when login is completed.
|
||||
|
@ -24,7 +24,7 @@ When accessing this route using JavaScript from the browser, success and failure
|
|||
## Logout Current Session
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/auth/logout
|
||||
DELETE https://https://appwrite.io/v1/auth/logout
|
||||
```
|
||||
|
||||
** Use this endpoint to log out the currently logged in user from his account. When succeed this endpoint will delete the user session and remove the session secret cookie from the user client. **
|
||||
|
@ -32,7 +32,7 @@ DELETE https://appwrite.test/v1/auth/logout
|
|||
## Logout Specific Session
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/auth/logout/{id}
|
||||
DELETE https://https://appwrite.io/v1/auth/logout/{id}
|
||||
```
|
||||
|
||||
** Use this endpoint to log out the currently logged in user from all his account sessions across all his different devices. When using the option id argument, only the session unique ID provider will be deleted. **
|
||||
|
@ -46,7 +46,7 @@ DELETE https://appwrite.test/v1/auth/logout/{id}
|
|||
## OAuth Login
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/auth/oauth/{provider}
|
||||
GET https://https://appwrite.io/v1/auth/oauth/{provider}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -60,7 +60,7 @@ GET https://appwrite.test/v1/auth/oauth/{provider}
|
|||
## Password Recovery
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/auth/recovery
|
||||
POST https://https://appwrite.io/v1/auth/recovery
|
||||
```
|
||||
|
||||
** Sends the user an email with a temporary secret token for password reset. When the user clicks the confirmation link he is redirected back to your app password reset redirect URL with a secret token and email address values attached to the URL query string. Use the query string params to submit a request to the /auth/password/reset endpoint to complete the process. **
|
||||
|
@ -75,7 +75,7 @@ POST https://appwrite.test/v1/auth/recovery
|
|||
## Password Reset
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/auth/recovery/reset
|
||||
PUT https://https://appwrite.io/v1/auth/recovery/reset
|
||||
```
|
||||
|
||||
** Use this endpoint to complete the user account password reset. Both the **userId** and **token** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the /auth/recovery endpoint.
|
||||
|
@ -94,7 +94,7 @@ Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWA
|
|||
## Register User
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/auth/register
|
||||
POST https://https://appwrite.io/v1/auth/register
|
||||
```
|
||||
|
||||
** Use this endpoint to allow a new user to register an account in your project. Use the success and failure URL's to redirect users back to your application after signup completes.
|
||||
|
@ -119,7 +119,7 @@ When accessing this route using JavaScript from the browser, success and failure
|
|||
## Confirm User
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/auth/register/confirm
|
||||
POST https://https://appwrite.io/v1/auth/register/confirm
|
||||
```
|
||||
|
||||
** Use this endpoint to complete the confirmation of the user account email address. Both the **userId** and **token** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the /auth/register endpoint. **
|
||||
|
@ -134,7 +134,7 @@ POST https://appwrite.test/v1/auth/register/confirm
|
|||
## Resend Confirmation
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/auth/register/confirm/resend
|
||||
POST https://https://appwrite.io/v1/auth/register/confirm/resend
|
||||
```
|
||||
|
||||
** This endpoint allows the user to request your app to resend him his email confirmation message. The redirect arguments acts the same way as in /auth/register endpoint.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## Get Browser Icon
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/avatars/browsers/{code}
|
||||
GET https://https://appwrite.io/v1/avatars/browsers/{code}
|
||||
```
|
||||
|
||||
** You can use this endpoint to show different browser icons to your users, The code argument receives the browser code as appear in your user /account/sessions endpoint. Use width, height and quality arguments to change the output settings. **
|
||||
|
@ -20,7 +20,7 @@ GET https://appwrite.test/v1/avatars/browsers/{code}
|
|||
## Get Credit Card Icon
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/avatars/credit-cards/{code}
|
||||
GET https://https://appwrite.io/v1/avatars/credit-cards/{code}
|
||||
```
|
||||
|
||||
** Need to display your users with your billing method or there payment methods? The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings. **
|
||||
|
@ -37,7 +37,7 @@ GET https://appwrite.test/v1/avatars/credit-cards/{code}
|
|||
## Get Favicon
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/avatars/favicon
|
||||
GET https://https://appwrite.io/v1/avatars/favicon
|
||||
```
|
||||
|
||||
** Use this endpoint to fetch the favorite icon (AKA favicon) of a any remote website URL. **
|
||||
|
@ -51,7 +51,7 @@ GET https://appwrite.test/v1/avatars/favicon
|
|||
## Get Country Flag
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/avatars/flags/{code}
|
||||
GET https://https://appwrite.io/v1/avatars/flags/{code}
|
||||
```
|
||||
|
||||
** You can use this endpoint to show different country flags icons to your users, The code argument receives the a 2 letter country code. Use width, height and quality arguments to change the output settings. **
|
||||
|
@ -68,7 +68,7 @@ GET https://appwrite.test/v1/avatars/flags/{code}
|
|||
## Get Image from URL
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/avatars/image
|
||||
GET https://https://appwrite.io/v1/avatars/image
|
||||
```
|
||||
|
||||
** Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in cases, you want to make sure a 3rd party image is properly served using a TLS protocol. **
|
||||
|
@ -84,7 +84,7 @@ GET https://appwrite.test/v1/avatars/image
|
|||
## Text to QR Generator
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/avatars/qr
|
||||
GET https://https://appwrite.io/v1/avatars/qr
|
||||
```
|
||||
|
||||
** Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image. **
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## List Collections
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/database
|
||||
GET https://https://appwrite.io/v1/database
|
||||
```
|
||||
|
||||
** Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project collections. [Learn more about different API modes](/docs/modes). **
|
||||
|
@ -20,7 +20,7 @@ GET https://appwrite.test/v1/database
|
|||
## Create Collection
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/database
|
||||
POST https://https://appwrite.io/v1/database
|
||||
```
|
||||
|
||||
** Create a new Collection. **
|
||||
|
@ -37,7 +37,7 @@ POST https://appwrite.test/v1/database
|
|||
## Get Collection
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/database/{collectionId}
|
||||
GET https://https://appwrite.io/v1/database/{collectionId}
|
||||
```
|
||||
|
||||
** Get collection by its unique ID. This endpoint response returns a JSON object with the collection metadata. **
|
||||
|
@ -51,7 +51,7 @@ GET https://appwrite.test/v1/database/{collectionId}
|
|||
## Update Collection
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/database/{collectionId}
|
||||
PUT https://https://appwrite.io/v1/database/{collectionId}
|
||||
```
|
||||
|
||||
** Update collection by its unique ID. **
|
||||
|
@ -69,7 +69,7 @@ PUT https://appwrite.test/v1/database/{collectionId}
|
|||
## Delete Collection
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/database/{collectionId}
|
||||
DELETE https://https://appwrite.io/v1/database/{collectionId}
|
||||
```
|
||||
|
||||
** Delete a collection by its unique ID. Only users with write permissions have access to delete this resource. **
|
||||
|
@ -83,7 +83,7 @@ DELETE https://appwrite.test/v1/database/{collectionId}
|
|||
## List Documents
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/database/{collectionId}/documents
|
||||
GET https://https://appwrite.io/v1/database/{collectionId}/documents
|
||||
```
|
||||
|
||||
** Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project documents. [Learn more about different API modes](/docs/modes). **
|
||||
|
@ -106,7 +106,7 @@ GET https://appwrite.test/v1/database/{collectionId}/documents
|
|||
## Create Document
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/database/{collectionId}/documents
|
||||
POST https://https://appwrite.io/v1/database/{collectionId}/documents
|
||||
```
|
||||
|
||||
** Create a new Document. **
|
||||
|
@ -126,7 +126,7 @@ POST https://appwrite.test/v1/database/{collectionId}/documents
|
|||
## Get Document
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/database/{collectionId}/documents/{documentId}
|
||||
GET https://https://appwrite.io/v1/database/{collectionId}/documents/{documentId}
|
||||
```
|
||||
|
||||
** Get document by its unique ID. This endpoint response returns a JSON object with the document data. **
|
||||
|
@ -141,7 +141,7 @@ GET https://appwrite.test/v1/database/{collectionId}/documents/{documentId}
|
|||
## Update Document
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/database/{collectionId}/documents/{documentId}
|
||||
PATCH https://https://appwrite.io/v1/database/{collectionId}/documents/{documentId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -157,7 +157,7 @@ PATCH https://appwrite.test/v1/database/{collectionId}/documents/{documentId}
|
|||
## Delete Document
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/database/{collectionId}/documents/{documentId}
|
||||
DELETE https://https://appwrite.io/v1/database/{collectionId}/documents/{documentId}
|
||||
```
|
||||
|
||||
** Delete document by its unique ID. This endpoint deletes only the parent documents, his attributes and relations to other documents. Child documents **will not** be deleted. **
|
||||
|
|
|
@ -12,4 +12,4 @@ $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);
|
||||
|
||||
$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0);
|
||||
$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1);
|
|
@ -3,7 +3,7 @@
|
|||
## Get User Locale
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/locale
|
||||
GET https://https://appwrite.io/v1/locale
|
||||
```
|
||||
|
||||
** Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in supported language. **
|
||||
|
@ -11,7 +11,7 @@ GET https://appwrite.test/v1/locale
|
|||
## List Countries
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/locale/countries
|
||||
GET https://https://appwrite.io/v1/locale/countries
|
||||
```
|
||||
|
||||
** List of all countries. You can use the locale header to get the data in supported language. **
|
||||
|
@ -19,7 +19,7 @@ GET https://appwrite.test/v1/locale/countries
|
|||
## List EU Countries
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/locale/countries/eu
|
||||
GET https://https://appwrite.io/v1/locale/countries/eu
|
||||
```
|
||||
|
||||
** List of all countries that are currently members of the EU. You can use the locale header to get the data in supported language. UK brexit date is currently set to 2019-10-31 and will be updated if and when needed. **
|
||||
|
@ -27,7 +27,7 @@ GET https://appwrite.test/v1/locale/countries/eu
|
|||
## List Countries Phone Codes
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/locale/countries/phones
|
||||
GET https://https://appwrite.io/v1/locale/countries/phones
|
||||
```
|
||||
|
||||
** List of all countries phone codes. You can use the locale header to get the data in supported language. **
|
||||
|
@ -35,7 +35,7 @@ GET https://appwrite.test/v1/locale/countries/phones
|
|||
## List of currencies
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/locale/currencies
|
||||
GET https://https://appwrite.io/v1/locale/currencies
|
||||
```
|
||||
|
||||
** List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in supported language. **
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
## List Projects
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects
|
||||
GET https://https://appwrite.io/v1/projects
|
||||
```
|
||||
|
||||
## Create Project
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/projects
|
||||
POST https://https://appwrite.io/v1/projects
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -31,7 +31,7 @@ POST https://appwrite.test/v1/projects
|
|||
## Get Project
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -43,7 +43,7 @@ GET https://appwrite.test/v1/projects/{projectId}
|
|||
## Update Project
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/projects/{projectId}
|
||||
PATCH https://https://appwrite.io/v1/projects/{projectId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -65,7 +65,7 @@ PATCH https://appwrite.test/v1/projects/{projectId}
|
|||
## Delete Project
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/projects/{projectId}
|
||||
DELETE https://https://appwrite.io/v1/projects/{projectId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -77,7 +77,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}
|
|||
## List Keys
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/keys
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/keys
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -89,7 +89,7 @@ GET https://appwrite.test/v1/projects/{projectId}/keys
|
|||
## Create Key
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/projects/{projectId}/keys
|
||||
POST https://https://appwrite.io/v1/projects/{projectId}/keys
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -103,7 +103,7 @@ POST https://appwrite.test/v1/projects/{projectId}/keys
|
|||
## Get Key
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -116,7 +116,7 @@ GET https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
|
|||
## Update Key
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
|
||||
PUT https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -131,7 +131,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
|
|||
## Delete Key
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
|
||||
DELETE https://https://appwrite.io/v1/projects/{projectId}/keys/{keyId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -144,7 +144,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}/keys/{keyId}
|
|||
## Update Project OAuth
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/projects/{projectId}/oauth
|
||||
PATCH https://https://appwrite.io/v1/projects/{projectId}/oauth
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -159,7 +159,7 @@ PATCH https://appwrite.test/v1/projects/{projectId}/oauth
|
|||
## List Platforms
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/platforms
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/platforms
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -171,7 +171,7 @@ GET https://appwrite.test/v1/projects/{projectId}/platforms
|
|||
## Create Platform
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/projects/{projectId}/platforms
|
||||
POST https://https://appwrite.io/v1/projects/{projectId}/platforms
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -188,7 +188,7 @@ POST https://appwrite.test/v1/projects/{projectId}/platforms
|
|||
## Get Platform
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -201,7 +201,7 @@ GET https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
|
|||
## Update Platform
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
|
||||
PUT https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -218,7 +218,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
|
|||
## Delete Platform
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
|
||||
DELETE https://https://appwrite.io/v1/projects/{projectId}/platforms/{platformId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -231,7 +231,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
|
|||
## List Tasks
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/tasks
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/tasks
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -243,7 +243,7 @@ GET https://appwrite.test/v1/projects/{projectId}/tasks
|
|||
## Create Task
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/projects/{projectId}/tasks
|
||||
POST https://https://appwrite.io/v1/projects/{projectId}/tasks
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -264,7 +264,7 @@ POST https://appwrite.test/v1/projects/{projectId}/tasks
|
|||
## Get Task
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -277,7 +277,7 @@ GET https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
|
|||
## Update Task
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
|
||||
PUT https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -299,7 +299,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
|
|||
## Delete Task
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
|
||||
DELETE https://https://appwrite.io/v1/projects/{projectId}/tasks/{taskId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -312,7 +312,7 @@ DELETE https://appwrite.test/v1/projects/{projectId}/tasks/{taskId}
|
|||
## Get Project
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/usage
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/usage
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -324,7 +324,7 @@ GET https://appwrite.test/v1/projects/{projectId}/usage
|
|||
## List Webhooks
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/webhooks
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/webhooks
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -336,7 +336,7 @@ GET https://appwrite.test/v1/projects/{projectId}/webhooks
|
|||
## Create Webhook
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/projects/{projectId}/webhooks
|
||||
POST https://https://appwrite.io/v1/projects/{projectId}/webhooks
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -354,7 +354,7 @@ POST https://appwrite.test/v1/projects/{projectId}/webhooks
|
|||
## Get Webhook
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
|
||||
GET https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -367,7 +367,7 @@ GET https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
|
|||
## Update Webhook
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
|
||||
PUT https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
@ -386,7 +386,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
|
|||
## Delete Webhook
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/projects/{projectId}/webhooks/{webhookId}
|
||||
DELETE https://https://appwrite.io/v1/projects/{projectId}/webhooks/{webhookId}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## List Files
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/storage/files
|
||||
GET https://https://appwrite.io/v1/storage/files
|
||||
```
|
||||
|
||||
** Get a list of all the user files. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project files. [Learn more about different API modes](/docs/modes). **
|
||||
|
@ -20,7 +20,7 @@ GET https://appwrite.test/v1/storage/files
|
|||
## Create File
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/storage/files
|
||||
POST https://https://appwrite.io/v1/storage/files
|
||||
```
|
||||
|
||||
** Create a new file. The user who creates the file will automatically be assigned to read and write access unless he has passed custom values for read and write arguments. **
|
||||
|
@ -37,7 +37,7 @@ POST https://appwrite.test/v1/storage/files
|
|||
## Get File
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/storage/files/{fileId}
|
||||
GET https://https://appwrite.io/v1/storage/files/{fileId}
|
||||
```
|
||||
|
||||
** Get file by its unique ID. This endpoint response returns a JSON object with the file metadata. **
|
||||
|
@ -51,7 +51,7 @@ GET https://appwrite.test/v1/storage/files/{fileId}
|
|||
## Update File
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/storage/files/{fileId}
|
||||
PUT https://https://appwrite.io/v1/storage/files/{fileId}
|
||||
```
|
||||
|
||||
** Update file by its unique ID. Only users with write permissions have access to update this resource. **
|
||||
|
@ -68,7 +68,7 @@ PUT https://appwrite.test/v1/storage/files/{fileId}
|
|||
## Delete File
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/storage/files/{fileId}
|
||||
DELETE https://https://appwrite.io/v1/storage/files/{fileId}
|
||||
```
|
||||
|
||||
** Delete a file by its unique ID. Only users with write permissions have access to delete this resource. **
|
||||
|
@ -82,7 +82,7 @@ DELETE https://appwrite.test/v1/storage/files/{fileId}
|
|||
## Get File for Download
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/storage/files/{fileId}/download
|
||||
GET https://https://appwrite.io/v1/storage/files/{fileId}/download
|
||||
```
|
||||
|
||||
** Get file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory. **
|
||||
|
@ -96,7 +96,7 @@ GET https://appwrite.test/v1/storage/files/{fileId}/download
|
|||
## Get File Preview
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/storage/files/{fileId}/preview
|
||||
GET https://https://appwrite.io/v1/storage/files/{fileId}/preview
|
||||
```
|
||||
|
||||
** Get file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets will return file icon image. You can also pass query string arguments for cutting and resizing your preview image. **
|
||||
|
@ -115,7 +115,7 @@ GET https://appwrite.test/v1/storage/files/{fileId}/preview
|
|||
## Get File for View
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/storage/files/{fileId}/view
|
||||
GET https://https://appwrite.io/v1/storage/files/{fileId}/view
|
||||
```
|
||||
|
||||
** Get file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header. **
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## List Teams
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/teams
|
||||
GET https://https://appwrite.io/v1/teams
|
||||
```
|
||||
|
||||
** Get a list of all the current user teams. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project teams. [Learn more about different API modes](/docs/modes). **
|
||||
|
@ -20,7 +20,7 @@ GET https://appwrite.test/v1/teams
|
|||
## Create Team
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/teams
|
||||
POST https://https://appwrite.io/v1/teams
|
||||
```
|
||||
|
||||
** Create a new team. The user who creates the team will automatically be assigned as the owner of the team. The team owner can invite new members, who will be able add new owners and update or delete the team from your project. **
|
||||
|
@ -35,7 +35,7 @@ POST https://appwrite.test/v1/teams
|
|||
## Get Team
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/teams/{teamId}
|
||||
GET https://https://appwrite.io/v1/teams/{teamId}
|
||||
```
|
||||
|
||||
** Get team by its unique ID. All team members have read access for this resource. **
|
||||
|
@ -49,7 +49,7 @@ GET https://appwrite.test/v1/teams/{teamId}
|
|||
## Update Team
|
||||
|
||||
```http request
|
||||
PUT https://appwrite.test/v1/teams/{teamId}
|
||||
PUT https://https://appwrite.io/v1/teams/{teamId}
|
||||
```
|
||||
|
||||
** Update team by its unique ID. Only team owners have write access for this resource. **
|
||||
|
@ -64,7 +64,7 @@ PUT https://appwrite.test/v1/teams/{teamId}
|
|||
## Delete Team
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/teams/{teamId}
|
||||
DELETE https://https://appwrite.io/v1/teams/{teamId}
|
||||
```
|
||||
|
||||
** Delete team by its unique ID. Only team owners have write access for this resource. **
|
||||
|
@ -78,7 +78,7 @@ DELETE https://appwrite.test/v1/teams/{teamId}
|
|||
## Get Team Members
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/teams/{teamId}/members
|
||||
GET https://https://appwrite.io/v1/teams/{teamId}/members
|
||||
```
|
||||
|
||||
** Get team members by the team unique ID. All team members have read access for this list of resources. **
|
||||
|
@ -92,7 +92,7 @@ GET https://appwrite.test/v1/teams/{teamId}/members
|
|||
## Create Team Membership
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/teams/{teamId}/memberships
|
||||
POST https://https://appwrite.io/v1/teams/{teamId}/memberships
|
||||
```
|
||||
|
||||
** Use this endpoint to invite a new member to your team. An email with a link to join the team will be sent to the new member email address. If member doesn't exists in the project it will be automatically created.
|
||||
|
@ -114,7 +114,7 @@ Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWA
|
|||
## Delete Team Membership
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}
|
||||
DELETE https://https://appwrite.io/v1/teams/{teamId}/memberships/{inviteId}
|
||||
```
|
||||
|
||||
** This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. **
|
||||
|
@ -129,7 +129,7 @@ DELETE https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}
|
|||
## Create Team Membership (Resend)
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}/resend
|
||||
POST https://https://appwrite.io/v1/teams/{teamId}/memberships/{inviteId}/resend
|
||||
```
|
||||
|
||||
** Use this endpoint to resend your invitation email for a user to join a team. **
|
||||
|
@ -145,7 +145,7 @@ POST https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}/resend
|
|||
## Update Team Membership Status
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/teams/{teamId}/memberships/{inviteId}/status
|
||||
PATCH https://https://appwrite.io/v1/teams/{teamId}/memberships/{inviteId}/status
|
||||
```
|
||||
|
||||
** Use this endpoint to let user accept an invitation to join a team after he is being redirect back to your app from the invitation email. Use the success and failure URL's to redirect users back to your application after the request completes.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
## List Users
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/users
|
||||
GET https://https://appwrite.io/v1/users
|
||||
```
|
||||
|
||||
** Get a list of all the project users. You can use the query params to filter your results. **
|
||||
|
@ -20,7 +20,7 @@ GET https://appwrite.test/v1/users
|
|||
## Create User
|
||||
|
||||
```http request
|
||||
POST https://appwrite.test/v1/users
|
||||
POST https://https://appwrite.io/v1/users
|
||||
```
|
||||
|
||||
** Create a new user. **
|
||||
|
@ -36,7 +36,7 @@ POST https://appwrite.test/v1/users
|
|||
## Get User
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/users/{userId}
|
||||
GET https://https://appwrite.io/v1/users/{userId}
|
||||
```
|
||||
|
||||
** Get user by its unique ID. **
|
||||
|
@ -50,7 +50,7 @@ GET https://appwrite.test/v1/users/{userId}
|
|||
## Get User Logs
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/users/{userId}/logs
|
||||
GET https://https://appwrite.io/v1/users/{userId}/logs
|
||||
```
|
||||
|
||||
** Get user activity logs list by its unique ID. **
|
||||
|
@ -64,7 +64,7 @@ GET https://appwrite.test/v1/users/{userId}/logs
|
|||
## Get User Prefs
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/users/{userId}/prefs
|
||||
GET https://https://appwrite.io/v1/users/{userId}/prefs
|
||||
```
|
||||
|
||||
** Get user preferences by its unique ID. **
|
||||
|
@ -78,7 +78,7 @@ GET https://appwrite.test/v1/users/{userId}/prefs
|
|||
## Get User Sessions
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/users/{userId}/sessions
|
||||
GET https://https://appwrite.io/v1/users/{userId}/sessions
|
||||
```
|
||||
|
||||
** Get user sessions list by its unique ID. **
|
||||
|
@ -92,7 +92,7 @@ GET https://appwrite.test/v1/users/{userId}/sessions
|
|||
## Delete User Sessions
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/users/{userId}/sessions
|
||||
DELETE https://https://appwrite.io/v1/users/{userId}/sessions
|
||||
```
|
||||
|
||||
** Delete all user sessions by its unique ID. **
|
||||
|
@ -106,7 +106,7 @@ DELETE https://appwrite.test/v1/users/{userId}/sessions
|
|||
## Delete User Session
|
||||
|
||||
```http request
|
||||
DELETE https://appwrite.test/v1/users/{userId}/sessions/:session
|
||||
DELETE https://https://appwrite.io/v1/users/{userId}/sessions/:session
|
||||
```
|
||||
|
||||
** Delete user sessions by its unique ID. **
|
||||
|
@ -121,7 +121,7 @@ DELETE https://appwrite.test/v1/users/{userId}/sessions/:session
|
|||
## Update user status
|
||||
|
||||
```http request
|
||||
PATCH https://appwrite.test/v1/users/{userId}/status
|
||||
PATCH https://https://appwrite.io/v1/users/{userId}/status
|
||||
```
|
||||
|
||||
** Update user status by its unique ID. **
|
||||
|
|
|
@ -28,7 +28,7 @@ class Client
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $endpoint = 'https://appwrite.test/v1';
|
||||
protected $endpoint = 'https://https://appwrite.io/v1';
|
||||
|
||||
/**
|
||||
* Global Headers
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# [Appwrite SDK for Python](https://appwrite.io) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
|
||||
# Appwrite SDK for Python
|
||||
|
||||
![License](https://img.shields.io/github/license/appwrite/sdk-for-python.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1)
|
||||
|
@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
|||
|
||||
![Appwrite](https://appwrite.io/images/github.png)
|
||||
|
||||
**API Version: latest**
|
||||
|
||||
## Installation
|
||||
|
||||
To install via [PyPI](https://pypi.org/):
|
||||
|
|
|
@ -4,7 +4,7 @@ import requests
|
|||
class Client:
|
||||
def __init__(self):
|
||||
self._self_signed = False
|
||||
self._endpoint = 'https://appwrite.test/v1'
|
||||
self._endpoint = 'https://https://appwrite.io/v1'
|
||||
self._global_headers = {
|
||||
'content-type': '',
|
||||
'x-sdk-version': 'appwrite:python:1.0.0',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# [Appwrite SDK for Ruby](https://appwrite.io) [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid)
|
||||
# Appwrite SDK for Ruby
|
||||
|
||||
![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1)
|
||||
|
@ -11,8 +11,6 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
|||
|
||||
![Appwrite](https://appwrite.io/images/github.png)
|
||||
|
||||
**API Version: latest**
|
||||
|
||||
## Installation
|
||||
|
||||
To install via [Gem](https://rubygems.org/):
|
||||
|
|
|
@ -17,7 +17,7 @@ use Appwrite\SDK\Language\Dart;
|
|||
$cli = new CLI();
|
||||
|
||||
$version = '0.2.0'; // Server version
|
||||
$warning = '**This SDK is compatible with Appwrite server version ' . $version . '. For older versions, please check [previous releases](/releases).**';
|
||||
$warning = '**This SDK is compatible with Appwrite server version ' . $version . '. For older versions, please check previous releases.**';
|
||||
|
||||
$cli
|
||||
->task('generate')
|
||||
|
|
Loading…
Reference in a new issue