Skip to content
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

Video upload status GET request is broken #260

Open
ben-gooding-hub opened this issue Apr 1, 2020 · 2 comments
Open

Video upload status GET request is broken #260

ben-gooding-hub opened this issue Apr 1, 2020 · 2 comments

Comments

@ben-gooding-hub
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants