com.sola.instagram.io.RequestResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of instagram-java Show documentation
Show all versions of instagram-java Show documentation
Java wrapper for Instagram API v1.
package com.sola.instagram.io;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
public class RequestResponse {
String responseString;
public RequestResponse(String responseAsString) {
this.responseString = responseAsString;
}
public JSONObject getJSON() {
JSONObject res =null;
try {
res = new JSONObject(new JSONTokener(getResponseString()));
} catch (JSONException e) {
e.printStackTrace();
}
return res;
}
public String getResponseString() {
return responseString;
}
public void setResponseString(String responseString) {
this.responseString = responseString;
}
}