Skip to content

Commit

Permalink
ReadMe update for getting authentication url
Browse files Browse the repository at this point in the history
  • Loading branch information
tareqtms authored Aug 28, 2018
1 parent b9dfa69 commit d3c7f3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ $redirectUrl = 'https://yourappurl.com/your_redirect_url.php';
\PHPShopify\AuthHelper::createAuthRequest($scopes, $redirectUrl);
```

> If you want the function to return the authentication url instead of auto-redirecting, you can set the argument `$return` (5th argument) to `true`.
```php
\PHPShopify\AuthHelper::createAuthRequest($scopes, $redirectUrl, null, null, true);
```

3) Get the access token when redirected back to the `$redirectUrl` after app authorization.

```php
Expand Down

0 comments on commit d3c7f3b

Please sign in to comment.