Yahoo! Contacts Delphi component is a non-visual component that allows to work with Yahoo! Contacts using Delphi. The component supports Delphi 7 and higher Delphi versions and works directly using official Yahoo! Contacts API. Official API use guarantees maximum compatibility and fewest possible modifications to future versions of the component.
Connecting to Yahoo! Contacts and showing list of contacts in the listbox.
YContacts := TYContacts.Create; YContacts.ConsumerKey := 'TBPUS0tJnM9Y--'; // Your consumer key YContacts.ConsumerSecret := 'abcsdfghijklmn'; // Your consumer secret key YContacts.Load; for I := 0 to YContacts.ContactsCount - 1 do ListBox1.Items.Add(YContacts.Contacts[I].Title); YContacts.Free;
Adding a new contact "John" with phone number "+555-55-55" and email address "email@yahoo.com".
With YContacts.NewContact do begin FirstName := 'John'; Phone := '+555-55-55'; EMail := 'email@yahoo.com'; End; YContacts.Store;
Deleting a contact with index number 5.
YContacts.Contacts[5].Delete; YContacts.Store;
Download working example.
Note! The trial version of the component is available upon request.
YCDC 1.0
Dec. 01, 2011