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

Not returning the access_code #12

Open
joyceeeen opened this issue Mar 27, 2018 · 3 comments
Open

Not returning the access_code #12

joyceeeen opened this issue Mar 27, 2018 · 3 comments

Comments

@joyceeeen
Copy link

return $oauth->getAccessToken(); not excuting the TOKEN_URL. It redirects in my redirect uri and returns a null value.

I am using Laravel Framework

@AlamkoInfo
Copy link

Same issue I experienced. :(

@ayophanz
Copy link

$oauth->getAccessToken(); result is :
{
"access_token":"1ixLbltjWkzwqLMXT-8UF-UQeKRma0hOOWFA6o91oXw",
"subscriber_number":"9171234567"
}

the problem is how we can get the access_token only?

@ayophanz
Copy link

Problem solved!!!!
$tojson = json_decode($oauth->getAccessToken());
echo $tojson->access_token

you need to decode using json in order to extract the token

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

3 participants