GitHub
GitHub Issue Comments API
The comment thread on an issue or pull request: body, author, reactions and timestamps, in order. Costs 1 credit per request.
POST/api/v1/github/issue/comments
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonurlstringrequiredAn issue or PR URL (.../issues/<n> or .../pull/<n>), or <owner>/<repo>#<n>.
Example: facebook/react#37330
sincestringISO 8601 timestamp. Only comments created or updated at or after this time.
per_pageintegerItems per page, 1-100.
pageintegerPage number, 1-based.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
result = client.github.issue_comments("facebook/react#37330", per_page=50)
print(result)Response
"items": [],
"page": 1,
"per_page": 30,
"has_next": false
},
"response_time": 4019
}