Get a single group membership (based on parameters)

Required Scopes: read_groups

user_id String
Optional
Only show memberships for the given user. Defaults to the id of the currently authenticated user.
group_id Integer
Optional
Only show memberships for the given group. If specified, user_id is ignored.
page Integer
Optional
The page number (starting with 1), default is 1
per_page Integer
Optional
The maximum number of results per page, default depends on the requested resource.

Example RequestGET https://api.edmodo.com/group_memberships?group_id=26
Authorization: Bearer 8fb2f251560655

Example Response[
{
"url": "https://api.edmodo.com/group_memberships/26",
"type": "owner",
"show_in_latest_posts": true,
"send_notifications": false,
"color": "purple",
"group":
{
"url": "https://api.edmodo.com/groups/26",
"id": 26,
"title": "Geometry Period 1",
},
"user":
{
"url": "https://api.edmodo.com/users/1",
"id": 1,
"type": "teacher",
"username": "adamstep",
"user_title": "Mr",
"first_name": "Adam",
"last_name": "Stepinski",
"avatars":
{
"small": "https://u.ph.edim.co/default-avatars/10_t.jpg",
"large": "https://u.ph.edim.co/default-avatars/10.jpg"
}
}
},
{
"url": "https://api.edmodo.com/group_memberships/39",
"type": "read_write_member",
"show_in_latest_posts": true,
"send_notifications": false,
"color": "mustard",
"group":
{
"url": "https://api.edmodo.com/groups/26",
"id": 26,
"title": "Geometry Period 1",
},
"user":
{
"url": "https://api.edmodo.com/users/2",
"id": 2,
"type": "student",
"username": "bart",
"user_title": null,
"first_name": "Bart",
"last_name": "Simpson",
"avatars":
{
"small": "https://u.ph.edim.co/default-avatars/11_t.jpg",
"large": "https://u.ph.edim.co/default-avatars/11.jpg"
}
}
}
]

Get a single group membership (based on ID)

GET /group_memberships/:id

Required Scopes: read_groups

Example RequestGET https://api.edmodo.com/group_memberships/2
Authorization: Bearer 8fb2f251560655

Example Response200 OK
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
{
"url": "https://api.edmodo.com/group_memberships/26",
"type": "owner",
"show_in_latest_posts": true,
"send_notifications": false,
"color": "purple",
"group":
{
"url": "https://api.edmodo.com/groups/26",
"id": 26,
"title": "Geometry Period 1",
"description": "Eighth grade geometry class"
},
"user":
{
"url": "https://api.edmodo.com/users/1",
"id": 1,
"type": "teacher",
"username": "adamstep",
"user_title": "Mr",
"first_name": "Adam",
"last_name": "Stepinski",
"avatars":
{
"small": "https://u.ph.edim.co/default-avatars/10_t.jpg",
"large": "https://u.ph.edim.co/default-avatars/10.jpg"
}
}
}