Forum Discussion

SnapWizard's avatar
SnapWizard
New Contributor III
4 years ago

Perform a Post API OAuth 2.0 call to get token and pass token to a GET API Basic Auth Header

I need to make a Post Rest API call using OAuth 2.0 with client_id and client_secret and then pass the token to a Get Rest API snap to make the api call Client Authentication ‘Send as Basic Auth Header’. How can I do this using the Rest Snaps?

2 Replies

  • Supratim's avatar
    Supratim
    Contributor III

    @SnapWizard You can try to create a REST OAuth2 Account and select "
    Send Client Data as Basic Auth header".

    • PriyaBodireddy's avatar
      PriyaBodireddy
      New Contributor

      I am able to create and validate the account but getting error while using the same in Rest Get and Post snaps. How to use this account in Rest Get Snap to get the token and pass the same in Rest post snap?

      Please share us the same screenshots of Rest Get and Rest Post as reference.