Changes

Jump to navigation Jump to search
650 bytes removed ,  17:38, 10 July 2014
no edit summary
{{Api_Method_Spec|
Description=The AddEventBatch is a method to add massive events in just one request. The same behavior of , in another words, send multiply events as [[AddEvent]], his more common use is on mobile device (after stay offline during some in the same time) or when the events can be send in a group of events. On mobile device , for example, in a offline mode, all events that wants to add can be storage in a pool, and when it become online, send all data in one request to the AddEventBatch.
The principal difference between [[AddEvent]], is that the parameter eventData is an Array of [[AnalyticsEventItem]] that contains each event to add with his info like timestamp and event title.
The AddEventBatch can be used logged or anonymous.
 
For each event, if not specified the context parameter, the user data will be obtained from the Token.
For more information about the behavior, see [[AddEvent]] method.
 
 
NOTE: Each event in the array eventData has three members: timestamp, event and data. The data parameter could be create with dynamic fields as needed. It's composed by a sequence of key:value.
 
For example: If wants to send three groups of data and it has different name. The application should controls the sequence and send one at a time.
 
* First batch:
: - Timstamp: { now }
: - Event: FirstBatch
: - Data: [ Array of Event object with information ]
 
* Second batch
: - Timstamp: { now }
: - Event: SecondBatch
: - Data: [ Array of Event object with information ]
 
* Third batch
: - Timstamp: { now }
: - Event: ThirdBatch
: - Data: [ Array of Event object with information ]
 
 
editor
725

edits

Navigation menu