Skip to content

how to load token to CURL POST request?? #629

Answered by jshcodes
NSH531 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm a little confused on this one. It appears we're posting directly to an API endpoint in the code above, but I'm not sure why we are doing so, so I'm having a hard time identifying how to assist. (You do not need to reference endpoints in this fashion when making use of FalconPy.)

For the token value, you can always grab the value of your token using the Uber class with:

token_value = falcon.token

If you've not authenticated before doing this, you will receive False as a response. You can force authentication with:

falcon.authenticate()

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
uber Questions related to Uber Class usage SDK usage General SDK usage issues and questions
2 participants