Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added "searchSong" function to README, added search_complete to sampl…

…e return data.
  • Loading branch information...
commit 9f8ef98ad8827a23128d2a1daa82a61c9acf99a0 1 parent 214e33e
Jeff Stieler jeffstieler authored
Showing with 405 additions and 1 deletion.
  1. +16 −1 README.md
  2. +389 −0 turntable_data/search_complete.js
17 README.md
View
@@ -5,7 +5,7 @@ A simple nodejs wrapper for the turntable API
## Installation
npm install ttapi
-Find your `AUTH`, `USERID` and `ROOMID` informations with [this bookmarklet](http://alaingilbert.github.com/Turntable-API/bookmarklet.html).
+Find your `AUTH`, `USERID` and `ROOMID` informations with [this bookmarklet](http://alaingilbert.github.com/Turntable-API/bookmarklet.html).
## Examples
@@ -419,3 +419,18 @@ bot.playlistReorder(indexFrom, indexTo, callback);
bot.playlistReorder(playlistName, indexFrom, indexTo);
bot.playlistReorder(playlistName, indexFrom, indexTo, callback);
```
+
+### searchSong ( query:string, callback:fn )
+
+Search for songs.
+
+#### Arguments
+
+* `query`
+* `callback`
+
+#### Examples
+
+```js
+bot.searchSong(query, callback);
+```
389 turntable_data/search_complete.js
View
@@ -0,0 +1,389 @@
+{
+ "success": true,
+ "internal_call": true,
+ "ip": "xxx.xxx.xxx.xxx",
+ "userids":
+ [
+ "xxxxxxxxxxxxxxxxxxxxxxxx"
+ ],
+ "command": "search_complete",
+ "docs":
+ [
+ {
+ "_id": "4ddc8b7f845daf4c25001d04",
+ "metadata":
+ {
+ "album": "God Shuffled His Feet",
+ "labelid": 3,
+ "song": "Mmm Mmm Mmm Mmm",
+ "coverart": "http://images.mndigital.com/albums/031/460/285/m.jpeg",
+ "artist": "Crash Test Dummies",
+ "length": 233,
+ "mnid": "31460291",
+ "genre": "Rock"
+ }
+ },
+
+ {
+ "_id": "4dd7da70e8a6c478480002c4",
+ "metadata":
+ {
+ "album": "Yoshimi Battles The Pink Robots",
+ "labelid": 1,
+ "song": "Fight Test",
+ "coverart": "http://images.mndigital.com/albums/000/322/557/m.jpeg",
+ "artist": "The Flaming Lips",
+ "length": 254,
+ "mnid": "322559",
+ "genre": "Alternative/Indie"
+ }
+ },
+
+ {
+ "_id": "4e55ad9099968e245207a532",
+ "metadata":
+ {
+ "album": "The R.E.D. Album (Explicit Version)",
+ "labelid": 5,
+ "song": "Drug Test",
+ "coverart": "http://images.mndigital.com/albums/057/397/999/m.jpeg",
+ "artist": "The Game",
+ "length": 166,
+ "mnid": "57398009",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4f84ef4999968e3b61016aec",
+ "metadata":
+ {
+ "album": "Piss Test Feat. Juicy J & Danny Brown",
+ "labelid": 559,
+ "song": "Piss Test (Feat. Juicy J & Dany Brown)",
+ "coverart": "http://images.mndigital.com/albums/066/041/703/m.jpeg",
+ "artist": "ATrak",
+ "length": 223,
+ "mnid": "66041705",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4ddf0656845daf1fa600675a",
+ "metadata":
+ {
+ "album": "Test Drive",
+ "labelid": 5,
+ "song": "Test Drive",
+ "coverart": "http://images.mndigital.com/albums/038/246/477/m.jpeg",
+ "artist": "Keith Sweat",
+ "length": 246,
+ "mnid": "38246479",
+ "genre": "Soul/R&B"
+ }
+ },
+
+ {
+ "_id": "4e80f1ad99968e31730102db",
+ "metadata":
+ {
+ "album": "Ridin' Solo",
+ "labelid": 5,
+ "song": "Test Drive",
+ "coverart": "http://images.mndigital.com/albums/042/031/033/m.jpeg",
+ "artist": "Keith Sweat",
+ "length": 245,
+ "mnid": "42031039",
+ "genre": "Soul/R&B"
+ }
+ },
+
+ {
+ "_id": "4ddf066d845daf1fa6006760",
+ "metadata":
+ {
+ "album": "War Chapter 1\"our Minds In Melee\"",
+ "labelid": 491,
+ "song": "Come Test Me",
+ "coverart": "http://images.mndigital.com/albums/041/018/735/m.jpeg",
+ "artist": "8.5.24.",
+ "length": 277,
+ "mnid": "41018751",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4dec4346845daf4b25000033",
+ "metadata":
+ {
+ "album": "Get Up On It",
+ "labelid": 1,
+ "song": "Put Your Lovin' Through The Test",
+ "coverart": "http://images.mndigital.com/albums/002/919/519/m.jpeg",
+ "artist": "Keith Sweat",
+ "length": 274,
+ "mnid": "2919529",
+ "genre": "Soul/R&B"
+ }
+ },
+
+ {
+ "_id": "4dec434d845daf4b25000035",
+ "metadata":
+ {
+ "album": "Outraged And Underage",
+ "labelid": 18,
+ "song": "Test Tube Baby",
+ "coverart": "http://images.mndigital.com/albums/033/414/239/m.jpeg",
+ "artist": "Tyga",
+ "length": 164,
+ "mnid": "33414253",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4f7daf1199968e6076002f65",
+ "metadata":
+ {
+ "album": "Part Lies Part Heart Part Truth Part Garbage 1982-2011",
+ "labelid": 1,
+ "song": "New Test Leper",
+ "coverart": "http://images.mndigital.com/albums/060/558/055/m.jpeg",
+ "artist": "R.E.M.",
+ "length": 324,
+ "mnid": "60558133",
+ "genre": "Rock"
+ }
+ },
+
+ {
+ "_id": "4df2030999968e3197000e59",
+ "metadata":
+ {
+ "album": "Madvillainy (Parental Advisory)",
+ "labelid": 44,
+ "song": "Operation Lifesaver AKA Mint Test",
+ "coverart": "http://images.mndigital.com/albums/005/142/497/m.jpeg",
+ "artist": "Madvillain",
+ "length": 90,
+ "mnid": "5142515",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "mn_50028115",
+ "metadata":
+ {
+ "album": "Street Gospel - \"The Old Test Of Men\" (Hosted By Big Mike)",
+ "labelid": 1125,
+ "song": "Outro",
+ "coverart": "http://images.mndigital.com/albums/050/028/031/m.jpeg",
+ "artist": "Big Mike",
+ "length": 48,
+ "mnid": "50028115",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4de6914c845daf4c75000e3d",
+ "metadata":
+ {
+ "album": "Volume One",
+ "labelid": 524,
+ "song": "This Is Not A Test",
+ "coverart": "http://images.mndigital.com/albums/013/240/695/m.jpeg",
+ "artist": "She & Him",
+ "length": 210,
+ "mnid": "13240699",
+ "genre": "Alternative/Indie"
+ }
+ },
+
+ {
+ "_id": "4defca7c99968e64110001b6",
+ "metadata":
+ {
+ "album": "Fight Test",
+ "labelid": 1,
+ "song": "Do You Realize??",
+ "coverart": "http://images.mndigital.com/albums/000/882/263/m.jpeg",
+ "artist": "The Flaming Lips",
+ "length": 545,
+ "mnid": "882273",
+ "genre": "Alternative/Indie"
+ }
+ },
+
+ {
+ "_id": "4dec4347845daf0c6d000274",
+ "metadata":
+ {
+ "album": "When The North & South Collide Unloaded",
+ "labelid": 44,
+ "song": "Come Test Us",
+ "coverart": "http://images.mndigital.com/albums/051/828/073/m.jpeg",
+ "artist": "Charlie Bmore",
+ "length": 198,
+ "mnid": "51828085",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4ddd5b12845daf4c25005374",
+ "metadata":
+ {
+ "album": "God Shuffled His Feet",
+ "labelid": 3,
+ "song": "God Shuffled His Feet",
+ "coverart": "http://images.mndigital.com/albums/031/460/285/m.jpeg",
+ "artist": "Crash Test Dummies",
+ "length": 309,
+ "mnid": "31460287",
+ "genre": "Rock"
+ }
+ },
+
+ {
+ "_id": "4df1154899968e35c00002c2",
+ "metadata":
+ {
+ "album": "God Shuffled His Feet",
+ "labelid": 3,
+ "song": "Afternoons & Coffeespoons",
+ "coverart": "http://images.mndigital.com/albums/031/460/285/m.jpeg",
+ "artist": "Crash Test Dummies",
+ "length": 236,
+ "mnid": "31460289",
+ "genre": "Rock"
+ }
+ },
+
+ {
+ "_id": "mn_4174471",
+ "metadata":
+ {
+ "album": "Struggles & Test",
+ "labelid": 29,
+ "song": "Boy To A Man",
+ "coverart": "http://images.mndigital.com/albums/004/174/461/m.jpeg",
+ "artist": "God's Son",
+ "length": 209,
+ "mnid": "4174471",
+ "genre": "Christian/Gospel"
+ }
+ },
+
+ {
+ "_id": "4e2e2f5c99968e417512110c",
+ "metadata":
+ {
+ "album": "Outraged And Underage",
+ "labelid": 18,
+ "song": "Test Tube Baby - Skit",
+ "coverart": "http://images.mndigital.com/albums/033/414/239/m.jpeg",
+ "artist": "Tyga",
+ "length": 13,
+ "mnid": "33414249",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4e55731f99968e244d074998",
+ "metadata":
+ {
+ "album": "The R.E.D. Album",
+ "labelid": 5,
+ "song": "Drug Test",
+ "coverart": "http://images.mndigital.com/albums/057/397/899/m.jpeg",
+ "artist": "The Game",
+ "length": 166,
+ "mnid": "57397911",
+ "genre": "Rap/Hip Hop"
+ }
+ },
+
+ {
+ "_id": "4ddd0d59845daf4c250036b7",
+ "metadata":
+ {
+ "album": "Little Dragon",
+ "labelid": 2,
+ "song": "Test",
+ "coverart": "http://images.mndigital.com/albums/033/662/553/m.jpeg",
+ "artist": "Little Dragon",
+ "length": 268,
+ "mnid": "33662573",
+ "genre": "Pop"
+ }
+ },
+
+ {
+ "_id": "4dec4349845daf6ee4000231",
+ "metadata":
+ {
+ "album": "My Songbook",
+ "labelid": 1,
+ "song": "It's Only A Test (Album Version)",
+ "coverart": "http://images.mndigital.com/albums/050/910/067/m.jpeg",
+ "artist": "Bishop Larry Trotter & Sweet Holy Spirit",
+ "length": 350,
+ "mnid": "50910073",
+ "genre": "Christian/Gospel"
+ }
+ },
+
+ {
+ "_id": "4e53335599968e2450044a3f",
+ "metadata":
+ {
+ "album": "What's 2 Come is Better Than What's Been!!",
+ "labelid": 1,
+ "song": "It's Only A Test (Album Version)",
+ "coverart": "http://images.mndigital.com/albums/024/956/955/m.jpeg",
+ "artist": "Bishop Larry Trotter & Sweet Holy Spirit",
+ "length": 351,
+ "mnid": "24956965",
+ "genre": "Christian/Gospel"
+ }
+ },
+
+ {
+ "_id": "4dec434a845daf0c6d000275",
+ "metadata":
+ {
+ "album": "The Ghosts That Haunt Me",
+ "labelid": 3,
+ "song": "Superman's Song",
+ "coverart": "http://images.mndigital.com/albums/031/509/507/m.jpeg",
+ "artist": "Crash Test Dummies",
+ "length": 271,
+ "mnid": "31509517",
+ "genre": "Pop"
+ }
+ },
+
+ {
+ "_id": "4e270d0499968e417b041148",
+ "metadata":
+ {
+ "album": "Soul Of A Woman",
+ "labelid": 5,
+ "song": "Kiss Test",
+ "coverart": "http://images.mndigital.com/albums/000/698/753/m.jpeg",
+ "artist": "Kelly Price",
+ "length": 246,
+ "mnid": "698761",
+ "genre": "Soul/R&B"
+ }
+ }
+ ],
+ "query": "test",
+ "page": 1
+}
Please sign in to comment.
Something went wrong with that request. Please try again.