Core namespace for interacting with toMusic.ai. Provides utility functions for URL generation and data processing.
Core namespace for interacting with toMusic.ai. Provides utility functions for URL generation and data processing.
(extract-track-id-from-url track-url)Extracts the track ID from a toMusic.ai track URL.
Args: track-url (string): The URL of the track on toMusic.ai.
Returns: string: The track ID extracted from the URL, or nil if the URL is invalid.
Extracts the track ID from a toMusic.ai track URL. Args: track-url (string): The URL of the track on toMusic.ai. Returns: string: The track ID extracted from the URL, or nil if the URL is invalid.
(generate-track-url track-id)Generates a toMusic.ai track URL based on the track ID.
Args: track-id (string): The unique identifier for the track.
Returns: string: The complete URL for the track on toMusic.ai.
Generates a toMusic.ai track URL based on the track ID. Args: track-id (string): The unique identifier for the track. Returns: string: The complete URL for the track on toMusic.ai.
(mock-track-data track-id)(mock-track-data track-id title artist)Generates mock track data for testing purposes.
Args: track-id (string): The unique identifier for the track. title (string): The title of the track. artist (string): The artist of the track.
Returns: map: A map containing mock track data.
Generates mock track data for testing purposes. Args: track-id (string): The unique identifier for the track. title (string): The title of the track. artist (string): The artist of the track. Returns: map: A map containing mock track data.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |