I am currently trying to access the Spotify API calls using MATLAB's webwrite / web commands, however I have been unsuccessful with retrieving the authorization code that is generated in the opened url.
client_id = "PLACEHOLDER_ID";
redirect_uri = 'PLACEHOLDER_LINK';
scope = 'user-read-private user-read-email';
auth_url = "https://accounts.spotify.com/authorize?";
auth_url = strcat(auth_url, "client_id="+client_id);
auth_url = strcat(auth_url, "&redirect_uri="+redirect_uri);
auth_url = strcat(auth_url, "&response_type="+response_type);
At the moment, this code will open up a new brower with the spotify sign-in and authorization button, however I have no way of being able to retrieve the url generated after pressing the authorize button. Does anyone know of a way to do this, or a better way to complete authorization within matlab api interations?