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

com.notronix.etsy.impl.users.method.GetMeMethod Maven / Gradle / Ivy

There is a newer version: 3.0.0014
Show newest version
package com.notronix.etsy.impl.users.method;

import com.notronix.etsy.api.authentication.model.Credentials;
import com.notronix.etsy.api.Unmarshaller;
import com.notronix.etsy.impl.EtsyMethod;
import com.notronix.etsy.impl.users.model.EtsyGetMeResponse;

public class GetMeMethod extends EtsyMethod
{
    public GetMeMethod(Credentials clientCredentials, Credentials accessCredentials) {
        super(clientCredentials, accessCredentials);
    }

    @Override
    public EtsyGetMeResponse getResponse(Unmarshaller unmarshaller, String payload) {
        return unmarshaller.unmarshal(payload, EtsyGetMeResponse.class);
    }

    @Override
    protected String getURI() {
        return "/application/users/me";
    }

    @Override
    public boolean requiresOAuth() {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy