1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Merge pull request #128 from Benjamin-Loison/master

Fix typos in `README.md` and `CONTRIBUTING.rst`
This commit is contained in:
Adrien Barreau 2023-05-31 10:16:36 +02:00 committed by GitHub
commit 096a7b7413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@ It can be accessed online too:
https://www.kernel.org/doc/Documentation/SubmittingPatches https://www.kernel.org/doc/Documentation/SubmittingPatches
You can submit your patches via GitHub You can submit your patches via GitHub.
Licensing for new files: Licensing for new files:
------------------------ ------------------------

View File

@ -26,7 +26,7 @@ Install this wrapper and integrate it inside your PHP application with [Composer
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api; use \Ovh\Api;
// Api credentials can be retreived from the urls specified in the "Supported endpoints" section below. // Api credentials can be retrieved from the urls specified in the "Supported endpoints" section below.
$ovh = new Api($applicationKey, $ovh = new Api($applicationKey,
$applicationSecret, $applicationSecret,
$endpoint, $endpoint,
@ -71,7 +71,7 @@ $client = new Client();
$client->setDefaultOption('timeout', 1); $client->setDefaultOption('timeout', 1);
$client->setDefaultOption('headers', ['User-Agent' => 'api_client']); $client->setDefaultOption('headers', ['User-Agent' => 'api_client']);
// Api credentials can be retreived from the urls specified in the "Supported endpoints" section below. // Api credentials can be retrieved from the urls specified in the "Supported endpoints" section below.
// Inject the custom HTTP client as the 5th argument of the constructor // Inject the custom HTTP client as the 5th argument of the constructor
$ovh = new Api($applicationKey, $ovh = new Api($applicationKey,
$applicationSecret, $applicationSecret,
@ -94,7 +94,7 @@ See "OVHcloud API authentication" section below for more information about the a
use \Ovh\Api; use \Ovh\Api;
session_start(); session_start();
// Api credentials can be retreived from the urls specified in the "Supported endpoints" section below. // Api credentials can be retrieved from the urls specified in the "Supported endpoints" section below.
$ovh = new Api($applicationKey, $ovh = new Api($applicationKey,
$applicationSecret, $applicationSecret,
$endpoint); $endpoint);
@ -124,7 +124,7 @@ Here is a more complex example of how to use the wrapper to enable network burst
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api; use \Ovh\Api;
// Api credentials can be retreived from the urls specified in the "Supported endpoints" section below. // Api credentials can be retrieved from the urls specified in the "Supported endpoints" section below.
$ovh = new Api($applicationKey, $ovh = new Api($applicationKey,
$applicationSecret, $applicationSecret,
$endpoint, $endpoint,