|
29 | 29 | * [Enable a customer](#enable-a-customer) |
30 | 30 | * [Disable a customer](#disable-a-customer) |
31 | 31 | * [List a customer's packages](#list-a-customers-packages) |
| 32 | + * [Show a customer's package](#show-a-customers-package) |
32 | 33 | * [Grant a customer access to a package or edit the limitations](#grant-a-customer-access-to-a-package-or-edit-the-limitations) |
33 | 34 | * [Revoke access to a package from a customer](#revoke-access-to-a-package-from-a-customer) |
34 | 35 | * [Regenerate a customer's Composer repository token](#regenerate-a-customers-composer-repository-token) |
|
107 | 108 | * [Validate incoming webhook payloads](#validate-incoming-webhook-payloads) |
108 | 109 | * [License](#license) |
109 | 110 |
|
110 | | -<!-- Added by: glaubinix, at: Thu 13 Jan 2022 13:34:48 GMT --> |
| 111 | +<!-- Added by: zanbaldwin, at: Thu 18 Aug 12:50:05 CEST 2022 --> |
111 | 112 |
|
112 | 113 | <!--te--> |
113 | 114 |
|
@@ -286,6 +287,14 @@ $packages = $client->customers()->listPackages($customerId); |
286 | 287 | ``` |
287 | 288 | Returns an array of customer packages. |
288 | 289 |
|
| 290 | +#### Show a customer's package |
| 291 | +```php |
| 292 | +$customerId = 42; |
| 293 | +$package = $client->customers()->showPackage($customerId, $packageName); |
| 294 | +$accessibleVersions = $package['versions']; |
| 295 | +``` |
| 296 | +Returns a customer's package, including the versions that the customer has been granted access to. |
| 297 | + |
289 | 298 | #### Grant a customer access to a package or edit the limitations |
290 | 299 | ```php |
291 | 300 | $customerId = 42; |
@@ -508,7 +517,7 @@ $mirroredRepository = $client->subrepositories()->mirroredRepositories()->add($s |
508 | 517 | ``` |
509 | 518 | Returns a list of added mirrored repositories. |
510 | 519 |
|
511 | | -#### Edit the mirroring behaviour of mirrored repository in a subrepository |
| 520 | +#### Edit the mirroring behaviour of mirrored repository in a subrepository |
512 | 521 | ```php |
513 | 522 | $subrepositoryName = 'subrepository'; |
514 | 523 | $mirroredRepositoryId = 42; |
@@ -845,7 +854,7 @@ When you create or update a webhook in Private Packagist an optional secret can |
845 | 854 | $request = /** any Psr7 request */; |
846 | 855 | $secret = 'webhook-secret'; |
847 | 856 | $webhookSignature = new \PrivatePackagist\ApiClient\WebhookSignature($secret); |
848 | | -$requestSignature = $request->hasHeader('Packagist-Signature') ? $request->getHeader('Packagist-Signature')[0] : null; |
| 857 | +$requestSignature = $request->hasHeader('Packagist-Signature') ? $request->getHeader('Packagist-Signature')[0] : null; |
849 | 858 | $webhookSignature->validate($requestSignature, (string) $request->getBody()); |
850 | 859 | ``` |
851 | 860 |
|
|
0 commit comments