com.notronix.etsy.impl.taxonomy.EtsyTaxonomyResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JEtsy Show documentation
Show all versions of JEtsy Show documentation
A Java implementation of a Java version of the Etsy API
package com.notronix.etsy.impl.taxonomy;
import com.notronix.etsy.api.EtsyException;
import com.notronix.etsy.api.authentication.model.Credentials;
import com.notronix.etsy.api.PageableResponse;
import com.notronix.etsy.api.taxonomy.TaxonomyResource;
import com.notronix.etsy.impl.EtsyResource;
import com.notronix.etsy.impl.EtsyMethodExecutor;
import com.notronix.etsy.impl.taxonomy.method.GetSellerTaxonomyNodesMethod;
import com.notronix.etsy.impl.taxonomy.method.GetTaxonomyNodePropertiesMethod;
import com.notronix.etsy.impl.taxonomy.model.EtsyTaxonomy;
import com.notronix.etsy.impl.taxonomy.model.EtsyTaxonomyNodeProperty;
public class EtsyTaxonomyResource extends EtsyResource implements TaxonomyResource
{
public EtsyTaxonomyResource(EtsyMethodExecutor executor, Credentials clientCredentials) {
super(executor, clientCredentials);
}
@Override
public PageableResponse getSellerTaxonomyNodes() throws EtsyException {
return getExecutor().execute(new GetSellerTaxonomyNodesMethod(getClientCredentials()));
}
@Override
public PageableResponse getTaxonomyNodeProperties(Long taxonomyId) throws EtsyException {
return getExecutor().execute(new GetTaxonomyNodePropertiesMethod(getClientCredentials())
.withTaxonomyId(taxonomyId));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy