Skip to content

401 Not Authorized #3

@dafinley

Description

@dafinley

When I use the method to create a Tumblr after I already have an accessToken I always get 401 not authorized errors

$config = $this->config(); $token = unserialize($token); $config['accessToken'] = $token->getToken(); $config['accessTokenSecret'] = $token->getTokenSecret(); $config['oauthTokenAccess'] = $token; $tumblr = new Tumblr($config);
    $dashboard = $tumblr->retrieveUsersDashboard();

The config function returns an array:

private function config(){
    $configs = array('consumerKey' => $this->consumerKey, 'consumerSecret' => $this->consumerSecret);

    return $configs;

}
But this is the error returned:

Zend_Http_Response Object ( [version:protected] => 1.1 [code:protected] => 401 [message:protected] => Not Authorized [headers:protected] => Array ( [P3p] => CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL" [Vary] => Accept-Encoding [Content-encoding] => gzip [X-tumblr-usec] => D=25329 [Content-type] => application/json [Content-length] => 80 [Date] => Fri, 03 Aug 2012 13:15:10 GMT [Connection] => close ) [body:protected] => �����V�M-IT��V_.I,)-V�210�Q�-NW�R��/Qp,-��/ʬJMQ��Q_J-.��+NU������Q��<� )

The message says not authorized but I used your library to actual get the accessToken for the hostname in question

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions