OAuth 2.0 refresh token not refresing in custom app for Jobber

I want oauth connection script for jobber in make.com

You Need to Utilize Make,com’s HTTP OAuth 2.0 module to establish secure authentication for accessing Jobber API. Develop a custom OAuth connection script tailored for Jobber integration within Make,com, ensuring seamless interaction with Jobber’s API endpoints. This script will enable secure and authorized communication between Make,com workflows and the Jobber platform, facilitating efficient data exchange and task automation.
Best Regards
Pro_Tanvee

1 Like

That’s great. Are you seeking to pay someone to make an integration (Custom App) in Make for you, or would you like to follow the Jobber documentation to create your own Jobber App, so that you can avoid using Make’s default Jobber connection?

2 Likes

I have a script for connection but its not refreshing the access token

{ // Step 1: OAuth2 authorization request // See OAuth2 documentation: Authorization Code Grant - OAuth 2.0 Simplified “authorize”: { “url”: “https://api.getjobber.com/api/oauth/authorize”, // Endpoint for authorization. “qs”: { “scope”: “{{join(oauth.scope, ‘,’)}}”, // Lists the scopes from the “default scope” tab. “client_id”: “{{ifempty(parameters.clientId, common.clientId)}}”, // Client ID either provided in common parameters (below) or by the user. “redirect_uri”: “{{oauth.redirectUri}}”, // Redirect URI (see the link above). “response_type”: “code” // Response type “code”. },
“token”: {
“condition”: “{{temp.code}}”,
“url”: “https://api.getjobber.com/api/oauth/token”,
“method”: “POST”,
“body”: {
“code”: “{{temp.code}}”,
“client_id”: “{{ifempty(data.clientId, common.clientId)}}”,
“grant_type”: “authorization_code”,
“redirect_uri”: “{{oauth.redirectUri}}”,
“client_secret”: “{{ifempty(data.clientSecret, common.clientSecret)}}”
},
“type”: “urlencoded”,
“response”: {
“data”: {
“accessToken”: “{{body.access_token}}”,
“refreshToken”: “{{body.refresh_token}}”
}
},
“log”: {
“sanitize”: [
“request.body.code”,
“request.body.client_secret”,
“response.body.access_token”,
“response.body.refresh_token”
]
}
},

“refresh”: {
“condition”: “{{data.accessToken}} && {{now}} > {{data.expiresAt}}”,
“url”: “https://api.getjobber.com/api/oauth/token”,
“method”: “POST”,
“body”: {
“client_id”: “{{ifempty(parameters.clientId, common.clientId)}}”,
“grant_type”: “refresh_token”,
“client_secret”: “{{ifempty(parameters.clientSecret, common.clientSecret)}}”,
“refresh_token”: “{{data.refreshToken}}”
},
“type”: “urlencoded”,
“response”: {
“data”: {
“accessToken”: “{{body.access_token}}”,
“refreshToken”: “{{body.refresh_token}}”
}
}
},

“info”: {
“url”: “https://api.getjobber.com/api/graphql”,
“headers”: {
“Authorization”: “Bearer {{connection.accessToken}}”
},
“qs”: {
“query”: “query sample { clients {totalCount}}”
},
“log”: {
“sanitize”: [
“request.headers.authorization”
]
}
}

Ah I see. You are developing your own custom app.

I’ve moved your question to the “Custom App” category, and renamed your question from

I want custom app for jobber API

to

OAuth 2.0 refresh token not refresing in custom app for Jobber

2 Likes

How to create this can someone help me

1 Like