ir-webapi-client

module
v0.0.0-...-9ea3345 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT

README

ir-webapi-client

Library for calling the iRacing.com web api for getting data regarding races, members etc.

Basically just a stub for now. Do not use.

Usage
package main

import (
        "log"

        "github.com/jawee/ir-webapi-client/client"
)

func main() {
    client := client.New()

    err := client.Login("[email protected]", "password")
    if err != nil {
        panic(err)
    }

    resp, err := client.GetMemberRecentRaces(1234)
    if err != nil {
        panic(err)
    }

    for _, r := range resp.Races {
        log.Printf("%s. %s. %d -> %d\n", r.SessionStartTime, r.SeriesName, r.OldiRating, r.NewiRating);
    }
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL