Back to project page PodioPuzzle.
The source code is released under:
Apache License
If you think the Android project PodioPuzzle 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.podio.podiopuzzle.services.Retrofit; /*from www . java2s.c o m*/ import com.podio.podiopuzzle.config.PodioConfig; import com.podio.podiopuzzle.model.LoginResponseEntity; import com.podio.podiopuzzle.model.Organization; import com.podio.podiopuzzle.model.OrganizationResponseEntity; import java.util.List; import retrofit.Callback; import retrofit.http.Field; import retrofit.http.FormUrlEncoded; import retrofit.http.GET; import retrofit.http.Header; import retrofit.http.POST; /** * Created by goman on 10/29/2014. */ public interface Api { @FormUrlEncoded @POST(PodioConfig.API_PATH_LOGIN) void login( @Field(PodioConfig.API_OAUTH_HEADER_GRANT_TYPE) String grant_type, @Field(PodioConfig.API_OAUTH_HEADER_USERNAME) String username, @Field(PodioConfig.API_OAUTH_HEADER_PASSWORD) String password, @Field(PodioConfig.API_OAUTH_HEADER_CLIENT_ID) String client_id, @Field(PodioConfig.API_OAUTH_HEADER_REDIRECT_URI) String redirect_uri, @Field(PodioConfig.API_OAUTH_HEADER_CLIENT_SECRET) String client_secret, Callback<LoginResponseEntity> callback ); @GET(PodioConfig.API_PATH_GET_ORGANIZATION) void getOrganization(@Header(PodioConfig.API_ORG_HEADER_AUTH) String auth, Callback<List<Organization>> callback); }