Documentation
¶
Overview ¶
Package amazon provides shared handlers for mocking the Amazon LWA API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleProfile ¶
func HandleProfile(w http.ResponseWriter, r *http.Request)
HandleProfile simulates the Amazon LWA user profile endpoint. LWA returns "user_id" and "name" (not "id" / "display_name" like Spotify).
func HandleToken ¶
func HandleToken(w http.ResponseWriter, r *http.Request)
HandleToken simulates the Amazon LWA token endpoint. Amazon requires client_id and client_secret as POST body fields, not HTTP Basic Auth.
func NewAmazonHandler ¶
NewAmazonHandler returns a new http.Handler configured with Amazon LWA mock endpoints.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.