com.dft.api.shopify.AccessScopeAPI 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;
import com.dft.api.shopify.model.accessscope.AccessScopesWrapper;
import com.dft.api.shopify.model.auth.AccessCredential;
import lombok.SneakyThrows;
import java.net.URI;
import java.net.http.HttpRequest;
import static com.dft.api.shopify.constantcode.ConstantCodes.ACCESS_SCOPES;
import static com.dft.api.shopify.constantcode.ConstantCodes.HTTPS;
import static com.dft.api.shopify.constantcode.ConstantCodes.JSON;
public class AccessScopeAPI extends ShopifySdkNew {
public AccessScopeAPI(AccessCredential accessCredential) {
super(accessCredential);
}
@SneakyThrows
public AccessScopesWrapper getAccessScopes() {
URI uri = new URI(HTTPS + accessCredential.getStoreDomain() + ACCESS_SCOPES + JSON);
HttpRequest request = get(uri);
return getRequestWrapped(request, AccessScopesWrapper.class);
}
}