How to create Refresh Token or Access Token using OAuth 2.0


I have the Client Key, Secret & the End Points using which i can create the Bearer Token successfully. The Bearer token is valid for 1 month.

However, i have to do some thing, so that, i won’t have to create the bearer token every month. Some one suggested to user the Authorization Method to “OAuth 2.0” & create Refresh Token or Access token. In this way i do not have to create the token manually every month when it gets expired. It will refresh automatically & create new token. However, i am not sure about the process. I tried, but could not do. Need Help.

I have the below:

  1. End Point URL to create Bearer token
  2. Client Key & Secret
  3. Method - POST

Need to create:

  1. Refresh token or Access Token.