Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 880 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 880 Bytes

Example

package com.crp;

import com.crp.balance.AllBalance;
import com.crp.response.CrpResponseException;

public class Example
{
    public Example() { }

    public static void main(String[] args) throws CrpResponseException
    {
        Client client = Client.login("your public key",
                "password","");

        System.out.println(" auth");
        System.out.println(client);

        System.out.println(" session");
        System.out.println(client.user_session);

        System.out.println(" user");
        System.out.println(client.getUser());

        System.out.println(" getBalance");
        AllBalance allBalances  = client.getAllBalance();
        allBalances.allbalance.forEach(System.out::println);
    }
}

udocs