我对新功能authUpgrade非常满意,但我得到了 - "error" : "invalid_client"
当我尝试获取新的刷新令牌时。我怎样才能解决这个问题?
这是我的代码:
var oAuthConfig = UrlFetchApp.addOAuthService("blogger");
var code = UserProperties.getProperties();
var tokenEndpoint = "https://accounts.google.com/o/oauth2/token";
var postPayload = {
"refresh_token" : code.refresh_token,
"client_id" : code.clientId, // also trying "8774700966@developer.gserviceaccount.com"
"client_secret" : code.clientSecret,
"grant_type" : "refresh_token"
};
var options = {
"method" : "post",
"payload" : postPayload
};
var response = UrlFetchApp.fetch(tokenEndpoint, options);
提前谢谢
变形自我