GithubHelp home page GithubHelp logo

isabella232 / node-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperwallet/node-sdk

0.0 0.0 0.0 1.75 MB

An SDK implementation in JS (Node) for the v3 REST APIs.

Home Page: http://hyperwallet.github.io/node-sdk

License: MIT License

JavaScript 99.85% Shell 0.15%

node-sdk's Introduction

Build Status Coverage Status Document NPM version

Hyperwallet REST SDK (Beta)

A library to manage users, transfer methods and payments through the Hyperwallet Rest V3 API

Prerequisites

Hyperwallet's NodeJS server SDK requires at minimum NodeJS 6.15.1 and above.

Installation

$ npm install hyperwallet-sdk

Documentation

Documentation is available at http://hyperwallet.github.io/node-sdk.

API Overview

To write an app using the SDK

  • Register for a sandbox account and get your username, password and program token at the Hyperwallet Program Portal.

  • Add dependency hyperwallet-sdk to your package.json.

  • Require hyperwallet-sdk in your file

    var Hyperwallet = require("hyperwallet-sdk");
  • Create a instance of the Hyperwallet Client (with username, password and program token)

    var client = new Hyperwallet({
      username: "restapiuser@4917301618",
      password: "mySecurePassword!",
      programToken: "prg-645fc30d-83ed-476c-a412-32c82738a20e",
    });
  • Start making API calls (e.g. create a user)

    var userData = {
       clientUserId: "test-client-id-1",
       profileType: "INDIVIDUAL",
       firstName: "Daffyd",
       lastName: "y Goliath",
       email: "[email protected]",
       addressLine1: "123 Main Street",
       city: "Austin",
       stateProvince: "TX",
       country: "US",
       postalCode: "78701",
    };
    
    client.createUser(userData, function(errors, body, res) {
       if (errors) {
          console.log("Create User Failed");
          console.log(errors);
       } else {
          console.log("Create User Response");
          console.log(body);
       }
    });

    The displayed callback format is valid for all SDK methods. For more information see the Callback Documentation.

Development

Run the tests using npm:

$ npm install
$ npm test

Reference

REST API Reference

License

MIT

node-sdk's People

Contributors

fkrauthan-hyperwallet avatar wmews-hw avatar arao6 avatar aseveryn-hw avatar akreisman-epam avatar vmasalau avatar ssangaran avatar akalichety-hw avatar jkurra-hw avatar rjstanford avatar yherasym-hw avatar ajlozier avatar petestreet avatar bolynykhw avatar gmeyer-hw avatar dependabot[bot] avatar dyurchenko-epam 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.