Method GetArticleCategory
GetArticleCategory(Int32, String)
Gets the details on a single article category published on Halo Waypoint.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.Waypoint.ArticleCategory,Den.Dev.Grunt.Models.RawResponseContainer>> GetArticleCategory (int id, string language = "");
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | id | ID of the category. Must be an integer. |
| System.String | language | Language in which the category should be displayed. Example value is "en". |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<HaloApiResultContainer<ArticleCategory,RawResponseContainer>> | If successful, returns an instance of ArticleCategory containing category information. Otherwise, returns a null object and the error details. |
Remarks
If you specify a category that does not exist, the response will be a HTTP 200 OK but with a null body.
Examples
Here is an example response from the API, as snapshotted on 11/7/2022:
{
"id": 73,
"name": "Canon Fodder",
"description": "",
"slug": "canon-fodder",
"count": 38,
"parent": 70
}