UNPKG

@musicorum/lastfm

Version:

Fully typed [Last.fm](https://last.fm) api client library written and made for Typescript!

13 lines (10 loc) 329 B
import type { LastClient } from '../LastClient' export class Utilities { constructor(private client: LastClient) {} /** * Returns the URL to the Last.fm authentication page */ buildDesktopAuthURL(token: string): string { return `https://www.last.fm/api/auth/?api_key=${this.client.apiKey}&token=${token}` } }