CallCustomApi sample code