Skip to content

Commit

Permalink
feat(api): add US API
Browse files Browse the repository at this point in the history
* Add US API

* Remove comma to match every other api endpoint
  • Loading branch information
TrixterTheTux authored and bnjjj committed Jun 17, 2018
1 parent b906fd7 commit 64603b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Depending the API you plan yo use, you need to create an application on the belo
websites:

* [OVH Europe](https://eu.api.ovh.com/createApp/)
* [OVH US](https://api.ovhcloud.com/createApp/)
* [OVH North-America](https://ca.api.ovh.com/createApp/)
* [RunAbove](https://api.runabove.com/createApp/)
* [SoYouStart Europe](https://eu.api.soyoustart.com/createApp/)
Expand All @@ -76,6 +77,7 @@ complete account.
Depending the API you want to use, you need to specify the below API endpoint:

* OVH Europe: ```ovh-eu``` (default)
* OVH US: ```ovh-us```
* OVH North-America: ```ovh-ca```
* RunAbove: ```runabove-ca```
* SoYouStart Europe: ```soyoustart-eu```
Expand Down Expand Up @@ -133,6 +135,7 @@ You are now be able to play with the API. Look at the
You can browse the API schemas using the web consoles of the APIs:
* [OVH Europe](https://eu.api.ovh.com/console/)
* [OVH US](https://api.ovhcloud.com/console/)
* [OVH North-America](https://ca.api.ovh.com/console/)
* [RunAbove](https://api.runabove.com/console/)
* [SoYouStart Europe](https://eu.api.soyoustart.com/console/)
Expand Down Expand Up @@ -220,6 +223,13 @@ available in the *gh-pages* branch.
- **Create application credentials**: https://eu.api.ovh.com/createApp/
- **Create script credentials** (all keys at once): https://eu.api.ovh.com/createToken/
### OVH US
- **Documentation**: https://api.ovhcloud.com/
- **Console**: https://api.ovhcloud.com/console/
- **Create application credentials**: https://api.ovhcloud.com/createApp/
- **Create script credentials** (all keys at once): https://api.ovhcloud.com/createToken/
### OVH North America
- **Documentation**: https://ca.api.ovh.com/
Expand Down
4 changes: 4 additions & 0 deletions lib/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* Preconfigured API endpoints
*
* ovh-eu: OVH Europe
* ovh-us: OVH US
* ovh-ca: OVH North America
* runabove-ca: RunAbove
* sys-eu: SoYouStart Europe
Expand All @@ -39,6 +40,9 @@ module.exports = {
'ovh-eu': {
'host': 'eu.api.ovh.com'
},
'ovh-us': {
'host': 'api.ovhcloud.com'
},
'ovh-ca': {
'host': 'ca.api.ovh.com'
},
Expand Down

0 comments on commit 64603b1

Please sign in to comment.