Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flickr.contacts.getList: The Flickr API returned the following error: #98 - Invalid auth token #41

Closed
Benjaminhu opened this issue Sep 8, 2014 · 0 comments

Comments

@Benjaminhu
Copy link

Constantly I get this error message:

The Flickr API returned the following error: #98 - Invalid auth token

The problem is here:

/*
$args 

Array
(
    [api_key] => ...
    [auth_token] => Array
        (
            [_content] => ...
        )

    [format] => json
    [frob] => ...
    [method] => flickr.auth.getToken
    [nojsoncallback] => 1
    [api_sig] => ...
)
*/
$this->response = $this->post($args);

For me, the way it works:

if ($args['method'] == 'flickr.contacts.getList' && isset($args['auth_token']['_content'])) {
    $args['auth_token'] = $args['auth_token']['_content'];
}
ksort($args);
$auth_sig = "";
$this->last_request = $args;
$this->response = $this->getCached($args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant