代码拉取完成,页面将自动刷新
BaseTest.java
```java
public class BaseTest {
public final static String SERVER_URL = "http://demo.api.shadowvc.com/rest";
public final static String VERSION = "0.1";
public final static String SIGN_METHOD = "md5";
public final static String FORMAT = "json";
public final static String APP_KEY = "MODULE-20140629174446096";
public final static String SECRET = "z3aUdadaU2cmAeAA";
public final static String TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
public EopClient getClient() {
EopClient client = new DefaultEopClient(SERVER_URL, APP_KEY, SECRET);
return client;
}
}
```
UserGetRequestTest.java
```java
public class UserGetRequestTest extends BaseTest {
@Test
public void test() throws ApiException {
UserGetRequest request = new UserGetRequest();
request.setUserId(1L);
UserGetResponse resp = getClient().execute(request);
System.out.println(resp.getBody());
Assert.assertNotNull(resp);
}
}
```
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。