Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ Google People API now supports batch mutates and searches of Contacts

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Google People API now supports batch mutates and searches of Contacts


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: feedproxy.google.com

Posted by Ting Huang, Software Engineer

Some time ago, we announced that the Google Contacts API was being deprecated in favor of the People API, and it is scheduled for sunset on June 15, 2021. To aid in the process of migrating from Contacts API, we are pleased to announce that we have added two sets of new endpoints for working with contacts via the People API.

First, we now have new write endpoints that allow developers to create, delete, and update multiple contacts at once. In addition, we also have new read endpoints that allow developers to search a userโ€™s contacts using a prefix query. Both will greatly improve working with the People API, so letโ€™s take a quick look at how you can leverage these new endpoints today.

Getting Started with the People API

Applications need to be authorized to access the API, so to get started you will need to create a project on the Google Developers Console with the People API enabled to get access to the service. If you are new to the Google APIs, you can follow the steps here to begin accessing People API.

Google profile image

Working with Batch Mutate Endpoints

Once youโ€™re authorized, you can simply create new contacts like this (using the Google APIs Client Library for Java):

Person person = new Person();
person.setNames(ImmutableList.of(new
Name().setGivenName("John").setFamilyName("Doe")));
ContactToCreate contactToCreate = new ContactToCreate();
contactToCreate.setContactPerson(person);

BatchCreateContactsRequest request = new BatchCreateContactsRequest();
request.setContacts(ImmutableList.of(contactToCreate)).setReadMask("names");

BatchCreateContactsResponse response =
peopleService.people().batchCreateContacts(request).execute();

The scope your app needs to authorize with is https://www.googleapis.com/auth/contacts. Full documentation on the people.batchCreateContacts method is available here.

Similarly, you can update existing contacts like this:

String resourceName = "people/c12345"; // existing contact resource name
Person contactToUpdate =
peopleService
.people()
.get(resourceName)
.setPersonFields("names,emailAddresses")
.execute();
contactToUpdate.setNames(
ImmutableList.of(new Name().setGivenName("John").setFamilyName("Doe")));

BatchUpdateContactsRequest request = new BatchUpdateContactsRequest();
ImmutableMap<String, Person> map =
ImmutableMap.of(contactToUpdate.getResourceName(), contactToUpdate);
request.setContacts(map).setUpdateMask("names")
.setReadMask("names,emailAddresses");

BatchUpdateContactsResponse response =
peopleService.people().batchUpdateContacts(request).execute();

Full documentation on the people.batchUpdateContacts method is available here.

Working with Search Endpoints

You can search through the authenticated userโ€™s contacts like this:

SearchResponse response = peopleService.people().searchContacts()
.setQuery("query")
.setReadMask("names,emailAddresses")
.execute();

The scope your app needs to authorize with is https://www.googleapis.com/auth/contacts or https://www.googleapis.com/auth/contacts.readonly. Full documentation on the people.searchContacts method is available here.

You can also search through the authenticated userโ€™s โ€œother contactsโ€ like this:

SearchResponse response = peopleService.otherContacts().search()
.setQuery("query")
.setReadMask("names,emailAddresses")
.execute();

The scope your app needs to authorize with is https://www.googleapis.com/auth/contacts.other.readonly. Full documentation on the otherContacts.search method is available here.

Next Steps

We hope that these newly added features inspire you to create the next generation of cool web and mobile apps that delight your users and those in their circles of influence. To learn more about the People API, check out the official documentation here.

...



๐Ÿ“Œ Google People API now supports batch mutates and searches of Contacts


๐Ÿ“ˆ 108.5 Punkte

๐Ÿ“Œ Inhalt/Text einer Batch in neue Batch schreiben - Batch automatisch erstellen


๐Ÿ“ˆ 41.06 Punkte

๐Ÿ“Œ Windows PC spy nasty dormant for three years, mutates and resurfaces


๐Ÿ“ˆ 32.53 Punkte

๐Ÿ“Œ Windows PC spy nasty dormant for three years, mutates and resurfaces


๐Ÿ“ˆ 32.53 Punkte

๐Ÿ“Œ An Event Mutates


๐Ÿ“ˆ 30.74 Punkte

๐Ÿ“Œ Times New Arial Mutates Familiar Fonts Into Something Wholly New


๐Ÿ“ˆ 30.74 Punkte

๐Ÿ“Œ Batch Console by Privateloader - Earn and learn with Batch


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ Creating a Batch File and PowerShell Script โ€œBatch File to Run PowerShell Script


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ Recommended: Batch File โ€œIfโ€ and โ€œIf Elseโ€ Statements: How to Use the Conditional Statements in Batch Scripts


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ Batch File Echo and Echo Off: How to Control the Command Outputs in Batch Scripts


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ Batch File Syntax: Understanding and Mastering the Syntax for Batch Scripting


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ Batch Geocoding and Batch Reverse-Geocoding with Bing Maps


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ CM Batch Photo Processor 4.1.5.3.564 - Batch size and rename photos.


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ Batch Processing vs. Stream Processing: Why Batch Is Dying and Streaming Takes Over


๐Ÿ“ˆ 29.16 Punkte

๐Ÿ“Œ โ€œProtonMail Contactsโ€ worldโ€™s first encrypted contacts manager is here


๐Ÿ“ˆ 29.14 Punkte

๐Ÿ“Œ Google Searches Show That America Is Full of Racist and Selfish People


๐Ÿ“ˆ 27.61 Punkte

๐Ÿ“Œ Google Weighs Gemini AI Project To Tell People Their Life Story Using Their Photos and Searches


๐Ÿ“ˆ 27.61 Punkte

๐Ÿ“Œ HPR3740: Batch File Variables; Nested Batch Files


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Batch File Rename: A Guide on Renaming Files through Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ CM Batch Filename Changer 1.2.7.3.0 - Batch file renaming application.


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Batch File Pause for 5 Seconds: How to Add Delays to Your Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Create a Folder in Batch File: How to Create Directories Using Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Batch File Copy: A Guide to Copying Files Using Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Batch File Change Directory: How to Navigate the Directories in Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Exit Batch File โ€“ How to Properly Terminate Your Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Batch File Delete Folder: How to Automate Folder Deletion Using Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Batch File Prompt for Input: How to Create Interactive Batch Scripts


๐Ÿ“ˆ 27.37 Punkte

๐Ÿ“Œ Search Analytics API now supports Discover, Google News, and Regex


๐Ÿ“ˆ 25.68 Punkte

๐Ÿ“Œ TIBCO FTP Community Edition up to 6.5.0 on Windows Server/C API/Golang API/Java API/.Net API access control


๐Ÿ“ˆ 24.99 Punkte

๐Ÿ“Œ Facebook Collected and Uploaded 1.5 Million Peopleโ€™s Email Contacts Without their Knowledge


๐Ÿ“ˆ 24.46 Punkte

๐Ÿ“Œ Android Will Now Store Google Searches Offline and Deliver Them When You Get Signal


๐Ÿ“ˆ 23.86 Punkte











matomo