com.dft.api.shopify.v202410.ShopifyGraphQlShopAPI Maven / Gradle / Ivy
package com.dft.api.shopify.v202410;
import com.dft.api.shopify.ShopifyGraphQLSdk;
import com.dft.api.shopify.model.auth.AccessCredential;
import com.dft.api.shopify.v202410.model.common.GraphQlQuery;
import com.dft.api.shopify.v202410.model.common.QueryResponse;
import com.dft.api.shopify.v202410.model.shop.ShopResponse;
import com.fasterxml.jackson.core.type.TypeReference;
public class ShopifyGraphQlShopAPI extends ShopifyGraphQLSdk {
public ShopifyGraphQlShopAPI(AccessCredential accessCredential) {
super(accessCredential);
}
public QueryResponse getShop() {
GraphQlQuery graphQlQuery = new GraphQlQuery();
graphQlQuery.setQuery("query { shop { id name ianaTimezone email billingAddress { phone countryCodeV2 } currencyCode weightUnit plan { displayName } createdAt } }");
return getQueryData(graphQlQuery, new TypeReference<>() {});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy