GithubHelp home page GithubHelp logo

protez / aws-lib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mirkokiefer/aws-lib

1.0 2.0 0.0 198 KB

Extensible Node.js library for the Amazon Web Services API (EC2, SimpleDB and Product Advertising API)

Home Page: http://mirkokiefer.com/blog/2010/09/node-js-and-amazon-web-services/

License: MIT License

aws-lib's Introduction

Node-AWS for EC2 and Product Advertising

A simple Node.js library to communicate with the Amazon Web Services API.

It includes specific clients for the EC2 and Product Advertising API but is designed to be easily extendable.

Thanks to Richard Roger's contribution, the library now has support for SimpleDB, as well. Have a look at his tests for some examples.

All responses are parsed to JSON.

Some simple usage examples:

var aws = require("aws-lib");

ec2 = aws.createEC2Client(yourAccessKeyId, yourSecretAccessKey);

ec2.call("DescribeInstances", {}, function(result) {
  console.log(JSON.stringify(result));
})

Returns you something like: [...] {"item":{ "instanceId":"i-acb2d1db","imageId":"ami-03765c77", "instanceState": {"code":"80","name":"stopped"}, "privateDnsName":{},"dnsName":{}, "reason":"User initiated (2010-07-28 19:37:54 GMT)" [...]

or when using the Product Advertising API: prodAdv = aws.createProdAdvClient(yourAccessKeyId, yourSecretAccessKey, yourAssociateTag);

prodAdv.call("ItemSearch", {SearchIndex: "Books", Keywords: "Javascript"}, function(result) {
  console.log(JSON.stringify(result));
})

Will return you a long list of Books...

aws-lib's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.