GithubHelp home page GithubHelp logo

markus-lassfolk / eve-online-esi-posh Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 275 KB

Powershell Module for using EVE Online ESI API Library

License: MIT License

PowerShell 100.00%
eveonline esi posh restfull api swagger

eve-online-esi-posh's Introduction

EVE-Online-ESI-Posh

This ia a PowerShell module for querying the EVE Online ESI Api Restfull endpoint using the endpoints provided here : https://esi.evetech.net/ There is also some experimental support for integrating with Discord.

This is not fully featured or tested, but pull requests would be welcome!

#Instructions

# One time setup
    # Download the repository
    # Unblock the zip
    # Extract the EVE-Online-ESI-Posh folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)

    #Simple alternative, if you have PowerShell 5, or the PowerShellGet module:
        Install-Module EVE-Online-ESI-Posh

# Import the module.
    Import-Module EVE-Online-ESI-Posh    #Alternatively, Import-Module \\Path\To\EVE-Online-ESI-Posh

# Get commands in the module
    Get-Command -Module EVE-Online-ESI-Posh

# Get help
    Get-Help Get-SEObject -Full
    Get-Help EVE-Online-ESI-Posh

# Examples 
Get-ChildItem .\EVE-Online-ESI-Posh\Public\*.psm1 | Import-Module -Force 
Get-ChildItem .\EVE-Online-ESI-Posh\Private\*.psm1 | Import-Module -Force 

# Get help about a function 
get-help get-EVEUniverseAncestries

# Get all character ancestries
get-EVEUniverseAncestries

# Locate CharacterID for a specific character using strict matching 
get-EVESearch -categories character -search vipeer -strict $true | convertfrom-json

## Get all Blueprint ID's and locations for Character - returned in raw JSON Format  
$BluePrints = get-EVECharactersCharacter_IdBlueprints -character_id $CharacterToken.CharacterID -token $access_token.access_token
$BluePrints.Content | convertfrom.JSON


# Launches IE to logon to EVE SSO and get an access token; 
# Specify your applications ClientID, SecretKey, CallBackURL and Scopes as specified in https://developers.eveonline.com/applications 
$access_token = login-EVESSOAuth -clientid $ClientID -secretkey $secretkey -callbackURL $callbackURL -Scopes $Scopes

# Refresh Access token with Refresh Token 
# Specify your applications ClientID, SecretKey, CallBackURL as specified in https://developers.eveonline.com/applications 
$access_token = refresh-EVESSOToken -refreshtoken $access_token.refresh_token -clientid $ClientID -secretkey $secretkey

# Verify Access token with EVESSO and grab Character Information  
$CharacterToken = get-EVESSOCharacterID -AccessToken $access_token.access_token
  
# Verify if Access Token should be renewed 
$access_token = verify-EVESSOAccessToken -access_token $access_token -CharacterToken $CharacterToken -ClientID $ClientID -secretkey $secretkey

 

eve-online-esi-posh's People

Contributors

markus-lassfolk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

eve-online-esi-posh's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.