Get snapshot from reolink camera to local folder

Hello,
I would like to have a snpashot everytime my Reolink camera have a motion. I want to save thie file in a folder.

Someone have a JSON ready to work?

Thanks