Search code examples
iosobjective-ctumblr

Share a link on Tumblr from iOS app


I've been googling around to find a way to share a link in tumbler... I just found sharekit to do this, and I really don't like it... What other options do you think I have for this?

I can't believe there are no libraries to achieve this in a relatively easy way...

Any idea?

Thanks!


Solution

  • Just found this!

    TMTumblrSDK

    It works fine! To make a text post you just have to:

    NSDictionary *parameters = [[NSDictionary alloc] initWithObjectsAndKeys:
                                        @"Titulo",@"title",
                                        @"Este es el body",@"body",nil];
    
    [[TMAPIClient sharedInstance] post:@"blogName" type:@"text" parameters:parameters callback:^(id var, NSError *error){
         NSLog(@"Error %@",error);        
    }];
    

    I hope it helps someone!