me.pagar.PagarMeRequest Maven / Gradle / Ivy
The newest version!
package me.pagar;
import com.google.common.collect.ImmutableMap;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.List;
import java.util.Map;
import me.pagar.converter.JSonConverter;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.entity.StringEntity;
import java.io.IOException;
import org.json.JSONObject;
public class PagarMeRequest {
private static final String API_ENDPOINT = "https://api.pagar.me/1";
private static final String USER_AGENT = "Mozilla/5.0";
@SerializedName("api_key")
private String apiKey;
private String endPoint;
private String method;
private List