Garry's Mod Wiki

GetAPIManifest

GetAPIManifest

  GetAPIManifest( function callback )

Description

This is used internally - although you're able to use it you probably shouldn't.
All dates are in WDDX format

Gets miscellaneous information from Facepunches API.

Arguments

1 function callback
Callback to be called when the API request is done.

Callback is called with one argument, a JSON which when converted into a table using util.JSONToTable contains the following:

{ "ManifestVersion": number - Version of the manifest "Date": string - Date in WDDX format // Contains all the blog posts, the things in the top right of the menu "News": { "Blogs": [ // Structure of blog posts { "Date": string - Date in WDDX format of the post "ShortName": string - Short name of the post, identifier of it on the blog website "Title": string - Title of the post "HeaderImage": string - Main image of the post, showed in the top right "SummaryHtml": string - Summary of the blogpost, text thats shown "Url": string - URL to the post on the blog "Tags": string - String of the posts tag } ] } // Array of Facepunches Mods, Admins and Devs "Administrators": [ { "UserId": string - SteamID64 of the person "Level": string - Level of the user (Administrator, Developer or Moderator) } ] // Unused and contains nothing useful "Heroes": {} "SentryUrl": string - Nothing "DatabaseUrl" string - URL to the Facepunch API (/database/{action}/) "FeedbackUrl" string - URL to the Facepunch API (/feedback/add/) "ReportUrl" string - URL to the Facepunch API (/feedback/report/) "LeaderboardUrl" string - URL to the Facepunch API (/leaderboard/{action}/) "BenchmarkUrl" string - URL to the Facepunch API (/benchmark/add/) "AccountUrl" string - URL to the Facepunch API (/account/{action}/) "Servers": { "Official": [] // Nothing // List of blacklisted servers "Banned": [ string - IP of the blacklisted server ] } }

Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 3
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 7