Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add US API #24

Merged
merged 2 commits into from
Jun 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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