BoyCook / TwitterJSClient

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

Adding all 2xx status codes to success for doPost. #52

Open aromualdo opened 7 years ago

aromualdo commented 7 years ago

https://dev.twitter.com/rest/reference/post/media/metadata/create

Trying to use the media upload I discovered this bug. According to the docs this post endpoint returns 2xx status code. In this case for the INIT it was returning a 202. This made it go into the error.