Adding APIConsole Sample code

* Adding APIConsole Sample code