Skip to content

Instantly share code, notes, and snippets.

@saiday
Last active August 29, 2015 13:56
Show Gist options
  • Save saiday/8808804 to your computer and use it in GitHub Desktop.
Save saiday/8808804 to your computer and use it in GitHub Desktop.
setupNewSourceGetter
- (void)getPreviews:(NSString *)itunesAPI
{
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
[manager GET:itunesAPI parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
[[HysteriaPlayerManager sharedInstance] setupNewSourceGetter:responseObject];
} failure:nil];
}
- (IBAction)PreviewU2:(id)sender
{
NSString *itunesAPIU2 = @"https://itunes.apple.com/lookup?amgArtistId=5723&entity=song&limit=5&sort=recent";
[self getPreviews:itunesAPIU2];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment