NAV

Introducción

Con la API de cool tabs puedes leer los datos de los participantes de todas tus promociones.

Autenticación y configuración

Deberás enviar un parámetro token en cada petición.

Para obtener tu token de usuario, escríbenos a soporte@cool-tabs.com

Listado de promociones activas en tu cuenta

GET https://www.cool-tabs.com/api/promos.json?token=XXXX

Listado de participantes de una promoción.

En la página de detalles de una promoción podrás ver la URLs exacta que debes utilizar para consultar los datos mediante la API.

GET https://www.cool-tabs.com/promos/<ID>.json?token=XXXX

Ordenación y consulta de datos.

Cada participación (un participante puede participar más de una vez) tiene un identificador siempre creciente.

Al consultar las participaciones mediante la API, normalmente devolvemos las participaciones siempre en orden de más recientes a más antiguas.

Excepto si estoy pidiendo las participaciones más recientes que una dada, en cuyo caso las devolvemos en orden inverso.

Si estáis guardando/procesando las participaciones de alguna manera, siempre que lleguéis a una participación que ya habéis procesado, podéis dejar de seguir haciendo peticiones a la API porque el resto siempre va a incluir las que ya habéis procesado anteriormente.

La idea es que una vez que se hace el procesamiento inicial de todos los datos existentes, cada vez preguntéis sólo por los nuevos datos que lleguen.

Parámetros

Parámetro Descripción
since_id Devuelve participaciones con identificador mayor (más recientes) que ésta (excluído)
max_id Devuelve participaciones con identificador menor (más antiguas) que ésta (excluído)

Respuesta

La API devuelve un objeto JSON con 3 posibles encabezados:

Parámetro Descripción
data Array de participantes
pagination Información sobre cómo obtener el resto de participaciones
error {error: {code: codigo_error, message: “Mensaje de error”}}

Ejemplo listado de promociones activas

curl https://www.cool-tabs.com/api/promos.json?token=xxx


{
  "data": [
    {
      "id": 1111,
      "participations_start_at": "2016-11-09 10:38:40 +0100",
      "participations_end_at": "2016-12-10 10:38:40 +0100",
      "title": "Título de la promo",
      "created_at": "2016-11-10 10:38:40 +0100",
      "updated_at": "2016-11-10 10:38:40 +0100",
      "promotion_start_at": "2016-11-09 10:38:40 +0100",
      "promotion_end_at": "2016-12-10 10:38:40 +0100",
      "participations_count": 0,
      "custom_domain": null,
      "content_name": "Wadus 3",
      "url": "https://www.cool-tabs.com/promos/1111.json?locale=es&token=xxx"
    }
  ]
}

Ejemplo lectura y paginación

Suponemos que cuando empezáis a pedir datos a la API hay ya 5 participaciones

También simulamos aquí que la API devuelve sólo 3 registros cada vez, y que la fecha de todos los participantes es la misma (que nunca será el caso). Los ids de las participaciones existentes serán 10, 20, 30, 40, 50. Con datos reales, serán identificadores siempre crecientes, pero para nada consecutivos o con misma diferencia entre ellos.

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3


{
  "data": [
    {
      "id": 50,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/JXiNIKOCM",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/50/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    },
    {
      "id": 40,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/Kyi5IquP",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/40/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    },
    {
      "id": 30,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/1yiVILiZ",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/30/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    }
  ],
  "pagination": {
    "max_id": 30,
    "since_id": 50,
    "newer_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=50",
    "older_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&max_id=30"
  }
}

Vemos que hay resultados más antiguos, así que los pedimos

En {pagination: {order_results: xx}} tenemos la URL que debemos utilizar para pedir los siguientes resultados (más antiguos). Utilizamos el parámetro max_id para obtener datos con un id máximo menor al último que hemos obtenido.

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&max_id=30


{
  "data": [
    {
      "id": 20,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/5viOIOHY",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/20/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    },
    {
      "id": 10,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/zPiGIWfr",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/10/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    }
  ],
  "pagination": {
    "max_id": 10,
    "older_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&max_id=10"
  }
}

Parece que sigue habiendo resultados más antiguos, así que los pedimos de nuevo

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&max_id=10


{
  "data": [

  ],
  "pagination": {
    "max_id": 0,
    "older_results": null
  }
}

Aquí ya hemos llegado al final de los datos (data está vacío, y max_id es 0). Ya hemos obtenido todos los datos.

Petición para obtener nuevas participaciones

Como ya habéis procesado hasta la participación con ID 50, para ver si hay nuevas participaciones deberéis pedir:

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=50


{
  "data": [

  ],
  "pagination": {
    "since_id": 50,
    "newer_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=50"
  }
}

Como no ha habido ningún nuevo participante, data está vacío. Pero pagination nos sigue indicando la URL para obtener nuevos resultados. Como no ha habido ningún nuevo participante, devuelve la petición original que hemos hecho. Se puede repetir sin problemas.

Ahora supongamos que entre petición y petición que hacéis, participan 4 nuevos usuarios

Esta participación tiene id 60,70,80,90

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=50


{
  "data": [
    {
      "id": 60,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/PXi6IaNTR",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/60/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    },
    {
      "id": 70,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/ZRinI0nHm",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/70/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    },
    {
      "id": 80,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/B1iyInAfA",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/80/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    }
  ],
  "pagination": {
    "max_id": 60,
    "since_id": 80,
    "newer_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=80",
    "older_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&max_id=60&since_id=50"
  }
}

Ahora devolvemos los IDs en orden ascendente (porque hemos pedido datos con since_id

Y pedimos nuevos resultados otra vez para ver si queda alguno todavía

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=80


{
  "data": [
    {
      "id": 90,
      "first_name": "John",
      "last_name": "Smith",
      "email": "user@example.com",
      "uid": "xxxxx",
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "user_url": "https://www.facebook.com/xxxxx",
      "created_at": "2016-02-01T01:00:00.000+01:00",
      "public_url": "http://p.dry.lt/O1iAInnHG",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/90/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    }
  ],
  "pagination": {
    "max_id": 90,
    "since_id": 90,
    "newer_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=90",
    "older_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&max_id=90&since_id=80"
  }
}

Y seguimos pidiendo resultados porque puede que todavía haya, todavía no sabemos que ya no queda ninguno.

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=90


{
  "data": [

  ],
  "pagination": {
    "since_id": 90,
    "newer_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=90"
  }
}

Ya tenemos todos los nuevos participantes

Ejemplo con formato XML

curl https://www.cool-tabs.com/promos/1111.xml?token=xxx&per_page=2


<?xml version="1.0" encoding="UTF-8"?>
<data>
  <participation>
    <id>2</id>
    <first_name>John</first_name>
    <last_name>Smith</last_name>
    <email>user@example.com</email>
    <uid>2</uid>
    <provider>facebook</provider>
    <nickname/>
    <votes_count>0</votes_count>
    <referred_count>0</referred_count>
    <referred_uids/>
    <referred_by/>
    <invitations_sent>0</invitations_sent>
    <invitations_sent_unique>0</invitations_sent_unique>
    <wall_posts_count>0</wall_posts_count>
    <country_code/>
    <remote_ip/>
    <answer>My answer</answer>
    <user_url>https://www.facebook.com/2</user_url>
    <created_at>2016-02-01 01:00:00 +0100</created_at>
    <public_url>http://p.dry.lt/O1iAIniG</public_url>
    <private_url>https://www.cool-tabs.com/user_admin/promos/1111/participations/2/redirect_to_preview</private_url>
    <campaign_medium/>
    <campaign_name/>
    <spent_time_complete_form/>
    <fraud_reason></fraud_reason>
  </participation>
  <participation>
    <id>1</id>
    <first_name>John</first_name>
    <last_name>Smith</last_name>
    <email>user@example.com</email>
    <uid>1</uid>
    <provider>facebook</provider>
    <nickname/>
    <votes_count>0</votes_count>
    <referred_count>0</referred_count>
    <referred_uids/>
    <referred_by/>
    <invitations_sent>0</invitations_sent>
    <invitations_sent_unique>0</invitations_sent_unique>
    <wall_posts_count>0</wall_posts_count>
    <country_code/>
    <remote_ip/>
    <answer>My answer</answer>
    <user_url>https://www.facebook.com/1</user_url>
    <created_at>2016-02-01 01:00:00 +0100</created_at>
    <public_url>http://p.dry.lt/Mvi8IaSX</public_url>
    <private_url>https://www.cool-tabs.com/user_admin/promos/1111/participations/1/redirect_to_preview</private_url>
    <campaign_medium/>
    <campaign_name/>
    <spent_time_complete_form/>
    <fraud_reason></fraud_reason>
  </participation>
</data>
<pagination max_id="1" since_id="2" newer_results="https://www.cool-tabs.com/promos/1111.xml?token=xxx&amp;per_page=2&amp;since_id=2" older_results="https://www.cool-tabs.com/promos/1111.xml?token=xxx&amp;per_page=2&amp;max_id=1"/>


Ejemplo promoción con vídeos

Además, devolvemos los atributos video_url_for_api y video_embed_html. También incluímos un nuevo nodo raíz (no cuelga de data), llamado: content_for_head, donde incluímos el HTML que deberéis incluir en las páginas en que mostréis vídeos si queréis utilizar nuestro video player por defecto (siempre podréis utilizar otro que vosotros utilicéis).

curl https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3


{
  "content_for_head": "<link rel=\"stylesheet\" media=\"screen\" href=\"//vjs.zencdn.net/5.8.8/video-js.css\" /><script src=\"//cdnjs.cloudflare.com/ajax/libs/jquery.lazyloadxt/1.1.0/jquery.lazyloadxt.extra.min.js\"></script><script src=\"//vjs.zencdn.net/5.8.8/video.js\"></script>",
  "data": [
    {
      "id": 216,
      "first_name": "Pepe",
      "last_name": "López",
      "email": "pepe@gmail.com",
      "uid": null,
      "provider": "instagram",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "video_url_for_api": "https://scontent.cdninstagram.com/t50.2886-16/11653682_1650853161812013_1882853911_a.mp4",
      "video_embed_html": "<video id=\"my_video_8\" class=\"video-js vjs-sublime-skin embed_video\" controls  preload=\"none\" width='450' height='450' data-setup=\"{}\" data-poster='https://scontent.cdninstagram.com/t51.2885-15/s320x320/e15/11312011_395643690645950_975468682_n.jpg?ig_cache_key=NDgyNjYzOTk2Mjk4MjQwMTQ3.2'>  <source src=\"https://scontent.cdninstagram.com/t50.2886-16/11653682_1650853161812013_1882853911_a.mp4\" type='video/mp4'> </video>",
      "user_url": "https://instagram.com/",
      "created_at": "2016-11-10T10:38:38.208+01:00",
      "public_url": "http://p.dry.lt/l7imIMZiJ",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/216/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    },
    {
      "id": 215,
      "first_name": "Pepe",
      "last_name": "López",
      "email": "pepe@gmail.com",
      "uid": null,
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "video_url_for_api": "https://www.youtube.com/watch?v=uG95yGRaooY",
      "video_embed_html": "<iframe class=\"youtube-player embed_video \" width=\"397\" height=\"360\" data-src=\"https://www.youtube-nocookie.com/embed/uG95yGRaooY?rel=0&\" allowfullscreen></iframe>",
      "user_url": "https://www.facebook.com/",
      "created_at": "2016-11-10T10:38:38.171+01:00",
      "public_url": "http://p.dry.lt/bwikI1wc5",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/215/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    },
    {
      "id": 214,
      "first_name": "Pepe",
      "last_name": "López",
      "email": "pepe@gmail.com",
      "uid": null,
      "provider": "facebook",
      "nickname": null,
      "votes_count": 0,
      "referred_count": 0,
      "referred_uids": null,
      "referred_by": null,
      "invitations_sent": 0,
      "invitations_sent_unique": 0,
      "wall_posts_count": 0,
      "country_code": null,
      "remote_ip": null,
      "answer": "My answer",
      "video_url_for_api": "https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/video_mp4_2015-04-17-09.39.48.mp4",
      "video_embed_html": "<video id=\"my_video_214\" class=\"video-js vjs-sublime-skin embed_video\" controls preload=\"none\" width='1024' height='768' data-setup=\"{}\" data-poster='https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/screenshot_2015-04-17-09.39.48.jpg'><source src=\"https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/video_mp4_2015-04-17-09.39.48.mp4\" type='video/mp4'><source src=\"https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/video_webm_2015-04-17-09.39.48.webm\" type='video/webm'>We are sorry, but your browser cannot play these videos. </video>",
      "user_url": "https://www.facebook.com/",
      "created_at": "2016-11-10T10:38:38.078+01:00",
      "public_url": "http://p.dry.lt/zPiGIdpfr",
      "private_url": "https://www.cool-tabs.com/user_admin/promos/1111/participations/214/redirect_to_preview",
      "campaign_medium": null,
      "campaign_name": null,
      "spent_time_complete_form": null,
      "fraud_reason": ""
    }
  ],
  "pagination": {
    "max_id": 214,
    "since_id": 216,
    "newer_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&since_id=216",
    "older_results": "https://www.cool-tabs.com/promos/1111.json?token=xxx&per_page=3&max_id=214"
  }
}

curl https://www.cool-tabs.com/promos/1111.xml?token=xxx&per_page=3


<?xml version="1.0" encoding="UTF-8"?>
<content_for_head>&lt;link rel="stylesheet" media="screen" href="//vjs.zencdn.net/5.8.8/video-js.css" /&gt;&lt;script src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazyloadxt/1.1.0/jquery.lazyloadxt.extra.min.js"&gt;&lt;/script&gt;&lt;script src="//vjs.zencdn.net/5.8.8/video.js"&gt;&lt;/script&gt;</content_for_head>
<data>
  <participation>
    <id>216</id>
    <first_name>Pepe</first_name>
    <last_name>López</last_name>
    <email>pepe@gmail.com</email>
    <uid/>
    <provider>instagram</provider>
    <nickname/>
    <votes_count>0</votes_count>
    <referred_count>0</referred_count>
    <referred_uids/>
    <referred_by/>
    <invitations_sent>0</invitations_sent>
    <invitations_sent_unique>0</invitations_sent_unique>
    <wall_posts_count>0</wall_posts_count>
    <country_code/>
    <remote_ip/>
    <answer>My answer</answer>
    <video_url_for_api>https://scontent.cdninstagram.com/t50.2886-16/11653682_1650853161812013_1882853911_a.mp4</video_url_for_api>
    <video_embed_html>&lt;video id="my_video_8" class="video-js vjs-sublime-skin embed_video" controls  preload="none" width='450' height='450' data-setup="{}" data-poster='https://scontent.cdninstagram.com/t51.2885-15/s320x320/e15/11312011_395643690645950_975468682_n.jpg?ig_cache_key=NDgyNjYzOTk2Mjk4MjQwMTQ3.2'&gt;  &lt;source src="https://scontent.cdninstagram.com/t50.2886-16/11653682_1650853161812013_1882853911_a.mp4" type='video/mp4'&gt; &lt;/video&gt;</video_embed_html>
    <user_url>https://instagram.com/</user_url>
    <created_at>2016-11-10 10:38:38 +0100</created_at>
    <public_url>http://p.dry.lt/l7imIMZiJ</public_url>
    <private_url>https://www.cool-tabs.com/user_admin/promos/1111/participations/216/redirect_to_preview</private_url>
    <campaign_medium/>
    <campaign_name/>
    <spent_time_complete_form/>
    <fraud_reason></fraud_reason>
  </participation>
  <participation>
    <id>215</id>
    <first_name>Pepe</first_name>
    <last_name>López</last_name>
    <email>pepe@gmail.com</email>
    <uid/>
    <provider>facebook</provider>
    <nickname/>
    <votes_count>0</votes_count>
    <referred_count>0</referred_count>
    <referred_uids/>
    <referred_by/>
    <invitations_sent>0</invitations_sent>
    <invitations_sent_unique>0</invitations_sent_unique>
    <wall_posts_count>0</wall_posts_count>
    <country_code/>
    <remote_ip/>
    <answer>My answer</answer>
    <video_url_for_api>https://www.youtube.com/watch?v=uG95yGRaooY</video_url_for_api>
    <video_embed_html>&lt;iframe class="youtube-player embed_video " width="397" height="360" data-src="https://www.youtube-nocookie.com/embed/uG95yGRaooY?rel=0&amp;" allowfullscreen&gt;&lt;/iframe&gt;</video_embed_html>
    <user_url>https://www.facebook.com/</user_url>
    <created_at>2016-11-10 10:38:38 +0100</created_at>
    <public_url>http://p.dry.lt/bwikI1wc5</public_url>
    <private_url>https://www.cool-tabs.com/user_admin/promos/1111/participations/215/redirect_to_preview</private_url>
    <campaign_medium/>
    <campaign_name/>
    <spent_time_complete_form/>
    <fraud_reason></fraud_reason>
  </participation>
  <participation>
    <id>214</id>
    <first_name>Pepe</first_name>
    <last_name>López</last_name>
    <email>pepe@gmail.com</email>
    <uid/>
    <provider>facebook</provider>
    <nickname/>
    <votes_count>0</votes_count>
    <referred_count>0</referred_count>
    <referred_uids/>
    <referred_by/>
    <invitations_sent>0</invitations_sent>
    <invitations_sent_unique>0</invitations_sent_unique>
    <wall_posts_count>0</wall_posts_count>
    <country_code/>
    <remote_ip/>
    <answer>My answer</answer>
    <video_url_for_api>https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/video_mp4_2015-04-17-09.39.48.mp4</video_url_for_api>
    <video_embed_html>&lt;video id="my_video_214" class="video-js vjs-sublime-skin embed_video" controls preload="none" width='1024' height='768' data-setup="{}" data-poster='https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/screenshot_2015-04-17-09.39.48.jpg'&gt;&lt;source src="https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/video_mp4_2015-04-17-09.39.48.mp4" type='video/mp4'&gt;&lt;source src="https://s3.amazonaws.com/cool-tabs.dev/assets/participation_videos/b0bf7870e74711e4bdddabeefd435d2f/video_webm_2015-04-17-09.39.48.webm" type='video/webm'&gt;We are sorry, but your browser cannot play these videos. &lt;/video&gt;</video_embed_html>
    <user_url>https://www.facebook.com/</user_url>
    <created_at>2016-11-10 10:38:38 +0100</created_at>
    <public_url>http://p.dry.lt/zPiGIdpfr</public_url>
    <private_url>https://www.cool-tabs.com/user_admin/promos/1111/participations/214/redirect_to_preview</private_url>
    <campaign_medium/>
    <campaign_name/>
    <spent_time_complete_form/>
    <fraud_reason></fraud_reason>
  </participation>
</data>
<pagination max_id="214" since_id="216" newer_results="https://www.cool-tabs.com/promos/1111.xml?token=xxx&amp;per_page=3&amp;since_id=216" older_results="https://www.cool-tabs.com/promos/1111.xml?token=xxx&amp;per_page=3&amp;max_id=214"/>