Open swapf opened 7 years ago
CURLOPT_POSTFIELDS => array(
"grant_type" => "=password&username={$login}&password={$pass}",
"username" => $login,
"password" => $pass
),
these lines look terribly wrong. Try to stick with the same lines in the source code:
CURLOPT_POSTFIELDS => array(
"grant_type" => "password",
"username" => $login,
"password" => $pass
),
Hello. I'm stuck... I've been trying to make it work for the whole day and without success yet. I even started it over from the scratch using source code of this lib. In the result I receive error {"error":"unsupported_grant_type"}". And it seems I have no idea what to with this yet. But I'm sticking it...
I'd be very appreciated if someone helped me out.
Here's the code. Yes, yes.. it's plain and ugly)) But I'd like to make it work first, OOP is the secondary)
!almost forgot: I test on my local machine with xampp!