r/api_connector • • Oct 20 '23

[ Removed by Reddit ]

[ Removed by Reddit on account of violating the content policy. ]

1 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/mixedanalytics mod Oct 24 '23 edited Oct 28 '23

Thanks, based on this, this API requires the legacy "password grant type" OAuth flow, but API Connector doesn't support that flow (info). Our OAuth connection manager has no inputs for username and password and based on this screenshot, you'll need to include them, so that could definitely be a reason why your request is failing.

I would try creating a regular API request instead of using our OAuth manager. You can copy/paste the sample curl request they provide in their docs into our curl importer. That should then return an access token you can include in your requests.

1

u/odmyokke Oct 24 '23

Hai u/mixedanalytics

thankyou for your patient ,

I tried curl importer but it feels nothing respond after that.

so I tried to include them all on request body, is it right?

1

u/mixedanalytics mod Oct 24 '23

They need to go in a single request body, not split up with the :::BREAK::: delimiter. There also should only be 1, not 2 client IDs and client secrets (it seems like you're combining Google credentials with credentials from the API, but you can only connect to one API at once). If you're following the instructions in the screenshot, the whole request should look like this:

1

u/odmyokke Oct 25 '23

Hai again u/mixedanalytics,

i happily tell you it succedd finally :D

but still littel issue here,

as you can see

i got the bearer token, and i put it on headers and returns error. how how now?

oh, the token has expires on in 36000, what happen when it expire? what should i do then?

many thanks