简体   繁体   English

OAuth php oauth-api-oauth_parameters_absent = oauth_token

[英]OAuth php oauth-api - oauth_parameters_absent=oauth_token

I'm a self-taught PHP developer and have never had the pleasure of diving into OAuth. 我是一名自学成才的PHP开发人员,从未有过涉足OAuth的乐趣。 I know the basics, but I can't get the implementation working. 我知道一些基础知识,但无法正常运行。 I've looked all over the internet and stackoverflow and though most of them appear to be close to my problem, none of them work. 我遍历了Internet和stackoverflow,尽管其中大多数似乎都与我的问题很接近,但它们都不起作用。 (or I'm just missing something) (或者我只是想念一些东西)

I've received a consumer token, consumer secret, access token and access token secret. 我已经收到了消费者令牌,消费者密钥,访问令牌和访问令牌密钥。

From what I understand I should use the consumer token and secret to request an access token and secret or am I wrong? 据我了解,我应该使用使用者令牌和密钥来请求访问令牌和密钥,还是我错了?

The manual I received with the tokens doesn't tell me anything besides the URL to request the data from. 我收到的带有令牌的手册除了要从中请求数据的URL之外,没有告诉我任何其他信息。

I use OAuth-API from http://oauth.net/2/ . 我使用来自http://oauth.net/2/的 OAuth-API。 I've updated the example to use my tokens and the URL I'm trying to get data from. 我已经更新了示例,以使用令牌和尝试从中获取数据的URL。 Currently I'm getting 'oauth_problem=parameter_absent&oauth_parameters_absent=oauth_token' as a response. 目前,我正在获取“ oauth_problem = parameter_absent&oauth_parameters_absent = oauth_token”作为响应。

Any ideas? 有任何想法吗? If more info is needed let me know and I will edit my post. 如果需要更多信息,请告诉我,我将编辑我的帖子。

Forgot to add the OAuth token. 忘记添加OAuth令牌。 This was not included in the example and I overlooked it. 该示例中未包括此功能,但我忽略了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM