com.sola.instagram.io.DeleteMethod 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.
The newest version!
package com.sola.instagram.io;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.HttpResponse;
import java.io.InputStream;
public class DeleteMethod extends APIMethod {
public DeleteMethod() {
super();
}
public DeleteMethod(String methodUri) {
super(methodUri);
this.type = "DELETE";
}
@Override
protected InputStream performRequest() throws Exception {
HttpDelete delete = new HttpDelete(this.methodUri);
HttpResponse response = client.execute(delete);
InputStream stream = response.getEntity().getContent();
return stream;
}
}