API Resource: IP Addresses

The 'IP Addresses' resource allows you to get and set the registered IP address associated with your Getflix account.

Note: Although this resource supports multiple IP addresses per account, this is not yet implemented. Currently, only 1 IP address per account can be registered at any time.


GET v1/addresses.json
Returns an array of currently registered IP addresses associated with your Getflix account.

Return Data

[
  {
    "ip_address": <ipAddress>
  }
]

Example Usage

curl -u <api_key>:x -X GET https://www.getflix.com.au/api/v1/addresses.json
[
  {
    "ip_address": "1.2.3.4"
  }
]

PUT v1/addresses.json
Updates your registered IP address. Our server will determine your IP address automatically from the request. Your IP address only updates if it has changed (if your IP is the same as what we have on file, nothing happens). This is particularly useful if you want to automate IP address updates (e.g. by using a cron job, or similar).

Example Usage

curl -u <api_key>:x -X PUT https://www.getflix.com.au/api/v1/addresses.json
Have more questions? Submit a request

Comments

  • Avatar
    Suzanne Levy

    This makes it really easy to set up a cron job to manage IP changes, I have it running every 10 minutes just in case!

Powered by Zendesk