Comment Object
Unique id of the comment.
2
Unique game id (if applicable).
2
Deprecated: Please use resource_id instead, this will be removed in subsequent API version.
2
Unique id of the parent resource.
2
Bitwise value of the user who published the comment.
2
user object
Contains user data.
Unique id of the user.
1
Path for the user on mod.io. For example: https://mod.io/u/__name-id-here__
xant
Display name of the user.
XanT
The users' display name for the targeted portal. Value will be null
if no valid X-Modio-Portal
portal header value is provided. For more information see Targeting a Portal.
null
Unix timestamp of date the user was last online.
1509922961
Unix timestamp of date the user joined.
1509922961
avatar object
Contains avatar data.
Avatar filename including extension.
avatar.png
URL to the full-sized avatar.
https://assets.modcdn.io/images/placeholder/avatar.png
URL to the small avatar thumbnail.
https://assets.modcdn.io/images/placeholder/avatar_50x50.png
URL to the medium avatar thumbnail.
https://assets.modcdn.io/images/placeholder/avatar_100x100.png
Deprecated: No longer used and will be removed in subsequent API version.
Deprecated: No longer used and will be removed in subsequent API version. To localize the API response we recommend you set the Accept-Language
header.
URL to the users profile.
https://mod.io/u/xant
Unix timestamp of date the comment was posted.
1499841487
Id of the parent comment this comment is replying to (can be 0 if the comment is not a reply).
0
Levels of nesting in a comment thread. How it works:
- The first comment will have the position '01'.
- The second comment will have the position '02'.
- If someone responds to the second comment the position will be '02.01'.
- A maximum of 3 levels is supported.
01
Karma received for the comment (can be postive or negative).
1
Deprecated: No longer used and will be removed in subsequent API version.
0
Contents of the comment.
Hey <a href="https://mod.io/u/guest">guest</a>, you should check out this mod!
Enum Value | Description |
---|---|
NONE (0) | All of the options below are disabled |
PINNED (1) | Pinned comment |
LOCKED (2) | Locked comment |
Possible values: [0
, 1
, 2
, 4
]
{
"id": 2,
"game_id": 2,
"mod_id": 2,
"resource_id": 2,
"resource_ownership": 2,
"user": {
"id": 1,
"name_id": "xant",
"username": "XanT",
"display_name_portal": null,
"date_online": 1509922961,
"date_joined": 1509922961,
"avatar": {
"filename": "avatar.png",
"original": "https://assets.modcdn.io/images/placeholder/avatar.png",
"thumb_50x50": "https://assets.modcdn.io/images/placeholder/avatar_50x50.png",
"thumb_100x100": "https://assets.modcdn.io/images/placeholder/avatar_100x100.png"
},
"timezone": "",
"language": "",
"profile_url": "https://mod.io/u/xant"
},
"date_added": 1499841487,
"reply_id": 0,
"thread_position": "01",
"karma": 1,
"karma_guest": 0,
"content": "Hey <a href=\"https://mod.io/u/guest\">guest</a>, you should check out this mod!",
"options": 0
}