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:
commit
096a7b7413
@ -32,7 +32,7 @@ It can be accessed online too:
|
||||
|
||||
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:
|
||||
------------------------
|
||||
|
14
README.md
14
README.md
@ -15,7 +15,7 @@ Compatible with PHP 7.4, 8.0, 8.1, 8.2.
|
||||
|
||||
## Installation
|
||||
|
||||
Install this wrapper and integrate it inside your PHP application with [Composer](https://getcomposer.org) :
|
||||
Install this wrapper and integrate it inside your PHP application with [Composer](https://getcomposer.org):
|
||||
|
||||
composer require ovh/ovh
|
||||
|
||||
@ -26,7 +26,7 @@ Install this wrapper and integrate it inside your PHP application with [Composer
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
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,
|
||||
$applicationSecret,
|
||||
$endpoint,
|
||||
@ -71,7 +71,7 @@ $client = new Client();
|
||||
$client->setDefaultOption('timeout', 1);
|
||||
$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
|
||||
$ovh = new Api($applicationKey,
|
||||
$applicationSecret,
|
||||
@ -94,7 +94,7 @@ See "OVHcloud API authentication" section below for more information about the a
|
||||
use \Ovh\Api;
|
||||
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,
|
||||
$applicationSecret,
|
||||
$endpoint);
|
||||
@ -115,7 +115,7 @@ header('location: '. $credentials['validationUrl']);
|
||||
// After successful redirect, the consumerKey in the session will be activated and you will be able to use it to make API requests like in the "Basic usage" section above.
|
||||
```
|
||||
|
||||
### Code sample : Enable network burst on GRA1 dedicated servers
|
||||
### Code sample: Enable network burst on GRA1 dedicated servers
|
||||
|
||||
Here is a more complex example of how to use the wrapper to enable network burst on GRA1 dedicated servers.
|
||||
|
||||
@ -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';
|
||||
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,
|
||||
$applicationSecret,
|
||||
$endpoint,
|
||||
@ -151,7 +151,7 @@ Do you want to use OVH APIs? Maybe the script you want is already written in the
|
||||
|
||||
## OVHcloud API authentication
|
||||
|
||||
To use the OVHcloud APIs you need three credentials :
|
||||
To use the OVHcloud APIs you need three credentials:
|
||||
|
||||
* An application key
|
||||
* An application secret
|
||||
|
Loading…
Reference in New Issue
Block a user