Skip to content

Fitnesssync oauth uses a redirect to get code - how do I get the code other than manually? #58

@bouton

Description

@bouton

I want to get to the fitnesssync api. It requires oauth tokens and authorization to access data.

When you go to the $auth_url (as created in your authorization_code example) I get a chance to approve/deny access.
When I click on approve, it takes me to their website via a provided redirect_uri which I can not change and has the code in the url. How do I get that code? eg personal.fitnesssync.com?code=asdfghhjkl
Because it is a redirect I can not just grab it as a GET parameter.

Using your code, currently I have to manually copy that code I went to above, enter it into postman authorization with my client_id, client_secret etc and say get new token. I then take that token and manually add it via NullGrantType. That in turn gives me no access to refresh token so I have to do the whole process over again in an hour.

I am very new to this, and your class is the closest I have come to it working (for an hour at least until the token expires :0

Thanks

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