GET /api/v2/news/8/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 8,
    "url": "https://swarfarm.com/api/v2/news/8/?format=api",
    "title": "Big SW-Exporter Update Available",
    "body": "Xzandro and I have just released a big update to SW-Exporter. Check out the [release](https://github.com/Xzandro/sw-exporter/releases/latest) for the feature list. The big item is the external plugin support - now anyone can write plugins for SW-Exporter! Details of developing plugins are in the [readme](https://github.com/Xzandro/sw-exporter/blob/master/README.md#developing-plugins).\r\n\r\nSpecifically for the SWARFARM logger plugin, I have a couple new features. First, the plugin now authenticates with the provided API key when logging events. This fixes an issue where some users have multiple SWARFARM accounts associated with the same in-game accounts, and SWARFARM did not know which account to attach log events to. The API key will ensure that a specific SWARFARM account is used.\r\n\r\nSecond, there is now support for multiple API keys by entering a JSON mapping instead of just a plain API key. The mapping provides an association between your in-game account number and the API key. The mapping should look like this:\r\n\r\n```\r\n{\r\n    \"12345678\": \"19fc64e770084cafac2e2494d6cc0aec\",\r\n    \"87654321\": \"36443dd2e6ad422dad433292b18efa5e\"\r\n}\r\n```\r\n\r\nI have set up an [example in an online JSON editing tool for you to start with here](https://jsonformatter.org/0c7055). Be sure to check if your mapping is valid before using it in the plugin! You can add as many new entries to the mapping as you have accounts.\r\n\r\nThe first, shorter number is your in-game account ID. This matches the number in the profile json filename you normally import into SWOP and SWARFARM. For example, if the profile JSON filename is `porksmash-44553123.json`, your account number is `44553123`.  The second longer alphanumerical string is your SWARFARM API key. To find or generate an API key, log into the website, click on your account name, and select Edit Profile. There is an API key field there with a generate button.\r\n\r\nThe final update for the SWARFARM logger plugin is that it will automatically update itself if the server has changed the in-game events that can be logged. I do this occasionally to add new areas of the game to log, or fix bugs because I am not requesting the right data. This was a problem for people who leave SW-Exporter running for extended periods of time.",
    "created": "2019-05-20T08:31:26-07:00",
    "sticky": false
}