Get your roadmap comment viewer state
curl --request GET \
--url https://api.plazza.ca/v1/roadmapBoards/{board}/items/{item}/comments/{comment}/viewerState \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.plazza.ca/v1/roadmapBoards/{board}/items/{item}/comments/{comment}/viewerState', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.plazza.ca/v1/roadmapBoards/{board}/items/{item}/comments/{comment}/viewerState"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"name": "roadmapBoards/hire/items/019a7c2e-4b1d-7c3a-9d4e-5f6a7b8c9d0e/comments/019a7c31-0e2f-7a1b-8c3d-4e5f6a7b8c9d/viewerState",
"owned": false,
"reactions": [
"👍"
]
}{
"error": {
"code": 401,
"message": "Unauthorized",
"status": "UNAUTHENTICATED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "MISSING_CREDENTIALS",
"domain": "api.plazza.ca"
},
{
"@type": "type.googleapis.com/google.rpc.LocalizedMessage",
"locale": "en",
"message": "Sign in to continue."
}
]
}
}Roadmap
Get your roadmap comment viewer state
Whether you wrote the comment, and how you reacted to it.
GET
/
v1
/
roadmapBoards
/
{board}
/
items
/
{item}
/
comments
/
{comment}
/
viewerState
Get your roadmap comment viewer state
curl --request GET \
--url https://api.plazza.ca/v1/roadmapBoards/{board}/items/{item}/comments/{comment}/viewerState \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.plazza.ca/v1/roadmapBoards/{board}/items/{item}/comments/{comment}/viewerState', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.plazza.ca/v1/roadmapBoards/{board}/items/{item}/comments/{comment}/viewerState"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"name": "roadmapBoards/hire/items/019a7c2e-4b1d-7c3a-9d4e-5f6a7b8c9d0e/comments/019a7c31-0e2f-7a1b-8c3d-4e5f6a7b8c9d/viewerState",
"owned": false,
"reactions": [
"👍"
]
}{
"error": {
"code": 401,
"message": "Unauthorized",
"status": "UNAUTHENTICATED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "MISSING_CREDENTIALS",
"domain": "api.plazza.ca"
},
{
"@type": "type.googleapis.com/google.rpc.LocalizedMessage",
"locale": "en",
"message": "Sign in to continue."
}
]
}
}Authorizations
Path Parameters
Response
What you did on one comment: private to you. A singleton under the comment.
What you did on one comment: private to you. A singleton under the comment.