{"_id":"56fc0b6205fd6e3400ed2df6","project":"56cacb1bc675f50b00a4b619","user":{"_id":"56caca84245b841300806def","username":"","name":"Shoaib"},"initVersion":{"_id":"56cacb1cc675f50b00a4b61c","version":"1"},"__v":0,"createdAt":"2016-03-30T17:22:42.094Z","changelog":[],"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"User referral service\"\n}\n[/block]\nWe've just announced our fully managed User referral service.. It's just 3 steps...\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?php \\n\\n\\t// Generate the referral code for the user 1 & share it via email/social media\\n\\t$referralService->getReferralCode('user1@example.com');\\n\\n\\t// User 2 uses the referral code during sign-up & gets promotional credits\\n\\t$referralService->useReferralCode('user1_ref_code');\\n\\n\\t// User 2 uses your service for the first time, User 1 gets referral commission\\n\\t$referralService->markActivityComplete('user2@drewards.in');\",\n      \"language\": \"php\"\n    }\n  ]\n}\n[/block]","slug":"user-referral-just-got-easier","title":"User referral just got easier!"}

User referral just got easier!


[block:api-header] { "type": "basic", "title": "User referral service" } [/block] We've just announced our fully managed User referral service.. It's just 3 steps... [block:code] { "codes": [ { "code": "<?php \n\n\t// Generate the referral code for the user 1 & share it via email/social media\n\t$referralService->getReferralCode('user1@example.com');\n\n\t// User 2 uses the referral code during sign-up & gets promotional credits\n\t$referralService->useReferralCode('user1_ref_code');\n\n\t// User 2 uses your service for the first time, User 1 gets referral commission\n\t$referralService->markActivityComplete('user2@drewards.in');", "language": "php" } ] } [/block]