Forum Academy Marketplace Showcase Pricing Features

OAuth 2 Access token

Hi there,

I’d really appreciate some support after hours of trying and failing!

Here are the API Instructions:



Here is my current translation into the bubble API

And here is the failure to initialise message:
image

Much appreciated if someone can help - prepared to make a financial contribution for some advice if necessary

Thanks,
Andrew

1 Like

Solved!!! Turns out I shouldn’t have been trying to use actual JSON syntax in the body field.

2 Likes

Hi Andrew – having a similar issue. how did you resolve “Bearer [access_token]”? I see you initially had it as a shared header, but seem to have dropped it in the solution?

Have this exact same question. I’m not able to pass in a bearer token into the header, would appreciate any guidance on this.

Hey Byron – I was able to figure it out

You need to copy/paste the literal token over [access_token]

I.e.

Key: Authorization

Value: Bearer fnfh78i2n3ionfml;sfk9c0spdmcm23fn784n (whatever it is)

I was able to get my access key by doing an Authentication of “None or self-handled” then calling a POST like:

I think it’s important that you check the “capture response headers” box before you initialize.

This gave me my actual access token, which I then copy pasted next to Bearer on my next call

Thanks for the response! I think I follow that you should paste in your actual key to initialize the call, this lets you capture the data structure.

Are you using the same token for all your users, or a specific one for each user though? I’m trying to pass in the token specific for the logged-in user. So far as I can tell…this means to “use as Action” rather than data, and trying to pass it in the workflow?

Cheers,

Update: it works now! It looks like you can do this as either Action or Data, passing in the token from the current User

Hello @hschreib , I have a similar token request call to setup. I’m hoping that someone can point me in the right direction.

The documentation for this step is below and seems pretty simple:


I have the call setup like below:

And then I get the following error:

I feel like I’m missing something basic. Would appreciate any advice.

Thanks!