Closed jterps08 closed 6 years ago
What endpoint is used here?
That's what I see for /api/v2/user/groups
:
$ http GET https://api-dev.powerli.ne/api/v2/user/groups "Token: $ZXC_TOKEN"
HTTP/1.1 200 OK
...
{
"items": 50,
"page": 1,
"payload": [
{
"acronym": "Tc3",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/592e1a878b2c8593112936.jpeg?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Mon, 29 May 2017 18:58:23 +0000",
"fill_fields_required": false,
"group_type_label": "common",
"id": 423,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "Testchar3",
"petition_per_month": 30,
"priority_item_count": 1,
"total_members": 2,
"user_role": "owner"
},
{
"acronym": "Tcs",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/59bbd39400dc2333710692.jpeg?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Tue, 21 Feb 2017 01:12:17 +0000",
"fill_fields_required": false,
"group_type_label": "common",
"id": 380,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "Testcharset",
"petition_per_month": 30,
"priority_item_count": 0,
"total_members": 5,
"user_role": "owner"
},
{
"acronym": "Tc2",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/59bbd398af99e992739559.jpeg?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Fri, 19 May 2017 01:06:01 +0000",
"fill_fields_required": false,
"group_type_label": "common",
"id": 420,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "Testcharset2",
"petition_per_month": 30,
"priority_item_count": 0,
"total_members": 1,
"user_role": "owner"
},
{
"acronym": "Zxc1",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/59bbd398948bf650719939.jpeg?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Thu, 18 May 2017 03:10:10 +0000",
"fill_fields_required": false,
"group_type_label": "common",
"id": 419,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "Zxc0517",
"petition_per_month": 30,
"priority_item_count": 0,
"total_members": 2,
"user_role": "owner"
},
{
"acronym": "Bt1",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/5887771e3f017.jpeg?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Sat, 29 Oct 2016 17:57:57 +0000",
"fill_fields_required": true,
"group_type_label": "common",
"id": 337,
"join_status": null,
"joined": true,
"membership_control": "passcode",
"official_name": "buildtest1088",
"petition_per_month": 8,
"priority_item_count": 0,
"total_members": 5,
"user_role": "member"
},
{
"acronym": "BT17",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/58d6ad2aeed84.jpeg?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Tue, 24 Jan 2017 04:49:19 +0000",
"fill_fields_required": false,
"group_type_label": "common",
"id": 368,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "BuildTest2017",
"petition_per_month": 30,
"priority_item_count": 0,
"total_members": 2,
"user_role": "member"
},
{
"acronym": "NY",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/59bbd37a3044b313848180.png?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Mon, 10 Mar 2014 10:10:51 +0000",
"fill_fields_required": false,
"group_type_label": "state",
"id": 33,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "New York",
"petition_per_month": 5,
"priority_item_count": 0,
"total_members": 123,
"user_role": "member"
},
{
"acronym": null,
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/59bbd388a6f34186193467.png?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Tue, 21 Jun 2016 12:54:23 +0000",
"fill_fields_required": false,
"group_type_label": "local",
"id": 281,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "New York",
"petition_per_month": 5,
"priority_item_count": 0,
"total_members": 115,
"user_role": "member"
},
{
"acronym": "US",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/59bbd374d4f74893327437.png?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Mon, 10 Mar 2014 10:10:51 +0000",
"fill_fields_required": false,
"group_type_label": "country",
"id": 1,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "The United States of America",
"petition_per_month": 5,
"priority_item_count": 0,
"total_members": 197,
"user_role": "member"
},
{
"acronym": "Zxc2",
"avatar_file_path": "https://powerline-dev.imgix.net/avatars/src/58d7e1dfceaed.jpeg?ixlib=php-1.1.0",
"banner": null,
"conversation_view_limit": 10,
"created_at": "Sat, 25 Mar 2017 03:21:52 +0000",
"fill_fields_required": false,
"group_type_label": "common",
"id": 416,
"join_status": null,
"joined": true,
"membership_control": "public",
"official_name": "Zxcgroup22",
"petition_per_month": 30,
"priority_item_count": 0,
"total_members": 3,
"user_role": "member"
}
],
"totalItems": 10
}
Why are there duplicates in this list? User zxc