Falcons Flying Flamingos
  5182 active members
  5164 are Online

Year

28

Day

5

Time

18:34:19

Guest
Login
Fully Implemented

Fully Implemented

Property Details
URL: https://dev.swcombine.com/ws/v2.0/event/{uid:39\:\d+}[/]
Method: GET
Description: Gets a specific event based on the event uid
Pattern Description: uid (Mandatory): UID of the event
Rate Limited: Yes
Query String: N/A
Parameters: N/A
Requires Authentication: Yes
Permissions: character_events: Read the characters' events
Returns: 200 OK: Returns the event
400 Bad Request: One or more of the provided parameters was invalid
401 Unauthorized: The client does not have the required permission to access this resource
404 Not Found: The specified entity does not exist or you do not have authorisation to access event information
Examples:
GET /ws/v2.0/event/39:1001/
JSON
{
    "version": "2.0",
    "timestamp": 1767225600,
    "resource": "events_id",
    "request": "/ws/v2.0/event/39:1001/",
    "swcapi": {
        "event": {
            "uid": "39:1001",
            "receiver": {
                "value": "Kira Vane",
                "attributes": {
                    "uid": "1:1001",
                    "type": "character",
                    "href": "https://www.swcombine.com/ws/v2.0/character/kira%20vane/"
                }
            },
            "time": {
                "years": 27,
                "days": 298,
                "hours": 10,
                "mins": 35,
                "secs": 17,
                "timestamp": "1789839317"
            },
            "text": "You gained 100 XP with the following message: You became faction leader for the first time."
        }
    }
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="events_id" request="/ws/v2.0/event/39:1001/">
  <event>
    <uid>39:1001</uid>
    <receiver uid="1:1001" type="character" href="https://www.swcombine.com/ws/v2.0/character/kira%20vane/">Kira Vane</receiver>
    <time>
      <years>27</years>
      <days>298</days>
      <hours>10</hours>
      <mins>35</mins>
      <secs>17</secs>
      <timestamp>1789839317</timestamp>
    </time>
    <text>You gained 100 XP with the following message: You became faction leader for the first time.</text>
  </event>
</swcapi>
combat GET /ws/v2.0/event/39:57883/
JSON
{
    "version": "2.0",
    "timestamp": 1767225600,
    "resource": "events_id",
    "request": "/ws/v2.0/event/39:57883/",
    "swcapi": {
        "event": {
            "uid": "39:57883",
            "receiver": {
                "value": "Testing Character",
                "attributes": {
                    "uid": "1:45257",
                    "type": "character",
                    "href": "https://www.swcombine.com/ws/v2.0/character/testing%20character/"
                }
            },
            "time": {
                "years": 27,
                "days": 345,
                "hours": 13,
                "mins": 33,
                "secs": 35,
                "timestamp": "1793910815"
            },
            "text": "You attacked the squad led by Yen Swift: <a href=\"/members/events/single-combat-report.php?reportID=316&amp;checksum=9df18e022d98e39b381e017c6b046b3a\">Battle Report</a>",
            "report": {
                "value": "Battle Report - Year 27 Day 346, 13:33:35",
                "attributes": {
                    "id": 316,
                    "href": "https://www.swcombine.com/ws/v2.0/events/combat/report/316/"
                }
            }
        }
    }
}
XML
<?xml version="1.0" encoding="UTF-8"?>
<swcapi xmlns="https://www.swcombine.com/ws/swcapi-ns/" version="2.0" timestamp="1767225600" resource="events_id" request="/ws/v2.0/event/39:57883/">
  <event>
    <uid>39:57883</uid>
    <receiver uid="1:45257" type="character" href="https://www.swcombine.com/ws/v2.0/character/testing%20character/">Testing Character</receiver>
    <time>
      <years>27</years>
      <days>345</days>
      <hours>13</hours>
      <mins>33</mins>
      <secs>35</secs>
      <timestamp>1793910815</timestamp>
    </time>
    <text>You attacked the squad led by Yen Swift: &lt;a href="/members/events/single-combat-report.php?reportID=316&amp;amp;checksum=9df18e022d98e39b381e017c6b046b3a"&gt;Battle Report&lt;/a&gt;</text>
    <report id="316" href="https://www.swcombine.com/ws/v2.0/events/combat/report/316/">Battle Report - Year 27 Day 346, 13:33:35</report>
  </event>
</swcapi>