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?
As CCAPI is limited to 100 images per page, you can request the number of pages and then repeat to get all images. or you can just get the last image from the last page, or you use polling in the previous answer.
If you like to have a python library that does all images in a list, you can use
https://github.com/laszewsk/canon-r7-ccapi
camera = CCAPI(ip=<your IP>)
images = camera.contents()
print (images)
here is a jupyter notebook showcasing some features
https://github.com/laszewsk/canon-r7-ccapi/blob/main/examples/notebook.ipynb