Skip to content

refreshToken & getRawData functions

Compare
Choose a tag to compare
@Blacksmoke16 Blacksmoke16 released this 06 Sep 01:05
· 153 commits to master since this release

7.1.0 aka version 2 September 5, 2018


Additions

  • refreshToken Ability to refresh the token of a given character. Useful for custom function logic.
  • getRawData Returns the raw JSON data and headers from the ESI request.

For example:

var params = {page: 4};
var rawData = GESI.getRawData("universe_types", params);

It takes the string name of the function you want data from, as optionally an a param object. You can see what params the given function uses by finding it in functions.ts.

The return value is an object with a data property, which is the raw JSON from the ESI request, and a headers property which includes the headers from the request (if you wanted to use X-Pages to do other requests to get all the pages for example).