Using Macros in Postbacks

Last Updated: Feb 01, 2016 04:31PM PST
Apsalar's postback platform enables sending of a variety of data-points described in our glossary here.  This document details advanced use cases of using some of our more powerful macros.

Event Attribute Macro - {EVTATTR}

The Apsalar {EVTATTR} allows you to send a attribute value implemented in your iOS or Android app, through a postback to your desired endpoint.

For example, if you are passing a "level complete" event for your gaming app like:
 
[Apsalar eventWithArgs:@"LevelUp",
     @"Level", [NSNumber numberWithInt:10], nil];

You can send the value for "Level" to a postback destination using the {EVTATTR} macro.  

For example, the following postback template, when triggered by the above "LevelUp" event:

http://mypostbackendpoint.com/api?eventname={EVTNAME}&param={EVTATTR|Level}

Would evaluate to the following:

http://mypostbackendpoint.com/api?eventname=LevelUp&param=10


 
support@apsalar.com
http://assets2.desk.com/
apsalarinc
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
Invalid characters found
/customer/en/portal/articles/autocomplete