-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.java
More file actions
33 lines (26 loc) · 1.04 KB
/
Copy pathtest.java
File metadata and controls
33 lines (26 loc) · 1.04 KB
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
package com.sokt.utils;
import com.sokt.utils.SoktApiConect;
import com.sokt.utils.Argument;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
class test {
public static void main(String[] args){
SoktApiConect connect = new SoktApiConect("Team rahul-telfmz", "jQAxxdRZUPeiU6yipZcy");
Map<String, Argument> body = new HashMap<String, Argument>();
body.put("num1", new Argument("data", "tefdsafsdafasdfsadstse"));
body.put("num2", new Argument("data","vipin"));
try{
Map<String, Object> response = connect.callSocket("mNzYZ8uChKwxHda2VgC5", "team-rahul-testforgithub", body);
if(response.get("success") != null){
System.out.println("success: " + response.get("success"));
System.out.println("invocation_id: " + response.get("invocation_id"));
System.out.println("response_url: " + response.get("response_url"));
}else{
System.out.println("error: " + response.get("error"));
}
}catch(Exception e){
System.out.println("Error: " + e);
}
}
}