No need for any third party... API calls and that's it. But yeah it's tricky.

Reference... Jan Axelson's book... which i should buy again...