how to use RestClient.post method