I have been tasked with scripting and scheduling an API call to /mobiledevices to export device data to a CSV file. I would like to learn how to call the API using a Python script and schedule it on our Windows Server hosting our JSS.
I have read several pages of documentation on starting with the API and looked through several scripts, however I am still just not grasping the concept it seems. I have little experience with scripting, so some of the sample scripts I've seen seem intimidating.
Is there such a thing as a "skeleton" script that has the most basic needs to call the API and return output to the console or a CSV file? I think once I see the basics I can build on it from there, i'm just not understanding how it all comes together to produce any output.
