Skip to content

Commit bffc456

Browse files
committed
Fix typo in readme
Upgrade YAML parser
1 parent 69721a7 commit bffc456

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ You will need to set up a web page where your user can enter the *API Key* and *
6060
$redirectURI = 'http://yourdomain/php_script_in_step2.php';
6161
$client = new \PHPFUI\ConstantContact\Client($apiKey, $secret, $redirectURI);
6262
// set any scopes here, defaults to all scopes. Your user will need to accept what ever scopes you specify.
63+
// $client->setScopes(['contact_data', 'campaign_data']);
6364
\header('location: ' . $client->getAuthorizationURL());
6465
```
6566
The above will ask the user to authorize the app for the scopes you specified. The default is all scopes, but you can specify different scopes after constructing the client and before you authorize.
@@ -71,7 +72,7 @@ $client->acquireAccessToken($_GET);
7172
// Save $client->accessToken and $client->refreshToken to the database
7273
// redirect back to your businesss logic (Step 3)
7374
```
74-
You have now recieved authorization to access the API according to the scopes you requested.
75+
You have now received authorization to access the API according to the scopes you requested.
7576

7677
### 3. Use in your code
7778
```php

Tool/Generator.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ public function generateDefinition(string $namespacedClass, array $properties) :
6969

7070
if (! isset($properties['type']))
7171
{
72-
echo "{$namespacedClass} has no type";
7372

7473
if (\str_contains($namespacedClass, 'ResendToNonOpenersInput'))
7574
{
76-
echo ', assuming object';
7775
$properties['type'] = 'object';
7876
}
79-
echo "\n";
77+
else
78+
{
79+
echo "{$namespacedClass} has no type\n";
80+
}
8081
}
8182

8283
$class = \str_replace('_', '', $class);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"phpfui/phpunit-syntax-coverage": "^1.0",
2323
"roave/security-advisories": "dev-latest",
2424
"friendsofphp/php-cs-fixer": "^3.0",
25-
"symfony/yaml": "^5.3",
25+
"symfony/yaml": "^6.0",
2626
"phpstan/phpstan": "^1.8"
2727
},
2828
"autoload": {

0 commit comments

Comments
 (0)