简体   繁体   English

在Twitter中使用url获取direct_messages

[英]GET direct_messages using url in Twitter

There is a requirement in an application in which we use only URL to access information on twitter. 在应用程序中有一项要求,在该应用程序中,我们仅使用URL来访问Twitter上的信息。 We cannot use twitter API for that. 我们不能为此使用twitter API。 I have a reference URL : https://dev.twitter.com/docs/api/1/get/direct_messages/sent but it is not working as it needs authentication. 我有一个参考URL: https : //dev.twitter.com/docs/api/1/get/direct_messages/sent,但由于需要身份验证,因此无法正常工作。

Is there some other way to access it using URL only? 是否有其他仅使用URL来访问它的方法? I want to list all Direct messages of an account on twitter in my application. 我想在应用程序中列出Twitter上帐户的所有直接消息。

If it requires Authentication then the only way you'll be able to "get" it using GET is to authenticate the user. 如果它需要身份验证,那么使用GET来“获取”它的唯一方法就是对用户进行身份验证。 Otherwise you'll see an error code in the response. 否则,您会在响应中看到错误代码。 Recent changes were made in the applications permission model for Direct Messages. 在Direct Messages的应用程序权限模型中进行了最近的更改。

Lean More Here 在这里精益求精

Your going to need some code besides a URL to send, receive and validate authentication tokens. 除了URL之外,您还需要一些代码来发送,接收和验证身份验证令牌。

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

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