spring-attic / spring-social-twitter

Twitter API binding and connect support.
http://projects.spring.io/spring-social-twitter
Apache License 2.0
122 stars 114 forks source link

Twitter has new set of REST URLs #164

Open Syed-SnapLogic opened 4 years ago

Syed-SnapLogic commented 4 years ago

Guys, Twitter has a new set of URLs. Also, the REST API (headers, body, etc) might have changed. For example, for posting direct message, this is the REST call to be made. https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/api-reference/new-event

And unfortunately, even the latest code of spring-social-twitter continues to use the old URLs atleast for posting a direct message. https://github.com/spring-projects/spring-social-twitter/blob/master/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/DirectMessageTemplate.java#L85. The URL eventually used by this SDK is "https://api.twitter.com/1.1/direct_messages/new.json" when it had to be "https://api.twitter.com/1.1/direct_messages/events/new.json".

Are you guys planning to update your SDK to be in sync with latest twitter REST API?