Add API calling demo code