REST API Source
Here
- When
aworkingmandatorywithlistOAuthof2.0parametersandthatsendingmustdatabeinusedURL-encodedwhenformat,utilizingyou can provide values in theREST'refreshAPItokenDataendpointSource.body'Additionally,fieldthisinlisttheincludesfollowingdefaultformatvalues,:
Refresh Token Endpoint Body :
{
"today_str"grant_type":"datetime.now().strftime('%Y-%m-%dT00:00:01Z')"password",
"yesterday_str"client_id":"(datetime.now() - timedelta(1)).strftime('%Y-%m-%dT00:00:01Z')"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"rolling_time_format" : "%Y-%m-%dT%H:%M:00.000",
"offset_value" : 0,
"rolling_frequency" : 0,
"min_num": "" ,
"max_num": "" ,
"endpoint_method"client_secret":"get",
"endpoint_url":"",
"endpoint_headers":{},
"endpoint_body":{},
"endpoint_params":{},
"authentication_type":"no_auth"XXXXXXXXXXXXXXXXXXXXXXXX",
"username":""XXXXXXXXXXXXXXXXXXXXXXX",
"password":"",XXXXXXXXXXXXXXXXXXXXXXXXX"
"refresh_token_url":"",
"refresh_token_headers":{},
"refresh_token_method":"",
"refresh_token_body":"",
"refresh_token_params":{},
"response_parameters":"",
"another_response_parameter":"",
"key_name_to_update":"",
"user_key":"",
"user_key_url":"",
"pagination_style":"no_pagination",
"pre_request_script":"""""",
"user_request_response":"",
"response_type":"",
"timer_type":"interval",
"interval_in_seconds":10,
"schedule":"* * * * *",
"target":"product_data"
- When dealing with OAuth 2.0 and sending data in URL-encoded format as a string, you can provide values in the 'refresh token endpoint body' field using the following format:
Refresh Token Endpoint Body : "client_id=XXXXXXXXXXXXXXXXX&client_secret=XXXXXXXXXXX&grant_type=refresh_token&refresh_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"