Thanks for getting in touch! From what I can see, it does not look like we have anything currently written for this. However, we do have a quite extensive wiki for our API which I can help by pointing out appropriate pages and documentation.
The docs have some basic info and links to the GitHub API page. The GitHub page has links to the API wiki and a bunch of example scripts that have been useful at one point or another. You should be able to use these example scripts alongside the API wiki to create a script to do what you are after.