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

get spotify bucket track list in ENiOS

$
0
0

Use something like this:

NSMutableDictionary *parameters = [NSMutableDictionary new];

[parameters setValue:@"weezer" forKey:@"artist"];
[parameters setValue:@"artist-radio" forKey:@"type"];
[parameters setValue:@"true" forKey:@"limit"];

NSArray *buckets = @[@"id:spotify-WW", @"tracks"];
[parameters setValue:buckets forKey:@"bucket"];
[parameters setValue:[NSNumber numberWithInteger:15] forKey:@"results"];

[ENAPIRequest GETWithEndpoint:@"playlist/static"
       andParameters:parameters
       andCompletionBlock:^(ENAPIRequest *request) {
               NSObject * songs = [request.response valueForKeyPath:@"response.songs"];

      }];

Paul


Viewing all articles
Browse latest Browse all 1582

Trending Articles