-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathRemarkExample.java
More file actions
38 lines (29 loc) · 970 Bytes
/
RemarkExample.java
File metadata and controls
38 lines (29 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package io.rong.example.group;
import io.rong.CenterEnum;
import io.rong.RongCloud;
import io.rong.models.Result;
/**
* Demo class
*
* @author RongCloud
*
*/
public class RemarkExample {
/**
* Replace with your App Key
*/
private static final String appKey = "appKey";
/**
* Replace with your App Secret
*/
private static final String appSecret = "appSecret";
public static void main(String[] args) throws Exception {
RongCloud rongCloud = RongCloud.getInstance(appKey, appSecret, CenterEnum.BJ);
Result result = rongCloud.group.remark.set("userId", "groupId", "remark");
System.out.println("set remark: " + result.toString());
result = rongCloud.group.remark.del("userId", "groupId1");
System.out.println("del remark: " + result.toString());
result = rongCloud.group.remark.get("abc", "abcaa");
System.out.println("get remark: " + result.toString());
}
}