The events object

Onur Akpolat edited this page Nov 1, 2016 · 1 revision

Event can be performed on a object with the associated objects id to create more intelligent feeds and deeplink to obects in your application.

Attribute Type Description
id integer Unique user identifier for each event
id_string string Unique user identifier for each event
user_id integer Unique identifier for user who performed the event
user_id_string string Unique identifier for user who performed the event
type string Type of the event that was performed (e.g. like or comment)
language string Language of the current user
priority string Custom priority for the event
location string Name of the location for an event
latitude float Latitude value for a location
longitude float Longitude value for a location
metadata string Custom payload associated with the event
images string Images associated with the event
object object Object the activity was performed on
target object Target of the activity being performed
visibility integer The Visibilties of an event
tg_object_id string Unique identifier of a native tapglue object

If you want to send objects or targets associated with events you need to do it in the following format.

Object & Target

You can use objects and targets to add more context to your events. The resource structure is as follows:

Attribute Type Description
id string Unique identifier for each object
type string Type of the object
url string URL/Deeplink to the object in your application
display_name map[string]string Object name in different languages
{
  "object": {
    "id": "picture5",
    "type": "picture",
    "display_names": {
      "de": "Bild 1",
      "en": "Picture 1"
    }
  }
}

Images

You can send a set of images that you associated with each event.

Attribute Type Description
type string Type of the image
url string URL of the image
height integer Height of the image
width integer Width of the image
{
  "images": {
    "snapshot": {
      "url": "https://yourdomain.com/event.jpg",
      "height": 400,
      "width": 400
    },
      "snapshot_thumb": {
      "url": "https://yourdomain.com/event_thumb.jpg",
      "height": 100,
      "width": 100
    }
  }
}
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.