swellAPI.getCustomerShareReferralLink(medium)
This method returns a referral link (string) containing a prefix that maps the source of the referral link
medium/channel of where the referral link will be shared.
For example, the following method represents the referral link (copy_link) function:
swellAPI.getCustomerShareReferralLink("copy_link")
"http://rwrd.io/wbszw29?c"
Supported Mediums:
undefined
(No Medium)facebook
twitter
sms
email
copy_link
$(document).on("swell:setup", function(){
var customerReferralLinkByMedium = swellAPI.getCustomerShareReferralLink(medium);
$("#custom-referral-link-ui-by-medium").html(customerReferralLinkByMedium);
})