API:Checktoken/Sample code 1