simple API demo to use wordpress API