Skip to content

Commit d3c7f3b

Browse files
authored
ReadMe update for getting authentication url
1 parent b9dfa69 commit d3c7f3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ $redirectUrl = 'https://yourappurl.com/your_redirect_url.php';
7070
\PHPShopify\AuthHelper::createAuthRequest($scopes, $redirectUrl);
7171
```
7272

73+
> If you want the function to return the authentication url instead of auto-redirecting, you can set the argument `$return` (5th argument) to `true`.
74+
75+
```php
76+
\PHPShopify\AuthHelper::createAuthRequest($scopes, $redirectUrl, null, null, true);
77+
```
78+
7379
3) Get the access token when redirected back to the `$redirectUrl` after app authorization.
7480

7581
```php

0 commit comments

Comments
 (0)