Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8201471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:49:36+00:00 2026-06-07T06:49:36+00:00

How to authenticate and then post text to tumblr from the iphone SDK for

  • 0

How to authenticate and then post text to tumblr from the iphone SDK for tumblr
Please Help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:49:38+00:00Added an answer on June 7, 2026 at 6:49 am

    Try this function For post to tumblr Hope this will help you 🙂

    - (IBAction)postToTumblr1
    {
        NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
        NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex];
        BOOL b = [emailTest evaluateWithObject:emailtext.text];
    
    
        if (b==NO) 
        {
            UIAlertView *messageBox = [[UIAlertView alloc]initWithTitle:@" " message:@"Invalid Email ID" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
            [messageBox show];
            [messageBox release];
        }
        else
        {
            NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString:@"http://www.tumblr.com/api/write"]];
            [request setHTTPMethod:@"POST"];
    
            // tell the server to expect 8-bit encoded content as we're sending UTF-8 data, and UTF-8 is an 8-bit encoding
            [request addValue:@"8bit" forHTTPHeaderField:@"Content-Transfer-Encoding"];
    
            //set the content-type header to multipart MIME
            [request addValue: [NSString stringWithFormat:@"multipart/form-data; boundary=%@", [NSString MIMEBoundary]] forHTTPHeaderField: @"Content-Type"];
    
            //create a dictionary for all the fields you want to send in the POST request
            NSDictionary* postData = [NSDictionary dictionaryWithObjectsAndKeys:
                                     emailtext.text, @"email",
                                     password.text, @"password",
                                     @"regular", @"type",
                                     @"The Real Compatibility Tester", @"title",
                                     postText, @"body",
                                     nil];
    
            //set the body of the POST request to the multipart MIME encoded dictionary
            [request setHTTPBody: [[NSString multipartMIMEStringWithDictionary: postData] dataUsingEncoding: NSUTF8StringEncoding]];
    
            NSLog(@"Tumblr Login:%@\nTumblr ", emailtext.text);
    
            [NSURLConnection connectionWithRequest:request delegate:self];
            [request release];
    
            yes = 1;
    
            if(1)
            {
                UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Tumblr Post" message:@"Post successfully" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
    
                [alert show];
                [alert release];
            }
            else 
            {
                UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Tumblr Post" message:@"Post not  successfully done" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
    
                [alert show];
                [alert release];
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used cURL to authenticate first then login via POST to a cms. Then
I am trying to authenticate a user by sending a POST request from my
I want authenticate user in my android app through google login and then dispaly
I am looking to authenticate a user from a client application while using the
Is there any provisions in rails that would allow all AJAX POST requests from
I'm trying to connect to an API, authenticate a user and then view the
Can you please help me to solve the following problem. I am running a
I'm using an ajax post request to authenticate users, this script replies with a
Hi I am trying to develop an app that could post to wordpress from
I'm currently working my way through the facebook-iphone-sdk and the MGTwitterEngine and I'm wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.