You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
I'm trying to write a script that will call the API from the command line using the Artisan CLI.
Below is the test code from the Quickstart:
// Start the session
session_start();
// If we don't have an authorization code then get one
if (!isset($_GET['code'])) {
header('Location: ' . $client->getLoginUrl());
exit;
} else {
$token = $client->getAccessToken($_GET['code']);
echo json_encode($token); // Save this for future use
}
// You can now make requests to the API
$client->users()->search('skrawg');
How can I get the code from the returned URL without having to visit redirect URI?
If I visit that path in the browser, and retrieve the code manually and then try to set the access token with $token = $client->getAccessToken($manualCode), it throws an error because there's no state query parameter to verify CSRF.
The text was updated successfully, but these errors were encountered:
I'm trying to write a script that will call the API from the command line using the Artisan CLI.
Below is the test code from the Quickstart:
How can I get the code from the returned URL without having to visit redirect URI?
If I visit that path in the browser, and retrieve the code manually and then try to set the access token with
$token = $client->getAccessToken($manualCode)
, it throws an error because there's nostate
query parameter to verify CSRF.The text was updated successfully, but these errors were encountered: