com.notronix.etsy.impl.method.GetAvatarImgSrcMethod 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.method;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.util.Map;
import static com.notronix.etsy.api.EtsyAPI.__SELF__;
import static java.util.Objects.requireNonNull;
public class GetAvatarImgSrcMethod extends AbstractEtsyMethod
{
private String userId;
@Override
public boolean requiresOAuth() {
return __SELF__.equals(userId);
}
@Override
public String getURI() {
return "/users/" + requireNonNull(userId) + "/avatar/src";
}
@Override
public String getResponse(Gson gson, String jsonPayload) {
EtsyResponse
© 2015 - 2024 Weber Informatics LLC | Privacy Policy