Logging multiple events in a single call

Multiple events can also be batched into a single call for improved network efficiency using the logEvents call. For instance, in the following example a single call is made to log that a user accepted an offer and made a purchase:

Medio.Events.logEvents([
  {
   event_name: "AcceptContent", 
   action_type: "AcceptContent", 
   item_id: "AAA-BBB-CCC-000", 
   content_type: "offer" 
  },
  {
   event_name: "Purchase",
   action_type: "Purchase",
   unit_price: "9.99", 
   currency: "USD",
   quantity: "1",
   item_id: "3312345",
   item_category_tag: "Add 1G to Data Plan"
  }
]);