Messtone LLC Manages(Authcode):Grant Type

Messtone Devices Enables UPS API Authcode curl –location –request GET ‘https://wwwcie.ups.com/security/v1/oauth/authorize?client_id={client_id}&redirect_uri={redirect_uri}&response_type=code&state={state}&scope={scope}’ displayname fields in the request https://www.ups.com/messtonellc/signin?client_id=testClientID&redirect_uri=https://testapplication.com&response_type=code&scope=read&type=ups_com_api query parameter code https://testapplication.com?code={Auth-Code}&scope= client id and secret. Request: curl –location –request POST ‘https://wwwcie.ups.com/security/v1/oauth/token’\–header ‘Authorization: Basic ROtWbldUOTFqaUpWc1ZCQWl6ROowcWlzNnpKcVhvRVk3NFJG=’\–header ‘Content-Type: application/x-www-form-urlencoded’\–data-urlencode ‘grant_type=authorization_code’\–data-urlencode ‘code=[Auth-Code]’Response:{“refresh_token_expires_in”:”604799″,”refresh_token_status”:” approved”,”token_type”:”Bearer”,”issued_at”:”1662558626563″,”client_id”:”testClientID”,”access_token”:”access_token”,”refresh_token”:”refresh_token”,”scope”:””,”refresh_token_issued_at”:”1662558626563″,”expires_in”:”14399″,”refresh_count”:”0″,”status”:”approved”}expiry time returned in step 5. Request: curl –location –request POST ‘https://apis-pt.ups.com/security/v1/oauth/refresh’\–header ‘Authorization: Basic ROtWbldUOTFqaUpWc1ZCQWl6ROowcWlzNnpKcVhvRVk3NFJG=’\–header ‘Content-Type: application/x-www-form-urlencoded’\–data-urlencode ‘grant_type=refresh_token’\–data-encode ‘refresh_token=[refresh-token]’Response: {“refresh_token_expires_in”:”604738″,”refresh_token_status”:” approved”,”old_access_token_life_time”:”61228″,”token_type”:”Bearer”,”issued_at”:”1662558687774″,”client_id”:”testClientID”,”access_token”:”access_token”,” refresh_token”:”refresh_token”,”scope”:” “,”refresh_token_issued_at”:”1662558626563″,”expires_in”:”2591999″,”refresh_count”:”3″,”status”:”approved”}

Leave a comment