Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Repository files navigation

#eveapi GoDoc

EVE Online API Client

eveapi is a library that provides access to the EVE Online XML API.

This needs more work, ALPHA STATUS. Barely anything is done, API subject to change.

Todo

  • Caching
  • Everything else
  • More things

Usage

Below is an example which shows some of the calls available currently.

package main
import (
"fmt""log""github.com/flexd/eveapi"
)
funcmain() {
key:= eveapi.Key{"somekey", "somevcode"}
charID:="93014296"voidCharID:="93947594"//api := &eveapi.API{//Server: eveapi.Tranquility,//APIKey: key,//UserAgent: "Hello",//Debug: false,//}api:=eveapi.Simple(key)
serverStatus, err:=api.ServerStatus()
iferr!=nil {
log.Fatalln(err)
return
}
fmt.Println("Online:", serverStatus.Open, "Players:", serverStatus.OnlinePlayers)
characters, err:=api.Names2ID("Void Thought,Loryanna,Cypherous,ThisGuyDoesnOtexist")
iferr!=nil {
log.Fatalln(err)
return
}
fmt.Println("Characters:", characters)
fmt.Println("First char:", characters[0])
accounts, err:=api.CharAccountBalances(charID)
iferr!=nil {
log.Fatalln(err)
return
}
fmt.Println("Current time:", accounts.CurrentTime, "Cached until:", accounts.CachedUntil)
for_, c:=rangeaccounts.Accounts {
fmt.Println("AccountID:", c.ID, "Key:", c.Key, "Balance:", c.Balance, "ISK")
}
skillqueue, err:=api.SkillQueue(voidCharID)
iferr!=nil {
log.Fatalln(err)
return
}
fmt.Println(skillqueue.SkillQueue[0])
}

About

A Golang EVE Online XML API client

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages