public class Request extends Object
| Constructor and Description |
|---|
Request() |
| Modifier and Type | Method and Description |
|---|---|
static String |
constructAPIUrl(String url,
String orgid) |
static String |
constructAPIUrl(String url,
String orgid,
String userId) |
static String |
constructAPIUrl(String url,
String orgid,
String userId,
String productId) |
static String |
constructAPIUrl(String url,
String orgid,
String userId,
String productId,
String activityId) |
static String |
constructAPIUrl(String url,
String orgid,
String userId,
String productId,
String activityId,
String attemptId) |
static String |
constructAPIUrl(String url,
String orgid,
String userId,
String productId,
String activityId,
String attemptId,
String questionId) |
static org.json.simple.JSONObject |
makeHTTPGETRequest(String hostname,
String path,
String token) |
static org.json.simple.JSONObject |
makeHTTPPOSTRequest(String hostname,
String path,
org.json.simple.JSONObject obj,
String token) |
public static org.json.simple.JSONObject makeHTTPPOSTRequest(String hostname, String path, org.json.simple.JSONObject obj, String token) throws org.apache.http.HttpException, IOException, org.json.simple.parser.ParseException
org.apache.http.HttpExceptionIOExceptionorg.json.simple.parser.ParseExceptionpublic static org.json.simple.JSONObject makeHTTPGETRequest(String hostname, String path, String token) throws org.apache.http.HttpException, IOException, org.json.simple.parser.ParseException
org.apache.http.HttpExceptionIOExceptionorg.json.simple.parser.ParseExceptionpublic static String constructAPIUrl(String url, String orgid, String userId, String productId)
public static String constructAPIUrl(String url, String orgid, String userId, String productId, String activityId)
public static String constructAPIUrl(String url, String orgid, String userId, String productId, String activityId, String attemptId)
Copyright © 2016. All rights reserved.