GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - flexd/eveapi: A Golang EVE Online XML API client

This repository was archived by the owner on Feb 26, 2024. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
account.go
account.go
 
 
char.go
char.go
 
 
client.go
client.go
 
 
corp.go
corp.go
 
 
eve.go
eve.go
 
 
evetime.go
evetime.go
 
 
server.go
server.go
 
 

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"
)

func main() {
    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()
    if err != nil {
        log.Fatalln(err)
        return
    }
    fmt.Println("Online:", serverStatus.Open, "Players:", serverStatus.OnlinePlayers)
    characters, err := api.Names2ID("Void Thought,Loryanna,Cypherous,ThisGuyDoesnOtexist")
    if err != nil {
        log.Fatalln(err)
        return
    }
    fmt.Println("Characters:", characters)
    fmt.Println("First char:", characters[0])
    accounts, err := api.CharAccountBalances(charID)
    if err != nil {
        log.Fatalln(err)
        return
    }
    fmt.Println("Current time:", accounts.CurrentTime, "Cached until:", accounts.CachedUntil)
    for _, c := range accounts.Accounts {
        fmt.Println("AccountID:", c.ID, "Key:", c.Key, "Balance:", c.Balance, "ISK")
    }
    skillqueue, err := api.SkillQueue(voidCharID)
    if err != nil {
        log.Fatalln(err)
        return
    }
    fmt.Println(skillqueue.SkillQueue[0])
}

About

A Golang EVE Online XML API client

Resources

Readme
Activity

Stars

11 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.