# Windog
π² API client for winticket.jp
## Installation
```elixir
def deps do
[
{:windog, "~> 0.7.5"}
]
end
```
## Config
```elixir
config :windog,
token: "....",
short_password: "0000"
```
## Example
```elixir
# π
Get race data ( e.g. /keirin/beppu/racecard/2023092845/3/11 )
{:ok, race_context} = Windog.Api.Race.get_race("2023092845", "3", "11")
# π« Assemble ticket ( e.g. δΊθ»ε 7-2(Β₯200) & 7-8(Β₯100) )
base_ticket = Windog.RequestHelpers.TicketMaker.V2.make_nishatan([[7], [2, 8]], race_context)
ticket = Windog.RequestHelpers.TicketMaker.V2.set_unit(base_ticket, [7, 2], 2)
# π€€ Buy
Windog.Api.Ticket.buy_v2(race_context, [ticket])
```