Example for using SonicAPI library