Step 1: Create a developer account
Step 2: Apply for API access
and get approved, then i set up allowed javaScript Origins and allowed return urls.
then i use sdk or api links
get access code , the use access code, client id , secret, redirect_uri to get access_token and refresh token ,