|
|
@@ -65,15 +65,6 @@ public class TestSdk {
|
|
|
System.out.println(JSON.toJSONString(response));
|
|
|
}
|
|
|
|
|
|
- @Test
|
|
|
- public void sendPhoneValidateCode() throws ClientException {
|
|
|
- Map<String, Object> dataMap = new HashMap<>();
|
|
|
- dataMap.put("phone", "18073113117");
|
|
|
- dataMap.put("captchaCode", "u5yzs");
|
|
|
- dataMap.put("captchaKey", "8f730efa1be59ac28b17b93a611a029d");
|
|
|
- Response<Map<String, Object>> response = this.getClient().execute("oauth2.send.phone.validate.code", "1.0.0", dataMap);
|
|
|
- System.out.println(JSON.toJSONString(response));
|
|
|
- }
|
|
|
|
|
|
@Test
|
|
|
public void socialSubmit() throws ClientException {
|
|
|
@@ -112,4 +103,30 @@ public class TestSdk {
|
|
|
Response<Map<String, Object>> response = this.getClient().execute("oauth2.social.remove", "1.0.0", dataMap);
|
|
|
System.out.println(JSON.toJSONString(response));
|
|
|
}
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void getImageCaptcha() throws ClientException {
|
|
|
+ Map<String, Object> dataMap = new HashMap<>();
|
|
|
+ Response<Map<String, Object>> response = this.getClient().execute("oauth2.get.image.captcha", "1.0.0", dataMap);
|
|
|
+ System.out.println(JSON.toJSONString(response));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void sendPhoneValidateCode() throws ClientException {
|
|
|
+ Map<String, Object> dataMap = new HashMap<>();
|
|
|
+ dataMap.put("phone", "18073113117");
|
|
|
+ dataMap.put("captchaCode", "dj4ut");
|
|
|
+ dataMap.put("captchaKey", "e999b43fb1fd1195c94ecd224dfe9dcd");
|
|
|
+ Response<Map<String, Object>> response = this.getClient().execute("oauth2.send.phone.validate.code", "1.0.0", dataMap);
|
|
|
+ System.out.println(JSON.toJSONString(response));
|
|
|
+ }
|
|
|
+ @Test
|
|
|
+ public void sendPhoneLogin() throws ClientException {
|
|
|
+ Map<String, Object> dataMap = new HashMap<>();
|
|
|
+ dataMap.put("phone", "18073113117");
|
|
|
+ dataMap.put("code", "144233");
|
|
|
+ dataMap.put("id", "c6ce12e5a7e25fd4a23b66fba9bf70ee");
|
|
|
+ Response<Map<String, Object>> response = this.getClient().execute("oauth2.phone.login", "1.0.0", dataMap);
|
|
|
+ System.out.println(JSON.toJSONString(response));
|
|
|
+ }
|
|
|
}
|