This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

scaleway

0.8.0 • Public • Published

node-scaleway

Build Status (Travis) Dependency Status Total views Views in the last 24 hours Code Climate

NPM Badge

Scaleway API Node.js client. It wraps the HTTP api library described here.

Maintained by Manfred Touron


Install

# Install from npm
npm install scaleway

Examples

Create a server with Node.js

var Api = require('scaleway'),
    client = new Api({token: '<YOUR_TOKEN>'});
 
var data = {
  name: 'c1',
  organization: '<ORGANIZATION_ID>',
  image: '<IMAGE_ID>',
  tags: ['test', 'demo']
};
 
client.post('/servers', data, function(err, res) {
  console.log(res.server);
});

Create a server with Coffee-Script

client = new require('scaleway')()
 
var data =
  name: 'c1'
  organization: '<ORGANIZATION_ID>'
  image: '<IMAGE_ID>'
  tags: ['test''demo']
 
client.post '/servers'data(err, res) ->
  console.log res.server

See ./examples directory for more examples

Documentation

Even if this SDK is designed to be developer-friendly and aim for self-service discovery, it is still recommended to read the official API documentation.

Alternative SDKs

License

MIT

Package Sidebar

Install

npm i scaleway

Weekly Downloads

1

Version

0.8.0

License

MIT

Last publish

Collaborators

  • scaleway-serverless-team
  • codelax
  • quantumsheep
  • scaleway-bot
  • mprost
  • imanu
  • vincentaudebert
  • maliszewskid
  • phiphi