Skip to content

Commit 74b39ee

Browse files
committed
Update readme for V22.3
1 parent 975af8e commit 74b39ee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ PHP Object Oriented wrapper for the Constant Contact V3 API.
99
## Installation
1010
Since this library is constantly updated when Constant Contact updates their API, it is best to modify the Composer version constraint from '^' to '>=', for example:
1111
```
12-
"phpfui/constantcontact": "^22.1",
12+
"phpfui/constantcontact": "^22.3",
1313
```
1414
should be changed to:
1515
```
16-
"phpfui/constantcontact": ">=22.1",
16+
"phpfui/constantcontact": ">=22.3",
1717
```
1818

19+
## New OAuth2 PKCE Authentication effective April 1, 2022
20+
As of March 31, 2022, Constant Contact will no longer be supporting versions of this library before 22.3. You must upgrade you app on the Constant Contact site. A new secret is also suggested. You must also upgrade to the 22.3 version of this library. The only code change needed is to pass the parameter array ($_GET) to acquireAccessToken instead of the single code parameter.
21+
1922
## Namespaces
2023
This library normalizes the [Constant Contact API](https://v3.developer.constantcontact.com/api_guide/index.html) to modern PHP class standards. All endpoints are first character capitialized. Underscores are removed and followed by a capital letter. Each end point is a class with methods matching the standard REST methods (ie. put, post, delete, put, etc.). The methods take required and optional parameters matching the name specified in the Constant Contact YAML API. In addition, this library supports all definitions of types in the API. See below.
2124

@@ -69,7 +72,7 @@ The above will ask the user to authorize the app for the scopes you specified.
6972

7073
### 3. Retrieve the Code sent to the $redirectURI
7174
```php
72-
$client->acquireAccessToken($_GET['code']);
75+
$client->acquireAccessToken($_GET);
7376
// Save $client->accessToken and $client->refreshToken to the database
7477
// redirect back to where ever
7578
```

0 commit comments

Comments
 (0)