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

$teamleader->connect(); not working #3

Open
Silassiai opened this issue Oct 24, 2023 · 0 comments
Open

$teamleader->connect(); not working #3

Silassiai opened this issue Oct 24, 2023 · 0 comments

Comments

@Silassiai
Copy link

Silassiai commented Oct 24, 2023

followed your examples. Below error is what i get after redirect when using the authorization code and all required TeamLeader params where filled.

Error!: Error 400: Could not aquire or refresh access token: The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.

So it fails in the acquireAccessToken method. On the below call:
post: https://focus.teamleader.eu/oauth2/access_token
params: (*** are sensored)

array(1) {
  ["form_params"]=>
  array(5) {
    ["client_id"]=>
    string(32) "***"
    ["client_secret"]=>
    string(32) "***"
    ["code"]=>
    string(896) "***"
    ["grant_type"]=>
    string(18) "authorization_code"
    ["redirect_uri"]=>
    string(101) "https%3A%2F%2F***%2Fdevelopment%2Fadmin%2Findex.php%3FPage%3DAddons%26Addon%3Dteamleader"
  }
}
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