How to use 5mp SPI camera for raspberry pi Pico W

Hi, i’m trying to use a 5MP SPI camera for the raspberry pi pico and it is all working (I mean that the wiring is correct and it is detected) but I can’t find any info at all on how to take pictures using micropython or any language for that matter. Can anyone help?

We need to automate taking pictures every few seconds using micropython. Thanks