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 one 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