View Source Spotify.Responder behaviour (spotify_ex v2.4.0)

Receives http responses from the client and handles them accordingly.

Spotify API modules (Playlist, Album, etc) use Spotify.Responder. When a request is made they give the endpoint URL to the Client, which makes the request, and pass the response to handle_response. Each API module must build appropriate responses, so they add Spotify.Responder as a behaviour, and implement the build_response/1 function.

Link to this section Summary

Link to this section Callbacks

@callback build_response(map()) :: any()