I'm uploading media with the V1.1 API and then trying to post with the V2 api. However, even though I can do it from Postman, when I use the construct :
For some reason media_id is being wrapped in '" - I've check and my media_id is a number with no ' or " around it. In Postman if I send it with the double quotes it works perfectly.
Debug : Media_id - in call: 1666121026172858379
Has anyone else run into this? Am I doing something wrong?
I'm uploading media with the V1.1 API and then trying to post with the V2 api. However, even though I can do it from Postman, when I use the construct :
resp = self.api2.request( "tweets", {"text": message, "media": {"media_ids": media_id}}, method_override='POST' )
I get the following error :
Error 400: [{'parameters': {'$.media.media_ids': ['"1666121026172858379"']}, 'message': '$.media.media_ids: string found, array expected'}]
For some reason media_id is being wrapped in '" - I've check and my media_id is a number with no ' or " around it. In Postman if I send it with the double quotes it works perfectly.
Debug :
Media_id - in call: 1666121026172858379
Has anyone else run into this? Am I doing something wrong?