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