new hw2/metadata()
Creates a metadata object
Members
-
_http
-
Initializes a new HttpWrapper with API Key
Methods
-
campaignLevels()
-
Returns Campaign Levels. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Campaign-Levels?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.campaignLevels().then( (levels) => { //Do code here });
-
campaignLogs()
-
Returns Campaign Logs. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Campaign-Logs?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.campaignLogs().then( (logs) => { //Do code here });
-
cardKeywords()
-
Returns Card Keywords. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Card-Keywords?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.cardKeywords().then( (keywords) => { //Do code here });
-
cards()
-
Returns Cards. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Cards?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.cards().then( (cards) => { //Do code here });
-
csrDesignations()
-
Returns CSR Designations. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-CSR-Designations?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.csrDesignations().then( (designations) => { //Do code here });
-
difficulties()
-
Returns Difficulties. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Difficulties?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.difficulties().then( (difficulties) => { //Do code here });
-
gameObjectCategories()
-
Returns Game Object Categories. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Game-Object-Categories?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.gameObjectCategories().then( (categories) => { //Do code here });
-
gameObjects()
-
Returns Game Objects. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Game-Objects?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.gameObjects().then( (objs) => { //Do code here });
-
leaderPowers()
-
Returns Leader Powers. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Leader-Powers?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.leaderPowers().then( (powers) => { //Do code here });
-
leaders()
-
Returns Leaders. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Leaders?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.leaders().then( (leaders) => { //Do code here });
-
maps()
-
Returns Maps. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Maps?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.maps().then( (maps) => { //Do code here });
-
packs()
-
Returns Packs. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Packs?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.packs().then( (packs) => { //Do code here });
-
playlists()
-
Returns Playlists. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Playlists?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.playlists().then( (playlists) => { //Do code here });
-
seasons()
-
Returns Seasons. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Seasons?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.seasons().then( (seasons) => { //Do code here });
-
spartanRanks()
-
Returns Spartan Ranks. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Spartan-Ranks?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.spartanRanks().then( (ranks) => { //Do code here });
-
techs()
-
Returns Techs. https://developer.haloapi.com/docs/services/58ace18c21091812784ce8c5/operations/Halo-Wars-2-Techs?
Returns:
Promise of JSON from API- Type
- Promise
Example
halo.hw2.metadata.techs().then( (techs) => { //Do code here });