orthehelper
orthehelper

Reputation: 4079

Post image to Particular Channel

i am using your api and i have made a success call to upload a photo to my profile. now i am trying to post to Particular channel, what is the value i need to put for channel id.... tried this values : "/channel/{channel_id}" "channel_id" "channel"

    NSString *mediaCaption = [self.uploadedMediaInfo valueForKey:@"text"];
UIImage *img = viewImage;//[self.uploadedMediaInfo valueForKey:UIImagePickerControllerOriginalImage];

NSMutableDictionary *uploadMediaParams = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                          @"jpg",                       @"extension",
                                          /*@"215913",                   @"/channel/{channel_id}",*/
                                          /*mediaCaption,                 @"text",*/
                                          nil];

// Additional parameters relevant to image upload are also added in the postImage request method
[self postImage:img params:uploadMediaParams delegate:self];
[self.uploadedMediaInfo removeAllObjects];

http://developers.mobli.com/documentation/authentication

Upvotes: 0

Views: 91

Answers (1)

Benjamin
Benjamin

Reputation: 26

Please use channels_list[] : An array of mobli channel id's

Upvotes: 1

Related Questions