This week we added another code sample to the API library. This script will pull the link history for the last day and append it to a file on your local server.
If you want to automatically retrieve your history and keep a copy for your own records this is a great place to start. Run it at the same time every day (we recommend a cron job or schedulded job) and retrieve up to 1,000 records at a time.
Get the code sample here.