def get(url)

      data = nil
      resp = HTTParty.get(url)

      if resp.code == 200
        return resp.body
      end
    end
def get(url)

      data = nil
      resp = HTTParty.get(url)

      if resp.code == 200
        return resp.body
      end
    end
Get the response of a given URL.

 @param [String] url The URL to elicit a response from.

 @return [Hash] The response from the server, or nil if there is no response.