Packages
boardgamegeek_client
0.1.0
An Elixir wrapper around the BoardGameGeek XML API. Also scrapes some of the BoardGameGeek HTML.
Current section
Files
Jump to
Current section
Files
lib/html/boardgamegeek_html_in_memory.ex
defmodule BoardGameGeekHTML.InMemory do
def get("geeksearch.php?action=search&objecttype=boardgame&q=Scythe", _) do
body = File.read!("test/fixtures/html/search_games_fixture.html")
%HTTPotion.Response{body: body}
end
def get("geeksearch.php?action=search&objecttype=boardgame&q=Sushi+Go+Party", _) do
body = File.read!("test/fixtures/html/search_games_single_result_fixture.html")
%HTTPotion.Response{body: body}
end
end