Getting a Refresh Token
This guide covers the OAuth 2.0 refresh token mechanism.
Overview
Client Application
Creating a Client ApplicationChoose Your Tutorial
Step 1: Install Necessary Python Dependencies
pip install requestsStep 2: Refreshing the Access Token
import requests
# Define the token endpoint
token_url = "https://<your-instance>.processmaker.net/oauth/token"
# Define the payload
payload = {
"grant_type": "refresh_token",
"refresh_token": "<your-refresh-token>",
"client_id": "<your-client-id>",
"client_secret": "<your-client-secret>"
}
# Make the POST request
response = requests.post(token_url, data=payload)
token_info = response.json()
# Print the new access token
print(f'New Access Token: {token_info["access_token"]}')
Step 3: Review the Response
Conclusion
Step 1: Obtaining the access token
Creating a Client ApplicationStep 2: Install Necessary Node.js Libraries
Step 3: Refreshing the Access Token
Step 3: Review the Response
Conclusion
Step 1: Obtaining the access token
Creating a Client ApplicationStep 2: Download and Install Postman
Step 3: Set Up Your Client Application
Step 4: Create a New Postman Request Tab
Step 5: Use the Refresh Token Grant Type
Step 6: Making API Requests
Conclusion
Step 1: Obtaining the access token
Creating a Client ApplicationStep 2: Refreshing the Access Token
Step 3: Review the Response
Conclusion
Last updated