UNPKG

soundcloud-sync

Version:

Sync your SoundCloud likes to local files

15 lines (14 loc) 549 B
import { Client } from '../types.ts'; /** * Retrieves SoundCloud client credentials by scraping a user's profile page. * * The function: * 1. Fetches the user's profile page * 2. Extracts the API version and client URN * 3. Finds and fetches the script containing the client ID * * @param profileName - SoundCloud username (e.g., 'realies') * @returns Client object with ID, version, and URN for API requests * @throws Error if any required data cannot be found */ export default function getClient(profileName: string): Promise<Client>;