We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For instance, withings doesn't return an cropId in the getOAuthAccessToken,Here is a sample response from Dingtalk. this._oauth2.getOAuthAccessToken = function(code, params, callback) { var self = this; urllib.request( this._persistentTokenURL, { headers: { "Content-Type": "application/json" }, method: "POST", dataType: "json", data: { clientId: self._clientId, clientSecret: self._clientSecret, code: code, grantType: "authorization_code" } }, function(err, data, res) { if (err) return callback(err); var accessToken = data.accessToken; var refreshToken = data.refreshToken; // data.cropId??无法传递 if (!accessToken || !refreshToken) return callback(new Error("refreshToken failed")); callback(null, accessToken, refreshToken,data); } ); };
this._oauth2.getOAuthAccessToken = function(code, params, callback) { var self = this; urllib.request( this._persistentTokenURL, { headers: { "Content-Type": "application/json" }, method: "POST", dataType: "json", data: { clientId: self._clientId, clientSecret: self._clientSecret, code: code, grantType: "authorization_code" } }, function(err, data, res) { if (err) return callback(err); var accessToken = data.accessToken; var refreshToken = data.refreshToken; // data.cropId??无法传递 if (!accessToken || !refreshToken) return callback(new Error("refreshToken failed")); callback(null, accessToken, refreshToken,data); } ); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For instance, withings doesn't return an cropId in the getOAuthAccessToken,Here is a sample response from Dingtalk.
this._oauth2.getOAuthAccessToken = function(code, params, callback) { var self = this; urllib.request( this._persistentTokenURL, { headers: { "Content-Type": "application/json" }, method: "POST", dataType: "json", data: { clientId: self._clientId, clientSecret: self._clientSecret, code: code, grantType: "authorization_code" } }, function(err, data, res) { if (err) return callback(err); var accessToken = data.accessToken; var refreshToken = data.refreshToken; // data.cropId??无法传递 if (!accessToken || !refreshToken) return callback(new Error("refreshToken failed")); callback(null, accessToken, refreshToken,data); } ); };
The text was updated successfully, but these errors were encountered: