com.lajospolya.spotifyapiwrapper.body.AuthorizationCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotify-api-wrapper Show documentation
Show all versions of spotify-api-wrapper Show documentation
This project wraps the Spotify public API in order to allow users to intuitively use it
package com.lajospolya.spotifyapiwrapper.body;
public class AuthorizationCode implements UrlEncoded
{
private String code;
private String redirectUri;
public AuthorizationCode(String code, String redirectUri)
{
this.code = code;
this.redirectUri = redirectUri;
}
@Override
public String toUrlEncodedString()
{
return "grant_type=authorization_code&code=" + code + "&redirect_uri=" + redirectUri;
}
}