How can I use the youtube analytics api to get the weekly increase in views of all videos on a my YouTube channel?
Created a project in the my Google account, created an OAuth client ID, and received client_id , client_secret, and redirect_uri,
Use this client_id, client_secret,redirect_urifetch(https://accounts.google.com/o/oauth2/v2/auth/&client_id=${client_id}&redirect_uri=${redirect_uri}&scope=https://www.googleapis.com/auth/yt-analytics.readonly) to get the auth_code.
using the auth_codeWhen I fetch(https://oauth2.googleapis.com/token?code=${auth_code}&client_id=${client_id}&client_secret=${client_secret}&redirect_uri=${redirectUri}&grant_type=authorization_code), a 400 error reason required occurs. . how can i solve it??