example of client API