API Events and Logging
From ePrize Developers Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
+ | {{Logo}} | ||
The eWS API consists of small, simple bricks that you assemble into a promotion. However, reporting on events that happen in your promotion don't really line up with these small bricks—you'd like to know about bigger events. To do that, add the following HTTP header to any eWS API request. | The eWS API consists of small, simple bricks that you assemble into a promotion. However, reporting on events that happen in your promotion don't really line up with these small bricks—you'd like to know about bigger events. To do that, add the following HTTP header to any eWS API request. | ||
Current revision
The eWS API consists of small, simple bricks that you assemble into a promotion. However, reporting on events that happen in your promotion don't really line up with these small bricks—you'd like to know about bigger events. To do that, add the following HTTP header to any eWS API request.
X-eWS-Activity: {activity-name}
{activity-name} must be one of: login, register, play. You should pick one of the eWS API requests that best represents the given activity and tag only that one request. If you tag multiple requests with the same activity, each one will be reported as that activity.