Back to project page uppidy-android-sdk.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project uppidy-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.uppidy.android.sdk.connect; /*w w w .j a va2 s . co m*/ import org.springframework.social.oauth2.AbstractOAuth2ServiceProvider; import com.uppidy.android.sdk.api.Uppidy; import com.uppidy.android.sdk.api.impl.UppidyTemplate; /** * Uppidy ServiceProvider implementation. * * @author arudnev@uppidy.com */ public class UppidyServiceProvider extends AbstractOAuth2ServiceProvider<Uppidy> { private String baseUrl; public UppidyServiceProvider(String clientId, String baseUrl) { super(new UppidyOAuth2Template(clientId, baseUrl)); this.baseUrl = baseUrl; } public Uppidy getApi(String accessToken) { return new UppidyTemplate(baseUrl + "/rest/", accessToken); } }