mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Updated SDKs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# [Appwrite SDK for Javascript](https://appwrite.io) [](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)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
**WORK IN PROGRESS - NOT READY FOR USAGE**
|
||||
|
||||
@@ -9,9 +9,9 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
||||
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
**API Version: 0.1.3**
|
||||
**API Version: 0.1.7.ee**
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
+1
-19
@@ -1372,24 +1372,6 @@
|
||||
getCountriesPhones: function() {
|
||||
let path = '/locale/countries/phones';
|
||||
|
||||
return http
|
||||
.get(path, {'content-type': 'application/json'},
|
||||
{
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* List of currencies
|
||||
*
|
||||
* List of all currencies, including currency symol, name, plural, and decimal
|
||||
* digits for all major and minor currencies. You can use the locale header to
|
||||
* get the data in supported language.
|
||||
*
|
||||
* @throws {Error}
|
||||
* @return {Promise} */
|
||||
getCurrencies: function() {
|
||||
let path = '/locale/currencies';
|
||||
|
||||
return http
|
||||
.get(path, {'content-type': 'application/json'},
|
||||
{
|
||||
@@ -1811,7 +1793,7 @@
|
||||
* @param {string} url
|
||||
* @throws {Error}
|
||||
* @return {Promise} */
|
||||
updatePlatform: function(projectId, platformId, name, key = '', store = '', url = '') {
|
||||
updatePlatform: function(projectId, platformId, name, key = '', store = '', url = '[]') {
|
||||
if(projectId === undefined) {
|
||||
throw new Error('Missing required parameter: "projectId"');
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -57,7 +57,7 @@ if(documentId===undefined){throw new Error('Missing required parameter: "documen
|
||||
if(data===undefined){throw new Error('Missing required parameter: "data"')}
|
||||
let path='/database/{collectionId}/documents/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.patch(path,{'content-type':'application/json'},{'data':data,'read':read,'write':write})},deleteDocument:function(collectionId,documentId){if(collectionId===undefined){throw new Error('Missing required parameter: "collectionId"')}
|
||||
if(documentId===undefined){throw new Error('Missing required parameter: "documentId"')}
|
||||
let path='/database/{collectionId}/documents/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.delete(path,{'content-type':'application/json'},{})}};let locale={getLocale:function(){let path='/locale';return http.get(path,{'content-type':'application/json'},{})},getCountries:function(){let path='/locale/countries';return http.get(path,{'content-type':'application/json'},{})},getCountriesEU:function(){let path='/locale/countries/eu';return http.get(path,{'content-type':'application/json'},{})},getCountriesPhones:function(){let path='/locale/countries/phones';return http.get(path,{'content-type':'application/json'},{})},getCurrencies:function(){let path='/locale/currencies';return http.get(path,{'content-type':'application/json'},{})}};let projects={listProjects:function(){let path='/projects';return http.get(path,{'content-type':'application/json'},{})},createProject:function(name,teamId,description='',logo='',url='',clients=[],legalName='',legalCountry='',legalState='',legalCity='',legalAddress='',legalTaxId=''){if(name===undefined){throw new Error('Missing required parameter: "name"')}
|
||||
let path='/database/{collectionId}/documents/{documentId}'.replace(new RegExp('{collectionId}','g'),collectionId).replace(new RegExp('{documentId}','g'),documentId);return http.delete(path,{'content-type':'application/json'},{})}};let locale={getLocale:function(){let path='/locale';return http.get(path,{'content-type':'application/json'},{})},getCountries:function(){let path='/locale/countries';return http.get(path,{'content-type':'application/json'},{})},getCountriesEU:function(){let path='/locale/countries/eu';return http.get(path,{'content-type':'application/json'},{})},getCountriesPhones:function(){let path='/locale/countries/phones';return http.get(path,{'content-type':'application/json'},{})}};let projects={listProjects:function(){let path='/projects';return http.get(path,{'content-type':'application/json'},{})},createProject:function(name,teamId,description='',logo='',url='',clients=[],legalName='',legalCountry='',legalState='',legalCity='',legalAddress='',legalTaxId=''){if(name===undefined){throw new Error('Missing required parameter: "name"')}
|
||||
if(teamId===undefined){throw new Error('Missing required parameter: "teamId"')}
|
||||
let path='/projects';return http.post(path,{'content-type':'application/json'},{'name':name,'teamId':teamId,'description':description,'logo':logo,'url':url,'clients':clients,'legalName':legalName,'legalCountry':legalCountry,'legalState':legalState,'legalCity':legalCity,'legalAddress':legalAddress,'legalTaxId':legalTaxId})},getProject:function(projectId){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
|
||||
let path='/projects/{projectId}'.replace(new RegExp('{projectId}','g'),projectId);return http.get(path,{'content-type':'application/json'},{})},updateProject:function(projectId,name,description='',logo='',url='',clients=[],legalName='',legalCountry='',legalState='',legalCity='',legalAddress='',legalTaxId=''){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
|
||||
@@ -83,7 +83,7 @@ if(type===undefined){throw new Error('Missing required parameter: "type"')}
|
||||
if(name===undefined){throw new Error('Missing required parameter: "name"')}
|
||||
let path='/projects/{projectId}/platforms'.replace(new RegExp('{projectId}','g'),projectId);return http.post(path,{'content-type':'application/json'},{'type':type,'name':name,'key':key,'store':store,'url':url})},getPlatform:function(projectId,platformId){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
|
||||
if(platformId===undefined){throw new Error('Missing required parameter: "platformId"')}
|
||||
let path='/projects/{projectId}/platforms/{platformId}'.replace(new RegExp('{projectId}','g'),projectId).replace(new RegExp('{platformId}','g'),platformId);return http.get(path,{'content-type':'application/json'},{})},updatePlatform:function(projectId,platformId,name,key='',store='',url=''){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
|
||||
let path='/projects/{projectId}/platforms/{platformId}'.replace(new RegExp('{projectId}','g'),projectId).replace(new RegExp('{platformId}','g'),platformId);return http.get(path,{'content-type':'application/json'},{})},updatePlatform:function(projectId,platformId,name,key='',store='',url='[]'){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
|
||||
if(platformId===undefined){throw new Error('Missing required parameter: "platformId"')}
|
||||
if(name===undefined){throw new Error('Missing required parameter: "name"')}
|
||||
let path='/projects/{projectId}/platforms/{platformId}'.replace(new RegExp('{projectId}','g'),projectId).replace(new RegExp('{platformId}','g'),platformId);return http.put(path,{'content-type':'application/json'},{'name':name,'key':key,'store':store,'url':url})},deletePlatform:function(projectId,platformId){if(projectId===undefined){throw new Error('Missing required parameter: "projectId"')}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# [Appwrite SDK for NodeJS](https://appwrite.io) [](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)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
**WORK IN PROGRESS - NOT READY FOR USAGE**
|
||||
|
||||
@@ -9,9 +9,9 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
||||
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
**API Version: 0.1.3**
|
||||
**API Version: 0.1.7.ee**
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -72,24 +72,6 @@ class Locale extends Service {
|
||||
{
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* List of currencies
|
||||
*
|
||||
* List of all currencies, including currency symol, name, plural, and decimal
|
||||
* digits for all major and minor currencies. You can use the locale header to
|
||||
* get the data in supported language.
|
||||
*
|
||||
* @throws Exception
|
||||
* @return {}
|
||||
*/
|
||||
async getCurrencies() {
|
||||
let path = '/locale/currencies';
|
||||
|
||||
return await this.client.call('get', path, {'content-type': 'application/json'},
|
||||
{
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Locale;
|
||||
@@ -296,7 +296,7 @@ class Projects extends Service {
|
||||
* @throws Exception
|
||||
* @return {}
|
||||
*/
|
||||
async updatePlatform(projectId, platformId, name, key = '', store = '', url = '') {
|
||||
async updatePlatform(projectId, platformId, name, key = '', store = '', url = '[]') {
|
||||
let path = '/projects/{projectId}/platforms/{platformId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{platformId}', 'g'), platformId);
|
||||
|
||||
return await this.client.call('put', path, {'content-type': 'application/json'},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# [Appwrite SDK for PHP](https://appwrite.io) [](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)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
**WORK IN PROGRESS - NOT READY FOR USAGE**
|
||||
|
||||
@@ -9,9 +9,9 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
||||
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
**API Version: 0.1.3**
|
||||
**API Version: 0.1.7.ee**
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -96,5 +96,5 @@ GET https://appwrite.test/v1/avatars/qr
|
||||
| text | string | **Required** Plain text to be converted to QR code image | |
|
||||
| size | integer | QR code size. Pass an integer between 0 to 1000. Defaults to 400. | 400 |
|
||||
| margin | integer | Margin From Edge. Pass an integer between 0 to 10. Defaults to 1. | 1 |
|
||||
| download | integer | Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading it. Pass 0 for no header, or 1 for otherwise. Default value is set to 0. | 0 |
|
||||
| download | integer | Return resulting image with 'Content-Disposition: attachment ' headers for the browser to start downloading the image. Pass 0 for no header, or 1 for otherwise. Default value is set to 0. | 0 |
|
||||
|
||||
|
||||
@@ -32,11 +32,3 @@ GET https://appwrite.test/v1/locale/countries/phones
|
||||
|
||||
** List of all countries phone codes. You can use the locale header to get the data in supported language. **
|
||||
|
||||
## List of currencies
|
||||
|
||||
```http request
|
||||
GET https://appwrite.test/v1/locale/currencies
|
||||
```
|
||||
|
||||
** List of all currencies, including currency symol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in supported language. **
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ PUT https://appwrite.test/v1/projects/{projectId}/platforms/{platformId}
|
||||
| name | string | Platform name | |
|
||||
| key | string | Package name for android or bundle ID for iOS | |
|
||||
| store | string | App store or Google Play store ID | |
|
||||
| url | string | Platform client URL | |
|
||||
| url | string | Platform client URL | [] |
|
||||
|
||||
## Delete Platform
|
||||
|
||||
|
||||
@@ -83,26 +83,6 @@ class Locale extends Service
|
||||
$params = [];
|
||||
|
||||
|
||||
return $this->client->call(Client::METHOD_GET, $path, [
|
||||
], $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* List of currencies
|
||||
*
|
||||
* List of all currencies, including currency symol, name, plural, and decimal
|
||||
* digits for all major and minor currencies. You can use the locale header to
|
||||
* get the data in supported language.
|
||||
*
|
||||
* @throws Exception
|
||||
* @return array
|
||||
*/
|
||||
public function getCurrencies()
|
||||
{
|
||||
$path = str_replace([], [], '/locale/currencies');
|
||||
$params = [];
|
||||
|
||||
|
||||
return $this->client->call(Client::METHOD_GET, $path, [
|
||||
], $params);
|
||||
}
|
||||
|
||||
@@ -330,7 +330,7 @@ class Projects extends Service
|
||||
* @throws Exception
|
||||
* @return array
|
||||
*/
|
||||
public function updatePlatform($projectId, $platformId, $name, $key = '', $store = '', $url = '')
|
||||
public function updatePlatform($projectId, $platformId, $name, $key = '', $store = '', $url = '[]')
|
||||
{
|
||||
$path = str_replace(['{projectId}', '{platformId}'], [$projectId, $platformId], '/projects/{projectId}/platforms/{platformId}');
|
||||
$params = [];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# [Appwrite SDK for Python](https://appwrite.io) [](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)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
**WORK IN PROGRESS - NOT READY FOR USAGE**
|
||||
|
||||
@@ -9,9 +9,9 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
||||
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
**API Version: 0.1.3**
|
||||
**API Version: 0.1.7.ee**
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -38,12 +38,3 @@ class Locale(Service):
|
||||
|
||||
return self.client.call('get', path, {
|
||||
}, params)
|
||||
|
||||
def get_currencies(self):
|
||||
"""List of currencies"""
|
||||
|
||||
params = {}
|
||||
path = '/locale/currencies'
|
||||
|
||||
return self.client.call('get', path, {
|
||||
}, params)
|
||||
|
||||
@@ -182,7 +182,7 @@ class Projects(Service):
|
||||
return self.client.call('get', path, {
|
||||
}, params)
|
||||
|
||||
def update_platform(self, project_id, platform_id, name, key='', store='', url=''):
|
||||
def update_platform(self, project_id, platform_id, name, key='', store='', url='[]'):
|
||||
"""Update Platform"""
|
||||
|
||||
params = {}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# [Appwrite SDK for Ruby](https://appwrite.io) [](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)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
**WORK IN PROGRESS - NOT READY FOR USAGE**
|
||||
|
||||
@@ -9,9 +9,9 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for
|
||||
|
||||
|
||||
|
||||

|
||||

|
||||
|
||||
**API Version: 0.1.3**
|
||||
**API Version: 0.1.7.ee**
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -41,16 +41,6 @@ module Appwrite
|
||||
}, params);
|
||||
end
|
||||
|
||||
def get_currencies()
|
||||
path = '/locale/currencies'
|
||||
|
||||
params = {
|
||||
}
|
||||
|
||||
return @client.call('get', path, {
|
||||
}, params);
|
||||
end
|
||||
|
||||
|
||||
protected
|
||||
|
||||
|
||||
@@ -192,7 +192,7 @@ module Appwrite
|
||||
}, params);
|
||||
end
|
||||
|
||||
def update_platform(project_id:, platform_id:, name:, key: '', store: '', url: '')
|
||||
def update_platform(project_id:, platform_id:, name:, key: '', store: '', url: '[]')
|
||||
path = '/projects/{projectId}/platforms/{platformId}'
|
||||
.gsub('{project_id}', project_id)
|
||||
.gsub('{platform_id}', platform_id)
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AN
|
||||
->setGitURL($client['gitURL'])
|
||||
->setGitRepoName($client['gitRepoName'])
|
||||
->setGitUserName($client['gitUserName'])
|
||||
->setLogo('https://appwrite.io/v1/images/github.png')
|
||||
->setLogo('https://appwrite.io/images/github.png')
|
||||
->setURL('https://appwrite.io')
|
||||
->setShareText('Appwrite is a backend as a service for building web or mobile apps')
|
||||
->setShareURL('http://appwrite.io')
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,4 +1,5 @@
|
||||
.box {
|
||||
position: relative;
|
||||
background: #ffffff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
|
||||
|
||||
Reference in New Issue
Block a user