-
Notifications
You must be signed in to change notification settings - Fork 12
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
Media upload is not supported.! #9
Comments
Post request has worked for me all the time, guess it's a special problem with the media upload. Feel free to make the changes to the body params and submit a pull request, I would be happy to merge it! |
Can u share your code for media upload post request..... |
I'm having the same trouble, i can't upload an image using POST api with media_id on body request. I checked the code, and what I understood is that even when make a POST call this part of code adds to url request the params (optional data): if (parameters !== {}) url = url + '?' + $twitterHelpers.transformRequest(parameters); This solution is ok when url characters does not exceed the maximum numbers of characters on a HTTP call, but when media_id is too long the call fails. Could anybody can confirm this? This is the code i'm using but without success:
I have tested using both endpoint:
This is the result i got: Request URL:https://upload.twitter.com/1.1/media/upload.json Thank you in advance. |
Looks like ngTwitter doesnot support media upload. Also the post calls are appended with get parameters which is not correct -
ng-twitter/dist/ng-twitter-api.js
Lines 44 to 46 in f2a5c90
The text was updated successfully, but these errors were encountered: