Package pl.icedev.rpc.sample

Source Code of pl.icedev.rpc.sample.ClientTest

package pl.icedev.rpc.sample;

import pl.icedev.rpc.client.JSONRPC;

import java.io.IOException;

public class ClientTest {

    public static void main(String[] args) throws IOException {
        JSONRPC rpc = new JSONRPC("localhost", 6949);
        rpc.setAuthKey("test");

        Object resp = rpc.call("createUser", "Example");

        System.out.println(resp);

        rpc.close();
    }

}
TOP

Related Classes of pl.icedev.rpc.sample.ClientTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.