4. Exchange refresh_token
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
client_id | string | (Required) The ID of the registered application. Use: https://developers.arcgis.com/applications/ | |
grant_type | string | (Required) A new refresh_token is issued by exchanging the previous refresh_token. | |
redirect_uri | string | (Required) Demo repo. For native use URI myapp://oauth.callback or urn:ietf:wg:oauth:2.0:ooblike | |
refresh_token | string | (Required) Refresh_token obtained in step 3. |
RESPONSES
status: OK
{"access_token":"2zad9ZAeHFVfcohNfg4JePzmtODmGuW6BDaEEJLqltj_AIxPBCMlY7zIl0lF2xtoNfHJ7GsjHAaP7R1lvIgdd__f1ZkrTrPDxlw6a5uTT5MrE2mFsww_Jfm-97NaKTtGLenCg8Y5dXuN51wU8v7HfWR0Ea1hMGHwP50KH11KcLX123CkFCih82ovX0OBmZgjorILiBQieydrtXwFIYGYLRfU3SaJgvrPK9thTA0xdYeKIfpjJCK5vlDHapIohMk","expires_in":1800,"username":"hhkaos2","ssl":true,"refresh_token":"dVZ6FwUvRzBPVYpgrNYI3HtTwoKkX-wcIY9rArCefimHH4vZ7Li6ah7puAhNlosYZ-Q1p0wKCY-X9xQv_4XF6bvEu0ZbUUWdxbBkDYDIqUxtX7B1JfgrSLgFEAlbBfTgKnDUIaOYNNzerdniZ9uY1V5CpPeHCjcCrzXPFuzR0n2jAaaDHjouN2jkavV8penu8A8JGMi2JOYQI4-KplVz44uKRb-tpCv1wOlQwj2zkG0JTKHpezUkytsGxhbX2Fl6rnzcTM18B1ETskBrZPRYeF9hg3nkNp2YPgJ4eW5r02dKBJ-iKmP_M2vMJhF07b6BnkdNc4YqT692M9J2p3rk1aPbOPpUAf-qh2cbJUnyPyRP0DwHg4jLzGSxHApFj3hKmFKHeFMczrIw8IMocFu1fFGw8S1T1Bjc_FbWH87rDHksXiR0c2jOxKnGWAK1SUgK","refresh_token_expires_in":7199}