Im not quite sure where to put -d above (Client Secret, Client credentials and scopes), can someone point me in the right direction on how to configure this?
I was able to solve the server to server credentials and initialize this call for authentication but still have one last issue below:
and it returned
“access_token”: “string of characters”,
“token_type”: “bearer”,
“expires_in”: 86399
Should I be somehow trying to pass the returned information of the “access_token”: “string of characters”, “token_type”: “bearer”, into the Value: Bearer $token somehow ?
I don’t have a bearer token anywhere else in the developer console.
I’ve been fumbling around with this and could really use some guidance.
I do get an error when initializing the Execute Actions API call: {"error_code":"401013","message":"Oauth token is not valid"}
First, you should use Bubble auth feature set to custom token instead of non self handled. Second, you cannot use $token and expect Bubble to teplace that by something else. You need to put the access token in this field to initialize it. Anyway, if you use Bubble custom token auth, you will not need to add authorization header.
After, you may need to put everything in url like ?client_secret=…&grant_type=client_credentials (and so on…)
Or put in the body as client_secret=…&grant_type=…
Check the API do intiialize with a simple get request like get current user to test your setting
Once the call is initialized you should see: _links self href
Get Request (Use as: Data, Data type: Text)
GET and the endpoint
Once initialized should see the Welcome message in text.
I learned a lot from this:
I didn’t need to set the authorization in another call.
My initial Post request had all of the line numbers from where I copied it from the documentation (very easy to not notice).
In the Body JSON field names, use a unique naming convention (instead of <storage><storage>, use <storage_input><storage_output> that suits your needs).
Booleans, JSON specific are not in quotes.
I don’t think I would have ever figured this out Thank You @Jici