Forum Academy Marketplace Showcase Pricing Features

Postman, Lyft, and Bubble

For a Lyft bridge using the API Connector

Lyft has two means of getting data. I’m having trouble setting up basic auth. I’ve set this up in Postman. The method that works is basic auth, which results in a wonderful 200 OK status and returns the token.

There is a header called “Authorization”. I assume this is a handled by Bubble using the word “basic”.

When I enter the body information as “raw”, everything works.

I’m including the body that works in Postman, but I don’t know how this is sent via bubble. is it sent as “raw”,“form data”, x-www-form-urlencoded, or binary?

The curl code from https://developer.lyft.com/v1/docs/authentication#section-client-credentials-2-legged-flow-for-public-endpoints:

curl -X POST -H "Content-Type: application/json" \
     --user "<client_id>:<client_secret>" \
     -d '{"grant_type": "client_credentials", "scope": "public"}' \
     'https://api.lyft.com/oauth/token'

This is how I have it in Bubble:

I receive this error:

(Does this mean that the header is not correct, or not correctly defined?)

Thank you Obi-Wan. You’re my only hope.

1 Like