Closed theblanchard closed 9 years ago
Hi @theblanchard, sorry its taken so long to get back to you on this. Could you provide some code examples to support your problem?
[EDIT:] Just seen the gist!
Cheers,
Stuart
@theblanchard on line 53:
$url = $api->authenticationUrl($redirect, $approvalPrompt = 'auto', $scope = null, $state = null);
You've left the default values in here. Try this instead:
$url = $api->authenticationUrl($redirect);
Thanks! I actually figured this out, forgot to close the issue.
I have been able to successfully authenticate with my app credentials, but when I try to complete the token exchange, I get a "page not found" error and
{"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]}
A gist with my code is available here: https://gist.github.com/theblanchard/0c2da687e8c3c2d3a89a
I am relatively new to PHP, so any help you can provide is greatly appreciated!
Page after successful auth with API errors:
Page with successful auth using hardcoded
access_code
in URL: