BoyCook / TwitterJSClient

Twitter client written in JavaScript packaged as a node module
GNU General Public License v2.0
562 stars 176 forks source link

postCustomApiCall adds the params to the url #37

Open cshtdd opened 8 years ago

cshtdd commented 8 years ago

twitter.postCustomApiCall('/statuses/update.json', {status:'test'}, error, success)

calls this.oauth.post with https://api.twitter.com/1.1/statuses/update.json?status=test as opposed to what should be the correct way https://api.twitter.com/1.1/statuses/update.json

a workaround so far has been using doPost in the following way

twitter.doPost(twitter.baseUrl + '/statuses/update.json', {status:'test'}, error, success)

sskylar commented 7 years ago

+1