lib/devfromcli.rb
##
# Sends http GET request to the Dev.to backend API

Sends http GET request to the Dev.to backend API
Sends http GET request to the Dev . to backend API
def fetch_articles(tag = '')
    uri = URI.parse("https://dev.to/api/articles?tag=#{tag}")
    response = Net::HTTP.get_response(uri)
    JSON.parse(response.body)
  end
def fetch_articles ( tag = '' ) uri = URI . parse ( "https://dev.to/api/articles?tag=#{tag}" ) response = Net :: HTTP . get_response ( uri ) JSON . parse ( response . body ) end
Sends http GET request to the Dev.to backend API
Sends http GET request to the Dev . to backend API
tag
<not_specific>