|
70 | 70 | * [Delete a package](#delete-a-package)
|
71 | 71 | * [List all dependents of a package](#list-all-dependents-of-a-package)
|
72 | 72 | * [List all customers with access to a package](#list-all-customers-with-access-to-a-package)
|
73 |
| - * [Create a package uploaded file](#create-a-package-uploaded-file) |
| 73 | + * [Create an artifact package file](#create-an-artifact-package-file) |
74 | 74 | * [Create an artifact package](#create-an-artifact-package)
|
75 |
| - * [Update an artifact package files](#update-an-artifact-package-files) |
| 75 | + * [Update artifact files of a package](#update-artifact-files-of-a-package) |
76 | 76 | * [Credential](#credential)
|
77 | 77 | * [List an organization's credentials](#list-an-organizations-credentials)
|
78 | 78 | * [Show a credential](#show-a-credential)
|
|
98 | 98 | * [Validate incoming webhook payloads](#validate-incoming-webhook-payloads)
|
99 | 99 | * [License](#license)
|
100 | 100 |
|
101 |
| -<!-- Added by: wissem, at: Tue Jul 14 11:42:54 CEST 2020 --> |
| 101 | +<!-- Added by: wissem, at: Tue Jul 21 10:32:47 CEST 2020 --> |
102 | 102 |
|
103 | 103 | <!--te-->
|
104 | 104 |
|
@@ -583,22 +583,22 @@ Returns a list of customers with access to the package.
|
583 | 583 | ```php
|
584 | 584 | $fileName = 'package1.zip'; // your package archive artifact containing a valid composer.json in root directory
|
585 | 585 | $file = file_get_contents($fileName);
|
586 |
| -$client->packageArtifact()->create($file, 'application/zip', $fileName); |
| 586 | +$client->packages()->artifacts()->create($file, 'application/zip', $fileName); |
587 | 587 | ```
|
588 | 588 |
|
589 | 589 | #### Create an artifact package
|
590 | 590 |
|
591 | 591 | ```php
|
592 | 592 | $fileName = 'package1.zip';
|
593 | 593 | $file = file_get_contents($fileName);
|
594 |
| -$response = $client->packageArtifact()->create($file, 'application/zip', $fileName); |
| 594 | +$response = $client->packages()->artifacts()->create($file, 'application/zip', $fileName); |
595 | 595 | $artifactId = $response['id'];
|
596 | 596 | $client->packages()->createArtifactPackage([$artifactId]);
|
597 | 597 | ```
|
598 |
| -#### Update an artifact package files |
| 598 | +#### Update artifact files of a package |
599 | 599 |
|
600 | 600 | ```php
|
601 |
| -$result = $client->packages()->showArtifacts('acme-website/package'); // get artifact files details for a package |
| 601 | +$result = $client->packages()->packages()->artifacts()->showPackageArtifacts('acme-website/package'); // get artifact files details for a package |
602 | 602 | $artifactFileIds = [42, 43];
|
603 | 603 | $client->packages()->editArtifactPackage('acme-website/package', $artifactFileIds);
|
604 | 604 | ```
|
|
0 commit comments