title: Woocommerce API get all products
body: <p>I tried to get product from API with some parameters. I used  <a href="https://github.com/icoderman/wc-api-java" rel="nofollow noreferrer">WooCommerce API Java Wrapper</a>. REST API with OAuth 1.0. Simple getAll method return list of one page (10 products). To get all i must set how much products must be in one page and use offset. To get third page must send this parameters: "per_page=10&amp;offset=20". I test with query in get&amp;post programm - all work. In Java, when i added parameters - i got error (401)- "Invalid signature - the provided signature did not match".
  I changed WooCommerceAPI class:</p>
  
  <pre><code>private static final String API_URL_FORMAT = "%s/wp-json/wc/v2/%s";
      private static final String API_URL_ONE_ENTITY_FORMAT = "%s/wp-json/wc/v2/%s/%d";
      private HttpClient client;
      private OAuthConfig config;
   public List getAll(String endpointBase) {
          String url = String.format(API_URL_FORMAT, config.getUrl(), endpointBase) + "?per_page=10&amp;offset=20";
          String signature = OAuthSignature.getAsQueryString(config, url, HttpMethod.GET);
          String securedUrl = String.format("%s&amp;%s", url, signature);
          System.out.println("url="+url);
          System.out.println("securedUrl="+securedUrl);
          return client.getAll(securedUrl);
      }
  </code></pre>
  
  <p>But I have got the same error.</p>