The Autocode Standard Library is an open library of Connector APIs, often just shortened to APIs, that make it much easier to add complex functionality to your app via third-party tools and some first-party utilities. There are three categories of Standard Library APIs.
Using the Autocode Standard Library is easy. Simply import the NPM package via JavaScript and call APIs by their namespace. Documentation is available on individual API pages. The Discord API for example, can be called like so;
// Using Node.js 12.x + // use "lib" package from npm const lib = require('lib')({token: null /* link an account to create an identity */}); // make API request let result = await lib.halo.mcc['@0.0.11'].stats({ gamertag: `threesided` });
Upon execution returns...
{ "gamertag": "threesided", "clantag": "PRED", "emblem": "https://emblems.svc.halowaypoint.com/hmcc/emblems/white_steel_hawk-on-brick_power", "playtime": "2d 22h 52m 44s", "gamesPlayed": 417, "wins": 235, "losses": 182, "winRatio": 0.5635491606714629, "kills": 6827, "deaths": 3807, "killDeathRatio": 1.7932755450485947, "killsPerGame": 16.371702637889687, "deathsPerGame": 9.129496402877697, "last20": [ 1, -1, -1, 1, 1, 1, -1, 1, -1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 1 ], "streak": "win 1" }
You can read more about the Autocode Standard Library and contributing by clicking here.