类 RequestHandler
- java.lang.Object
-
- cn.authing.guard.social.web.helpers.RequestHandler
-
public class RequestHandler extends Object
-
-
方法详细资料
-
sendPost
public static String sendPost(String r_url, JSONObject postDataParams) throws IOException, JSONException
Method that handles Post request- 返回:
- String - response from API, null if failed
- 抛出:
IOExceptionJSONException
-
sendGet
public static String sendGet(String url, String accessToken) throws IOException
Method that handles Get request- 返回:
- String - response from API, null if failed
- 抛出:
IOException
-
-