I am using the code example in the below link to use the Youtube API to upload videos to Youtube.
https://developers.google.com/youtube/v3/code_samples/php#resumable_uploads
I get 400. That's an error Error: redirect_uri_mismatch
everytime I try to authorise access.
I have rechecked a hundred time to ensure the Redirect URI in the developer console and redirect request URI match exactly. So I am pretty stumped on this error.
Error Details
The redirect URI in the request: http://www.example.com/classes/YouTubeVideoUpload.php did not match a registered redirect URI.
Request Details
scope=https://www.googleapis.com/auth/youtube
response_type=code
access_type=online
redirect_uri=http://www.example.com/classes/YouTubeVideoUpload.php
pageId=none
approval_prompt=auto
state=463513941
client_id=*************-gajjqgcjt767rfqapprgu5ctdi3qts27.apps.googleusercontent.com
Is there something else likely to cause it to think there is a mismatch?