Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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 #
Instances
ToForm RequestAccessTokenForm Source # | |
Defined in Spotify.Servant.Core toForm :: RequestAccessTokenForm -> Form # |
data TokenResponse' Source #
TokenResponse' | |
|
Instances
type RefreshAccessToken = "token" :> (ReqBody '[FormUrlEncoded] RefreshAccessTokenForm :> (Header' '[Strict, Required] "Authorization" IdAndSecret :> Post '[JSON] TokenResponse)) Source #
newtype RefreshAccessTokenForm Source #
Instances
ToForm RefreshAccessTokenForm Source # | |
Defined in Spotify.Servant.Core 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 toUrlPiece :: ScopeSet -> Text # toEncodedUrlPiece :: ScopeSet -> Builder # toHeader :: ScopeSet -> ByteString # toQueryParam :: ScopeSet -> Text # toEncodedQueryParam :: ScopeSet -> Builder # |