unicodeC / Support API / List Activities
Back to Collection Items
#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkHttpResponseW.h>
#include <C_CkStringBuilderW.h>
void ChilkatSample(void)
{
HCkHttpW http;
BOOL success;
HCkJsonObjectW queryParams;
HCkHttpResponseW resp;
HCkStringBuilderW sbResponseBody;
HCkJsonObjectW jResp;
int respStatusCode;
const wchar_t *Name;
const wchar_t *Active;
const wchar_t *Alias;
const wchar_t *Chat_only;
const wchar_t *Created_at;
const wchar_t *Custom_role_id;
const wchar_t *Default_group_id;
const wchar_t *Details;
const wchar_t *v_Email;
const wchar_t *External_id;
const wchar_t *Iana_time_zone;
const wchar_t *Id;
const wchar_t *Last_login_at;
const wchar_t *Locale;
const wchar_t *Locale_id;
const wchar_t *Moderator;
const wchar_t *Notes;
const wchar_t *Only_private_comments;
const wchar_t *Organization_id;
const wchar_t *Phone;
int Adipisicing7;
BOOL Irure_70;
const wchar_t *Remote_photo_url;
const wchar_t *Report_csv;
const wchar_t *Restricted_agent;
const wchar_t *Role;
const wchar_t *Role_type;
const wchar_t *v_Shared;
const wchar_t *Shared_agent;
const wchar_t *Shared_phone_number;
const wchar_t *Signature;
const wchar_t *Suspended;
const wchar_t *Tags;
const wchar_t *Ticket_restriction;
const wchar_t *Time_zone;
const wchar_t *Two_factor_auth_enabled;
const wchar_t *Updated_at;
const wchar_t *v_Url;
const wchar_t *Tempor_f;
const wchar_t *Verified;
const wchar_t *actor_id;
const wchar_t *created_at;
const wchar_t *id;
BOOL Officia1a2;
const wchar_t *Qui9;
const wchar_t *Irure_1cd;
BOOL Sede8;
const wchar_t *title;
const wchar_t *updated_at;
const wchar_t *url;
const wchar_t *userName;
const wchar_t *userActive;
const wchar_t *userAlias;
const wchar_t *userChat_only;
const wchar_t *userCreated_at;
const wchar_t *userCustom_role_id;
const wchar_t *userDefault_group_id;
const wchar_t *userDetails;
const wchar_t *userEmail;
const wchar_t *userExternal_id;
const wchar_t *userIana_time_zone;
const wchar_t *userId;
const wchar_t *userLast_login_at;
const wchar_t *userLocale;
const wchar_t *userLocale_id;
const wchar_t *userModerator;
const wchar_t *userNotes;
const wchar_t *userOnly_private_comments;
const wchar_t *userOrganization_id;
const wchar_t *userPhone;
const wchar_t *Ut975;
BOOL Magna3e;
const wchar_t *userRemote_photo_url;
const wchar_t *userReport_csv;
const wchar_t *userRestricted_agent;
const wchar_t *userRole;
const wchar_t *userRole_type;
const wchar_t *userShared;
const wchar_t *userShared_agent;
const wchar_t *userShared_phone_number;
const wchar_t *userSignature;
const wchar_t *userSuspended;
const wchar_t *userTags;
const wchar_t *userTicket_restriction;
const wchar_t *userTime_zone;
const wchar_t *userTwo_factor_auth_enabled;
const wchar_t *userUpdated_at;
const wchar_t *userUrl;
const wchar_t *Ut_d;
int Adipisicing_7;
const wchar_t *Magna_9;
const wchar_t *userVerified;
const wchar_t *user_id;
const wchar_t *verb;
BOOL Aliquipb6;
const wchar_t *Euc13;
int Pariatur_39;
BOOL Voluptate_8;
int Ipsum4;
const wchar_t *Est_d;
const wchar_t *Esse_b;
const wchar_t *Ut_e6f;
const wchar_t *Voluptatef;
int Utba9;
BOOL Ut_2;
const wchar_t *Excepteur1_;
const wchar_t *consectetura8a;
const wchar_t *id_e;
int reprehenderit_93;
const wchar_t *elit7;
const wchar_t *ad_1a;
int anim40;
const wchar_t *quisa9;
BOOL fugiat_e;
const wchar_t *non_224;
const wchar_t *cillumeb;
const wchar_t *count;
const wchar_t *next_page;
const wchar_t *previous_page;
int i;
int count_i;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http = CkHttpW_Create();
CkHttpW_putBasicAuth(http,TRUE);
CkHttpW_putLogin(http,L"login");
CkHttpW_putPassword(http,L"password");
queryParams = CkJsonObjectW_Create();
CkJsonObjectW_UpdateString(queryParams,L"since",L"<string>");
CkHttpW_SetRequestHeader(http,L"Accept",L"application/json");
resp = CkHttpW_QuickRequestParams(http,L"GET",L"https://example.zendesk.com/api/v2/activities",queryParams);
if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
wprintf(L"%s\n",CkHttpW_lastErrorText(http));
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(queryParams);
return;
}
sbResponseBody = CkStringBuilderW_Create();
CkHttpResponseW_GetBodySb(resp,sbResponseBody);
jResp = CkJsonObjectW_Create();
CkJsonObjectW_LoadSb(jResp,sbResponseBody);
CkJsonObjectW_putEmitCompact(jResp,FALSE);
wprintf(L"Response Body:\n");
wprintf(L"%s\n",CkJsonObjectW_emit(jResp));
respStatusCode = CkHttpResponseW_getStatusCode(resp);
wprintf(L"Response Status Code = %d\n",respStatusCode);
if (respStatusCode >= 400) {
wprintf(L"Response Header:\n");
wprintf(L"%s\n",CkHttpResponseW_header(resp));
wprintf(L"Failed.\n");
CkHttpResponseW_Dispose(resp);
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(queryParams);
CkStringBuilderW_Dispose(sbResponseBody);
CkJsonObjectW_Dispose(jResp);
return;
}
CkHttpResponseW_Dispose(resp);
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "activities": [
// {
// "actor": {
// "name": "<string>",
// "active": "<boolean>",
// "alias": "<string>",
// "chat_only": "<boolean>",
// "created_at": "<string>",
// "custom_role_id": "<integer>",
// "default_group_id": "<integer>",
// "details": "<string>",
// "email": "<string>",
// "external_id": "<string>",
// "iana_time_zone": "<string>",
// "id": "<integer>",
// "last_login_at": "<string>",
// "locale": "<string>",
// "locale_id": "<integer>",
// "moderator": "<boolean>",
// "notes": "<string>",
// "only_private_comments": "<boolean>",
// "organization_id": "<integer>",
// "phone": "<string>",
// "photo": {
// "adipisicing7": 56151302,
// "irure_70": true
// },
// "remote_photo_url": "<string>",
// "report_csv": "<boolean>",
// "restricted_agent": "<boolean>",
// "role": "<string>",
// "role_type": "<integer>",
// "shared": "<boolean>",
// "shared_agent": "<boolean>",
// "shared_phone_number": "<boolean>",
// "signature": "<string>",
// "suspended": "<boolean>",
// "tags": "<array>",
// "ticket_restriction": "<string>",
// "time_zone": "<string>",
// "two_factor_auth_enabled": "<boolean>",
// "updated_at": "<string>",
// "url": "<string>",
// "user_fields": {
// "tempor_f": 85786252.44695336
// },
// "verified": "<boolean>"
// },
// "actor_id": "<integer>",
// "created_at": "<string>",
// "id": "<integer>",
// "object": {
// "officia1a2": true,
// "qui9": "voluptate mollit Excepteur ipsum veniam",
// "irure_1cd": "id ea"
// },
// "target": {
// "sede8": false
// },
// "title": "<string>",
// "updated_at": "<string>",
// "url": "<string>",
// "user": {
// "name": "<string>",
// "active": "<boolean>",
// "alias": "<string>",
// "chat_only": "<boolean>",
// "created_at": "<string>",
// "custom_role_id": "<integer>",
// "default_group_id": "<integer>",
// "details": "<string>",
// "email": "<string>",
// "external_id": "<string>",
// "iana_time_zone": "<string>",
// "id": "<integer>",
// "last_login_at": "<string>",
// "locale": "<string>",
// "locale_id": "<integer>",
// "moderator": "<boolean>",
// "notes": "<string>",
// "only_private_comments": "<boolean>",
// "organization_id": "<integer>",
// "phone": "<string>",
// "photo": {
// "Ut975": -74534220.66145113,
// "magna3e": false
// },
// "remote_photo_url": "<string>",
// "report_csv": "<boolean>",
// "restricted_agent": "<boolean>",
// "role": "<string>",
// "role_type": "<integer>",
// "shared": "<boolean>",
// "shared_agent": "<boolean>",
// "shared_phone_number": "<boolean>",
// "signature": "<string>",
// "suspended": "<boolean>",
// "tags": "<array>",
// "ticket_restriction": "<string>",
// "time_zone": "<string>",
// "two_factor_auth_enabled": "<boolean>",
// "updated_at": "<string>",
// "url": "<string>",
// "user_fields": {
// "ut_d": "tempor",
// "adipisicing_7": 28937910,
// "magna_9": -45754090.269199036
// },
// "verified": "<boolean>"
// },
// "user_id": "<integer>",
// "verb": "<string>"
// },
// {
// "actor": {
// "name": "<string>",
// "active": "<boolean>",
// "alias": "<string>",
// "chat_only": "<boolean>",
// "created_at": "<string>",
// "custom_role_id": "<integer>",
// "default_group_id": "<integer>",
// "details": "<string>",
// "email": "<string>",
// "external_id": "<string>",
// "iana_time_zone": "<string>",
// "id": "<integer>",
// "last_login_at": "<string>",
// "locale": "<string>",
// "locale_id": "<integer>",
// "moderator": "<boolean>",
// "notes": "<string>",
// "only_private_comments": "<boolean>",
// "organization_id": "<integer>",
// "phone": "<string>",
// "photo": {
// "aliquipb6": false
// },
// "remote_photo_url": "<string>",
// "report_csv": "<boolean>",
// "restricted_agent": "<boolean>",
// "role": "<string>",
// "role_type": "<integer>",
// "shared": "<boolean>",
// "shared_agent": "<boolean>",
// "shared_phone_number": "<boolean>",
// "signature": "<string>",
// "suspended": "<boolean>",
// "tags": "<array>",
// "ticket_restriction": "<string>",
// "time_zone": "<string>",
// "two_factor_auth_enabled": "<boolean>",
// "updated_at": "<string>",
// "url": "<string>",
// "user_fields": {
// "euc13": "pariatur"
// },
// "verified": "<boolean>"
// },
// "actor_id": "<integer>",
// "created_at": "<string>",
// "id": "<integer>",
// "object": {
// "pariatur_39": -13246316,
// "voluptate_8": false,
// "ipsum4": -24640571
// },
// "target": {
// "est_d": 43464084.60404679
// },
// "title": "<string>",
// "updated_at": "<string>",
// "url": "<string>",
// "user": {
// "name": "<string>",
// "active": "<boolean>",
// "alias": "<string>",
// "chat_only": "<boolean>",
// "created_at": "<string>",
// "custom_role_id": "<integer>",
// "default_group_id": "<integer>",
// "details": "<string>",
// "email": "<string>",
// "external_id": "<string>",
// "iana_time_zone": "<string>",
// "id": "<integer>",
// "last_login_at": "<string>",
// "locale": "<string>",
// "locale_id": "<integer>",
// "moderator": "<boolean>",
// "notes": "<string>",
// "only_private_comments": "<boolean>",
// "organization_id": "<integer>",
// "phone": "<string>",
// "photo": {
// "esse_b": "occaec",
// "ut_e6f": "Ut est deserunt"
// },
// "remote_photo_url": "<string>",
// "report_csv": "<boolean>",
// "restricted_agent": "<boolean>",
// "role": "<string>",
// "role_type": "<integer>",
// "shared": "<boolean>",
// "shared_agent": "<boolean>",
// "shared_phone_number": "<boolean>",
// "signature": "<string>",
// "suspended": "<boolean>",
// "tags": "<array>",
// "ticket_restriction": "<string>",
// "time_zone": "<string>",
// "two_factor_auth_enabled": "<boolean>",
// "updated_at": "<string>",
// "url": "<string>",
// "user_fields": {
// "voluptatef": -38514506.191917874,
// "utba9": -99737083,
// "ut_2": false
// },
// "verified": "<boolean>"
// },
// "user_id": "<integer>",
// "verb": "<string>"
// }
// ],
// "actors": [
// {
// "Excepteur1_": -85145004.89320306,
// "consectetura8a": -98072772.2193171,
// "id_e": -68362078.49006462,
// "reprehenderit_93": 96874887,
// "elit7": "dolor"
// },
// {
// "ad_1a": "sunt nulla incididunt sed"
// }
// ],
// "count": "<integer>",
// "next_page": "<string>",
// "previous_page": "<string>",
// "users": [
// {
// "anim40": -83874192,
// "quisa9": 17607150.376219943,
// "fugiat_e": true,
// "non_224": 21739369.8385354
// },
// {
// "cillumeb": "ut nisi sunt deserunt"
// }
// ]
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
count = CkJsonObjectW_stringOf(jResp,L"count");
next_page = CkJsonObjectW_stringOf(jResp,L"next_page");
previous_page = CkJsonObjectW_stringOf(jResp,L"previous_page");
i = 0;
count_i = CkJsonObjectW_SizeOfArray(jResp,L"activities");
while (i < count_i) {
CkJsonObjectW_putI(jResp,i);
Name = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.name");
Active = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.active");
Alias = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.alias");
Chat_only = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.chat_only");
Created_at = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.created_at");
Custom_role_id = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.custom_role_id");
Default_group_id = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.default_group_id");
Details = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.details");
v_Email = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.email");
External_id = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.external_id");
Iana_time_zone = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.iana_time_zone");
Id = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.id");
Last_login_at = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.last_login_at");
Locale = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.locale");
Locale_id = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.locale_id");
Moderator = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.moderator");
Notes = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.notes");
Only_private_comments = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.only_private_comments");
Organization_id = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.organization_id");
Phone = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.phone");
Adipisicing7 = CkJsonObjectW_IntOf(jResp,L"activities[i].actor.photo.adipisicing7");
Irure_70 = CkJsonObjectW_BoolOf(jResp,L"activities[i].actor.photo.irure_70");
Remote_photo_url = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.remote_photo_url");
Report_csv = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.report_csv");
Restricted_agent = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.restricted_agent");
Role = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.role");
Role_type = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.role_type");
v_Shared = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.shared");
Shared_agent = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.shared_agent");
Shared_phone_number = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.shared_phone_number");
Signature = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.signature");
Suspended = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.suspended");
Tags = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.tags");
Ticket_restriction = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.ticket_restriction");
Time_zone = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.time_zone");
Two_factor_auth_enabled = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.two_factor_auth_enabled");
Updated_at = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.updated_at");
v_Url = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.url");
Tempor_f = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.user_fields.tempor_f");
Verified = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.verified");
actor_id = CkJsonObjectW_stringOf(jResp,L"activities[i].actor_id");
created_at = CkJsonObjectW_stringOf(jResp,L"activities[i].created_at");
id = CkJsonObjectW_stringOf(jResp,L"activities[i].id");
Officia1a2 = CkJsonObjectW_BoolOf(jResp,L"activities[i].object.officia1a2");
Qui9 = CkJsonObjectW_stringOf(jResp,L"activities[i].object.qui9");
Irure_1cd = CkJsonObjectW_stringOf(jResp,L"activities[i].object.irure_1cd");
Sede8 = CkJsonObjectW_BoolOf(jResp,L"activities[i].target.sede8");
title = CkJsonObjectW_stringOf(jResp,L"activities[i].title");
updated_at = CkJsonObjectW_stringOf(jResp,L"activities[i].updated_at");
url = CkJsonObjectW_stringOf(jResp,L"activities[i].url");
userName = CkJsonObjectW_stringOf(jResp,L"activities[i].user.name");
userActive = CkJsonObjectW_stringOf(jResp,L"activities[i].user.active");
userAlias = CkJsonObjectW_stringOf(jResp,L"activities[i].user.alias");
userChat_only = CkJsonObjectW_stringOf(jResp,L"activities[i].user.chat_only");
userCreated_at = CkJsonObjectW_stringOf(jResp,L"activities[i].user.created_at");
userCustom_role_id = CkJsonObjectW_stringOf(jResp,L"activities[i].user.custom_role_id");
userDefault_group_id = CkJsonObjectW_stringOf(jResp,L"activities[i].user.default_group_id");
userDetails = CkJsonObjectW_stringOf(jResp,L"activities[i].user.details");
userEmail = CkJsonObjectW_stringOf(jResp,L"activities[i].user.email");
userExternal_id = CkJsonObjectW_stringOf(jResp,L"activities[i].user.external_id");
userIana_time_zone = CkJsonObjectW_stringOf(jResp,L"activities[i].user.iana_time_zone");
userId = CkJsonObjectW_stringOf(jResp,L"activities[i].user.id");
userLast_login_at = CkJsonObjectW_stringOf(jResp,L"activities[i].user.last_login_at");
userLocale = CkJsonObjectW_stringOf(jResp,L"activities[i].user.locale");
userLocale_id = CkJsonObjectW_stringOf(jResp,L"activities[i].user.locale_id");
userModerator = CkJsonObjectW_stringOf(jResp,L"activities[i].user.moderator");
userNotes = CkJsonObjectW_stringOf(jResp,L"activities[i].user.notes");
userOnly_private_comments = CkJsonObjectW_stringOf(jResp,L"activities[i].user.only_private_comments");
userOrganization_id = CkJsonObjectW_stringOf(jResp,L"activities[i].user.organization_id");
userPhone = CkJsonObjectW_stringOf(jResp,L"activities[i].user.phone");
Ut975 = CkJsonObjectW_stringOf(jResp,L"activities[i].user.photo.Ut975");
Magna3e = CkJsonObjectW_BoolOf(jResp,L"activities[i].user.photo.magna3e");
userRemote_photo_url = CkJsonObjectW_stringOf(jResp,L"activities[i].user.remote_photo_url");
userReport_csv = CkJsonObjectW_stringOf(jResp,L"activities[i].user.report_csv");
userRestricted_agent = CkJsonObjectW_stringOf(jResp,L"activities[i].user.restricted_agent");
userRole = CkJsonObjectW_stringOf(jResp,L"activities[i].user.role");
userRole_type = CkJsonObjectW_stringOf(jResp,L"activities[i].user.role_type");
userShared = CkJsonObjectW_stringOf(jResp,L"activities[i].user.shared");
userShared_agent = CkJsonObjectW_stringOf(jResp,L"activities[i].user.shared_agent");
userShared_phone_number = CkJsonObjectW_stringOf(jResp,L"activities[i].user.shared_phone_number");
userSignature = CkJsonObjectW_stringOf(jResp,L"activities[i].user.signature");
userSuspended = CkJsonObjectW_stringOf(jResp,L"activities[i].user.suspended");
userTags = CkJsonObjectW_stringOf(jResp,L"activities[i].user.tags");
userTicket_restriction = CkJsonObjectW_stringOf(jResp,L"activities[i].user.ticket_restriction");
userTime_zone = CkJsonObjectW_stringOf(jResp,L"activities[i].user.time_zone");
userTwo_factor_auth_enabled = CkJsonObjectW_stringOf(jResp,L"activities[i].user.two_factor_auth_enabled");
userUpdated_at = CkJsonObjectW_stringOf(jResp,L"activities[i].user.updated_at");
userUrl = CkJsonObjectW_stringOf(jResp,L"activities[i].user.url");
Ut_d = CkJsonObjectW_stringOf(jResp,L"activities[i].user.user_fields.ut_d");
Adipisicing_7 = CkJsonObjectW_IntOf(jResp,L"activities[i].user.user_fields.adipisicing_7");
Magna_9 = CkJsonObjectW_stringOf(jResp,L"activities[i].user.user_fields.magna_9");
userVerified = CkJsonObjectW_stringOf(jResp,L"activities[i].user.verified");
user_id = CkJsonObjectW_stringOf(jResp,L"activities[i].user_id");
verb = CkJsonObjectW_stringOf(jResp,L"activities[i].verb");
Aliquipb6 = CkJsonObjectW_BoolOf(jResp,L"activities[i].actor.photo.aliquipb6");
Euc13 = CkJsonObjectW_stringOf(jResp,L"activities[i].actor.user_fields.euc13");
Pariatur_39 = CkJsonObjectW_IntOf(jResp,L"activities[i].object.pariatur_39");
Voluptate_8 = CkJsonObjectW_BoolOf(jResp,L"activities[i].object.voluptate_8");
Ipsum4 = CkJsonObjectW_IntOf(jResp,L"activities[i].object.ipsum4");
Est_d = CkJsonObjectW_stringOf(jResp,L"activities[i].target.est_d");
Esse_b = CkJsonObjectW_stringOf(jResp,L"activities[i].user.photo.esse_b");
Ut_e6f = CkJsonObjectW_stringOf(jResp,L"activities[i].user.photo.ut_e6f");
Voluptatef = CkJsonObjectW_stringOf(jResp,L"activities[i].user.user_fields.voluptatef");
Utba9 = CkJsonObjectW_IntOf(jResp,L"activities[i].user.user_fields.utba9");
Ut_2 = CkJsonObjectW_BoolOf(jResp,L"activities[i].user.user_fields.ut_2");
i = i + 1;
}
i = 0;
count_i = CkJsonObjectW_SizeOfArray(jResp,L"actors");
while (i < count_i) {
CkJsonObjectW_putI(jResp,i);
Excepteur1_ = CkJsonObjectW_stringOf(jResp,L"actors[i].Excepteur1_");
consectetura8a = CkJsonObjectW_stringOf(jResp,L"actors[i].consectetura8a");
id_e = CkJsonObjectW_stringOf(jResp,L"actors[i].id_e");
reprehenderit_93 = CkJsonObjectW_IntOf(jResp,L"actors[i].reprehenderit_93");
elit7 = CkJsonObjectW_stringOf(jResp,L"actors[i].elit7");
ad_1a = CkJsonObjectW_stringOf(jResp,L"actors[i].ad_1a");
i = i + 1;
}
i = 0;
count_i = CkJsonObjectW_SizeOfArray(jResp,L"users");
while (i < count_i) {
CkJsonObjectW_putI(jResp,i);
anim40 = CkJsonObjectW_IntOf(jResp,L"users[i].anim40");
quisa9 = CkJsonObjectW_stringOf(jResp,L"users[i].quisa9");
fugiat_e = CkJsonObjectW_BoolOf(jResp,L"users[i].fugiat_e");
non_224 = CkJsonObjectW_stringOf(jResp,L"users[i].non_224");
cillumeb = CkJsonObjectW_stringOf(jResp,L"users[i].cillumeb");
i = i + 1;
}
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(queryParams);
CkStringBuilderW_Dispose(sbResponseBody);
CkJsonObjectW_Dispose(jResp);
}
Curl Command
curl -u login:password -G -d "since=%3Cstring%3E"
-H "Accept: application/json"
https://example.zendesk.com/api/v2/activities
Postman Collection Item JSON
{
"name": "List Activities",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/activities?since=<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"activities"
],
"query": [
{
"key": "since",
"value": "<string>",
"description": "A UTC time in ISO 8601 format to return ticket activities since said date."
}
]
},
"description": "Lists ticket activities in the last 30 days affecting the agent making the request.\nAlso sideloads the following arrays of user records:\n\n- actors - All actors involved in the listed activities\n- users - All users involved in the listed activities\n\n#### Pagination\n\n- Cursor pagination (recommended)\n- Offset pagination\n\nSee [Pagination](/api-reference/introduction/pagination/).\n\nReturns a maximum of 100 records per page.\n\n#### Allowed For\n\n* Agents\n"
},
"response": [
{
"name": "Success response",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/activities?since=<string>",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"activities"
],
"query": [
{
"key": "since",
"value": "<string>",
"description": "A UTC time in ISO 8601 format to return ticket activities since said date."
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"activities\": [\n {\n \"actor\": {\n \"name\": \"<string>\",\n \"active\": \"<boolean>\",\n \"alias\": \"<string>\",\n \"chat_only\": \"<boolean>\",\n \"created_at\": \"<string>\",\n \"custom_role_id\": \"<integer>\",\n \"default_group_id\": \"<integer>\",\n \"details\": \"<string>\",\n \"email\": \"<string>\",\n \"external_id\": \"<string>\",\n \"iana_time_zone\": \"<string>\",\n \"id\": \"<integer>\",\n \"last_login_at\": \"<string>\",\n \"locale\": \"<string>\",\n \"locale_id\": \"<integer>\",\n \"moderator\": \"<boolean>\",\n \"notes\": \"<string>\",\n \"only_private_comments\": \"<boolean>\",\n \"organization_id\": \"<integer>\",\n \"phone\": \"<string>\",\n \"photo\": {\n \"adipisicing7\": 56151302,\n \"irure_70\": true\n },\n \"remote_photo_url\": \"<string>\",\n \"report_csv\": \"<boolean>\",\n \"restricted_agent\": \"<boolean>\",\n \"role\": \"<string>\",\n \"role_type\": \"<integer>\",\n \"shared\": \"<boolean>\",\n \"shared_agent\": \"<boolean>\",\n \"shared_phone_number\": \"<boolean>\",\n \"signature\": \"<string>\",\n \"suspended\": \"<boolean>\",\n \"tags\": \"<array>\",\n \"ticket_restriction\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"two_factor_auth_enabled\": \"<boolean>\",\n \"updated_at\": \"<string>\",\n \"url\": \"<string>\",\n \"user_fields\": {\n \"tempor_f\": 85786252.44695336\n },\n \"verified\": \"<boolean>\"\n },\n \"actor_id\": \"<integer>\",\n \"created_at\": \"<string>\",\n \"id\": \"<integer>\",\n \"object\": {\n \"officia1a2\": true,\n \"qui9\": \"voluptate mollit Excepteur ipsum veniam\",\n \"irure_1cd\": \"id ea\"\n },\n \"target\": {\n \"sede8\": false\n },\n \"title\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"url\": \"<string>\",\n \"user\": {\n \"name\": \"<string>\",\n \"active\": \"<boolean>\",\n \"alias\": \"<string>\",\n \"chat_only\": \"<boolean>\",\n \"created_at\": \"<string>\",\n \"custom_role_id\": \"<integer>\",\n \"default_group_id\": \"<integer>\",\n \"details\": \"<string>\",\n \"email\": \"<string>\",\n \"external_id\": \"<string>\",\n \"iana_time_zone\": \"<string>\",\n \"id\": \"<integer>\",\n \"last_login_at\": \"<string>\",\n \"locale\": \"<string>\",\n \"locale_id\": \"<integer>\",\n \"moderator\": \"<boolean>\",\n \"notes\": \"<string>\",\n \"only_private_comments\": \"<boolean>\",\n \"organization_id\": \"<integer>\",\n \"phone\": \"<string>\",\n \"photo\": {\n \"Ut975\": -74534220.66145113,\n \"magna3e\": false\n },\n \"remote_photo_url\": \"<string>\",\n \"report_csv\": \"<boolean>\",\n \"restricted_agent\": \"<boolean>\",\n \"role\": \"<string>\",\n \"role_type\": \"<integer>\",\n \"shared\": \"<boolean>\",\n \"shared_agent\": \"<boolean>\",\n \"shared_phone_number\": \"<boolean>\",\n \"signature\": \"<string>\",\n \"suspended\": \"<boolean>\",\n \"tags\": \"<array>\",\n \"ticket_restriction\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"two_factor_auth_enabled\": \"<boolean>\",\n \"updated_at\": \"<string>\",\n \"url\": \"<string>\",\n \"user_fields\": {\n \"ut_d\": \"tempor\",\n \"adipisicing_7\": 28937910,\n \"magna_9\": -45754090.269199036\n },\n \"verified\": \"<boolean>\"\n },\n \"user_id\": \"<integer>\",\n \"verb\": \"<string>\"\n },\n {\n \"actor\": {\n \"name\": \"<string>\",\n \"active\": \"<boolean>\",\n \"alias\": \"<string>\",\n \"chat_only\": \"<boolean>\",\n \"created_at\": \"<string>\",\n \"custom_role_id\": \"<integer>\",\n \"default_group_id\": \"<integer>\",\n \"details\": \"<string>\",\n \"email\": \"<string>\",\n \"external_id\": \"<string>\",\n \"iana_time_zone\": \"<string>\",\n \"id\": \"<integer>\",\n \"last_login_at\": \"<string>\",\n \"locale\": \"<string>\",\n \"locale_id\": \"<integer>\",\n \"moderator\": \"<boolean>\",\n \"notes\": \"<string>\",\n \"only_private_comments\": \"<boolean>\",\n \"organization_id\": \"<integer>\",\n \"phone\": \"<string>\",\n \"photo\": {\n \"aliquipb6\": false\n },\n \"remote_photo_url\": \"<string>\",\n \"report_csv\": \"<boolean>\",\n \"restricted_agent\": \"<boolean>\",\n \"role\": \"<string>\",\n \"role_type\": \"<integer>\",\n \"shared\": \"<boolean>\",\n \"shared_agent\": \"<boolean>\",\n \"shared_phone_number\": \"<boolean>\",\n \"signature\": \"<string>\",\n \"suspended\": \"<boolean>\",\n \"tags\": \"<array>\",\n \"ticket_restriction\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"two_factor_auth_enabled\": \"<boolean>\",\n \"updated_at\": \"<string>\",\n \"url\": \"<string>\",\n \"user_fields\": {\n \"euc13\": \"pariatur\"\n },\n \"verified\": \"<boolean>\"\n },\n \"actor_id\": \"<integer>\",\n \"created_at\": \"<string>\",\n \"id\": \"<integer>\",\n \"object\": {\n \"pariatur_39\": -13246316,\n \"voluptate_8\": false,\n \"ipsum4\": -24640571\n },\n \"target\": {\n \"est_d\": 43464084.60404679\n },\n \"title\": \"<string>\",\n \"updated_at\": \"<string>\",\n \"url\": \"<string>\",\n \"user\": {\n \"name\": \"<string>\",\n \"active\": \"<boolean>\",\n \"alias\": \"<string>\",\n \"chat_only\": \"<boolean>\",\n \"created_at\": \"<string>\",\n \"custom_role_id\": \"<integer>\",\n \"default_group_id\": \"<integer>\",\n \"details\": \"<string>\",\n \"email\": \"<string>\",\n \"external_id\": \"<string>\",\n \"iana_time_zone\": \"<string>\",\n \"id\": \"<integer>\",\n \"last_login_at\": \"<string>\",\n \"locale\": \"<string>\",\n \"locale_id\": \"<integer>\",\n \"moderator\": \"<boolean>\",\n \"notes\": \"<string>\",\n \"only_private_comments\": \"<boolean>\",\n \"organization_id\": \"<integer>\",\n \"phone\": \"<string>\",\n \"photo\": {\n \"esse_b\": \"occaec\",\n \"ut_e6f\": \"Ut est deserunt\"\n },\n \"remote_photo_url\": \"<string>\",\n \"report_csv\": \"<boolean>\",\n \"restricted_agent\": \"<boolean>\",\n \"role\": \"<string>\",\n \"role_type\": \"<integer>\",\n \"shared\": \"<boolean>\",\n \"shared_agent\": \"<boolean>\",\n \"shared_phone_number\": \"<boolean>\",\n \"signature\": \"<string>\",\n \"suspended\": \"<boolean>\",\n \"tags\": \"<array>\",\n \"ticket_restriction\": \"<string>\",\n \"time_zone\": \"<string>\",\n \"two_factor_auth_enabled\": \"<boolean>\",\n \"updated_at\": \"<string>\",\n \"url\": \"<string>\",\n \"user_fields\": {\n \"voluptatef\": -38514506.191917874,\n \"utba9\": -99737083,\n \"ut_2\": false\n },\n \"verified\": \"<boolean>\"\n },\n \"user_id\": \"<integer>\",\n \"verb\": \"<string>\"\n }\n ],\n \"actors\": [\n {\n \"Excepteur1_\": -85145004.89320306,\n \"consectetura8a\": -98072772.2193171,\n \"id_e\": -68362078.49006462,\n \"reprehenderit_93\": 96874887,\n \"elit7\": \"dolor\"\n },\n {\n \"ad_1a\": \"sunt nulla incididunt sed\"\n }\n ],\n \"count\": \"<integer>\",\n \"next_page\": \"<string>\",\n \"previous_page\": \"<string>\",\n \"users\": [\n {\n \"anim40\": -83874192,\n \"quisa9\": 17607150.376219943,\n \"fugiat_e\": true,\n \"non_224\": 21739369.8385354\n },\n {\n \"cillumeb\": \"ut nisi sunt deserunt\"\n }\n ]\n}"
}
]
}