![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
cryptum-halodotapi
Advanced tools
Advanced Halo 5 API wrapper which can be extended to other Halo games
HaloDotAPI is an advanced Halo 5 API wrapper which is NOT based on the official one. But what does it mean? No rate limit, new endpoints, POST / PATCH / POST / PUT methods support, and last but not least, It can be extended to other Halo games.
Note: This API requires your SpartanToken Authorization (v2 and v3 are supported). See "How-to retrieve my SpartanToken?" section for further information.
Looking for variants or Forge groups? There is a search endpoint for that. Wondering which weapon skin or service tag is used by an another player? There is an appearance endpoint for that. Want to update your controller settings, know how many REQ points you got or change your matchmaking preferences? There are also endpoints for that! See Documentation.
import HaloDotAPI from 'cryptum-halodotapi'
const H5 = HaloDotAPI.initializeGame(
HaloDotAPI.getGames().H5, // h5
'...' // SpartanToken
);
const H5HaloPlayer = H5.getHaloPlayer(); // Authority
H5HaloPlayer.getPlayerAppearance('ske7ch')
.then(response => console.log(response))
.catch(error => console.log(error));
Output:
{
"Model": {
"Gender": 0
},
"Emblem": {
"ColorPrimary": 32,
"ColorSecondary": 0,
"ColorTertiary": 36,
"EmblemId": 220,
"HarmonyGroupIndex": 25,
"HarmonyIndex": 0
},
"ModelCustomization": {
"ColorPrimary": 0,
"ColorSecondary": 24,
"WeaponSkinIds": {
"34195": 4398,
"34197": 4035,
"34198": 4499,
"44596": 4207,
"44600": 4110
},
"HelmetId": 2002002,
"VisorId": 3020,
"ArmorSuitId": 1101,
"DeathFX": 0, // Not used
"Assassination": 6006,
"StanceRotation": 0,
"StanceZoom": 1, // Not used
"VoiceOver": 118003
},
"StanceId": 7007,
"Gamertag": "ske7ch",
"DateFidelity": 1,
"Links": [],
"LastModifiedUtc": {
"ISO8601Date": "2017-06-22T16:20:59.297Z"
},
"FirstModifiedUtc": {
"ISO8601Date": "2015-10-27T13:44:04.296Z"
},
"StatusCode": 0,
"ServiceTag": "SKE7",
"Company": {
"Id": "e77b33e8-8133-4c00-850e-8db63b030aac",
"Name": "Filthy Animals"
}
}
Quicker way:
Go to the Halo4Stats website, authorize the application and copy / paste the page response to the HaloDotAPI constructor. Pros? It's fast. Yeah, that's all. Cons? The website will provide you a v2 token which is grant limited, you can not handle its expiration, and there is now way to guarantee that this website will remain open.
Recommended way:
import HaloDotAPI from 'cryptum-halodotapi'
let H5 = null;
// Requires Xbox LIVE credentials
HaloDotAPI.getSpartanTokenManager().generate(
'email@xboxlive.com',
'password'
).then(spartanToken => {
H5 = HaloDotAPI.initializeGame(
HaloDotAPI.getGames().H5,
spartanToken
);
// ...
}).catch(error => console.log(error));
// ...
Note: Once retrieved / generated, your SpartanToken will expires after ~3 hours. No worries, the SpartanTokenManager will renew it and replay your request automatically.
API methods:
getGames()
:
— Return supported games.
getPlatforms()
:
— Return supported platforms. May be used for stats.
getSpartanTokenManager()
:
— Return an instance of SpartanTokenManager.
initializeGame(string:game)
:
— Initialize a GameClass.
Authorities methods (H5):
getUGC()
:
— Provides Metadata about User-Generated Content.
getSpartanStats()
:
— Provides Metadata about User-Generated Content.
getHaloPlayer()
:
— Provides Profile information about Players.
getContentHacs()
:
— Provides Metadata information.
getPacks()
:
— Provides data about REQ Packs and Cards.
getSearch()
:
— Provides Search endpoints.
getBanProcessor()
:
— Provides ban informations about Players.
Each method returned by a selected authority supports an additional options
argument which can be used to pass query
,headers
, and platform
parameters .
const options = {
query: {
count: 10,
// ...
},
headers: {
Accept: 'text/xml',
// ...
}
}
getFilmItem():
H5.getUGC().getFilmItem('FILM_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getFilmItemManifest():
H5.getUGC().getFilmItemManifest('FILM_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerMapVariants():
H5.getUGC().getPlayerMapVariants('Le ZeNy')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerGameVariants():
H5.getUGC().getPlayerGameVariants('X3CXeX v3')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerForgeGroups():
H5.getUGC().getPlayerForgeGroups('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerMapVariantItem():
H5.getUGC().getPlayerMapVariantItem('Le ZeNy', 'a5081546-b6be-4f3c-98a7-0ebb765fd7e2')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerGameVariantItem():
H5.getUGC().getPlayerGameVariantItem('X3CXeX v3', 'b768f833-878b-4e15-96e3-8e84675b553c')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerForgeGroupItem():
H5.getUGC().getPlayerForgeGroupItem('PLAYER', 'FORGE_GROUP_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerBookmarkedItem():
H5.getUGC().getPlayerBookmarkedItem('PLAYER', 'BOOKMARK_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerBookmarkedMapVariants():
H5.getUGC().getPlayerBookmarkedMapVariants('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerBookmarkedGameVariants():
H5.getUGC().getPlayerBookmarkedGameVariants('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerBookmarkedForgeGroups():
H5.getUGC().getPlayerBookmarkedForgeGroups('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerBookmarkedFilms():
H5.getUGC().getPlayerBookmarkedFilms('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerMapVariantItem():
H5.getUGC().patchPlayerMapVariantItem('PLAYER', 'MAP_VARIANT_ITEM_ID', {
Name: 'Battle Of Noctus',
Description: 'HaloDotAPI',
Tags: [ 'cryptum', 'zeny' ]
})
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerGameVariantItem():
H5.getUGC().patchPlayerGameVariantItem('PLAYER', 'GAME_VARIANT_ITEM_ID', {
Name: 'No Weapon Start',
Description: 'HaloDotAPI',
Tags: [ 'cryptum', 'x3cxex v3', 'mods' ]
})
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerForgeGroupItem():
H5.getUGC().patchPlayerForgeGroupItem('PLAYER', 'FORGE_GROUP_ITEM_ID', {
Name: 'HCS Decals',
Description: 'From the hidden 343i Forge menus.',
Tags: [ 'mods' ]
})
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerBookmarkItem():
H5.getUGC().patchPlayerForgeGroupItem('PLAYER', 'BOOKMARK_ITEM_ID', {
Name: 'Slice Disabled',
Description: 'HaloDotAPI',
Tags: [ 'cryptum', 'x3cxex v3', 'mods' ]
})
.then(result => console.log(result))
.catch(error => console.log(error));
deletePlayerMapVariantItem():
H5.getUGC().deletePlayerMapVariantItem('PLAYER', 'MAP_VARIANT_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
deletePlayerGameVariantItem():
H5.getUGC().deletePlayerGameVariantItem('PLAYER', 'GAME_VARIANT_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
deletePlayerForgeGroupItem():
H5.getUGC().deletePlayerForgeGroupItem('PLAYER', 'FORGE_GROUP_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
deletePlayerBookmarkItem():
H5.getUGC().deletePlayerBookmarkItem('PLAYER', 'BOOKMARK_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
copyGameVariantItem():
H5.getUGC().copyGameVariantItem('PLAYER', 'GAME_VARIANT_ITEM_ID', 'OWNER_NAME')
.then(result => console.log(result))
.catch(error => console.log(error));
H5.getUGC().copyGameVariantItem('PLAYER', 'GAME_VARIANT_ITEM_ID', null)
.then(result => console.log(result))
.catch(error => console.log(error));
copyMapVariantItem():
H5.getUGC().copyMapVariantItem('PLAYER', 'MAP_VARIANT_ITEM_ID', 'OWNER_NAME')
.then(result => console.log(result))
.catch(error => console.log(error));
H5.getUGC().copyMapVariantItem('PLAYER', 'MAP_VARIANT_ITEM_ID', null)
.then(result => console.log(result))
.catch(error => console.log(error));
copyForgeGroupItem():
H5.getUGC().copyForgeGroupItem('PLAYER', 'FORGE_GROUP_ITEM_ID', 'OWNER_NAME')
.then(result => console.log(result))
.catch(error => console.log(error));
bookmarkMapVariantItem():
H5.getUGC().bookmarkMapVariantItem('PLAYER', 'MAP_VARIANT_ITEM_ID', 'OWNER_NAME')
.then(result => console.log(result))
.catch(error => console.log(error));
bookmarkGameVariantItem():
H5.getUGC().bookmarkGameVariantItem('PLAYER', 'GAME_VARIANT_ITEM_ID', 'OWNER_NAME')
.then(result => console.log(result))
.catch(error => console.log(error));
bookmarkForgeGroupItem():
H5.getUGC().bookmarkForgeGroupItem('PLAYER', 'FORGE_GROUP_ITEM_ID', 'OWNER_NAME')
.then(result => console.log(result))
.catch(error => console.log(error));
bookmarkFilmItem():
H5.getUGC().bookmarkFilmItem('PLAYER', 'FILM_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerCredits():
H5.getSpartanStats().getPlayerCredits('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerCommendations():
H5.getSpartanStats().getPlayerCommendations('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerServiceRecords():
H5.getSpartanStats().getPlayerServiceRecords('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerMatches():
H5.getSpartanStats().getPlayerMatches('PLAYER', {
platform: 'PC' // HaloDotAPI.getPlatforms().PC
})
.then(result => console.log(result))
.catch(error => console.log(error));
getCampaignMatchResult():
H5.getSpartanStats().getCampaignMatchResult('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getArenaMatchResult():
H5.getSpartanStats().getArenaMatchResult('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getWarzoneMatchResult():
H5.getSpartanStats().getWarzoneMatchResult('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getCustomMatchResult():
H5.getSpartanStats().getCustomMatchResult('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getCampaignMatchEvents():
H5.getSpartanStats().getCampaignMatchEvents('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getArenaMatchEvents():
H5.getSpartanStats().getArenaMatchEvents('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getWarzoneMatchEvents():
H5.getSpartanStats().getWarzoneMatchEvents('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getCustomMatchEvents():
H5.getSpartanStats().getCustomMatchEvents('PLAYER', 'MATCH_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getSpartanCompany():
H5.getSpartanStats().getSpartanCompany('SPARTAN_COMPANY_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getSpartanCompanyCommendations():
H5.getSpartanStats().getSpartanCompanyCommendations('SPARTAN_COMPANY_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerSpartan():
H5.getHaloPlayer().getPlayerSpartan('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerEmblem():
H5.getHaloPlayer().getPlayerEmblem('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayersProfile():
H5.getHaloPlayer().getPlayersProfile(['PLAYER_1', 'PLAYER_2'])
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerAppearance():
H5.getHaloPlayer().getPlayerAppearance('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerInventory():
H5.getHaloPlayer().getPlayerInventory('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerPreferences():
H5.getHaloPlayer().getPlayerPreferences('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerControls():
H5.getHaloPlayer().getPlayerControls('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerCampaign():
H5.getHaloPlayer().getPlayerCampaign('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerAppearance():
H5.getHaloPlayer().patchPlayerAppearance('PLAYER', {
Emblem: {
PrimaryColor: 60,
HarmonyGroupIndex: 0
},
ModelCustomization: {
ColorSecondary: 12,
WeaponSkinIds: {
'44600': 0
},
StanceRotation: 180,
DeathFX: 0
},
ServiceTag: 'ZENY'
})
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerPreferences():
H5.getHaloPlayer().patchPlayerPreferences('PLAYER', {
Forge: {
CinematicPlayerCount: 32
},
Matchmaking: {
MatchmakingPreferences: 2
},
Hud: {
TeamColorMode: 1
}
})
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerControls():
H5.getHaloPlayer().patchPlayerControls('PLAYER', {
MaintainSprint: false,
AimStickAxialDeadZone: 10,
SmoothScrolling: true,
AimAssist: true // What?
})
.then(result => console.log(result))
.catch(error => console.log(error));
patchPlayerCampaign():
H5.getHaloPlayer().patchPlayerCampaign('PLAYER', {
AvailableMissionIds: [
{
Id: 1,
Available: true
}
],
AvailableSkullIds: [
{
Id: 8,
Available: false
}
],
LocatedAudioLogIds: [
{
Id: 19,
Available: true
}
],
CompletedTutorialIds: [],
MissionDifficulties: []
})
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerPacks():
H5.getPacks().getPlayerPacks('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerPackItem():
H5.getPacks().getPlayerPackItem('PLAYER', 'PACK_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerCards():
H5.getPacks().getPlayerCards('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerCardItem():
H5.getPacks().getPlayerCardItem('PLAYER', 'CARD_ITEM_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayerStore():
H5.getPacks().getPlayerStore('PLAYER')
.then(result => console.log(result))
.catch(error => console.log(error));
openPlayerPackInstance():
H5.getPacks().openPlayerPackInstance('PLAYER', 'PACK_ITEM_ID', 'PACK_INSTANCE_ID')
.then(result => console.log(result))
.catch(error => console.log(error));
searchGameVariants():
H5.getSearch().searchGameVariants('*', {
query: {
owner: 'X3CXeX v3',
count: 10
}
})
.then(result => console.log(result))
.catch(error => console.log(error));
searchMapVariants():
H5.getSearch().searchMapVariants('*', {
query: {
owner: 'Le ZeNy',
count: 10
}
})
.then(result => console.log(result))
.catch(error => console.log(error));
searchForgeGroups():
H5.getSearch().searchForgeGroups('UNSC')
.then(result => console.log(result))
.catch(error => console.log(error));
searchPlayerFiles():
H5.getSearch().searchPlayerFiles('Warzone', {
query: {
count: 20
}
})
.then(result => console.log(result))
.catch(error => console.log(error));
getPlayersBanSummary():
H5.getSearch().getPlayersBanSummary(['PLAYER_1', 'PLAYER_2'])
.then(result => console.log(result))
.catch(error => console.log(error));
getMessageOfTheDay():
H5.getContentHacs().getMessageOfTheDay()
.then(result => console.log(result))
.catch(error => console.log(error));
getGameBaseVariants():
H5.getContentHacs().getGameBaseVariants()
.then(result => console.log(result))
.catch(error => console.log(error));
getGameVariantsDefinitions():
H5.getContentHacs().getGameVariantsDefinitions()
.then(result => console.log(result))
.catch(error => console.log(error));
getWeaponsSkins():
H5.getContentHacs().getWeaponsSkins()
.then(result => console.log(result))
.catch(error => console.log(error));
getHoppers():
H5.getContentHacs().getHoppers()
.then(result => console.log(result))
.catch(error => console.log(error));
getEmblems():
H5.getContentHacs().getEmblems()
.then(result => console.log(result))
.catch(error => console.log(error));
getREQs():
H5.getContentHacs().getREQs()
.then(result => console.log(result))
.catch(error => console.log(error));
getByType():
H5.getContentHacs().getByType('TYPE') // Deathfx, MetaCommendation...
.then(result => console.log(result))
.catch(error => console.log(error));
Methods:
error.getReason()
:
— Return error reason.
error.getCode()
:
— Return error code.
error.getMessage()
:
— Return error message.
error.getStack()
:
— Return error stack trace.
error.getHTTPStatus()
:
— Return error HTTP status.
HTTP Status:
Note: "Authentication Required" error may imply grant limitation (Trying to update another player, access to its inventory or a SpartanToken version / scope limitation).
Feel free to open a pull request or an issue on GitHub!
Tweet me at @_SuckMyLuck or message me on Reddit!
MIT
FAQs
Advanced Halo 5 API wrapper which can be extended to other Halo games
We found that cryptum-halodotapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.