Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Call the SDK’s CreateAPI method from the “application:didFinishLaunchingWithOptions”

...

located in the AppDelegate file.

There are 3 different usages of the SDK:

1- Sending data to RMC
2- Sending data to RMC and Receiving Recommendations 
3- Sending data to RMC, Receiving Recommendations and In-App messages 


Sending Data to

...

RMC

Use the following method to only send data to Visilabs use the following methodRMC: 

Code Block
languageapplescript
titleObjective-C
[Visilabs createAPI:@"OrganizasyonID" withSiteID:@"SiteID" withSegmentURL:@"http://lgr.visilabs.net" withDataSource:@"DataSource" withRealTimeURL:@"http://rt.visilabs.net" withChannel:@"IOS"];
Code Block
languageapplescript
titleSwift
Visilabs.createAPI("OrganizasyonID", withSiteID:"SiteID", withSegmentURL: "http://lgr.visilabs.net", withDataSource: "DataSource", withRealTimeURL: "http://rt.visilabs.net", withChannel: "IOS")

Sending Data to

...

RMC and Receiving Recommendations

If you would like Use the following method to send data to Visilabs RMC and to receive Recommendations use the following method:

Code Block
languageapplescript
titleObjective-C
[Visilabs createAPI:@"OrganizasyonID" withSiteID:@"SiteID" withSegmentURL:@"http://lgr.visilabs.net" withDataSource:@"DataSource" withRealTimeURL:@"http://rt.visilabs.net" withChannel:@"IOS" withRequestTimeout:30 withTargetURL:@"http://s.visilabs.net/json"];

...

Code Block
languageapplescript
titleSwift
Visilabs.createAPI("OrganizasyonID", withSiteID:"SiteID", withSegmentURL: "http://lgr.visilabs.net", withDataSource: "DataSource", withRealTimeURL:"http://rt.visilabs.net", withChannel: "IOS",  withRequestTimeout:30, withTargetURL:"http://s.visilabs.net/json")

Sending Data to

...

RMC, Receiving Recommendations and In-

...

App Messages 

Use the following method to send data to VisilabsRMC, to receive Recommendations and receive inIn-app App messages use the following method:

Code Block
languageapplescript
titleObjective-C
 [Visilabs createAPI:@"OrganizasyonID" withSiteID:@"SiteID" withSegmentURL:@"http://lgr.visilabs.net" withDataSource:@"DataSource" withRealTimeURL:@"http://rt.visilabs.net" withChannel:@"IOS"  withRequestTimeout:30 withTargetURL:@"http://s.visilabs.net/json" withActionURL:@"http://s.visilabs.net/actjson"];

...

Code Block
languageactionscript3
titleSwift
Visilabs.createAPI("OrganizasyonID", withSiteID:"SiteID", withSegmentURL: "http://lgr.visilabs.net", withDataSource: "DataSource", withRealTimeURL: "http://rt.visilabs.net", withChannel: "IOS",  withRequestTimeout:30, withTargetURL:"http://s.visilabs.net/json",withActionURL: "http://s.visilabs.net/actjson" )

...

Info

To learn the OrganizationID, SiteID and Datasource parameters,

...

login to

...

RMC GUI and view your profile details or send a request to

...

RMC support.