| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Spotify.Servant.Core
Documentation
type Authorize = "authorize" :> (QueryParam' '[Strict, Required] "client_id" ClientId :> (QueryParam' '[Strict, Required] "response_type" Text :> (QueryParam' '[Strict, Required] "redirect_uri" URL :> (QueryParam "state" Text :> (QueryParam "scope" ScopeSet :> (QueryParam "show_dialog" Bool :> Get '[HTML] Text)))))) Source #
type RequestAccessToken = "token" :> (ReqBody '[FormUrlEncoded] RequestAccessTokenForm :> (Header' '[Strict, Required] "Authorization" IdAndSecret :> Post '[JSON] TokenResponse')) Source #
data RequestAccessTokenForm Source #
Constructors
| RequestAccessTokenForm AuthCode URL |
Instances
| ToForm RequestAccessTokenForm Source # | |
Defined in Spotify.Servant.Core Methods toForm :: RequestAccessTokenForm -> Form # | |
data TokenResponse' Source #
Constructors
| TokenResponse' | |
Fields
| |
Instances
type RefreshAccessToken = "token" :> (ReqBody '[FormUrlEncoded] RefreshAccessTokenForm :> (Header' '[Strict, Required] "Authorization" IdAndSecret :> Post '[JSON] TokenResponse)) Source #
newtype RefreshAccessTokenForm Source #
Constructors
| RefreshAccessTokenForm RefreshToken |
Instances
| ToForm RefreshAccessTokenForm Source # | |
Defined in Spotify.Servant.Core Methods toForm :: RefreshAccessTokenForm -> Form # | |
type AuthHeader = Header' '[Strict, Required] "Authorization" AccessToken Source #
type SpotPutAccepted a = AuthHeader :> PutAccepted '[JSON] a Source #
type SpotPutNoContent = AuthHeader :> PutNoContent Source #
type SpotPostCreated a = AuthHeader :> PostCreated '[JSON] a Source #
type SpotDelete a = AuthHeader :> Delete '[JSON] a Source #
type SpotPaging a = QueryParam "limit" Int :> (QueryParam "offset" Int :> SpotGet (Paging a)) Source #
Instances
| ToHttpApiData ScopeSet Source # | |
Defined in Spotify.Servant.Core Methods toUrlPiece :: ScopeSet -> Text # toEncodedUrlPiece :: ScopeSet -> Builder # toHeader :: ScopeSet -> ByteString # toQueryParam :: ScopeSet -> Text # toEncodedQueryParam :: ScopeSet -> Builder # | |