Eve Online Api

  пятница 28 февраля
      62
Eve Online Api Average ratng: 8,0/10 7449 reviews

ESI.NET is a .NET wrapper for the Eve Online ESI API. This wrapper simplifies the process of integrating ESI into your .NET application.

Resources

EVE Online Third-Party Developer Documentation latest Home; EVE Online Third-Party Developer Documentation. Docs » Home; Edit on GitHub; Home. Need private packages and team management tools?Check out npm Teams ». 0.0.3. Public. Published 2 years ago. Readme ExploreBETA 1.

  • Discord - E.N - This channel is where you can contact me (Psianna Archeia) for questions and where automated webhook notifications will be pushed for github and when builds are completed. (If you have Discord, this is the preferred way to contact me concerning ESI.NET. I DO NOT monitor Slack anymore for ESI.NET issues.)
  • Tweetfleet - #esi - This is the official slack channel to speak with CCP devs (and developers) concerning ESI.
  • ESI-Docs (source) - This is the best documentation concerning ESI and the SSO process.

It is extremely important to not solely rely on ESI.NET. You may need to refer to the official specifications to understand what data is expected to be provided. For example, in some instances, ESI.NET will ask for specific values in the endpoint method and construct the JSON object that needs to be sent in the POST request body because it is a simple object that requires a few values. Some of the more complex objects will need to be constructed with anonymous objects by the developer and this can be determined when the endpoint method requires an object instead of an int or a string. Refer to the official documentation and construct the anonymous object to reflect what is expected as Json.NET will be able to convert that anonymous object into the appropriate JSON data.

ESI.NET on NuGet

dotnet add package ESI.NET

Client Instantiation

ESI.NET is Dependency Injection compatible. There are a few parts required to set this up properly in a .NET Standard/Core application:

.NET Standard (Dependency Injection)

In your appsettings.json, add the following object and fill it in appropriately:

For your protection (and mine), you are required to supply a user_agent value. This can be your character name and/or project name. CCP will be more likely to contact you than just cut off access to ESI if you provide something that can identify you within the New Eden galaxy. Without this property populated, the wrapper will not work.

Inject the EsiConfig object into your configuration in Startup.cs in the ConfigureServices() method:

Lastly, access the client in your class constructor (the config options above will automatically be injected into it:

.NET Framework

If you are using a .NET Standard-compatible .NET Framework application, you can instantiate the client in this manner:

Gornji vakuf. For your protection (and mine), you are required to supply a user_agent value. This can be your character name and/or project name. CCP will be more likely to contact you than just cut off access to ESI if you provide something that can identify you within the New Eden galaxy. Without this property populated, the wrapper will not work.

NOTE: You will need to import Microsoft.Extensions.Options to accomplish the above.

Endpoint Example

Accessing a public endpoint is extremely simple: Idle apocalypse walkthrough.

SSO Example

SSO Login URL generator

ESI.NET has a helper method to generate the URL required to authenticate a character or authorize roles (by providing a List of scopes) for the Eve Online SSO.

Initial SSO Token Request

Refresh Token Request

Performing an authenticated request

Set the character data on the client before performing the request.

I have deleted a profane and off-topic post. Please stay respectful and on-topic.So far as the topic goes, this appears to have something to do with the HTTP vs HTTPS protocol of the calls, and some redirects being weird., with the secure HTTPS protocol, works.However, does not, and just redirects to the main community page, while changing the protocol to HTTPS. 'api.eveonline.com' also just does the same thing.I will bring this up with the community team, since it may be related to the new. Good find!tl;dr: Use the following link to get to the API key management page in the meantime.