Comments documentation
project_id (str) – ID of the project to fetch comments for.
params (dict) – (optional) pagination options
Collection of comments
Example:
client.project_comments('123.abc', {"page": 2, "limit": 1})
project_id (str) – ID of the project
key_id (int or str) – ID of key to fetch comments for
client.key_comments('123.abc', 3456, {"limit": 1, "page": 2})
comment_id (int or str) – Comment identifier to fetch
Comment model
comment = client.key_comment('123.abc', 3456, 1234) comment.key_id # => 3456 comment.added_by_email # => "test@example.com"
key_id (int or str) – ID of key to create comments for
params (list or dict) – Comment parameters
client.create_key_comments('123.abc', 3456, [ { "comment": "Python comment 1" }, { "comment": "Python comment 2" } ])
key_id (int or str) – ID of key to delete comment for.
comment_id (int or str) – Comment to delete
Dictionary with project ID and “comment_deleted” set to True
client.delete_key_comment('123.abc', 3456, 9838)
Comments endpoint¶
Comments documentation
Fetch all project comments¶
project_id (str) – ID of the project to fetch comments for.
params (dict) – (optional) pagination options
Collection of comments
Example:
Fetch all key comments¶
project_id (str) – ID of the project
key_id (int or str) – ID of key to fetch comments for
params (dict) – (optional) pagination options
Collection of comments
Example:
Fetch key comment¶
project_id (str) – ID of the project
key_id (int or str) – ID of key to fetch comments for
comment_id (int or str) – Comment identifier to fetch
Comment model
Example:
Create key comments¶
project_id (str) – ID of the project
key_id (int or str) – ID of key to create comments for
params (list or dict) – Comment parameters
Collection of comments
Example:
Delete key comment¶
project_id (str) – ID of the project
key_id (int or str) – ID of key to delete comment for.
comment_id (int or str) – Comment to delete
Dictionary with project ID and “comment_deleted” set to True
Example: