Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Need help with iTunes Search API callback function
Old 07-21-2009, 04:52 PM Need help with iTunes Search API callback function
jameswhite's Avatar
Average Talker

Posts: 15
Name: James White
Trades: 0
I'm not going to explain all the details of where I get my search values from but basically a link like this is generated:

http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsSearch?term="Search Term Goes Here"

This returns some JSON like this for example:
Code:
{
 "resultCount":1,
 "results": [
{"wrapperType":"track", "kind":"song", "artistId":472054, "collectionId":184335550, "trackId":184335659, "artistName":"John Mayer", "collectionName":"Continuum", "trackName":"Belief", "collectionCensoredName":"Continuum", "trackCensoredName":"Belief", "artistViewUrl":"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=472054&uo=4", "collectionViewUrl":"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=184335659&id=184335550&s=143441&uo=4", "trackViewUrl":"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?i=184335659&id=184335550&s=143441&uo=4", "previewUrl":"http://a1326.phobos.apple.com/us/r1000/032/Music/e0/dc/ff/mzi.jffbdfrt.aac.p.m4p", "artworkUrl60":"http://a1.phobos.apple.com/us/r1000/036/Features/ec/11/bc/dj.eyubftes.60x60-50.jpg", "artworkUrl100":"http://a1.phobos.apple.com/us/r1000/036/Features/ec/11/bc/dj.eyubftes.100x100-75.jpg", "collectionPrice":9.99000, "trackPrice":0.99000, "collectionExplicitness":"notExplicit", "trackExplicitness":"notExplicit", "discCount":1, "discNumber":1, "trackCount":12, "trackNumber":3, "trackTimeMillis":242250, "country":"USA", "currency":"USD", "primaryGenreName":"Rock"}
}
I need help writing some sort of javascript that will pick out certain values from this.

For example the 'track view url' and then take the user to this URL.

Thanks, James
jameswhite is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-22-2009, 05:24 PM Re: Need help with iTunes Search API callback function
jameswhite's Avatar
Average Talker

Posts: 15
Name: James White
Trades: 0
Anyone got any ideas on how to do this ?
jameswhite is offline
Reply With Quote
View Public Profile
 
Old 07-23-2009, 12:30 PM Re: Need help with iTunes Search API callback function
jameswhite's Avatar
Average Talker

Posts: 15
Name: James White
Trades: 0
That isn't really relevant to my question at all...

[ Check his other posts he is just spamming ]
jameswhite is offline
Reply With Quote
View Public Profile
 
Old 07-26-2009, 09:59 AM Re: Need help with iTunes Search API callback function
jameswhite's Avatar
Average Talker

Posts: 15
Name: James White
Trades: 0
Any help really would be appreciated !
jameswhite is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help with iTunes Search API callback function
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13538 seconds with 12 queries