Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

CocoaPods

PersonaClick SDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'PersonaClick'

Swift Package Manager

If you are using Xcode 11 or later:

  1. Click: File > Swift Packages > Add Package Dependency...
  2. Specify the git URL for PersonaClick SDK repo.
https://github.com/PersonaClick/ios-sdk.git

Initialization parameters

Name

Type

Requirement

Description

store_keystringrequiredThe current store key from the PersonaClick account.
successfunctionoptionallyThe function will be executed after successful initialization.
errorfunctionoptionallyThe function will be executed after unsuccessful initialization (any Personaclick API response other than 200).

Example of use

personaclick("init", "c6d2fe5fdca0c8e51d10b07523bc07", function() {
    // Do something in case of successful initialization
    console.log("The PersonaClick initialization was successful");
}, function() {
    // Do something in case of unsuccessful initialization
    console.log("The PersonaClick initialization was unsuccessful");
});

  • No labels