1.0.0 • Published 5 years ago

itunes-search-client v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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