Hi, I'm trying to get some user information about a single user whitin Java code.
To do this I have this class :
class Rest extends RestAPI {
//constructor
String urlPeople = "http://api.myspace.com/1.0/people/" ;
public JSONObject getInfo(String usrId){
securityContext2.checkIfAuthorized();
HashMap<String,String> parameters = new HashMap<String,String>();
parameters.put("fields","aboutMe");
String url = urlPeople + userId + "/@self" ;
return (JSONObject) getUserData(url, parameters);
}
}
The code above works fine, but how can get more than one parameter ? (for example : "aboutMe" and "age")