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:

Supported Mediums:

  • undefined (No Medium)
  • facebook
  • twitter
  • sms
  • email
  • copy_link
$(document).on("swell:setup", function(){
    var customerReferralLinkByMedium = swellAPI.getCustomerShareReferralLink(medium);