Giter Site home page Giter Site logo

pinkdiamond1 / java-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperwallet/java-sdk

0.0 0.0 0.0 2.54 MB

An SDK implementation in Java for the v3 REST APIs.

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

License: MIT License

Java 99.96% Shell 0.04%

java-sdk's Introduction

Build Status Coverage Status Maven Central

Hyperwallet REST SDK v2.3.0

A library to manage users, transfer methods and payments through the Hyperwallet v4 API.

For Hyperwallet v3 API calls, please use the latest SDK version 1.x.x. See [here|https://docs.hyperwallet.com/content/updates/v1/rest-api-v4] to learn about the differences between versions and the update process required to use REST API v4. Prerequisites

Hyperwallet's Java server SDK requires at minimum JDK (Java Development Kit) version 1.7 and above.

Installation

Maven

<dependency>
    <groupId>com.hyperwallet</groupId>
    <artifactId>sdk</artifactId>
    <version>2.3.0</version>
</dependency>

Gradle

compile 'com.hyperwallet:sdk:2.3.0'

Documentation

Documentation is available at http://hyperwallet.github.io/java-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 com.hyperwallet:sdk:2.3.0 to your pom.xml (or build.gradle).

  • Create a instance of the Hyperwallet Client (with username, password and program token)

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

    HyperwalletUser user = new HyperwalletUser();
    user
      .clientUserId("test-client-id-1")
      .profileType(HyperwalletUser.UserProfileType.INDIVIDUAL)
      .firstName("Daffyd")
      .lastName("y Goliath")
      .email("[email protected]")
      .addressLine1("123 Main Street")
      .city("Austin")
      .stateProvince("TX")
      .country("US")
      .postalCode("78701");
    
    try {
        HyperwalletUser createdUser = client.createUser(user);
    } catch (HyperwalletException e) {
        // Add error handling here
    }

Development

Run the tests using maven:

$ mvn test

Reference

REST API Reference

License

MIT

java-sdk's People

Contributors

adwivedi-hw avatar akalichety-hw avatar akreisman-epam avatar arao6 avatar aseveryn-hw avatar bolynykhw avatar dyurchenko-epam avatar fkrauthan-hyperwallet avatar gmeyer-hw avatar hlahlou-pp-dev avatar igusar-epam avatar jchanghw avatar jkurra-hw avatar kprathaban-hw avatar kverma-hw avatar ramahalingam avatar rasyed-hw-dev avatar ravikumarmahalingam avatar rbao2016 avatar rjstanford avatar rrathinasabapath avatar saikgupta avatar sgupta-hw-dev avatar simrandsingh avatar ssangaran avatar vadimk87 avatar vwagh-hw avatar whersbach-hw avatar wmews-hw avatar yherasym-hw 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.