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

Version 1 Next »

Call the SDK’s CreateAPI method from the “application:didFinishLaunchingWithOptions” function which is in the AppDelegate file.

Sending Data to Visilabs


If you would like to only send data to Visilabs use the following method:

Objective-C

[Visilabs createAPI:@"OrganizasyonID" withSiteID:@"SiteID" withSegmentURL:@"http://lgr.visilabs.net" withDataSource:@"DataSource" withRealTimeURL:@"http://rt.visilabs.net" withChannel:@"IOS"];

Swift

Visilabs.createAPI("OrganizasyonID", withSiteID:”SiteID”, withSegmentURL: "http://lgr.visilabs.net", withDataSource: "DataSource", withRealTimeURL: "http://rt.visilabs.net", withChannel: “IOS”)


Sending Data to Visilabs and Receiving Recommendations

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

Objective-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"];

 

Swift
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 Visilabs, Receiving Recommendations and In-app Messages from Visilabs

If you would like to send data to Visilabs, receive Recommendations and receive in-app messages use the following method:

Objective-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"];

 

Swift
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" )

 

To learn the OrganizationID, SiteID and Datasource parameters, log on to Visilabs GUI and view your profile details or send a request to Visilabs support.

 

  • No labels