Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yayuyokitano authored Nov 25, 2020
1 parent 86ebc85 commit f82a189
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ The library exports a single class. This class, in turn, creates instances of a
```ts
import LastFMTyped from "lastfm-typed";

const lastfm = new LastFMTyped(api_key, api_secret); //insert key and secret here
const lastfm = new LastFMTyped(api_key, api_secret, UserAgent); //insert key, secret, and user agent here
```

For user agent, please initialize this with an easily identifiable name (preferably one that would lead to your program if googled). You can choose to not set one, in which case `lastfm-typed-npm` will be set as the user agent. This is probably the best idea if your program is not public.

Then we can call methods as needed.

### Examples
Expand Down

0 comments on commit f82a189

Please sign in to comment.