3 Star 2 Fork 0

松鼠/shadowvc-sdk-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README 956 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenxiaochun 提交于 2016-03-20 20:58 . markdown
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);
}
}
```
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/winixi/shadowvc-sdk-java.git
git@gitee.com:winixi/shadowvc-sdk-java.git
winixi
shadowvc-sdk-java
shadowvc-sdk-java
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385