GithubHelp home page GithubHelp logo

cryptohopper-android-sdk's Introduction

Cryptohopper Android SDK -> Kotlin

JitPack

Add following to your root build.gradle

allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

add a dependency to your app's build.grade as follows

dependencies {
            implementation 'com.github.cryptohopper:cryptohopper-android-sdk:1.0.2'
    }

Integrate the SDK into your app

Initialize Cryptohopper SDK in your main activity .

This is required before you are making any request with the sdk

CryptoHopperConfig.configure(getApplicationContext(),"YOUR_CLIENT_ID_HERE",HopperAPIEnvironment.PRODUCTION)

Replace "YOUR_CLIENT_ID_HERE" string with client id that is given to you by Cryptohopper . If you don't have one you can request it from here : https://www.cryptohopper.com/api-documentation/introduction

Contexts

There are 7 differen contexts in the SDK that you can request data from which are :

CryptohopperAuth
CryptohopperHopper
CryptohopperMarketplace
CryptohopperUser
CryptohopperTemplate
CryptohopperExchange
CryptohopperStrategy

Each of the contexts above has some static methods that you can see from inside.

Example Usage

Example login Request :

CryptohopperAuth.login("test","test",callback = { s: String?, hopperError: HopperError? ->
    if(s != null){
        //After this method succeed you can request other context's methods that required authenticataion. No need to store any credentials . Everything is handled by the SDK
        print("Loged-in successfully")
    }else{
        print(hopperError)
    }
})

Developed By

CryptoHopper

cryptohopper-android-sdk's People

Contributors

canerten avatar malikdawar avatar barbayrak avatar

Stargazers

FYS TEKNOLOJİ avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

barbayrak

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.