codebird-php icon indicating copy to clipboard operation
codebird-php copied to clipboard

Video upload status GET request is broken

Open ben-gooding-hub opened this issue 5 years ago • 2 comments

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.

ben-gooding-hub avatar Apr 01 '20 09:04 ben-gooding-hub

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

EliasDeVos avatar Mar 17 '21 12:03 EliasDeVos

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

roberttolton avatar Aug 26 '22 15:08 roberttolton