【发布时间】:2021-12-23 18:18:31
【问题描述】:
1 根据this 指南我创建了API Client;
2 我尝试运行此 Apps 脚本以获取访问令牌并收到错误 502。
var url = "https://connect-api.cloud.huawei.com/api/oauth2/v1/token";
var options =
{
"method" : "POST",
"contentType" : "application/json",
"payload" : {
"grant_type" : "client_credentials",
"client_id" : "700000000000000000",
"client_secret" : "4*********************A"
}
};
var response = UrlFetchApp.fetch( url, options);
Logger.log(response);
有人可以测试这个小代码吗?你有提议吗?
【问题讨论】:
标签: huawei-developers appgallery-connect