1.3.3 • Published 2 years ago

warframe.js v1.3.3

Weekly downloads
3
License
MIT
Repository
github
Last release
2 years ago

Warframe.js

A JavaScript API Wrapper for Warframe's WorldState Data

Installation

To install the Browser version simply add the JS file to your HTML by using the CDN Link or add app.js to your project:

CDN:

<script src="https://cdn.jsdelivr.net/npm/warframe.js@1.3.3/app.min.js"></script>

From your Project:s

<script src="app.js"></script>

NodeJS

To install the NodeJS Version, use npm like so:

$ npm i --save warframe.js

Usage

For the NodeJS version, first require the module:

const Warframe = require("warframe.js")

After loading in the Script initialize the Warframe class, like so:

const WF = new Warframe(options);

Where options is an Object with the following structure:

options = {
    platform: "pc"||"ps4"||"xb1"
}

Once initalized, you can use the newly created WF Object to access the getters, here is a table of those:

NameDescriptionReturn Value
Warframe.prototype.alertsThe alerts and all data associated with themPromise
Warframe.prototype.cycleCetusCurrent Day- or Nighttime on CetusPromise
Warframe.prototype.cycleEarthCurrent Day- or Nighttime on EarthPromise
Warframe.prototype.conclaveChallengesThe active Conclave ChallengesPromise
Warframe.prototype.dailyDealsDarvo's "Daily Deals"Promise
Warframe.prototype.darkSectorsThe Dark Sectors and what Alliance/Clan has itPromise
Warframe.prototype.eventsTBDTBD
Warframe.prototype.fissuresCurrent Fissure MissionsPromise
Warframe.prototype.heartbeatGet a Heartbeat from the API"Success" / Error
Warframe.prototype.invasionsCurrent Invasion Missions / Infestation OutbreaksPromise
Warframe.prototype.newsNews from the News Console (Updates, Prime Access, etc.)Promise
Warframe.prototype.simarisSimaris' current or last targetPromise
Warframe.prototype.sortiesThe daily Sorties, Nodes and ConditionsPromise
Warframe.prototype.syndicateMissionsCurrent Missions of the Syndicates + Cetus SyndicatesPromise
Warframe.prototype.voidTraderWhen and where Baro will come, and what he carriesPromise

Examples

NodeJS:

const Warframe = require("warframe.js");
let options = {platform: "pc"};

const WF = new Warframe(options);

WF.alerts.then(alerts => console.log(alerts));

Browser:

let options = {platform: "pc"};

const WF = new Warframe(options);

(async function(){
    let alerts = await WF.alerts;
    console.log(alerts);
})();

To see this in action head over to tests/test.html

1.3.3

2 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.5

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago