I am working on a legacy application that posts Direct Messages to Twitter Users from our product. The API that was used is DirectMessageTemplate.sendDirectMessage(String toScreenName, String text) in spring-social-twitter 1.1.2. The call is now failing with the error message "Sorry that page does not exist". My analysis is making me believe that the URL that was constructed by this Spring API is "https://api.twitter.com/1.1/direct_messages/new.json" and it is not working; I believe it should have been https://api.twitter.com/1.1/direct_messages/events/new.json. I am not sure if my analysis is entirely correct but I see that the second URL is successful when hit from POSTMAN. Can any one please enlighten if this analysis is correct and if yes, is there any other latest version of spring-social-twitter which addresses this ? Also, please suggest if you have any java code snippet that can post OAuth1.0 request to twitter, with pure java ( not using any libraries ). Thanks in Advance.
direct messaging using spring-social-twitter 1.1.2
115 Views Asked by Ravi At
0
There are 0 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in TWITTER
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Customizing tweet view using Fabric SDK
- Get email address from Twitter
- Click tweet button after changing data-text
- MongoDB string index that is not text?
- how can I access user details through "oauth_token" from twitter api in ionic framework
- Vine API - User Data based on Anchor
- Twitter/Facebook in-app browser on Android not displaying my site correctly
- how to get stats for twitter ad campaign
- twitter response: "error 32: Could not authenticate you" from Heroku, but not desktop
- Twitter share android titanium with social.js file not working
- Ruby, update twitter avatar and background
- Insights for Twitter service in IBM Bluemix: Search case-sensitive string and other questions
- twitter json formatting in php
Related Questions in SPRING-SOCIAL-TWITTER
- Spring Social Twitter - Application notified when account is mentioned
- Spring Social- Connect without having to constantly authorize the user
- spring social Twitter update status not giving id_str
- Invalid / expired Token - 401 - Unauthorized (Authorization Required) using Spring.Social.Twitter
- Spring Social Twitter Auth in one step
- Spring Social Twitter Oauth
- direct messaging using spring-social-twitter 1.1.2
- How to use Spring Social Twitter in a desktop application?
- Springboot: Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings?
- Where is doc with twitter all permission
- Able to access my own facebook information but not my friend list information using Spring Social
- Are the consumer/access tokens and secrets protected via TwitterTemplate?
- Twitter API GET user_timeline reply/comment count
- java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
- Spring Social Twitter
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?