Skip to content

Flickr to require User-Agent in all API requests #90

Open
@danhaber

Description

Flickr just announced they will be requiring a User-Agent in the header of all API calls.

A partial quote:

We will begin to require a user agent header on all API calls. Specifically, your calls will need to provide a “User-Agent” header, and the header needs to have a value that roughly describes your client. A good header for a client might look like “User-Agent: MySetManager/2.3” or “User-Agent: PHP_Flickr/1.0”. We believe this change will help us better manage traffic and improve our overall API availability.

More info here.

As far as curl is concerned, it should be as simple as adding something like this to the post() method:

curl_setopt($curl, CURLOPT_USERAGENT, 'User-Agent: PHP_Flickr/3.1');

Obviously, you may want to make it dynamic etc, but that's the idea.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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