{"action":"created","issue":{"url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/571","labels_url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/571/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/571/comments","events_url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/571/events","html_url":"https://github.com/mgp25/WhatsAPI-Official/issues/571","id":65183126,"number":571,"title":"How to correctly sync contactlist after adding one new contact","user":{"login":"hansrouge","id":11441510,"avatar_url":"https://avatars.githubusercontent.com/u/11441510?v=3","gravatar_id":"","url":"https://api.github.com/users/hansrouge","html_url":"https://github.com/hansrouge","followers_url":"https://api.github.com/users/hansrouge/followers","following_url":"https://api.github.com/users/hansrouge/following{/other_user}","gists_url":"https://api.github.com/users/hansrouge/gists{/gist_id}","starred_url":"https://api.github.com/users/hansrouge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansrouge/subscriptions","organizations_url":"https://api.github.com/users/hansrouge/orgs","repos_url":"https://api.github.com/users/hansrouge/repos","events_url":"https://api.github.com/users/hansrouge/events{/privacy}","received_events_url":"https://api.github.com/users/hansrouge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-30T10:32:38Z","updated_at":"2015-03-30T11:28:26Z","closed_at":"2015-03-30T11:06:46Z","body":"Hi there,\r\n\r\ni know how i have to sync my contacts after my login.\r\nBut how do I sync my contactlist after adding one or two new contactc?\r\n\r\nDo I have to sync all the contacts again or is it ok to just sync the new contacts?\r\n\r\nFor example:\r\n```php\r\n$w->login...\r\n....\r\n//First Sync:\r\n$nrs = array(1,2,3,4,5,6);\r\n$w->sendSync($nrs);\r\n...\r\n...\r\n// I want to add a new one:\r\n$new_number = array(7,8);\r\n$w->sendSync($new_numbers,0,4);  \r\n\r\n//or do I have to:\r\n$allNumbes = array_merge($nrs,$new_numbers);\r\n$w->sendSync($allNumbers,0,4);\r\n```\r\n\r\nCan you explain more detailed the difference between Delta Interactive (3) and Delta Background (4). Should I use Background or Interactive to sync only my new contacts?\r\n\r\nThe wiki does not explain it  enough.\r\n\r\nThanks very much!"},"comment":{"url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/comments/87639528","html_url":"https://github.com/mgp25/WhatsAPI-Official/issues/571#issuecomment-87639528","issue_url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/571","id":87639528,"user":{"login":"yniv","id":7657911,"avatar_url":"https://avatars.githubusercontent.com/u/7657911?v=3","gravatar_id":"","url":"https://api.github.com/users/yniv","html_url":"https://github.com/yniv","followers_url":"https://api.github.com/users/yniv/followers","following_url":"https://api.github.com/users/yniv/following{/other_user}","gists_url":"https://api.github.com/users/yniv/gists{/gist_id}","starred_url":"https://api.github.com/users/yniv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yniv/subscriptions","organizations_url":"https://api.github.com/users/yniv/orgs","repos_url":"https://api.github.com/users/yniv/repos","events_url":"https://api.github.com/users/yniv/events{/privacy}","received_events_url":"https://api.github.com/users/yniv/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T11:28:26Z","updated_at":"2015-03-30T11:28:26Z","body":"Also, Is it required that every log-in i'll send all the passed synced contacts in my contact list?\r\nor i can send only delta's for new ones?"}}