Snapt API php examples