public final class WebAPI extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
API_ROOT |
(package private) String |
apiKey |
(package private) String |
iface |
| Modifier and Type | Method and Description |
|---|---|
KeyValue |
authenticateUser(String steamid,
String sessionKey,
String encryptedLoginKey,
String method) |
KeyValue |
call(String func) |
KeyValue |
call(String func,
int version) |
KeyValue |
call(String func,
int version,
Map<String,String> args) |
KeyValue |
call(String func,
int version,
Map<String,String> args,
String method) |
KeyValue |
call(String func,
int version,
Map<String,String> args,
String method,
boolean secure)
Manually calls the specified Web API function with the provided details.
|
private KeyValue |
tryInvokeMember(String functionName,
Map<String,String> apiArgs) |
String iface
String apiKey
final String API_ROOT
public KeyValue call(String func, int version, Map<String,String> args, String method, boolean secure) throws IOException
func - The function name to call.version - The version of the function to call.args - A dictionary of string key value pairs representing arguments to be passed to the API.method - The http request method. Either "POST" or "GET".secure - if set to true this method will be called through the secure API.KeyValue object representing the results of the Web API call.IOException - A network error occurred when performing the request.public KeyValue call(String func, int version, Map<String,String> args, String method) throws IOException
IOExceptionpublic KeyValue call(String func, int version, Map<String,String> args) throws IOException
IOExceptionpublic KeyValue call(String func, int version) throws IOException
IOExceptionpublic KeyValue call(String func) throws IOException
IOExceptionpublic KeyValue authenticateUser(String steamid, String sessionKey, String encryptedLoginKey, String method)
Copyright © 2012. All Rights Reserved.