Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: API : GetContactItems Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bravedave
Newbie
Newbie


Joined: 05 September 2014
Location: Australia
Online Status: Offline
Posts: 35
Posted: 05 September 2014 at 12:26am | IP Logged Quote bravedave

In the API Function there is GetContactItems

It accepts a search parameter, what format can it take

I looking for a way to get all the contacts that have been modified since a given date (part of a export import routine from my application

thanks in advance
Back to Top View bravedave's Profile Search for other posts by bravedave
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 05 September 2014 at 1:55am | IP Logged Quote Igor

That's just a search string, works the same way as you'd enter some search pattern on Contacts screen and hit Enter. It doesn't offer any options like those you're looking for, I'm afraid.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
bravedave
Newbie
Newbie


Joined: 05 September 2014
Location: Australia
Online Status: Offline
Posts: 35
Posted: 15 September 2014 at 3:29pm | IP Logged Quote bravedave

Is there another way to do this

Basically I have contacts from several sources (including an Exchange Server)

Importing them is ok, but I want to know if a contact has been modified (perhaps on an iPhone etc) so I can reverse sync those contacts
Back to Top View bravedave's Profile Search for other posts by bravedave
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 16 September 2014 at 3:01am | IP Logged Quote Igor

We've rechecked this, and seems like there are actually DateCreated and DateModified properties of contact object; they were not included into helper for some reason though - but you should still be able to use that information.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
bravedave
Newbie
Newbie


Joined: 05 September 2014
Location: Australia
Online Status: Offline
Posts: 35
Posted: 16 September 2014 at 4:34am | IP Logged Quote bravedave

Thanks, but I can get as far as looking up the formation
eg. by email
Code:

$oApiContactsManager = CApi::Manager('contacts');
$contact = $oApiContactsManager->GetContactByEmail( $iUserId, 'email@domain.com' );


I can SQL query the database and get the id's of the contacts, and process that way - but that requires SQL access, a query through the API is what is needed

What would be ideal is
Code:

$oApiContactsManager = CApi::Manager('contacts');
$contacts = $oApiContactsManager->GetContacts( $iUserId, 'lastmodified > <unixdate>' );


Back to Top View bravedave's Profile Search for other posts by bravedave
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 16 September 2014 at 4:38am | IP Logged Quote Igor

You can only get that information for a specific contact, so it's about getting all the contacts and checking date properties of the object one at a time.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide