New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

h5-cryptum-resources-retriever

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

h5-cryptum-resources-retriever

Retrieve and save any variants to your own profile, including Warzone ones

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

[Halo 5] Cryptum - Resources Retriever

N|Solid

What is this?

Resources Retriever allows you to retrieve and save any variants to your own profile, including Warzone ones.

How-to use

ES6:

import ResourcesRetriever from 'h5-cryptum-resources-retriever'

const { MAP_VARIANT, GAME_VARIANT } = ResourcesRetriever.getAllowedFileTypes();
const { PLAYER, SYSTEM } = ResourcesRetriever.getAllowedOwnerTypes();

// Retrieve a map variant from the content-hacs API
// Summit (Warzone Assault)

ResourcesRetriever
.setGamertag('...')
.setSpartanToken('...') 
.setFileId('27199f2a47084284a733a2cc223559dc')
.setFileType(MAP_VARIANT)
.setOwnerType(SYSTEM)
.retrieveAndSave((err, result) => console.log(err, result));

// Retrieve a game variant from a player
// No Weapon Start

ResourcesRetriever
.setGamertag('...')
.setSpartanToken('...')
.setFileId('b768f833-878b-4e15-96e3-8e84675b553c')
.setFileType(GAME_VARIANT)
.setOwnerType(PLAYER)
.setOwnerName('X3CXeX v3') // File's owner
.retrieveAndSave((err, result) => console.log(err, result));

ES5:

var ResourcesRetriever = require('h5-cryptum-resources-retriever').default;

var allowedFileTypes = ResourcesRetriever.getAllowedFileTypes();
var allowedOwnerTypes = ResourcesRetriever.getAllowedOwnerTypes();

// Retrieve a map variant from the content-hacs API
// Dispatch (Warzone Assault)

ResourcesRetriever
.setGamertag('...')
.setSpartanToken('...') 
.setFileId('026064ad62bc4f30892ab69fa76ed331')
.setFileType(allowedFileTypes.MAP_VARIANT)
.setOwnerType(allowedOwnerTypes.SYSTEM)
.retrieveAndSave(function(err, result) {
	return console.log(err, result);
});

// Retrieve a game variant from a player
// Weapons Damage Disabled

ResourcesRetriever
.setGamertag('...')
.setSpartanToken('...')
.setFileId('9b16f28b-f26d-494d-9dac-3378c84bcd01')
.setFileType(allowedFileTypes.GAME_VARIANT)
.setOwnerType(allowedOwnerTypes.PLAYER)
.setOwnerName('X3CXeX v3') // File's owner
.retrieveAndSave(function(err, result) {
	return console.log(err, result);
});

Note: Dashes in the File Id are optional.

What is my Spartan Token?

Right now, the quicker way to retrieve your Spartan Token (Authorization) is to go to the Halo4Stats website. A generator will be released on my GitHub as soon as possible.

And what about the File Id?

Everything you need might be found on the content-hacs API (See: "Identity" key). Also each player's file has its own id and can be located in its sharing URL after the hash key (#). Example: https://...#ugc...66681a69-8096-42c5-8df1-a89b21974cf1.

Want to contribute?

Feel free to open a pull request on GitHub!

Licence

MIT

Keywords

FAQs

Package last updated on 02 Aug 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc