测试User License API时出现500错误
清单
"oauth2": {
"client_id": "clientidobv",
"scopes": [
"https://www.googleapis.com/auth/chromewebstore.readonly"
]
},
"key": "*****keyobvhere",
"permissions": [
"identity",
"https://www.googleapis.com/"
使用用户流获取令牌后,我运行:
var req = new XMLHttpRequest();
req.open('GET', 'https://www.googleapis.com/chromewebstore/v1.1/userlicenses/' + chrome.runtime.id);
req.setRequestHeader('Authorization', 'Bearer ' + token);
console.log(req.responseText)
req.send()
我得到Failed to load resource: the server responded with a status of 500 ()
有什么想法吗?