-
Notifications
You must be signed in to change notification settings - Fork 232
Allow post data method modification #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@JulienSol thanks for this. If I wanted to execute a few |
|
No, you just need to modify the option with: twitter.options.post_method = 'form'; |
|
Hi It's working if i use: twitter.options.post_method = 'json'; but I'm receiving an Error although the message is sent. i've tried with form and formData without success. |
|
@desmondmorris and @JulienSol |
Some Twitter API POST requests need a JSON POST body. (Like the new direct_messages endpoint)
As node-twitter constrain us to use
formorform-dataPOST method, we aren't able to use new Twitter functionalities.This commit adds a
post_methodoption in node-twitter's options which is, when modified in order to follow request options, used to pass POST data.This also solves different others pull request : #220 #167