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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:26:50+00:00 2026-05-17T06:26:50+00:00

Here’s the response I keep getting when trying to create a new activity: {error:{errors:[{message:Unknown

  • 0

Here’s the response I keep getting when trying to create a new
activity:

{"error":{"errors":[{"message":"Unknown authorization
header","locationType":"header","location":"Authorization"}],"code":
401,"message":"Unknown authorization header"}}

Here’s the request I sent (for debugging):

POST /buzz/v1/activities/@me/@self?alt=json HTTP/1.1
Host: www.googleapis.com
Connection: close
Accept-encoding: gzip, deflate
User-Agent: Zend_Http_Client
Content-Type: application/json
Authorization: OAuth
realm="",oauth_consumer_key="eawp.com",oauth_nonce="ce29b04ce6648fbb92efc8f08c1c0091",oauth_signature_method="HMAC-
SHA1",oauth_timestamp="1277934794",oauth_version="1.0",oauth_token="1%2FcBzo5ckGvCAm3wLWh1SDH3xQNoW--
yek1NVfUa1Qqns",oauth_signature="CUezSiMbvxyN1BTeb3uROlIx8gA%3D"
Content-Length: 86

{"data":{"object":{"type":"note","content":"Using OAuth with Twitter -
PHP Example"}}}

All the other requests to get the access_token worked just fine, but
now I’m not too sure why it’s not working.

** Update

To assist with the debugging a bit more, here is the code in question:

$config = array( 
  //'requestScheme' => Zend_Oauth::REQUEST_SCHEME_HEADER, 
  //'version' => '1.0', 
  //'signatureMethod' => 'HMAC-SHA1', 
  'callbackUrl' => $callback, 
  'siteUrl' => $url, 
  'consumerKey' => $consumerKey, 
  'consumerSecret' => $consumerPass 
); 
$statusMessage = $title; 
$token = unserialize($accessToken); 
$client = $token->getHttpClient($config); 
$client->setUri('https://www.googleapis.com/buzz/v1/activities/@me/ 
@self?alt=json'); 
$client->setMethod(Zend_Http_Client::POST); 
$client->setEncType(Zend_Http_Client::ENC_FORMDATA); 
$client->setHeaders('Content-Type: application/json'); 
                                $data = array( 
                                        'data'   => array( 
                                                'object'  => array( 
                                                        'type'     => 'note', 
                                                        'content'  => $statusMessage, 
                                                ), 
                                        ), 
                                ); 
                                $dataXml = "<entry xmlns='http://www.w3.org/2005/Atom' 
xmlns:activity='http://activitystrea.ms/spec/1.0'> 
                                                                                <activity:object> 
                                                                                    <activity:object-type>http://activitystrea.ms/schema/1.0/ 
note</activity:object-type> 
                                                                                    <content type='html'>$statusMessage<content> 
                                                                                  </activity:object> 
                                                                                </entry>"; 
//$client->setRawData($dataXml); 
$client->setRawData(Zend_Json::encode($data)); 
//$client->setParameterPost("content", $statusMessage); 
$response = $client->request(); 

** As you can see, I did a bit of testing with both the xml+atom and
json requests – not much luck with either.

Can you see anything clearly wrong there? And another reminder that I
am using Zend_Oauth.

  • 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-17T06:26:50+00:00Added an answer on May 17, 2026 at 6:26 am

    I have some problem

    Use option:
    ‘requestScheme’ => Zend_Oauth::REQUEST_SCHEME_QUERYSTRING

    in your $config array

    After this change my problem was solved

    PS More code:

    
    $OAuthConfiguration = array(
      'version' => '1.0',
      'requestScheme' => Zend_Oauth::REQUEST_SCHEME_QUERYSTRING,
      'signatureMethod' => 'HMAC-SHA1',
      'callbackUrl'=>'####',
      'requestTokenUrl' => 'https://www.google.com/accounts/OAuthGetRequestToken',
      'authorizeUrl' => 'https://www.google.com/buzz/api/auth/OAuthAuthorizeToken',
      'accessTokenUrl' => 'https://www.google.com/accounts/OAuthGetAccessToken',
      'consumerKey' => '####',
      'consumerSecret' => '####',
    );
    $OAuthConsumer = new Zend_Oauth_Consumer($OAuthConfiguration);
    
    //authorizeOAuth
    $params = array(
       'domain'=>'####',
       'scope'=>'https://www.googleapis.com/auth/buzz'
    );
    $token = $OAuthConsumer->getRequestToken($params);
    
    $_SESSION['token']['buzz'] = serialize($token);
    
    $OAuthConsumer->redirect($params);
    
    //callbackOAuth
    if (!empty($_GET) && isset($_SESSION['token']['buzz'])) {
        $token = $consumer->getAccessToken(
            $_GET,
            unserialize($_SESSION['token']['buzz'])
        );
        unset($_SESSION['token']);
        return serialize($token);
    } else {
        return false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here I am trying to retrieve the response from the server and display it,
Here is the code in a function I'm trying to revise. This example works
Here is the code: create table `team`.`User`( `UserID` bigint NOT NULL AUTO_INCREMENT , `Username`
Here is my SQL script CREATE TABLE tracks( track_id int NOT NULL AUTO_INCREMENT, account_id
Basically, what I'm trying to create is a page of div tags, each has
Here's my procedure: DROP PROCEDURE IF EXISTS `couponExpires`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `couponExpires`(IN couponID BIGINT,
Here is my problem : I have a post controller with the action create.
Here is an example. foreach (var doc in documents) { var processor = this.factory.Create();
Here's what I'm trying to accomplish with this program: a recursive method that checks
Here is the css: #content ul { font-size: 12px; } I am trying this:

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.