Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
OCaml bindings for the Spotify Web API
module User : sig ... end
An authenticated user that can be used to access user specific information.
type requestError =
| Token of httpError
Bad or expired token. This can happen if the user revoked a token or the access token has expired. You should re-authenticate the user.
*)| OAuth of httpError
Bad OAuth request (wrong consumer key, bad nonce, expired timestamp...). Unfortunately, re-authenticating the user won't help here.
*)| RateLimit of httpError
The app has exceeded its rate limits.
*)| Unknown of httpError
Unexpected error happened.
*)val make : client_id:string -> client_secret:string -> t
val make_empty : t
val login_as_user :
client:t ->
auth_code:string ->
uri:string ->
(User.t, Serde.error) result Lwt.t
val get : user:User.t -> url:string -> (string, requestError) result Lwt.t