![JAR search and dependency download from the Maven repository](/logo.png)
de.jsone_studios.wrapper.spotify.authentication.AuthSpotifyService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-web-api-java Show documentation
Show all versions of spotify-web-api-java Show documentation
A Java wrapper for Spotify's Web API using Retrofit
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