0

In my application I want to share text via tumblr api.

I just want some hint on this so I can get exact idea on how to share text on tumblr.

Thanks

S S
  • 193
  • 1
  • 1
  • 11
  • Here you are the hint: Tumblr most certainly has some sort of API documentation - read it and benefit from it. –  Mar 30 '13 at 08:14
  • @H2CO3 ok thanks for reply. I will check that API document – S S Mar 30 '13 at 08:18
  • http://stackoverflow.com/questions/14627481/unable-to-post-on-tumblr-from-ios-oauth1-0-oaconsumer-client and http://stackoverflow.com/questions/13591172/how-to-share-text-over-to-tumblr-using-xcode – iPatel Mar 30 '13 at 08:27
  • @H2CO3, thanks I achieved that :) – S S Mar 30 '13 at 08:31
  • @SS Very good, you're welcome. Have you found something useful? –  Mar 30 '13 at 08:32
  • @H2CO3 yes I found api for sharing test on Tumblr – S S Apr 01 '13 at 05:28

1 Answers1

0

You can can use https://github.com/tumblr/TMTumblrSDK#authentication

i have shared text to tumblr with below code

    NSArray* paramsKeys = [[NSArray alloc] initWithObjects:
                       @"title",
                       @"body",
                       nil];
    NSArray* paramsVals = [[NSArray alloc] initWithObjects:
                       @"Testing",
                       @"HEllo Posting it to Tumblr",
                       nil];
    NSDictionary *paramsDict = [[NSDictionary alloc]initWithObjects:paramsVals forKeys:paramsKeys];



    [[TMAPIClient sharedInstance]text:@"blogname" parameters:paramsDict callback:^(id response, NSError *error)
    {

        if(!error)
        {
            NSDictionary *dashboard = response;
            NSLog(@"%@",dashboard);

        }
    }];
Vinaykrishnan
  • 740
  • 3
  • 14
  • 34