package com.wecloud.im.sdk.sample;

import com.alibaba.fastjson.JSONObject;
import com.wecloud.im.sdk.WecloudIm;
import com.wecloud.im.sdk.WecloudImClientBuilder;
import com.wecloud.im.sdk.model.ImClient;

/**
 *
 * @Author luozh
 * @Date 2022年04月13日 16:32
 * @Version 1.0
 */
public class RegisterClientSample {

    public static void main(String[] args) {
        WecloudIm im = new WecloudImClientBuilder().build("http://127.0.0.1:8082",
                "QizKVHcILRWp6Td2",
                "287d04828099fb7de871e9dda845fa8b6b2302faf2ab3737");

        String userId = "20220413001";
        String headPortrait = "";
        String nickname = "luo_test1";
        ImClient imClient = im.registerClient(userId, headPortrait, nickname);
        System.out.println("\tregister client result=" + JSONObject.toJSONString(imClient));
    }
}
