Skip to content

Automatic way to get the access token? #9

Description

@bernino

I’m wondering if there is an automatic way to get the access token used by request_token() rather than to have to open a browser and copy paste the code offered after the:

bx24.resolve_authorize_endpoint()

Which gives the URL that generates the access code token thingy.

What I’ve done is to store the output of authorise_endpoint() and then fire off a requests.get() with this data (ie. the URL that is generated):

authurl = bx24.resolve_authorize_endpoint()
r = requests.get(authurl)

...but I don't know how to extract the generated code variable to be used in request_tokens() ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions