Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

How to get multiple songs in iOS using song/profile

$
0
0

I read this thread that shows how to request information on multiple songs using song/profile using this [URL][2]: http://developer.echonest.com/api/v4/song/profile?api_key=API_KEY&format=json&id=SOATBBX1311AFDC272&id=SOBTLUJ1315CD4A54B&bucket=audio_summary

I'm trying to replicate this using iOS: NSMutableDictionary *parameters = [NSMutableDictionary new]; [parameters setValue:@"left blank" forKey:@"api_key"]; [parameters setValue:@"SODRXBW13666C466B2" forKey:@"id"]; [parameters setValue:@"SOCYEHS1311AFDE267" forKey:@"id"]; [parameters setValue:@"audio_summary" forKey:@"bucket"];

I'm only getting data for the second (last) song id, since the first id Key is being overwritten by the second id Key, of course.

I also tried stuffing both song ids into the same parameter value, which returned 0 songs: [parameters setValue:@"SODRXBW13666C466B2,SOCYEHS1311AFDE267" forKey:@"id"];

I also saw in that post that creating a taste profile to retrieve many songs back is recommended but I'd first like to understand how to do it this way.

Thanks

[2]: e.g. http://developer.echonest.com/api/v4/song/profile?api_key=API_KEY&format=json&id=SOATBBX1311AFDC272&id=SOBTLUJ1315CD4A54B&bucket=audio_summary


Viewing all articles
Browse latest Browse all 1582

Trending Articles