Update the client sample code to API 1.23 + fix the doc