Final_Sample_api_code