Closed xiongyihui closed 7 years ago
通过Authorization Code获取Access Token返回的数据:
{"expires_in":2592000,"refresh_token":"22.ead386a724bccdde9a0ed509ecb085f9.315360000.1819360424.530048537-9864305","access_token":"21.7deea2142a67896256c3bdc2307b7d4b.2592000.1506592424.530048537-9864305-{\"alexa:all\": {\"productInstanceAttributes\": {\"deviceSerialNumber\": \"42b8825fb39742529cafad83a556ff94\"}, \"productID\": \"xiaojing-45107dca34174f06a9fb7e6e6230f689\"}}","scope":"basic"}
access_token 后面为啥有那么一串? {\"alexa:all\": {\"productInstanceAttributes\": {\"deviceSerialNumber\": \"42b8825fb39742529cafad83a556ff94\"}, \"productID\": \"xiaojing-45107dca34174f06a9fb7e6e6230f689\"}}
{\"alexa:all\": {\"productInstanceAttributes\": {\"deviceSerialNumber\": \"42b8825fb39742529cafad83a556ff94\"}, \"productID\": \"xiaojing-45107dca34174f06a9fb7e6e6230f689\"}}
这个 access_token 不能用。
refresh token只能被用一次!
这是因为百度的OAuth不能有scope_data
fixed at https://github.com/respeaker/avs/commit/38676bfb5a81db54ce26b0bf5346618c9cf49abd
通过Authorization Code获取Access Token返回的数据:
access_token 后面为啥有那么一串?
{\"alexa:all\": {\"productInstanceAttributes\": {\"deviceSerialNumber\": \"42b8825fb39742529cafad83a556ff94\"}, \"productID\": \"xiaojing-45107dca34174f06a9fb7e6e6230f689\"}}
这个 access_token 不能用。