I am an API beginner, please help to check the code, in order to better learn how to apply the API, thank you ...