jublo / codebird-php

Easy access to the Twitter REST API, Direct Messages API, Account Activity API, TON (Object Nest) API and Twitter Ads API — all from one PHP library.
https://www.jublo.net/projects/codebird/php
GNU General Public License v3.0
776 stars 234 forks source link

Video upload status GET request is broken #260

Open ben-gooding-hub opened 4 years ago

ben-gooding-hub commented 4 years ago

I pass the correct parameters for checking the status for a video upload as:

 $cb->media_upload([
                    'command' => 'STATUS',
                    'media_id' => $mediaId,
]);

"message" : "media parameter is missing."

as the response, but trying what should be an identical call in postman gets the correct response of it finished either successfully or fail, rather than missing parameter.

My only thought is it is probably trying a POST request when it should be a GET request.

EliasDeVos commented 3 years ago

Hey, I also had this issue. But if you look in the source code you can see that you can pass a parameter to override the HTTP method. so doing this: $reply = $cb->media_upload([ 'command' => 'STATUS', 'media_id' => $media_id, 'httpmethod' => 'GET' ]); Gives the status back

roberttolton commented 2 years ago

Just had this same issue, really needs referencing somewhere..!