Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.21 KB | None | 0 0
  1. // REQUEST
  2. JSONObject json = new JSONObject();
  3.         json.put("nama_lengkap","andry");
  4.         /*json.put("nama_lengkap_ibu","");
  5.         json.put("nama_lengkap_ayah","");
  6.         json.put("tgl_lahir","");
  7.         json.put("tmpt_lahir","");
  8.         json.put("alamat","");
  9.         json.put("pekerjaan","");*/
  10.         System.out.println("sync response ="+json.toString());
  11.         resp = Requests.post(
  12.                 new RequestParamItem(ip+"/api/ektp/searchDetails/")
  13.                         .addString("json",json.toString())
  14.  
  15.         );
  16.  
  17. // RESPONSE
  18. /*
  19. hwid=af875f1a5341c766f76e996d91f9680d7cdb0f5e
  20. password=1f6f12d77b054de251527d8cc640ec1b185d749b
  21. timestamp=f4181e924e12a4811b77d45c75419c07bbe39b78
  22. username=a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
  23. login response ={"result":{"userid":1},"response":{"code":0,"message":"login success"}}
  24. sync response ={"nama_lengkap":"andry"}
  25. hwid=af875f1a5341c766f76e996d91f9680d7cdb0f5e
  26. json=edeba94307d3cdbcbbcc8976e9923a9259d05d3c
  27. password=1f6f12d77b054de251527d8cc640ec1b185d749b
  28. timestamp=db74d00f65605e1981adcce41ddb3be791fdbc8e
  29. username=a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
  30. identification response ={"result":[],"response":{"code":0,"message":""}}
  31. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement