com.dft.api.shopify.v202401.ShopifyLocationAPI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shopify-admin-rest Show documentation
Show all versions of shopify-admin-rest Show documentation
Shopify Admin REST API using JDK 11 and Reactive Programming
The newest version!
package com.dft.api.shopify.v202401;
import com.dft.api.shopify.ShopifySdkNew;
import com.dft.api.shopify.model.auth.AccessCredential;
import com.dft.api.shopify.v202401.model.location.LocationWrapper;
import java.net.URI;
import java.net.http.HttpRequest;
import java.util.HashMap;
import static com.dft.api.shopify.v202401.ShopifyOrdersAPI.VERSION_2024_01;
public class ShopifyLocationAPI extends ShopifySdkNew {
private final String LOCATIONS_ENDPOINT = "/locations";
public ShopifyLocationAPI(AccessCredential accessCredential) {
super(accessCredential);
}
public LocationWrapper getAllLocations(HashMap params) {
URI uri = baseUrl(VERSION_2024_01, LOCATIONS_ENDPOINT);
uri = addParameters(uri, params);
HttpRequest request = get(uri);
return getRequestWrapped(request, LocationWrapper.class);
}
}