From 58c91febbdcbd49d120ebfb396cbc217f2097a33 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Sat, 21 Sep 2019 19:53:41 +0300 Subject: [PATCH] Updated SDK --- app/sdks/dart/README.md | 2 +- app/sdks/dart/lib/client.dart | 2 +- app/sdks/dart/lib/services/auth.dart | 34 +++++----- app/sdks/dart/pubspec.yaml | 2 +- app/sdks/js/docs/examples/auth/register.md | 2 +- .../docs/examples/projects/create-webhook.md | 2 +- .../docs/examples/projects/update-webhook.md | 2 +- app/sdks/js/package.json | 2 +- app/sdks/js/src/sdk.js | 62 +++++++++++-------- app/sdks/js/src/sdk.min.js | 20 +++--- app/sdks/node/docs/examples/auth/register.md | 2 +- .../docs/examples/projects/create-task.md | 2 +- .../docs/examples/projects/create-webhook.md | 2 +- app/sdks/node/lib/client.js | 2 +- app/sdks/node/lib/services/auth.js | 40 ++++++------ app/sdks/node/package.json | 2 +- app/sdks/php/docs/auth.md | 12 ++-- app/sdks/php/docs/examples/auth/register.md | 2 +- app/sdks/php/src/Appwrite/Client.php | 2 +- app/sdks/php/src/Appwrite/Services/Auth.php | 40 ++++++------ app/sdks/python/appwrite/client.py | 2 +- app/sdks/python/appwrite/services/auth.py | 12 ++-- app/sdks/python/setup.py | 4 +- app/sdks/ruby/lib/appwrite/client.rb | 2 +- app/sdks/ruby/lib/appwrite/services/auth.rb | 12 ++-- app/tasks/sdks.php | 2 +- 26 files changed, 140 insertions(+), 130 deletions(-) diff --git a/app/sdks/dart/README.md b/app/sdks/dart/README.md index 24b585913b..866ec31955 100644 --- a/app/sdks/dart/README.md +++ b/app/sdks/dart/README.md @@ -19,7 +19,7 @@ Add this to your package's pubspec.yaml file: ```yml dependencies: - appwrite: ^0.0.1 + appwrite: ^0.0.2 ``` You can install packages from the command line: diff --git a/app/sdks/dart/lib/client.dart b/app/sdks/dart/lib/client.dart index aa41bb2b1b..2dd5f8f4a3 100644 --- a/app/sdks/dart/lib/client.dart +++ b/app/sdks/dart/lib/client.dart @@ -12,7 +12,7 @@ class Client { this.endPoint = 'https://appwrite.test/v1'; this.headers = { 'content-type': 'application/json', - 'x-sdk-version': 'appwrite:dart:0.0.1', + 'x-sdk-version': 'appwrite:dart:0.0.2', }; this.selfSigned = false; diff --git a/app/sdks/dart/lib/services/auth.dart b/app/sdks/dart/lib/services/auth.dart index 3fad23049d..d476e4333e 100644 --- a/app/sdks/dart/lib/services/auth.dart +++ b/app/sdks/dart/lib/services/auth.dart @@ -15,11 +15,11 @@ class Auth extends Service { /// the only valid redirect URL's are the once from domains you have set when /// added your platforms in the console interface. /// - /// When accessing this route using Javascript from the browser, success and - /// failure parameter URLs are required. Appwrite server will respond with a - /// 301 redirect status code and will set the user session cookie. This - /// behavior is enforced because modern browsers are limiting 3rd party cookies - /// in XHR of fetch request to protect user privacy. + /// When not using the success or failure redirect arguments this endpoint will + /// result with a 200 status code and the user account object on success and + /// with 401 status error on failure. This behavior was applied to help the web + /// clients deal with browsers who don't allow to set 3rd party HTTP cookies + /// needed for saving the account session token. Future login({email, password, success, failure}) async { String path = '/auth/login'; @@ -80,12 +80,12 @@ class Auth extends Service { /// 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. - Future recovery({email, confirmation}) async { + Future recovery({email, redirect}) async { String path = '/auth/recovery'; Map params = { 'email': email, - 'confirmation': confirmation, + 'redirect': redirect, }; return await this.client.call('post', path: path, params: params); @@ -117,7 +117,7 @@ class Auth extends Service { /// /// If registration completes successfully user will be sent with a /// confirmation email in order to confirm he is the owner of the account email - /// address. Use the confirmation parameter to redirect the user from the + /// address. Use the redirect parameter to redirect the user from the /// confirmation email back to your app. When the user is redirected, use the /// /auth/confirm endpoint to complete the account confirmation. /// @@ -126,18 +126,18 @@ class Auth extends Service { /// the only valid redirect URL's are the once from domains you have set when /// added your platforms in the console interface. /// - /// When accessing this route using Javascript from the browser, success and - /// failure parameter URLs are required. Appwrite server will respond with a - /// 301 redirect status code and will set the user session cookie. This - /// behavior is enforced because modern browsers are limiting 3rd party cookies - /// in XHR of fetch request to protect user privacy. - Future register({email, password, confirmation, success = null, failure = null, name = null}) async { + /// When not using the success or failure redirect arguments this endpoint will + /// result with a 200 status code and the user account object on success and + /// with 401 status error on failure. This behavior was applied to help the web + /// clients deal with browsers who don't allow to set 3rd party HTTP cookies + /// needed for saving the account session token. + Future register({email, password, redirect, success, failure, name = null}) async { String path = '/auth/register'; Map params = { 'email': email, 'password': password, - 'confirmation': confirmation, + 'redirect': redirect, 'success': success, 'failure': failure, 'name': name, @@ -167,11 +167,11 @@ class Auth extends Service { /// Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) /// the only valid redirect URL's are the once from domains you have set when /// added your platforms in the console interface. - Future confirmResend({confirmation}) async { + Future confirmResend({redirect}) async { String path = '/auth/register/confirm/resend'; Map params = { - 'confirmation': confirmation, + 'redirect': redirect, }; return await this.client.call('post', path: path, params: params); diff --git a/app/sdks/dart/pubspec.yaml b/app/sdks/dart/pubspec.yaml index 7b7709d142..fbf132c388 100644 --- a/app/sdks/dart/pubspec.yaml +++ b/app/sdks/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: appwrite -version: 0.0.1 +version: 0.0.2 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 homepage: https://github.com/appwrite/sdk-for-dart diff --git a/app/sdks/js/docs/examples/auth/register.md b/app/sdks/js/docs/examples/auth/register.md index 2367e95af2..2d8e838312 100644 --- a/app/sdks/js/docs/examples/auth/register.md +++ b/app/sdks/js/docs/examples/auth/register.md @@ -4,7 +4,7 @@ sdk setProject('') ; -let promise = sdk.auth.register('email@example.com', 'password', 'https://example.com'); +let promise = sdk.auth.register('email@example.com', 'password', 'https://example.com', 'https://example.com', 'https://example.com'); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/docs/examples/projects/create-webhook.md b/app/sdks/js/docs/examples/projects/create-webhook.md index 961aeec2bb..0596c8fe3e 100644 --- a/app/sdks/js/docs/examples/projects/create-webhook.md +++ b/app/sdks/js/docs/examples/projects/create-webhook.md @@ -4,7 +4,7 @@ sdk setProject('') ; -let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 1); +let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 0); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/docs/examples/projects/update-webhook.md b/app/sdks/js/docs/examples/projects/update-webhook.md index 4b5ab08317..aa133aefc0 100644 --- a/app/sdks/js/docs/examples/projects/update-webhook.md +++ b/app/sdks/js/docs/examples/projects/update-webhook.md @@ -4,7 +4,7 @@ sdk setProject('') ; -let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0); +let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/package.json b/app/sdks/js/package.json index 98d108fa07..94cda779b5 100644 --- a/app/sdks/js/package.json +++ b/app/sdks/js/package.json @@ -2,7 +2,7 @@ "name": "appwrite", "homepage": "https://appwrite.io/support", "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)", - "version": "v1.0.20", + "version": "1.0.21", "license": "BSD-3-Clause", "main": "src/sdk.js", "repository": { diff --git a/app/sdks/js/src/sdk.js b/app/sdks/js/src/sdk.js index 10ef5bcc84..cbe6b03fd5 100644 --- a/app/sdks/js/src/sdk.js +++ b/app/sdks/js/src/sdk.js @@ -138,7 +138,7 @@ globalParams.push({key: key, value: value}); }; - addGlobalHeader('x-sdk-version', 'appwrite:javascript:v1.0.20'); + addGlobalHeader('x-sdk-version', 'appwrite:javascript:1.0.21'); addGlobalHeader('content-type', ''); /** @@ -500,11 +500,11 @@ * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. * - * When accessing this route using Javascript from the browser, success and - * failure parameter URLs are required. Appwrite server will respond with a - * 301 redirect status code and will set the user session cookie. This - * behavior is enforced because modern browsers are limiting 3rd party cookies - * in XHR of fetch request to protect user privacy. + * When not using the success or failure redirect arguments this endpoint will + * result with a 200 status code and the user account object on success and + * with 401 status error on failure. This behavior was applied to help the web + * clients deal with browsers who don't allow to set 3rd party HTTP cookies + * needed for saving the account session token. * * @param {string} email * @param {string} password @@ -648,16 +648,16 @@ * process. * * @param {string} email - * @param {string} confirmation + * @param {string} redirect * @throws {Error} * @return {Promise} */ - recovery: function(email, confirmation) { + recovery: function(email, redirect) { if(email === undefined) { throw new Error('Missing required parameter: "email"'); } - if(confirmation === undefined) { - throw new Error('Missing required parameter: "confirmation"'); + if(redirect === undefined) { + throw new Error('Missing required parameter: "redirect"'); } let path = '/auth/recovery'; @@ -666,7 +666,7 @@ .post(path, {'content-type': 'application/json'}, { 'email': email, - 'confirmation': confirmation + 'redirect': redirect }); }, @@ -727,7 +727,7 @@ * * If registration completes successfully user will be sent with a * confirmation email in order to confirm he is the owner of the account email - * address. Use the confirmation parameter to redirect the user from the + * address. Use the redirect parameter to redirect the user from the * confirmation email back to your app. When the user is redirected, use the * /auth/confirm endpoint to complete the account confirmation. * @@ -736,21 +736,21 @@ * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. * - * When accessing this route using Javascript from the browser, success and - * failure parameter URLs are required. Appwrite server will respond with a - * 301 redirect status code and will set the user session cookie. This - * behavior is enforced because modern browsers are limiting 3rd party cookies - * in XHR of fetch request to protect user privacy. + * When not using the success or failure redirect arguments this endpoint will + * result with a 200 status code and the user account object on success and + * with 401 status error on failure. This behavior was applied to help the web + * clients deal with browsers who don't allow to set 3rd party HTTP cookies + * needed for saving the account session token. * * @param {string} email * @param {string} password - * @param {string} confirmation + * @param {string} redirect * @param {string} success * @param {string} failure * @param {string} name * @throws {Error} * @return {null} */ - register: function(email, password, confirmation, success = '', failure = '', name = '') { + register: function(email, password, redirect, success, failure, name = '') { if(email === undefined) { throw new Error('Missing required parameter: "email"'); } @@ -759,8 +759,16 @@ throw new Error('Missing required parameter: "password"'); } - if(confirmation === undefined) { - throw new Error('Missing required parameter: "confirmation"'); + if(redirect === undefined) { + throw new Error('Missing required parameter: "redirect"'); + } + + if(success === undefined) { + throw new Error('Missing required parameter: "success"'); + } + + if(failure === undefined) { + throw new Error('Missing required parameter: "failure"'); } let path = '/auth/register'; @@ -768,7 +776,7 @@ return iframe('post', path, {project: config.project, 'email': email, 'password': password, - 'confirmation': confirmation, + 'redirect': redirect, 'success': success, 'failure': failure, 'name': name @@ -818,12 +826,12 @@ * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. * - * @param {string} confirmation + * @param {string} redirect * @throws {Error} * @return {Promise} */ - confirmResend: function(confirmation) { - if(confirmation === undefined) { - throw new Error('Missing required parameter: "confirmation"'); + confirmResend: function(redirect) { + if(redirect === undefined) { + throw new Error('Missing required parameter: "redirect"'); } let path = '/auth/register/confirm/resend'; @@ -831,7 +839,7 @@ return http .post(path, {'content-type': 'application/json'}, { - 'confirmation': confirmation + 'redirect': redirect }); } }; diff --git a/app/sdks/js/src/sdk.min.js b/app/sdks/js/src/sdk.min.js index d57ccdcd80..4d65869b69 100644 --- a/app/sdks/js/src/sdk.min.js +++ b/app/sdks/js/src/sdk.min.js @@ -1,5 +1,5 @@ (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;indexregister('email@example.com', 'password', 'https://example.com'); \ No newline at end of file +$result = $auth->register('email@example.com', 'password', 'https://example.com', 'https://example.com', 'https://example.com'); \ No newline at end of file diff --git a/app/sdks/php/src/Appwrite/Client.php b/app/sdks/php/src/Appwrite/Client.php index b5b604305b..1ce0b3f536 100644 --- a/app/sdks/php/src/Appwrite/Client.php +++ b/app/sdks/php/src/Appwrite/Client.php @@ -37,7 +37,7 @@ class Client */ protected $headers = [ 'content-type' => '', - 'x-sdk-version' => 'appwrite:php:v1.0.7', + 'x-sdk-version' => 'appwrite:php:1.0.8', ]; /** diff --git a/app/sdks/php/src/Appwrite/Services/Auth.php b/app/sdks/php/src/Appwrite/Services/Auth.php index 1b6f01d9bc..7b7495936b 100644 --- a/app/sdks/php/src/Appwrite/Services/Auth.php +++ b/app/sdks/php/src/Appwrite/Services/Auth.php @@ -20,11 +20,11 @@ class Auth extends Service * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. * - * When accessing this route using Javascript from the browser, success and - * failure parameter URLs are required. Appwrite server will respond with a - * 301 redirect status code and will set the user session cookie. This - * behavior is enforced because modern browsers are limiting 3rd party cookies - * in XHR of fetch request to protect user privacy. + * When not using the success or failure redirect arguments this endpoint will + * result with a 200 status code and the user account object on success and + * with 401 status error on failure. This behavior was applied to help the web + * clients deal with browsers who don't allow to set 3rd party HTTP cookies + * needed for saving the account session token. * * @param string $email * @param string $password @@ -142,17 +142,17 @@ class Auth extends Service * process. * * @param string $email - * @param string $confirmation + * @param string $redirect * @throws Exception * @return array */ - public function recovery($email, $confirmation) + public function recovery($email, $redirect) { $path = str_replace([], [], '/auth/recovery'); $params = []; $params['email'] = $email; - $params['confirmation'] = $confirmation; + $params['redirect'] = $redirect; return $this->client->call(Client::METHOD_POST, $path, [ ], $params); @@ -201,7 +201,7 @@ class Auth extends Service * * If registration completes successfully user will be sent with a * confirmation email in order to confirm he is the owner of the account email - * address. Use the confirmation parameter to redirect the user from the + * address. Use the redirect parameter to redirect the user from the * confirmation email back to your app. When the user is redirected, use the * /auth/confirm endpoint to complete the account confirmation. * @@ -210,29 +210,29 @@ class Auth extends Service * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. * - * When accessing this route using Javascript from the browser, success and - * failure parameter URLs are required. Appwrite server will respond with a - * 301 redirect status code and will set the user session cookie. This - * behavior is enforced because modern browsers are limiting 3rd party cookies - * in XHR of fetch request to protect user privacy. + * When not using the success or failure redirect arguments this endpoint will + * result with a 200 status code and the user account object on success and + * with 401 status error on failure. This behavior was applied to help the web + * clients deal with browsers who don't allow to set 3rd party HTTP cookies + * needed for saving the account session token. * * @param string $email * @param string $password - * @param string $confirmation + * @param string $redirect * @param string $success * @param string $failure * @param string $name * @throws Exception * @return array */ - public function register($email, $password, $confirmation, $success = '', $failure = '', $name = '') + public function register($email, $password, $redirect, $success, $failure, $name = '') { $path = str_replace([], [], '/auth/register'); $params = []; $params['email'] = $email; $params['password'] = $password; - $params['confirmation'] = $confirmation; + $params['redirect'] = $redirect; $params['success'] = $success; $params['failure'] = $failure; $params['name'] = $name; @@ -278,16 +278,16 @@ class Auth extends Service * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. * - * @param string $confirmation + * @param string $redirect * @throws Exception * @return array */ - public function confirmResend($confirmation) + public function confirmResend($redirect) { $path = str_replace([], [], '/auth/register/confirm/resend'); $params = []; - $params['confirmation'] = $confirmation; + $params['redirect'] = $redirect; return $this->client->call(Client::METHOD_POST, $path, [ ], $params); diff --git a/app/sdks/python/appwrite/client.py b/app/sdks/python/appwrite/client.py index d3a9afbaac..a9d3b11ada 100644 --- a/app/sdks/python/appwrite/client.py +++ b/app/sdks/python/appwrite/client.py @@ -7,7 +7,7 @@ class Client: self._endpoint = 'https://appwrite.test/v1' self._global_headers = { 'content-type': '', - 'x-sdk-version': 'appwrite:python:v1.0.0', + 'x-sdk-version': 'appwrite:python:1.0.0', } def set_self_signed(self, status=True): diff --git a/app/sdks/python/appwrite/services/auth.py b/app/sdks/python/appwrite/services/auth.py index f36451f501..f082987d4b 100644 --- a/app/sdks/python/appwrite/services/auth.py +++ b/app/sdks/python/appwrite/services/auth.py @@ -60,13 +60,13 @@ class Auth(Service): return self.client.call('get', path, { }, params) - def recovery(self, email, confirmation): + def recovery(self, email, redirect): """Password Recovery""" params = {} path = '/auth/recovery' params['email'] = email - params['confirmation'] = confirmation + params['redirect'] = redirect return self.client.call('post', path, { }, params) @@ -84,14 +84,14 @@ class Auth(Service): return self.client.call('put', path, { }, params) - def register(self, email, password, confirmation, success='', failure='', name=''): + def register(self, email, password, redirect, success, failure, name=''): """Register User""" params = {} path = '/auth/register' params['email'] = email params['password'] = password - params['confirmation'] = confirmation + params['redirect'] = redirect params['success'] = success params['failure'] = failure params['name'] = name @@ -110,12 +110,12 @@ class Auth(Service): return self.client.call('post', path, { }, params) - def confirm_resend(self, confirmation): + def confirm_resend(self, redirect): """Resend Confirmation""" params = {} path = '/auth/register/confirm/resend' - params['confirmation'] = confirmation + params['redirect'] = redirect return self.client.call('post', path, { }, params) diff --git a/app/sdks/python/setup.py b/app/sdks/python/setup.py index 9f2b191167..055dd5ad58 100644 --- a/app/sdks/python/setup.py +++ b/app/sdks/python/setup.py @@ -3,7 +3,7 @@ from distutils.core import setup setup( name = 'appwrite', packages = ['appwrite'], - version = 'v1.0.0', + version = '1.0.0', license='BSD-3-Clause', 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', @@ -11,7 +11,7 @@ setup( maintainer = 'Appwrite Team', maintainer_email = 'team@appwrite.io', url = 'https://appwrite.io/support', - download_url='https://github.com/appwrite/sdk-for-python/archive/v1.0.0.tar.gz', + download_url='https://github.com/appwrite/sdk-for-python/archive/1.0.0.tar.gz', # keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'], install_requires=[ 'requests', diff --git a/app/sdks/ruby/lib/appwrite/client.rb b/app/sdks/ruby/lib/appwrite/client.rb index f2dea2cf35..f2694fe0f5 100644 --- a/app/sdks/ruby/lib/appwrite/client.rb +++ b/app/sdks/ruby/lib/appwrite/client.rb @@ -19,7 +19,7 @@ module Appwrite @headers = { 'content-type': '', 'user-agent': RUBY_PLATFORM + ':ruby-' + RUBY_VERSION, - 'x-sdk-version': 'appwrite:ruby:v1.0.0' + 'x-sdk-version': 'appwrite:ruby:1.0.1' } @endpoint = 'https://appwrite.test/v1'; end diff --git a/app/sdks/ruby/lib/appwrite/services/auth.rb b/app/sdks/ruby/lib/appwrite/services/auth.rb index cdbd3d31c5..b8b6794c27 100644 --- a/app/sdks/ruby/lib/appwrite/services/auth.rb +++ b/app/sdks/ruby/lib/appwrite/services/auth.rb @@ -63,12 +63,12 @@ module Appwrite }, params); end - def recovery(email:, confirmation:) + def recovery(email:, redirect:) path = '/auth/recovery' params = { 'email': email, - 'confirmation': confirmation + 'redirect': redirect } return @client.call('post', path, { @@ -89,13 +89,13 @@ module Appwrite }, params); end - def register(email:, password:, confirmation:, success: '', failure: '', name: '') + def register(email:, password:, redirect:, success:, failure:, name: '') path = '/auth/register' params = { 'email': email, 'password': password, - 'confirmation': confirmation, + 'redirect': redirect, 'success': success, 'failure': failure, 'name': name @@ -117,11 +117,11 @@ module Appwrite }, params); end - def confirm_resend(confirmation:) + def confirm_resend(redirect:) path = '/auth/register/confirm/resend' params = { - 'confirmation': confirmation + 'redirect': redirect } return @client.call('post', path, { diff --git a/app/tasks/sdks.php b/app/tasks/sdks.php index 3d2bf8bded..4d3989b841 100644 --- a/app/tasks/sdks.php +++ b/app/tasks/sdks.php @@ -98,7 +98,7 @@ $cli ]; foreach ($clients as $name => $client) { - Console::success('Fetching API Spec for ' . $name . ' (' . $client['platform'] . ')'); + Console::info('Fetching API Spec for ' . $name . ' (' . $client['platform'] . ')'); $spec = getSSLPage('https://appwrite.io/v1/open-api-2.json?extensions=1&platform=' . $client['platform']); $spec = getSSLPage('https://appwrite.test/v1/open-api-2.json?extensions=1&platform=' . $client['platform']);