Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Support the signed header. #76

Merged
merged 1 commit into from
Jun 3, 2014
Merged

Conversation

yssk22
Copy link
Contributor

@yssk22 yssk22 commented Jun 3, 2014

Now we can enable the signed header by passing the client_ips keyword argument
to the Instagram.Client constructor.

c = client.InstagramAPI(
        access_token=access_token,
        client_ips="1.2.3.4",
        client_secret="CS"
    )
c.follow_user(123) # => call API with X-Insta-Forwarded-For signature.

If you do not set the client_ips nor client_secret, X-Insta-Forwarded-For is not sent.

Now we can enable the signed header by passing the `client_ips` keyword argument
to the Instagram.Client constructor.

    c = client.InstagramAPI(
            access_token=access_token,
            client_ips="1.2.3.4",
            client_secret="CS"
        )
    c.follow_user(123) # => call API with X-Insta-Forwarded-For signature.

If you do not set the client_ips nor client_secret, X-Insta-Forwarded-For is not sent.
@heatonjb heatonjb merged commit 16d1bc5 into facebookarchive:master Jun 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants