问题标签 [withings]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 如何在 c# 中从 oauth for withings 中检索访问令牌?
我是 dotnet 的新手,我想从 oauth 检索访问令牌,我有 api 密钥和秘密,但是当我创建最终 url 以检索令牌时,它会响应(远程服务器返回错误:(500)内部服务器错误。) My final url is https://oauth.withings.com/account/request_token?oauth_callback=https://localhost:15626/Default.aspx&oauth_consumer_key=18cb37fb4fb6fbf75288c2e70d373cdefe535689fd1de80756feec2622e&oauth_nonce=2794396&oauth_signature_method=HMAC-SHA1&oauth_signature=sX4nv2hedzTU9Qih8RFw%3d&oauth_timestamp=1392386140&oauth_version=1.0
请帮助我成功检索 oauth 令牌和 oauth 秘密。谢谢你。
c# - 无法将字符串转换为 json
我正在从 withings 获取测量结果,并希望在图表中显示它们,但无法将其转换为 json。我也尝试JsonConvert.SerializeObject(myString)
使用Newtonsoft.dll
简单
但它没有转换。
我的 withings 测量字符串如下。
http - Withings API No Response on request_token
I have setup everything as described in the steps in answer to the post withings api authentication.
However, when i copy and paste the final URL generated in Step 2 (Send request to the URL:), I get no response on my browser and the screen remains empty.
Is there any reason for why it might be happening ? OAUTH TOKEN and OAUTH SECRET - will I get two of them appended to callback url ?
php - Withings API:访问共享用户测量数据
我正在尝试访问对我的 Withings 帐户具有共享访问权限的用户的衡量数据。我可以访问我自己的测量数据,但不能访问他们用户 ID 的数据。这种访问甚至可以通过 API 实现吗?
每当我将其更改为userid
我自己的以外,我都会收到错误代码,表明给出了无效的用户 ID。
用 PHP 给我这个
ruby - 阅读 Withings API Ruby
几天来,我一直在尝试使用 OAuth Ruby gem 从 Withings API 中提取活动数据。不管我尝试什么方法,我总是得到一个 503 错误响应(没有足够的参数),即使我从文档中复制了示例 URI,当然也换掉了用户 ID。过去有没有人有过这种运气。我希望这只是我正在做的愚蠢的事情。
对于其他 API 端点,我收到 247 的错误响应 - 提供的用户 ID 不存在或不正确。这真是令人沮丧。谢谢
java - 如何在java中使用sribe通过withings api进行身份验证
我使用 scribe librabry for java ,这是一个简化 oAuth 过程的库。
我尝试使用带有 scribe 的 java 在 withings api 中编写代码来验证我的身份,但我总是遇到同样的问题:“无效令牌”。我不知道在 scribe 的验证器参数中写什么......
感谢您的答复。
再见。
ruby-on-rails - Withings API 状态代码 2555
我正在尝试将 Withings 与 rails 应用程序集成。我正在使用某人编写的名为omniauth-withings的Omniauth提供程序。我能够配置提供程序以允许我访问重定向到 Withings 授权页面的 /auth/withings。在我允许访问后,浏览器被重定向到回调 url /auth/withings/callback。我将此路由到一个控制器操作,该操作尝试使用simplificator-withings gem从 Withings 获取测量数据。
当我调用 User.authenticate() 时会出现问题,我得到了这个:
我在这里缺少什么吗?
java - Withings Web API 调用签名问题?
因此,我生成的 URL 与我们从 withings 开发者网站获得的 URL 相同。
但是我得到 {“status”:342}。
我正在使用 java 并在下面使用 oauth nonce、时间戳和 oauth 签名
但是,当我从 withings 网站获得的内容中替换这 3 个值时,它工作得很好。我不明白我做错了什么。任何帮助表示赞赏
- 随机数的 String.valueOf(Math.random())
- System.currentTimeMillis() / 1000L – 时间戳
SecretKeySpec 使用下面生成签名
得到
- http://wbsapi.withings.net/measure?action=getmeas&userid=2---0
- oauth_consumer_key=00000000061e0bf7f7b109903040dc------&oauth_nonce=0.4509674797693397&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1414031787&oauth_token=000000-3b5f9e4704d270551e69b45db31de4ec88b4ebe03&oauth_version=1.0
passport.js - 未调用 serializeUser 和 deserializeUser;在 PassportJS Express 应用程序中,req.user 始终为空
所以我有一个基于 generator-angular-fullstack 的小应用程序。我想向当前登录的用户添加新帐户(Withings)的凭据。这个想法是,登录的用户还可以通过使用 Withings 或 Twitter 或 Facebook 添加其他方式进行登录。
这些是我的路线:
这是回调实现:
关键是当我回到函数时,即使我被记录了req.user
,总是undefined
.
有人有想法吗?我读到你需要几个类似的函数deserializeUser
,serializeUser
但它们永远不会被调用。
想法?我是这种事情的新手,经过 3-4 晚感到沮丧:(
PS:这是我的配置
java - withings API 的 Oauth 签名失败
我正在努力将我的应用程序与带有 spring rest 模板的 Withings api 集成。
但是,在生成 Oauth 签名时,我得到了“无效签名”。我正在尝试根据 API 规范设计一个签名,但我无法成功生成它。我已经提到了我使用的代码。请给我一些解决方案。
供参考, http: //oauth.withings.com/api