All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dft.api.shopify.v202410.ShopifyGraphQlShopAPI Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
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