SDK code for CMS client api