For Developers
Get Announcement
GET https://ed.link/api/v2/my/classes/:class\_id/announcements/:announcement\_id
Retrieve information about a specific Announcement.
Request Parameters
Parameter | Type | Description |
---|---|---|
class_id | string | The UUID of the desired Class. |
announcement_id | string | The UUID of the desired Announcement. |
Sample Request
axios.get(`https://ed.link/api/v2/my/classes/${class_id}/announcements/${announcement_id}`, {
headers: {
authorization: `Bearer ${person_access_token}`
}
});
Sample Response
{
"$data": {
"state": "published",
"section_ids": [],
"body": "Check out this video!",
"attachments": [
{
"type": "link",
"title": "Geography Now! UNITED STATES OF AMERICA",
"url": "https://www.youtube.com/watch?v=Xp_TGilL9Sk"
}
],
"identifiers": [
{
"type": "google_id",
"value": "0000000000000"
}
],
"id": "00000000-0000-0000-0000-000000000000"
},
"$request": "00000000-0000-0000-0000-000000000000"
}