{"_id":"576582f14e63520e00a9ff72","version":{"_id":"56cacb1cc675f50b00a4b61c","project":"56cacb1bc675f50b00a4b619","__v":14,"createdAt":"2016-02-22T08:47:24.528Z","releaseDate":"2016-02-22T08:47:24.528Z","categories":["56cacb1dc675f50b00a4b61d","56cc10aaca43550b0028125a","56cc10b7b4cbcf0b004a5df9","56cc1bb2272aa4130002ccd2","56cc5834b4cbcf0b004a5f8b","56cda18bface161300dae13b","56d51f2873dcd20b00fb87bb","56fbe0610023171700b96105","57658310c176520e00ea9076","5772bdd48c48e00e00503638","577c1dfe87acf617003c3fcd","579525172979790e00771a15","582b4661cdfdc125000c8684","586365cedfe6cc3700a7be63"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"__v":0,"category":{"_id":"56cc10b7b4cbcf0b004a5df9","project":"56cacb1bc675f50b00a4b619","__v":5,"pages":["56cd503649abf10b0036a1f0","56cd585aa2a95b0b00c6ec0b","56cd591224f28913009575c4","56cd772dd98d851d00c0c447","56d5267b1c4de4130005d804"],"version":"56cacb1cc675f50b00a4b61c","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-23T07:56:39.448Z","from_sync":false,"order":2,"slug":"sdk","title":"PHP SDK"},"project":"56cacb1bc675f50b00a4b619","user":"56caca84245b841300806def","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-18T17:20:49.339Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":6,"body":"You can optionally choose to sync user profile data to Codemojo to get rich Analytics & to setup marketing automation\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"( AuthenticationService authenticationService )\",\n \"language\": \"java\",\n \"name\": \"Signature\"\n }\n ]\n}\n[/block]\n\n[block:api-header]\n{\n \"type\": \"basic\",\n \"title\": \"Parameters\"\n}\n[/block]\n\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Parameter\",\n \"h-1\": \"Type\",\n \"h-2\": \"Description\",\n \"0-0\": \"authenticationService\",\n \"0-1\": \"AuthenticationService\",\n \"0-2\": \"An instance of authentication service. This also determines which server to connect to\"\n },\n \"cols\": 3,\n \"rows\": 1\n}\n[/block]\n\n[block:api-header]\n{\n \"type\": \"post\",\n \"title\": \"syncUserData\"\n}\n[/block]\n\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"(String customer_id, CustomerInfo customer_info)\",\n \"language\": \"java\",\n \"name\": \"Signature\"\n }\n ]\n}\n[/block]\n**Returns** Boolean **Throws** Exception, InvalidArgumentException\n\nAdd or update user profile data\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Parameter\",\n \"h-1\": \"Type\",\n \"h-2\": \"Description\",\n \"0-0\": \"customer_id\",\n \"0-1\": \"String\",\n \"0-2\": \"Customer ID to link the profile with\",\n \"1-0\": \"customer_info\",\n \"1-1\": \"CustomerInfo\",\n \"1-2\": \"CustomerInfo object\"\n },\n \"cols\": 3,\n \"rows\": 2\n}\n[/block]\n\n[block:api-header]\n{\n \"type\": \"delete\",\n \"title\": \"deleteUserData\"\n}\n[/block]\n\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"(String customer_id)\",\n \"language\": \"java\",\n \"name\": \"Signature\"\n }\n ]\n}\n[/block]\n**Returns** Boolean **Throws** BalanceExhaustedException, Exception, InvalidArgumentException\n\nDelete sync data\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Parameter\",\n \"h-1\": \"Type\",\n \"h-2\": \"Description\",\n \"0-0\": \"customer_id\",\n \"0-1\": \"String\",\n \"0-2\": \"Customer ID of the user whose profile needs to be deleted\"\n },\n \"cols\": 3,\n \"rows\": 1\n}\n[/block]","excerpt":"Sync data about your users for marketing automation from Codemojo Dashboard","slug":"user-datasync-service","type":"basic","title":"User DataSync Service"}
User DataSync Service
Sync data about your users for marketing automation from Codemojo Dashboard