我有成功的重定向(回调url)从withings使用withings示例代码。
http://wbsapi.withings.com/cgi-bin/measure?action=getmeas&devtype=1
&oauth_consumer_key=xxxxxxxxx
&oauth_nonce=xxxxxxx
&oauth_signature=xxxxx
&oauth_signature_method=yyyy
&oauth_timestamp=yyyyy
&oauth_token=xxxxxx
&oauth_version=1.0&userid=xxx我已经成功地生成了auth_token和oauth_token_secret。
Array( [oauth_token] => xxxxxxxxxxxxxxxxxxxxxxx[oauth_token_secret] => xxxxxxxxxxxxxxxx).
https://oauth.withings.com/account/access_token?
oauth_consumer_key=xxxxxxxxxxxxxxxxx
&oauth_nonce=xxxx
&oauth_signature=xxxxxxx
&oauth_signature_method=yyyyy
&oauth_timestamp=yyyyyyy
&oauth_token=yyyyyy
&oauth_version=1.0
&userid=xxxx我有成功的重定向(回调网址)从withings。但我无法获得用户信息。我需要帮助才能获得用户信息。
如下所示:
发布于 2021-03-04 09:11:01
根据Withings文档(https://developer.withings.com/oauth2/#section/Data-API/Index-Data-API),这些信息是不可用的。您从API的成功身份验证中获得的信息是:
{
"status": 0,
"body": {
"user": {
"userid": 363,
"access_token": "a075f8c14fb8df40b08ebc8508533dc332a6910a",
"refresh_token": "f631236f02b991810feb774765b6ae8e6c6839ca",
"expires_in": 10800,
"scope": "user.info,user.metrics",
"csrf_token": "PACnnxwHTaBQOzF7bQqwFUUotIuvtzSM",
"token_type": "Bearer"
}
}
}不幸的是,没有其他API调用来获取更多的用户信息--您需要让用户在应用程序中填写这些信息。
https://stackoverflow.com/questions/21160084
复制相似问题