Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * First, download the latest release of PHP wrapper on github
- * And include this script into the folder with extracted files
- */
- require __DIR__ . '/vendor/autoload.php';
- use \Ovh\Api;
- /**
- * Instanciate an OVH Client.
- * You can generate new credentials with full access to your account on
- * the token creation page
- */
- $ovh = new Api( 'xxxxxxxxxx', // Application Key
- 'xxxxxxxxxx', // Application Secret
- 'ovh-eu', // Endpoint of API OVH Europe (List of available endpoints)
- 'xxxxxxxxxx'); // Consumer Key
- $result = $ovh->get('/vps');
- print_r( $result );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement