Giter Club home page Giter Club logo

python-sdk's Introduction

https://travis-ci.org/hyperwallet/python-sdk.svg?branch=master https://coveralls.io/repos/github/hyperwallet/python-sdk/badge.svg?branch=master

Hyperwallet REST SDK (Beta)

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

Prerequisites

Hyperwallet's Python server SDK requires at minimum Python 3.5 and above.

Installation

$ pip install hyperwallet-sdk

Documentation

Documentation is available at http://hyperwallet.github.io/python-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.
  • Import the Hyperwallet module
import hyperwallet
  • Create an instance of the Hyperwallet Client (with username, password and program token)
api = hyperwallet.Api(
    "test-user",
    "test-pass",
    "prg-12345"
)
  • Start making API calls (e.g. create a user)
data = {
    clientUserId: "test-client-id-1",
    profileType: "INDIVIDUAL",
    firstName: "Daffy",
    lastName: "Duck",
    email: "[email protected]",
    addressLine1: "123 Main Street",
    city: "Austin",
    stateProvince: "TX",
    country: "US",
    postalCode: "78701",
    programToken: "[PROGRAM TOKEN]"
}

response = api.createUser(data)

Development

Set up a virtual environment:

$ virtualenv venv
$ source venv/bin/activate

Install development dependencies:

$ make dev

Run the tests:

$ make test

Compile the documentation:

$ make docs

Requirements

The Hyperwallet API uses TLS 1.2. Please ensure that your SSL library supports TLS 1.2.

Reference

REST API Reference

License

MIT

python-sdk's People

Contributors

dharrison-hw avatar aseveryn-hw avatar wmews-hw avatar arao6 avatar akalichety-hw avatar akreisman-epam avatar igusar-epam avatar hlahlou-pp-dev avatar gmeyer-hw avatar yherasym-hw avatar asingh-hw avatar hwyfour avatar rhunterduvar-hw-dev avatar ramahalingam avatar dyurchenko-epam avatar rrathinasabapath avatar cjacobsen-hw avatar whersbach-hw avatar jchanghw avatar madhankumar3103 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.