The job is to write a Drupal 7 module that reads an array of JSON objects from an external feed (sample fetch code will be provided) and creates / updates and deletes nodes as follows:
JSON objects with a new id should be imported as a new node
JSON objects with an existing id should result in the existing node being updated if the updated_at time is more recent than the last cron run
Nodes that have an id that no longer exist in the feed should be deleted.
There are approximately twenty fields, mostly int, float, string values.
There is one multi-valued image url field that should be processed as as a fetch of the image files into a Drupal managed file in public:// and adding those files to a unlimited-valued image field in the node.
There are two multi-valued taxonomy term fields. Arrays mapping the feed's integer representation to the taxonomy term value (not term id) will be provided. The arrays contain approx 70 and 50 elements.