From a1b9b392632cbe9398909da2d5e74cd1e517f9a5 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 15 Apr 2017 09:04:31 -0700 Subject: [PATCH] set access_token --- cloudron.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cloudron.js b/cloudron.js index cc8a773..e3717f8 100644 --- a/cloudron.js +++ b/cloudron.js @@ -800,7 +800,10 @@ Cloudron.prototype.checkNginxRateLimit = function (owner, times, callback) { }; Cloudron.prototype.setAppstoreConfig = function (id, token, callback) { - var res = request.post('https://' + this._adminFqdn + '/api/v1/settings/appstore_config').send({ userId: id, token: token }).end(); + var res = request.post('https://' + this._adminFqdn + '/api/v1/settings/appstore_config') + .send({ userId: id, token: token }) + .query({ access_token: this._credentials.accessToken }) + .end(); common.verifyResponse2xx(res, 'Could not set appstore config'); };