I am using Canon ccapi to download the last image taken. I am trying to find it by getting the list of all the photos from contents request and then download the last one
http://<camera-ip>:8080/ccapi/ver100/contents/sd/100CANON
but actually it returns the first 100 cameras only, although there are 100 cameras inside 100CANON folder. Is there any parameter to pass to contents request? Is there any normal documentation that describes behavior of each request avaliable?
In summary, what you want is
/ccapi/ver100/event/polling?continue=off, and poll that to find the latest file added underaddedcontents. Python info below, but if you're working with a more basic URL setup, just refresh your query shortly after hitting the shutter.Canon CCAPI documentation is for some reason nonexistent. I found a helpful open source library to scour the endpoints here: Canomate.
The repo has this python file with a function called
pollForNewFilesOnCamera. Here's a dumbed down version of that function for a python script.