(add spj & {:as options})
Returns a new spojure object with specified options added. If an option is already present, its value will be overwritten.
Returns a new spojure object with specified options added. If an option is already present, its value will be overwritten.
(options {:keys [config] :as spj})
Returns the options contained in the spojure object. The spojure object itself is available under the :spojure key.
Returns the options contained in the spojure object. The spojure object itself is available under the :spojure key.
(spojure token-src & {:as options})
Creates a new spojure object with token source token-src and the specified options. The spojure object is a configuration object that is passed to every function that calls the Spotify API, such as spojure.player/get-user-queue.
If token-src is a function, it is called before each use of the Spotify API, and is expected to return a core.async channel containing a valid OAuth 2.0 access token. If the access token has expired, it should be refreshed before returning. The spojure library itself deliberately does not deal with token management.
token-src may also be a string containing an OAuth 2.0 access token, which in this case will be repeatedly returned without refreshing. This allows for a quick and working, but non-production setup.
The spojure options configure the behavior of the library when making Spotify API requests, such as the number of retries or error suppression. See the README.md file for a list of supported options.
Creates a new spojure object with token source token-src and the specified options. The spojure object is a configuration object that is passed to every function that calls the Spotify API, such as spojure.player/get-user-queue. If token-src is a function, it is called before each use of the Spotify API, and is expected to return a core.async channel containing a valid OAuth 2.0 access token. If the access token has expired, it should be refreshed before returning. The spojure library itself deliberately does not deal with token management. token-src may also be a string containing an OAuth 2.0 access token, which in this case will be repeatedly returned without refreshing. This allows for a quick and working, but non-production setup. The spojure options configure the behavior of the library when making Spotify API requests, such as the number of retries or error suppression. See the README.md file for a list of supported options.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close