I created a little PoC using our Vulnerability API a few weeks ago. Look at a video, and feel free to see the code. Just be aware - this is a PoC code. This is not a production one, so proper error handling and memory management might be required.
And the repo:
https://github.com/cybermedi/Vulnerability_LS_API_ex.git