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

de.jsone_studios.wrapper.spotify.authentication.AuthSpotifyService Maven / Gradle / Ivy

The newest version!
package de.jsone_studios.wrapper.spotify.authentication;

import de.jsone_studios.wrapper.spotify.models.AuthTokens;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;

interface AuthSpotifyService
{
    @POST("api/token")
    @FormUrlEncoded
    Call getAuthTokens(@Header("Authorization") String authHeaderValue, @Field("grant_type") String grantType,
                                   @Field("code") String code, @Field("redirect_uri") String redirectUri);

    @POST("api/token")
    @FormUrlEncoded
    Call getAuthTokens(@Header("Authorization") String authHeaderValue, @Field("grant_type") String grantType,
                                   @Field("refresh_token") String refreshToken);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy