Instagram API

Hi,

I am currently trying to retrieve the access token via the Instagram API. The API documentation suggests a cURL command like so:

curl \\-F 'client_id=CLIENT-ID' \\
    -F 'client_secret=CLIENT-SECRET' \\
    -F 'grant_type=authorization_code' \\
    -F 'redirect_uri=YOUR-REDIRECT-URI' \\
    -F 'code=CODE' \\https://api.instagram.com/oauth/access_token

How do I replicate this in PHP?

Thanks in advance.

Jon

Hi jonpenny,

There is a project on GitHub that provides a wrapper to make calls to the Instagram API.

Thank you Chris. This will make my life much easier rather than writing my own.

Thanks again,
Jon

No worries and indeed it will.