I can read all contacts from Google using People API:
uses
googlepeople, googleservice, googleclient
var
Resp: TListConnectionsResponse;
Per: TPerson;
begin
Resp := FPeopleAPI.PeopleConnectionsResource.List('people/me',
'personFields=names,emailAddresses');
for Per in Resp.connections do
if Length(Per.Names)>0 then
Memo1.Lines.Add(Per.Names[0].displayName+': '+Per.emailAddresses[0].Value)
end;
However, there is no method to create a contact in Lazarus client library, although there is a method called "people.createContact" in the API reference (
https://developers.google.com/people/api/rest/v1/people/createContact).
Please, how could I create a contact using Google People API?