Skip to content

GoLang SDK for convenient access to ESI (EVE Swagger Interface)

License

Notifications You must be signed in to change notification settings

brewek/esi-sdk-go

Repository files navigation

Introduction

This is a simple GoLang SDK for ESI (EVE Swagger Interface) for convenient access to their data. I implemented mostly the methods that I needed for my project, but any pull requests / tips / advices on code is highly appreciated.

Installation

TODO

Usage

I import it using

esi "lossprevented.pl/esi-sdk-go"

And than get client by

tb := auth.TokenBody{
	Code: ...,
	RefreshToken: ...,
	GrantType: auth.GrantType...
}
client, _ := auth.GetClient(tb, eveAuthClientID, eveAuthSecretKey)

Now it's all relatively easy:

verifyResponse = auth.VerifyBearerToken(client.AccessToken)
runnerInfo := client.GetCharacter(verifyResponse.CharacterID)
currentLocation := client.GetCharacterLocation(verifyResponse.CharacterID)
// etc...

Authentication

Good documentation about details of the process can be found here. After you get the Bearer token you can confirm it using auth.VerifyBearerToken(string).

Example

TODO: provide an example from other project

About

GoLang SDK for convenient access to ESI (EVE Swagger Interface)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages