GET https://:account.api-us1.com/api/3/groups
- cURL
curl --request GET \
--url https:///:account.api-us1.com/api/3/groups
- Node
var request = require("request");
var options = { method: 'GET',
url: 'https:///:account.api-us1.com/api/3/groups' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
- Ruby
require 'uri'
require 'net/http'
url = URI("https:///:account.api-us1.com/api/3/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
- JavaScript
var data = JSON.stringify(false);
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("GET", "https:///:account.api-us1.com/api/3/groups");
xhr.send(data);
- Python
import requests
url = "https:///:account.api-us1.com/api/3/groups"
response = requests.request("GET", url)
print(response.text)
200 OK
{
"groups": [
{
"title": "TEST TITLE",
"descript": "This is a group for admin users (people that can manage content)",
"unsubscribelink": "0",
"optinconfirm": "0",
"p_admin": "1",
"pgListAdd": "1",
"pgListEdit": "1",
"pgListDelete": "1",
"pgListHeaders": "1",
"pgListEmailaccount": "1",
"pgListBounce": "1",
"pgMessageAdd": "1",
"pgMessageEdit": "1",
"pgMessageDelete": "1",
"pgMessageSend": "1",
"pgContactAdd": "1",
"pgContactEdit": "1",
"pgContactDelete": "1",
"pgContactMerge": "1",
"pgContactImport": "1",
"pgContactApprove": "1",
"pgContactExport": "1",
"pgContactSync": "1",
"pgContactFilters": "1",
"pgContactActions": "0",
"pgContactFields": "1",
"pg_user_add": "1",
"pg_user_edit": "1",
"pg_user_delete": "1",
"pgGroupAdd": "1",
"pgGroupEdit": "1",
"pgGroupDelete": "1",
"pgTemplateAdd": "1",
"pgTemplateEdit": "1",
"pgTemplateDelete": "1",
"pgPersonalizationAdd": "1",
"pgPersonalizationEdit": "1",
"pgPersonalizationDelete": "1",
"pgAutomationManage": "1",
"pgFormEdit": "1",
"pgReportsCampaign": "1",
"pgReportsList": "1",
"pgReportsUser": "1",
"pgReportsTrend": "1",
"pgStartupReports": "1",
"pgStartupGettingstarted": "1",
"pgDeal": "1",
"pgDealDelete": "1",
"pgDealReassign": "1",
"pgDealGroupAdd": "1",
"pgDealGroupEdit": "1",
"pgDealGroupDelete": "1",
"pgSavedResponsesManage": "1",
"sdate": "2018-09-20T10:51:14-05:00",
"reqApproval": "0",
"reqApproval1st": "2",
"reqApprovalNotify": "",
"socialdata": "0",
"links": {
"userGroups": "https://:account.api-us1.com/api/3/groups/3/userGroups",
"groupLimit": "https://:account.api-us1.com/api/3/groups/3/groupLimit",
"dealGroupGroups": "https://:account.api-us1.com/api/3/groups/3/dealGroupGroups",
"listGroups": "https://:account.api-us1.com/api/3/groups/3/listGroups",
"addressGroups": "https://:account.api-us1.com/api/3/groups/3/addressGroups",
"automationGroups": "https://:account.api-us1.com/api/3/groups/3/automationGroups"
},
"id": "3"
},
{
"title": "TEST TITLE",
"descript": null,
"unsubscribelink": "0",
"optinconfirm": "0",
"p_admin": "1",
"pgListAdd": "0",
"pgListEdit": "0",
"pgListDelete": "0",
"pgListHeaders": "0",
"pgListEmailaccount": "0",
"pgListBounce": "0",
"pgMessageAdd": "0",
"pgMessageEdit": "0",
"pgMessageDelete": "0",
"pgMessageSend": "0",
"pgContactAdd": "0",
"pgContactEdit": "0",
"pgContactDelete": "0",
"pgContactMerge": "0",
"pgContactImport": "0",
"pgContactApprove": "0",
"pgContactExport": "0",
"pgContactSync": "0",
"pgContactFilters": "0",
"pgContactActions": "0",
"pgContactFields": "0",
"pg_user_add": "0",
"pg_user_edit": "0",
"pg_user_delete": "0",
"pgGroupAdd": "0",
"pgGroupEdit": "0",
"pgGroupDelete": "0",
"pgTemplateAdd": "0",
"pgTemplateEdit": "0",
"pgTemplateDelete": "0",
"pgPersonalizationAdd": "0",
"pgPersonalizationEdit": "0",
"pgPersonalizationDelete": "0",
"pgAutomationManage": "0",
"pgFormEdit": "0",
"pgReportsCampaign": "0",
"pgReportsList": "0",
"pgReportsUser": "0",
"pgReportsTrend": "1",
"pgStartupReports": "0",
"pgStartupGettingstarted": "1",
"pgDeal": "1",
"pgDealDelete": "1",
"pgDealReassign": "1",
"pgDealGroupAdd": "1",
"pgDealGroupEdit": "1",
"pgDealGroupDelete": "1",
"pgSavedResponsesManage": "0",
"sdate": null,
"reqApproval": "0",
"reqApproval1st": "2",
"reqApprovalNotify": "",
"socialdata": "0",
"links": {
"userGroups": "https://:account.api-us1.com/api/3/groups/5/userGroups",
"groupLimit": "https://:account.api-us1.com/api/3/groups/5/groupLimit",
"dealGroupGroups": "https://:account.api-us1.com/api/3/groups/5/dealGroupGroups",
"listGroups": "https://:account.api-us1.com/api/3/groups/5/listGroups",
"addressGroups": "https://:account.api-us1.com/api/3/groups/5/addressGroups",
"automationGroups": "https://:account.api-us1.com/api/3/groups/5/automationGroups"
},
"id": "5"
},
{
"title": "TEST TITLE",
"descript": null,
"unsubscribelink": "0",
"optinconfirm": "0",
"p_admin": "1",
"pgListAdd": "0",
"pgListEdit": "0",
"pgListDelete": "0",
"pgListHeaders": "0",
"pgListEmailaccount": "0",
"pgListBounce": "0",
"pgMessageAdd": "0",
"pgMessageEdit": "0",
"pgMessageDelete": "0",
"pgMessageSend": "0",
"pgContactAdd": "0",
"pgContactEdit": "0",
"pgContactDelete": "0",
"pgContactMerge": "0",
"pgContactImport": "0",
"pgContactApprove": "0",
"pgContactExport": "0",
"pgContactSync": "0",
"pgContactFilters": "0",
"pgContactActions": "0",
"pgContactFields": "0",
"pg_user_add": "0",
"pg_user_edit": "0",
"pg_user_delete": "0",
"pgGroupAdd": "0",
"pgGroupEdit": "0",
"pgGroupDelete": "0",
"pgTemplateAdd": "0",
"pgTemplateEdit": "0",
"pgTemplateDelete": "0",
"pgPersonalizationAdd": "0",
"pgPersonalizationEdit": "0",
"pgPersonalizationDelete": "0",
"pgAutomationManage": "0",
"pgFormEdit": "0",
"pgReportsCampaign": "0",
"pgReportsList": "0",
"pgReportsUser": "0",
"pgReportsTrend": "1",
"pgStartupReports": "0",
"pgStartupGettingstarted": "1",
"pgDeal": "1",
"pgDealDelete": "1",
"pgDealReassign": "1",
"pgDealGroupAdd": "1",
"pgDealGroupEdit": "1",
"pgDealGroupDelete": "1",
"pgSavedResponsesManage": "0",
"sdate": null,
"reqApproval": "0",
"reqApproval1st": "2",
"reqApprovalNotify": "",
"socialdata": "0",
"links": {
"userGroups": "https://:account.api-us1.com/api/3/groups/6/userGroups",
"groupLimit": "https://:account.api-us1.com/api/3/groups/6/groupLimit",
"dealGroupGroups": "https://:account.api-us1.com/api/3/groups/6/dealGroupGroups",
"listGroups": "https://:account.api-us1.com/api/3/groups/6/listGroups",
"addressGroups": "https://:account.api-us1.com/api/3/groups/6/addressGroups",
"automationGroups": "https://:account.api-us1.com/api/3/groups/6/automationGroups"
},
"id": "6"
},
{
"title": "TEST TITLE",
"descript": null,
"unsubscribelink": "0",
"optinconfirm": "0",
"p_admin": "1",
"pgListAdd": "0",
"pgListEdit": "0",
"pgListDelete": "0",
"pgListHeaders": "0",
"pgListEmailaccount": "0",
"pgListBounce": "0",
"pgMessageAdd": "0",
"pgMessageEdit": "0",
"pgMessageDelete": "0",
"pgMessageSend": "0",
"pgContactAdd": "0",
"pgContactEdit": "0",
"pgContactDelete": "0",
"pgContactMerge": "0",
"pgContactImport": "0",
"pgContactApprove": "0",
"pgContactExport": "0",
"pgContactSync": "0",
"pgContactFilters": "0",
"pgContactActions": "0",
"pgContactFields": "0",
"pg_user_add": "0",
"pg_user_edit": "0",
"pg_user_delete": "0",
"pgGroupAdd": "0",
"pgGroupEdit": "0",
"pgGroupDelete": "0",
"pgTemplateAdd": "0",
"pgTemplateEdit": "0",
"pgTemplateDelete": "0",
"pgPersonalizationAdd": "0",
"pgPersonalizationEdit": "0",
"pgPersonalizationDelete": "0",
"pgAutomationManage": "0",
"pgFormEdit": "0",
"pgReportsCampaign": "0",
"pgReportsList": "0",
"pgReportsUser": "0",
"pgReportsTrend": "1",
"pgStartupReports": "0",
"pgStartupGettingstarted": "1",
"pgDeal": "1",
"pgDealDelete": "1",
"pgDealReassign": "1",
"pgDealGroupAdd": "1",
"pgDealGroupEdit": "1",
"pgDealGroupDelete": "1",
"pgSavedResponsesManage": "0",
"sdate": null,
"reqApproval": "0",
"reqApproval1st": "2",
"reqApprovalNotify": "",
"socialdata": "0",
"links": {
"userGroups": "https://:account.api-us1.com/api/3/groups/7/userGroups",
"groupLimit": "https://:account.api-us1.com/api/3/groups/7/groupLimit",
"dealGroupGroups": "https://:account.api-us1.com/api/3/groups/7/dealGroupGroups",
"listGroups": "https://:account.api-us1.com/api/3/groups/7/listGroups",
"addressGroups": "https://:account.api-us1.com/api/3/groups/7/addressGroups",
"automationGroups": "https://:account.api-us1.com/api/3/groups/7/automationGroups"
},
"id": "7"
}
],
"meta": {
"total": "4"
}
}
Opmerkingen
0 opmerkingen
Artikel is gesloten voor opmerkingen.