ios - getting video thumbnails from vimeo -


in app want display videos uploaded particular user in vimeo account. have completed oauth steps , got video_id's of video's uploaded user. tried download thumbnails videos can displayed in table view or collection view. vimeo has provided api method using got response this:

nsurl *url = [[nsurl alloc] initwithstring:@"http://vimeo.com/api/rest/v2?format=json&method=vimeo.videos.getthumbnailurls&video_id=72961770"]; 

but pasted user id there. tried approach user id loaded dynamically.

 nsurl *url = [[nsurl alloc] initwithstring:@"http://vimeo.com/api/rest/v2?format=json&method=vimeo.videos.getthumbnailurls"];     oamutableurlrequest *request = [[oamutableurlrequest alloc]initwithurl:url consumer:consumer token:token realm:nil signatureprovider:nil];       oarequestparameter *p0 = [[oarequestparameter alloc] initwithname:@"video_id" value:[array objectatindex:0]];       nsarray *params = [nsarray arraywithobject:p0];     [request setparameters:params]; 

but got error saying msg = method not found. can me id dynamically or there way give video_id parameter url. thank you

create string url , paste until video_id=.

nsstring *url = @"http://vimeo.com/api/rest/v2?format=json&method=vimeo.videos.getthumbnailurls&video_id="; 

and after use stringbyappendingstring method append video_id value , use it. not direct way somehow enables video thumbnails dynamically without having paste it


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -