wranders / esisharp Goto Github PK
View Code? Open in Web Editor NEWA C# Library for interacting with the Eve Online ESI API.
License: MIT License
A C# Library for interacting with the Eve Online ESI API.
License: MIT License
ESI scopes have changed. Some are new, some are different.
Hi, I thinks I do something wrong. When I run this code I get
_CredentialErrorMessage = "{\"error\":\"[ESISharp] There was an error with the supplied credentials.\"}"
From Public and Authenticated.
static void Main()
{
var EsA = new ESISharp.Authenticated("...", "...");
EsA.SetUserAgent("...");
EsA.Sso.Client.SetGrantType(ESISharp.Enumeration.OAuthGrant.Authorization);
EsA.Sso.Client.Registry.EnsureKey();
EsA.Sso.Client.AddScope(ESISharp.Sso.Scopes.Scope.Wallet.ReadCharacterWallet);
EsA.Sso.ForceAuthentication();
var wbalance = EsA.Characters.Wallet.GetBalance(123456789);
var EsB = new ESISharp.Public();
var name = EsB.Universe.GetIds("Zydrine");
}
I don't really know why It doesn't work.
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'CharacterFactionWarfare' could not be found (are you missing a using directive or an assembly reference?) ESISharp E:\EVE API\ESISHARP\ESISharp\Path\Character.cs 100 Active
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'CharacterFactionWarfare' could not be found (are you missing a using directive or an assembly reference?) ESISharp E:\EVE API\ESISHARP\ESISharp\Path\Character.cs 136 Active
Error CS0118 'FactionWarfare' is a type but is used like a variable ESISharp E:\EVE API\ESISHARP\ESISharp\Path\Corporation.cs 103 Active
Error CS0246 The type or namespace name 'CorporationFactionWarfare' could not be found (are you missing a using directive or an assembly reference?) ESISharp E:\EVE API\ESISHARP\ESISharp\Path\Corporation.cs 103 Active
EVE ESI does not have rate limiting -- it relies on client applications caching endpoints.
It would be helpful if ESISharp supports caching, e.g. through supplying a .NET framework System.Runtime.Caching.ObjectCache
class to ESISharp.
Do you have an example of this working? I'm far from an expert, but it seems like the only members of the Authenticated class being recognized by VS are another Authenticated class and a Public class presumably because Authenticated inherits ESIEve.
Is it possible to make any sample project for windows forms? I cant get normally working
Current data structures are a bit confusing and the methods handling web requests have a bit of confusing logic in them to decide if a parameter is for a query, body, etc.
Current format:
var UrlData = new
{
page = 1
};
var PostData = new
{
someBody = "onceToldMe"
};
Proposed format:
var Data = new
{
query = new
{
page = 1
},
body = new
{
someBody = "onceToldMe"
}
};
This should simplify the core request methods by explicitly stating where data should go, instead of having to figure it out after it's been passed. Should make it a bit more JSON-like, which is pretty.
EsA = new ESIEve.Authenticated(ClientID, SecretKey);
EsA.SSO.VerifyCallbackProtocolRegistryKey();
EsA.SSO.AddScope(ESISharp.Enumerations.Scope.Markets.ReadCharacterOrders);
_VerifyToken = EsA.SSO.VerifyToken();
I do my stuff and every things work and after 20min it stop working so I try to do a refresh token with:
var token = EsA.SSO.GetRefreshToken();
EsA.SSO.SetRefreshToken(token);
But the things is that it return a empty string and nothing work after. Do I miss understand some thing or there is a problem?
I use lib and exe from master branch. Thx in advance!
Is this project still active? Just curious because I'd love an ESI C# library written in .NET Core.
Thanks!
Hi,
Would it be possible to add a small example file to the solution on how to create an authenticated request and retrieve the data from ESI?
I have not done much programming in the past few years and getting the environment setup correctly is proving a bit difficult, having an example would be very helpful.
With regards,
Martijn
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.