Liking cljdoc? Tell your friends :D

qy-upup.tomusic-ai.core

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.
raw docstring

extract-track-id-from-urlclj

(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.
raw docstring

generate-track-urlclj

(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.
raw docstring

mock-track-dataclj

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close