Skip to content

Commit

Permalink
Merge branch 'master' of github.com:anarock/leads into update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhirzh committed Feb 9, 2024
2 parents 4229443 + e8428e5 commit 215a770
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 2 additions & 6 deletions JS_Submit_SDK.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ window.Anarock.submitLead({
purpose: 'buy',
country_code: 'in',
phone: '9999999999', // valid 10-digits phone number
source_id: 1, // check the proper mapping with leads source dashboard
sub_source_id: 1, // check the proper mapping with leads subsource dashboard
source: 'sms',
sub_source: 'sms-december-campaign',
subSource: 'sms-december-campaign',
onLeadSuccessCallback(leadID, data) {
console.log('lead captured with ID:', leadID)
},
Expand Down Expand Up @@ -120,10 +118,8 @@ call this function to send OTP code to the users' phone number for verification
name: 'Abc Xyz',
email: '[email protected]',
purpose: 'buy',
source_id: 1, // check the proper mapping with leads source dashboard
sub_source_id: 1, // check the proper mapping with leads subsource dashboard
source: 'sms',
sub_source: 'sms-december-campaign',
subSource: 'sms-december-campaign',
onLeadSuccessCallback(leadID, data) {
console.log('lead captured with ID:', leadID)
},
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ $postFields .= "&email=".$email;
$postFields .= "&source=".$utm_source;
$postFields .= "&sub_source=".$utm_campaign;
$postFields .= "&placement=".$utm_term;
$postFields .= "&purpose=buy";
$postFields .= "&current_time=".$current_time;
$postFields .= "&phone=".$phone; // Phone number without country code
$postFields .= "&country_code=".$country_code; // Standard ISO3166-1 alpha-2 code for a country.
Expand Down
2 changes: 1 addition & 1 deletion callback_url.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The post params posted at any update in a particular leads are as follows
"lead_status": "Final negotiation",
"last_status": "Visit done",
"name": "History ",
"phone": "+919999999988",
"phone": "9999999988",
"source": "facebook",
"sub_source": "leadgen",
"action": "lead_update",
Expand Down

0 comments on commit 215a770

Please sign in to comment.