-
Notifications
You must be signed in to change notification settings - Fork 4
/
people.clj
710 lines (642 loc) · 27.2 KB
/
people.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
(ns happygapi.people.people
"People API: people.
Provides access to information about profiles and contacts.
See: https://developers.google.com/people/api/reference/rest/v1/people"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn createContact$
"https://developers.google.com/people/api/reference/rest/v1/people/createContact
Required parameters: none
Optional parameters: personFields, sources
Body:
{:addresses [{:formattedType string,
:poBox string,
:city string,
:type string,
:streetAddress string,
:region string,
:formattedValue string,
:postalCode string,
:extendedAddress string,
:country string,
:metadata FieldMetadata,
:countryCode string}],
:urls [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:relationshipStatuses [{:metadata FieldMetadata,
:value string,
:formattedValue string}],
:coverPhotos [{:metadata FieldMetadata,
:url string,
:default boolean}],
:birthdays [{:metadata FieldMetadata, :date Date, :text string}],
:relations [{:metadata FieldMetadata,
:person string,
:type string,
:formattedType string}],
:ageRange string,
:events [{:metadata FieldMetadata,
:date Date,
:type string,
:formattedType string}],
:phoneNumbers [{:metadata FieldMetadata,
:value string,
:canonicalForm string,
:type string,
:formattedType string}],
:etag string,
:fileAses [{:metadata FieldMetadata, :value string}],
:biographies [{:metadata FieldMetadata,
:value string,
:contentType string}],
:emailAddresses [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string,
:displayName string}],
:miscKeywords [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:organizations [{:department string,
:formattedType string,
:symbol string,
:name string,
:startDate Date,
:type string,
:fullTimeEquivalentMillipercent integer,
:phoneticName string,
:costCenter string,
:title string,
:endDate Date,
:jobDescription string,
:current boolean,
:domain string,
:location string,
:metadata FieldMetadata}],
:sipAddresses [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:braggingRights [{:metadata FieldMetadata, :value string}],
:resourceName string,
:locations [{:metadata FieldMetadata,
:value string,
:type string,
:current boolean,
:buildingId string,
:floor string,
:floorSection string,
:deskCode string}],
:externalIds [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:relationshipInterests [{:metadata FieldMetadata,
:value string,
:formattedValue string}],
:photos [{:metadata FieldMetadata, :url string, :default boolean}],
:skills [{:metadata FieldMetadata, :value string}],
:locales [{:metadata FieldMetadata, :value string}],
:ageRanges [{:metadata FieldMetadata, :ageRange string}],
:memberships [{:metadata FieldMetadata,
:contactGroupMembership ContactGroupMembership,
:domainMembership DomainMembership}],
:clientData [{:metadata FieldMetadata, :key string, :value string}],
:interests [{:metadata FieldMetadata, :value string}],
:nicknames [{:metadata FieldMetadata, :value string, :type string}],
:residences [{:metadata FieldMetadata,
:value string,
:current boolean}],
:imClients [{:metadata FieldMetadata,
:username string,
:type string,
:formattedType string,
:protocol string,
:formattedProtocol string}],
:genders [{:metadata FieldMetadata,
:value string,
:formattedValue string,
:addressMeAs string}],
:calendarUrls [{:metadata FieldMetadata,
:url string,
:type string,
:formattedType string}],
:taglines [{:metadata FieldMetadata, :value string}],
:occupations [{:metadata FieldMetadata, :value string}],
:metadata {:sources [Source],
:previousResourceNames [string],
:linkedPeopleResourceNames [string],
:deleted boolean,
:objectType string},
:names [{:middleName string,
:phoneticHonorificPrefix string,
:phoneticHonorificSuffix string,
:displayNameLastFirst string,
:displayName string,
:phoneticGivenName string,
:honorificPrefix string,
:phoneticFullName string,
:phoneticFamilyName string,
:familyName string,
:phoneticMiddleName string,
:unstructuredName string,
:givenName string,
:honorificSuffix string,
:metadata FieldMetadata}],
:userDefined [{:metadata FieldMetadata, :key string, :value string}]}
Create a new contact and return the person resource for that contact. The request returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names Mutate requests for the same user should be sent sequentially to avoid increased latency and failures."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters body]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/post
(util/get-url
"https://people.googleapis.com/"
"v1/people:createContact"
#{}
parameters)
(merge-with
merge
{:content-type :json,
:body (json/generate-string body),
:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn searchContacts$
"https://developers.google.com/people/api/reference/rest/v1/people/searchContacts
Required parameters: none
Optional parameters: query, pageSize, readMask, sources
Provides a list of contacts in the authenticated user's grouped contacts that matches the search query. The query matches on a contact's `names`, `nickNames`, `emailAddresses`, `phoneNumbers`, and `organizations` fields that are from the CONTACT source. **IMPORTANT**: Before searching, clients should send a warmup request with an empty query to update the cache. See https://developers.google.com/people/v1/contacts#search_the_users_contacts"
{:scopes ["https://www.googleapis.com/auth/contacts"
"https://www.googleapis.com/auth/contacts.readonly"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/get
(util/get-url
"https://people.googleapis.com/"
"v1/people:searchContacts"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn get$
"https://developers.google.com/people/api/reference/rest/v1/people/get
Required parameters: resourceName
Optional parameters: requestMask.includeField, personFields, sources
Provides information about a person by specifying a resource name. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified."
{:scopes ["https://www.googleapis.com/auth/contacts"
"https://www.googleapis.com/auth/contacts.other.readonly"
"https://www.googleapis.com/auth/contacts.readonly"
"https://www.googleapis.com/auth/directory.readonly"
"https://www.googleapis.com/auth/user.addresses.read"
"https://www.googleapis.com/auth/user.birthday.read"
"https://www.googleapis.com/auth/user.emails.read"
"https://www.googleapis.com/auth/user.gender.read"
"https://www.googleapis.com/auth/user.organization.read"
"https://www.googleapis.com/auth/user.phonenumbers.read"
"https://www.googleapis.com/auth/userinfo.email"
"https://www.googleapis.com/auth/userinfo.profile"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{:resourceName})]}
(util/get-response
(http/get
(util/get-url
"https://people.googleapis.com/"
"v1/{+resourceName}"
#{:resourceName}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn searchDirectoryPeople$
"https://developers.google.com/people/api/reference/rest/v1/people/searchDirectoryPeople
Required parameters: none
Optional parameters: query, readMask, sources, mergeSources, pageSize, pageToken
Provides a list of domain profiles and domain contacts in the authenticated user's domain directory that match the search query."
{:scopes ["https://www.googleapis.com/auth/directory.readonly"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/get
(util/get-url
"https://people.googleapis.com/"
"v1/people:searchDirectoryPeople"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn deleteContact$
"https://developers.google.com/people/api/reference/rest/v1/people/deleteContact
Required parameters: resourceName
Optional parameters: none
Delete a contact person. Any non-contact data will not be deleted. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{:resourceName})]}
(util/get-response
(http/delete
(util/get-url
"https://people.googleapis.com/"
"v1/{+resourceName}:deleteContact"
#{:resourceName}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn updateContact$
"https://developers.google.com/people/api/reference/rest/v1/people/updateContact
Required parameters: resourceName
Optional parameters: updatePersonFields, personFields, sources
Body:
{:addresses [{:formattedType string,
:poBox string,
:city string,
:type string,
:streetAddress string,
:region string,
:formattedValue string,
:postalCode string,
:extendedAddress string,
:country string,
:metadata FieldMetadata,
:countryCode string}],
:urls [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:relationshipStatuses [{:metadata FieldMetadata,
:value string,
:formattedValue string}],
:coverPhotos [{:metadata FieldMetadata,
:url string,
:default boolean}],
:birthdays [{:metadata FieldMetadata, :date Date, :text string}],
:relations [{:metadata FieldMetadata,
:person string,
:type string,
:formattedType string}],
:ageRange string,
:events [{:metadata FieldMetadata,
:date Date,
:type string,
:formattedType string}],
:phoneNumbers [{:metadata FieldMetadata,
:value string,
:canonicalForm string,
:type string,
:formattedType string}],
:etag string,
:fileAses [{:metadata FieldMetadata, :value string}],
:biographies [{:metadata FieldMetadata,
:value string,
:contentType string}],
:emailAddresses [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string,
:displayName string}],
:miscKeywords [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:organizations [{:department string,
:formattedType string,
:symbol string,
:name string,
:startDate Date,
:type string,
:fullTimeEquivalentMillipercent integer,
:phoneticName string,
:costCenter string,
:title string,
:endDate Date,
:jobDescription string,
:current boolean,
:domain string,
:location string,
:metadata FieldMetadata}],
:sipAddresses [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:braggingRights [{:metadata FieldMetadata, :value string}],
:resourceName string,
:locations [{:metadata FieldMetadata,
:value string,
:type string,
:current boolean,
:buildingId string,
:floor string,
:floorSection string,
:deskCode string}],
:externalIds [{:metadata FieldMetadata,
:value string,
:type string,
:formattedType string}],
:relationshipInterests [{:metadata FieldMetadata,
:value string,
:formattedValue string}],
:photos [{:metadata FieldMetadata, :url string, :default boolean}],
:skills [{:metadata FieldMetadata, :value string}],
:locales [{:metadata FieldMetadata, :value string}],
:ageRanges [{:metadata FieldMetadata, :ageRange string}],
:memberships [{:metadata FieldMetadata,
:contactGroupMembership ContactGroupMembership,
:domainMembership DomainMembership}],
:clientData [{:metadata FieldMetadata, :key string, :value string}],
:interests [{:metadata FieldMetadata, :value string}],
:nicknames [{:metadata FieldMetadata, :value string, :type string}],
:residences [{:metadata FieldMetadata,
:value string,
:current boolean}],
:imClients [{:metadata FieldMetadata,
:username string,
:type string,
:formattedType string,
:protocol string,
:formattedProtocol string}],
:genders [{:metadata FieldMetadata,
:value string,
:formattedValue string,
:addressMeAs string}],
:calendarUrls [{:metadata FieldMetadata,
:url string,
:type string,
:formattedType string}],
:taglines [{:metadata FieldMetadata, :value string}],
:occupations [{:metadata FieldMetadata, :value string}],
:metadata {:sources [Source],
:previousResourceNames [string],
:linkedPeopleResourceNames [string],
:deleted boolean,
:objectType string},
:names [{:middleName string,
:phoneticHonorificPrefix string,
:phoneticHonorificSuffix string,
:displayNameLastFirst string,
:displayName string,
:phoneticGivenName string,
:honorificPrefix string,
:phoneticFullName string,
:phoneticFamilyName string,
:familyName string,
:phoneticMiddleName string,
:unstructuredName string,
:givenName string,
:honorificSuffix string,
:metadata FieldMetadata}],
:userDefined [{:metadata FieldMetadata, :key string, :value string}]}
Update contact data for an existing contact person. Any non-contact data will not be modified. Any non-contact data in the person to update will be ignored. All fields specified in the `update_mask` will be replaced. The server returns a 400 error if `person.metadata.sources` is not specified for the contact to be updated or if there is no contact source. The server returns a 400 error with reason `\"failedPrecondition\"` if `person.metadata.sources.etag` is different than the contact's etag, which indicates the contact has changed since its data was read. Clients should get the latest person and merge their updates into the latest person. The server returns a 400 error if `memberships` are being updated and there are no contact group memberships specified on the person. The server returns a 400 error if more than one field is specified on a field that is a singleton for contact sources: * biographies * birthdays * genders * names Mutate requests for the same user should be sent sequentially to avoid increased latency and failures."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters body]
{:pre [(util/has-keys? parameters #{:resourceName})]}
(util/get-response
(http/patch
(util/get-url
"https://people.googleapis.com/"
"v1/{+resourceName}:updateContact"
#{:resourceName}
parameters)
(merge-with
merge
{:content-type :json,
:body (json/generate-string body),
:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn updateContactPhoto$
"https://developers.google.com/people/api/reference/rest/v1/people/updateContactPhoto
Required parameters: resourceName
Optional parameters: none
Body:
{:photoBytes string, :personFields string, :sources [string]}
Update a contact's photo. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters body]
{:pre [(util/has-keys? parameters #{:resourceName})]}
(util/get-response
(http/patch
(util/get-url
"https://people.googleapis.com/"
"v1/{+resourceName}:updateContactPhoto"
#{:resourceName}
parameters)
(merge-with
merge
{:content-type :json,
:body (json/generate-string body),
:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn deleteContactPhoto$
"https://developers.google.com/people/api/reference/rest/v1/people/deleteContactPhoto
Required parameters: resourceName
Optional parameters: personFields, sources
Delete a contact's photo. Mutate requests for the same user should be done sequentially to avoid // lock contention."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{:resourceName})]}
(util/get-response
(http/delete
(util/get-url
"https://people.googleapis.com/"
"v1/{+resourceName}:deleteContactPhoto"
#{:resourceName}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn batchDeleteContacts$
"https://developers.google.com/people/api/reference/rest/v1/people/batchDeleteContacts
Required parameters: none
Optional parameters: none
Body:
{:resourceNames [string]}
Delete a batch of contacts. Any non-contact data will not be deleted. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters body]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/post
(util/get-url
"https://people.googleapis.com/"
"v1/people:batchDeleteContacts"
#{}
parameters)
(merge-with
merge
{:content-type :json,
:body (json/generate-string body),
:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn batchUpdateContacts$
"https://developers.google.com/people/api/reference/rest/v1/people/batchUpdateContacts
Required parameters: none
Optional parameters: none
Body:
{:contacts {},
:updateMask string,
:readMask string,
:sources [string]}
Update a batch of contacts and return a map of resource names to PersonResponses for the updated contacts. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters body]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/post
(util/get-url
"https://people.googleapis.com/"
"v1/people:batchUpdateContacts"
#{}
parameters)
(merge-with
merge
{:content-type :json,
:body (json/generate-string body),
:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn listDirectoryPeople$
"https://developers.google.com/people/api/reference/rest/v1/people/listDirectoryPeople
Required parameters: none
Optional parameters: readMask, sources, mergeSources, pageSize, pageToken, requestSyncToken, syncToken
Provides a list of domain profiles and domain contacts in the authenticated user's domain directory. When the `sync_token` is specified, resources deleted since the last sync will be returned as a person with `PersonMetadata.deleted` set to true. When the `page_token` or `sync_token` is specified, all other request parameters must match the first call. Writes may have a propagation delay of several minutes for sync requests. Incremental syncs are not intended for read-after-write use cases. See example usage at [List the directory people that have changed](/people/v1/directory#list_the_directory_people_that_have_changed)."
{:scopes ["https://www.googleapis.com/auth/directory.readonly"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/get
(util/get-url
"https://people.googleapis.com/"
"v1/people:listDirectoryPeople"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn getBatchGet$
"https://developers.google.com/people/api/reference/rest/v1/people/getBatchGet
Required parameters: none
Optional parameters: resourceNames, requestMask.includeField, personFields, sources
Provides information about a list of specific people by specifying a list of requested resource names. Use `people/me` to indicate the authenticated user. The request returns a 400 error if 'personFields' is not specified."
{:scopes ["https://www.googleapis.com/auth/contacts"
"https://www.googleapis.com/auth/contacts.other.readonly"
"https://www.googleapis.com/auth/contacts.readonly"
"https://www.googleapis.com/auth/directory.readonly"
"https://www.googleapis.com/auth/user.addresses.read"
"https://www.googleapis.com/auth/user.birthday.read"
"https://www.googleapis.com/auth/user.emails.read"
"https://www.googleapis.com/auth/user.gender.read"
"https://www.googleapis.com/auth/user.organization.read"
"https://www.googleapis.com/auth/user.phonenumbers.read"
"https://www.googleapis.com/auth/userinfo.email"
"https://www.googleapis.com/auth/userinfo.profile"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/get
(util/get-url
"https://people.googleapis.com/"
"v1/people:batchGet"
#{}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn batchCreateContacts$
"https://developers.google.com/people/api/reference/rest/v1/people/batchCreateContacts
Required parameters: none
Optional parameters: none
Body:
{:contacts [{:contactPerson Person}],
:readMask string,
:sources [string]}
Create a batch of new contacts and return the PersonResponses for the newly Mutate requests for the same user should be sent sequentially to avoid increased latency and failures."
{:scopes ["https://www.googleapis.com/auth/contacts"]}
[auth parameters body]
{:pre [(util/has-keys? parameters #{})]}
(util/get-response
(http/post
(util/get-url
"https://people.googleapis.com/"
"v1/people:batchCreateContacts"
#{}
parameters)
(merge-with
merge
{:content-type :json,
:body (json/generate-string body),
:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))
(defn connections-list$
"https://developers.google.com/people/api/reference/rest/v1/people/connections/list
Required parameters: resourceName
Optional parameters: requestSyncToken, requestMask.includeField, sources, personFields, syncToken, pageToken, pageSize, sortOrder
Provides a list of the authenticated user's contacts. Sync tokens expire 7 days after the full sync. A request with an expired sync token will get an error with an [google.rpc.ErrorInfo](https://cloud.google.com/apis/design/errors#error_info) with reason \"EXPIRED_SYNC_TOKEN\". In the case of such an error clients should make a full sync request without a `sync_token`. The first page of a full sync request has an additional quota. If the quota is exceeded, a 429 error will be returned. This quota is fixed and can not be increased. When the `sync_token` is specified, resources deleted since the last sync will be returned as a person with `PersonMetadata.deleted` set to true. When the `page_token` or `sync_token` is specified, all other request parameters must match the first call. Writes may have a propagation delay of several minutes for sync requests. Incremental syncs are not intended for read-after-write use cases. See example usage at [List the user's contacts that have changed](/people/v1/contacts#list_the_users_contacts_that_have_changed)."
{:scopes ["https://www.googleapis.com/auth/contacts"
"https://www.googleapis.com/auth/contacts.readonly"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{:resourceName})]}
(util/get-response
(http/get
(util/get-url
"https://people.googleapis.com/"
"v1/{+resourceName}/connections"
#{:resourceName}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))