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 6873091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:00:50+00:00 2026-05-27T04:00:50+00:00

$request_data = http_build_query( array( ‘oauth_token’ => ‘xxx’, ‘api_key’ => ‘xxx’, ‘type’ => ‘hello’, ‘title’

  • 0
 $request_data = http_build_query(
        array(
            'oauth_token' => 'xxx',
            'api_key' => 'xxx',
            'type' => 'hello',
            'title' => 'this is title',
            'body' => 'this is body',
            'generator' => 'API example'
        )
 );

 // Send the POST request (with cURL)
 $c = curl_init('http://api.tumblr.com/v2/blog/abc.tumblr.com/post');
 curl_setopt($c, CURLOPT_POST, true);
 curl_setopt($c, CURLOPT_POSTFIELDS, $request_data);
 curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
 $result = curl_exec($c);
 $status = curl_getinfo($c, CURLINFO_HTTP_CODE);
 curl_close($c);

but not run…
Please help me!

  • 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-05-27T04:00:51+00:00Added an answer on May 27, 2026 at 4:00 am

    It looks like you are not sending any OAuth Authorization header which is required. This is a little bit of a tricky task since it requires that you also create a signature from the parameters and oauth tokens so as a starter you might want to read this documentation: http://oauth.net/core/1.0a/

    Alternatively there are some OAuth PHP libraries out there which will do that part for you: http://oauth.net/code/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We've written a .NET wrapper API for a set of web services. All this
I want to receive the following HTTP request in PHP: Content-type: multipart/form-data;boundary=main_boundary --main_boundary Content-type:
I would like to add some data to the body of a http request
I have this code: ... request data = new request(); data.username = formNick; xml
I have this: $(#term).autocomplete({ minLength: 2, source: function( request, response ) { $.ajax({ url:
I am using jquery to build a request to the Twitter Search API. I
I'm attempting to process the body of an HTTP PUT request, but it seems
Okay, so I've written a REST API implementation using mod_rewrite and PHP. I'm accepting
I've have this DB Model http://www.dropmocks.com/mBgqjs and I'm using CakePHP to build a simple
I used this tutorial: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html To build my first form/create user app, but it

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.