You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ovh-api-services

Package Overview
Dependencies
Maintainers
9
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ovh-api-services

Contains all AngularJS $resource for OVHcloud API.

17.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3.5K
-34.48%
Maintainers
9
Weekly downloads
 
Created
Source

ovh-api-services

Contains all AngularJS $resource for the OVHcloud API.

Downloads Dependencies Dev Dependencies

Install

$ yarn add ovh-api-services

Usage

import angular from 'angular';
import ovhApiServices from 'ovh-api-services';

angular.module('myApp', [ovhApiServices]);

Services

All services must return an AngularJS $resource and can be called by using:

ServiceEngineLibrary
v6APIv6n/a
IcebergIceberg@ovh-ux/ng-ovh-api-wrappers
Aapi2APIn/a

How to get user informations?

OvhApiMe
  .v6()
  .get()
  .$promise
  .then((nichandle) => {
    console.log(nichandle);
    /*
    {
      "firstname": "John",
      "name": "Doe",
      …
    }
    */
  });

How to get a SSH Key detail?

OvhApiMe
  .SshKey()
  .v6()
  .get({
    keyName: 'YOUR_KEY_NAME',
  })
  .$promise
  .then((sshKey) => {
    console.log(sshKey);
    /*
    {
      "keyName": "test",
      "key": "ssh-rsa …",
      "default": false
    }
    */
  });

Structure

The files structure is defined as:

$ tree src/api/
.
└── me
    ├── sshKey
    │   ├── me-sshKey.service.js
    │   └── me-sshKey.v6.service.js
    ├── me.service.js
    └── me.v6.service.js

The directories structure must follow the structure of the API.

Test

$ yarn test

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.

License

BSD-3-Clause © OVH SAS

Keywords

angularjs

FAQs

Package last updated on 03 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts