How can I implement this POST request using HTTParty?
I am having difficulty making a POST request to an API endpoint using Ruby's HTTParty library. The API I'm interacting with is the Gittip API and their endpoint requires authentication. I have been able to successfully make an authenticated GET request using HTTParty. You can see in the example code: user = "gratitude_test" api_key = "5962b93a-5bf7-4cb6-ae6f-aa4114c5e4f2" # I have included real credentials since the above is merely a test account. HTTParty.get("https://www.gittip.com/#{user}/tips.json", { :basic_auth => { :username => api_key } }) That request works and returns the following