Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

itunes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itunes

An implementation of the iTunes API in NodeJS

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

iTunes: an implementation of the iTunes API in Node.js.

Authored by Garrett Wilkin (http://geethink.com/blog)

It uses both the iTunes API for retrieving media information and the LinkShare API for generating affiliate links to the iTunes store. See an example in simple-node.js.

Currently, the iTunes API is implemented and tested for searching for album information. A callback function is required in order to use this package. The basic steps to using it are:

  1. Decide that you want to retrieve some media meta data (only albums supported currently)
  2. Write a callback function to process this meta data (display it, store it in a database etc.)
  3. Initialize an instance of iTunes.
  4. Call lookupAlbum supplying the media information (e.g. album name, artist name) and the callback function that will process the result.

A very basic use:

var itunesClient = new iTunes();
itunesClient.lookupAlbum({artist: 'Smashing Pumpkins', album: 'Siamese Dream'}, function(error, album) {
  <callback function definition>
  }
);

See demo files for a practical examples of the libraries in action.

Keywords

FAQs

Package last updated on 01 Nov 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc