PIN码格式

时间:2016-01-09 13:57:11

标签: nest-api

在开发Nest Cloud API时,我使用我的开发人员密码测试了访问权限。密码是字母数字,我的问题是:

在使用密码进行授权期间,评估案例是不敏感还是敏感?

即。是33HV790033hv7900相同吗?

1 个答案:

答案 0 :(得分:3)

根据实验,下面的CURL请求中的:pin_code URL参数似乎无论如何都会生成API访问令牌:

请求:

curl -X POST -H "Content-Type: application/json" 'https://api.home.nest.com/oauth2/access_token?client_id=:product_id&code=:pin_code&client_secret=:secret&grant_type=authorization_code'

响应:

{
  "access_token": "my_token_here",
  "expires_in": 315360000
}

我在Request&响应。