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:
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.