How to Generate Access Token from Grant token and then from Refresh token

How to Generate Access Token from Grant token and then from Refresh token

Hi this is my first ever first here!

I am working on PHP SDK, right now i have created self token from developer console, now when i am trying to add generate access token from the below code i get url not correct,

here is the code
https://accounts.zoho.com/oauth/v2/token?code=mycode&redirect_uri=urk&client_id=code&client_secret=code&grant_type=authorization_code

So i am stuck here!