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
Copy file name to clipboardExpand all lines: README.md
+36-5Lines changed: 36 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,7 @@ then copy the Client ID and Client Secret to the application that will be using
25
25
## Authorization
26
26
27
27
### Obtaining an access token
28
-
The first step is to obtain authorization. Mautic supports OAuth 1.0a and OAuth 2 however it is up to the administrator
29
-
to decide which is enabled. Thus it is best to have a configuration option within your project for the administrator
28
+
The first step is to obtain authorization. Mautic supports OAuth 2. Thus it is best to have a configuration option within your project for the administrator
30
29
to choose what method should be used by your code.
31
30
32
31
```php
@@ -46,7 +45,6 @@ $callback = '';
46
45
// ApiAuth->newAuth() will accept an array of Auth settings
47
46
$settings = [
48
47
'baseUrl' => '', // Base URL of the Mautic instance
49
-
'version' => 'OAuth2', // Version of the OAuth can be OAuth2 or OAuth1a. OAuth2 is the default value.
50
48
'clientKey' => '', // Client/Consumer key from Mautic
51
49
'clientSecret' => '', // Client/Consumer secret key from Mautic
52
50
'callback' => '', // Redirect URI/Callback URI for this script
@@ -55,7 +53,6 @@ $settings = [
55
53
/*
56
54
// If you already have the access token, et al, pass them in as well to prevent the need for reauthorization
0 commit comments