IMP SDK is a JavaScript library containing utilities for developing campaign sites like social, coremetrics, ... .
The fastest way to get started is to serve JavaScript from the CDN. It will give you ImpSdk namespace in your global scope.
addToMacysBagaddToMacysListutil.getEnvutilutil.getDeviceaddToRegistryImpSdk.getDeviceshareFacebook issue which imposes unintended requirementauthentication.showLoginauthentication.getLoggedInUserauthentication.logoutshareTwitter to work with iPhone popups_testGetInternationalPricing for testing international pricing without cookiesgetInternationalPricingshareFacebook on fds.com domainaddToGenericListremoveFromGenericListgetGenericListsubmitSweeps: Added enhancement to support multiple entries per sweepstakes or for multiple sweepstakes (ie. different prizes). Json data input will accept optional sweepstakesId and maxEntries and validate accordingly.
Quickview: Fixed button styles in QuickView for Chrome (Windows).
Added cookie domains.
showHeaderAndFooter: (Breaking from v0.*) Updated CSS styling. Adopted requirements to prevent CSS clashing:
showSharePopup: (Breaking from v0.*) Adopted the latest shareFacebook, shareTwitter, sharePinterest modules. Added a node-style callback function. Modified function signature:
options object with all of the properties required by shareFacebook, shareTwitter, sharePinterest.styles object with properties to modifiy the default appearance of the modal or an empty object.target string as the element id of the container for the social share popup.callback function in node style required by shareFacebook and shareTwitter.shareFacebook: (Breaking from v0.*) Adopted the latest version of Facebook SDK which supports inclusion of images in shared posts. Modified the function signature and changed the sharing side effect:
options object that has modified property names along with a new picture property,callback function as a second parameter,shareTwitter: (Breaking from v0.*) Added node-style callback for handling API calls to Bitly (url-shortener). Modified options object properties:
description is the name of the tweet message.link is the url to be shared in shortened format created by Bitly.sharePinterest: (Breaking from v0.*) Modified options object properties:
description is some information about the shared image.link is the url of the campaign where you can find out more about the image.picture is the url of the image.