package com.avangate.api.samples;

import com.avangate.api.rest.ApiClient;
import javax.ws.rs.core.Response;

public class ListProducts
{
    public static void main( String[] args )
    {
        String merchantCode = "AVLRNG";
        String merchantSecret = "1sGC*[c_T0)J9(k+]6Kw";
        String apiUrl = "https://api.avangate.com/rest/3.0/";

        ApiClient client = new ApiClient(merchantCode, merchantSecret, apiUrl);

        Response response = client.get("products/");

        String products = response.readEntity(String.class);

        System.out.println("status: " + response.getStatus());
        System.out.println("headers: " + response.getHeaders());
        System.out.println("body:" + products);

    }
}

@@ -217,14 +217,8 @@
  = %22
-AVLRNG
 %22;%0A 
@@ -253,28 +253,8 @@
  = %22
-1sGC*%5Bc_T0)J9(k+%5D6Kw
 %22;%0A 
@@ -281,42 +281,8 @@
  = %22
-https://api.avangate.com/rest/3.0/
 %22;%0A%0A

Update ListProducts.java