Advertisement
BimoSora

Api OVH

Feb 25th, 2020
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2. /**
  3. * First, download the latest release of PHP wrapper on github
  4. * And include this script into the folder with extracted files
  5. */
  6. require __DIR__ . '/vendor/autoload.php';
  7. use \Ovh\Api;
  8.  
  9. /**
  10. * Instanciate an OVH Client.
  11. * You can generate new credentials with full access to your account on
  12. * the token creation page
  13. */
  14. $ovh = new Api( 'xxxxxxxxxx', // Application Key
  15. 'xxxxxxxxxx', // Application Secret
  16. 'ovh-eu', // Endpoint of API OVH Europe (List of available endpoints)
  17. 'xxxxxxxxxx'); // Consumer Key
  18.  
  19. $result = $ovh->get('/vps');
  20.  
  21. print_r( $result );
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement