Closed forecaster-cyber closed 1 year ago
Thanks for your contribution! :)
Hi @forecaster-cyber ,
I tried and this endpoint works in my environment. There are several possibilities for a 403 Forbidden to be returned from Twitter's API server, is your access level Elevated Access
?
The Media endpoint is based on Twitter API v1.1, so if you want to use the v1.1 endpoint, you must have Elevated Access permission.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.
This code needs to upload an image to twitter, get the media_id and post a tweet with that image and the text "#cats"
Then, I import this file to another file that shows a dialog, takes a picture and is supposed to post the tweet:
For some reason, when I run the app and take a picture, it returns a status code of 403 and:
0 tryJsonDecode (package:twitter_api_v2/src/core/util/json_utils.dart:21:5)
1 BaseService.checkResponse (package:twitter_api_v2/src/service/base_service.dart:487:5)
2 ServiceHelper.post (package:twitter_api_v2/src/core/service_helper.dart:156:39)