itunes-search-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

itunes-search-client

Client for itunes search api.
It is designed to make API URL easily by using TypeScript and VSCode.

demo

Usage

import isc from 'itunes-search-client'
 
(async () => {
  const res = await isc('foo').media('music').entity('song').attribute('songTerm').send()
  const json = await res.json()
  console.log(json);
})()

If you want to use axios

import isc from 'itunes-search-client'
import axios from 'axios'
 
(async () => {
  const url = isc('foo').media('music').entity('song').attribute('songTerm').getUrl()
  const { data } = await axios.get(url)
  console.log(data);
})()

API

license

MIT

Package Sidebar

Install

npm i itunes-search-client

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

32.4 kB

Total Files

17

Last publish

Collaborators

  • highhi