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

i have a problem #1

Open
Solovic2 opened this issue Sep 30, 2020 · 0 comments
Open

i have a problem #1

Solovic2 opened this issue Sep 30, 2020 · 0 comments

Comments

@Solovic2
Copy link

hello sir ,
when i use first step when i call youtube/auth , after signing in , it redirect back and show me this error

Capture

the error is : " GuzzleHttp\Exception\ClientException
Client error: POST https://oauth2.googleapis.com/token resulted in a 400 Bad Request response: { "error": "redirect_uri_mismatch", "error_description": "Bad Request" } " .

i put the second route with method ( callback ) and the error i think from third line

public function callback(Request $request){

$redirect_url ='http://localhost/proj/public/youtube/callback';
$video = puplic_path('video\1.mp4');    // i made a folder called video and put one from my computer

$youtube = Youtube::setRedirectUrl($redirect_url)->upload($video,[]);`

// Get uploaded video id
return   $video_id = $youtube->uploadedVideoId();

}
what should i do ?

thanks sir .

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

1 participant