Examples of creating collection items programatically
I have a requirement to integrate with the instagram API via a schedule task that needs to take the information and transform it into a collection item that exists on the site. i found this post that outlines something i could potentially do.
Not sure if there is now a public API to do this sort of thing, but if not is there any examples on how the data should be passed into the, i am not sure how to structure the data part of the input (the portion that would populate the itemJSON column in the collection_items table in the database) specifically:
- is it just a PHP array that matches the json items that are already in the database?
- how can you deal with the markdown field programatically as the value has the structure
Any input would be greatly appreciated,