I'm a Ruby dev trying to get into elixir. I'm trying to interact with an API in order to learn a little Elixir. I'm basically trying to make an http request. In ruby the thing I'm trying to do would look like this.
require 'httparty'
url = "https://api.sportradar.us/nba/trial/v4/en/games/2016/11/05/schedule.json?api_key={api_key}"
response = HTTParty.get(url)
req = response.parsed_response
Pretty straightforward and simple. Now I have a json decoded response that I can use. How can I do this with Elixir and Phoenix?
HTTPoison.get(url)
should fetch the data. – Dogbert