added network api code examples