Create simple API connection script that then generates .csv file based on fetched data

Job ID: 35168830

Budget: $30 – $250 USD

We would like a script with an API connection for Fortnox, to fetch stock values for a specified list of our products, and generate or update a .csv file with this information, with one column for product id, and one column for stock value.

You can find API documentation for Fortnox here: https://apps.fortnox.se/apidocs

The file should be generated each time the script is accessed, so that it can be set via cron to run daily.

Would prefer if you could write this with PHP/JSON, though open to other alternatives too.
Related categories: PHP Software Architecture RESTful JSON API