Skip to content

Commit

Permalink
Merge pull request mautic#60 from escopecz/readme-code-fix
Browse files Browse the repository at this point in the history
Readme code fix
  • Loading branch information
alanhartless authored Dec 1, 2016
2 parents e3294e4 + 7454582 commit 99d5c34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ include __DIR__ . '/vendor/autoload.php';

use Mautic\Auth\ApiAuth;

session_start();

$publicKey = '';
$secretKey = '';
$callback = '';
Expand All @@ -47,8 +49,8 @@ $settings['refreshToken'] = $refreshToken;
*/

// Initiate the auth object
$auth = new ApiAuth();
$auth->newAuth($settings);
$initAuth = new ApiAuth();
$auth = $initAuth->newAuth($settings);

// Initiate process for obtaining an access token; this will redirect the user to the $authorizationUrl and/or
// set the access_tokens when the user is redirected back after granting authorization
Expand Down

0 comments on commit 99d5c34

Please sign in to comment.