I am new to YouTube API work and I have been generating the YouTube feeds using my PHP Code.
But every time I run the code I have to generate a new Access token since it expires every 1 hour. Now I have been trying to write a PHP code to refresh the access token and make things work. But I don't know where my code is going wrong or what I missed. Can anyone please give me a PHP code to generate or refresh the Access Token.
This is what I did till now:
