Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bouton opened this issue Dec 3, 2023 · 0 comments

Comments

@bouton
Copy link

bouton commented Dec 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant