Exportar análises de resumo de dados do Canva
get
/canva/data_summary
O uso desse ponto de extremidade permite exportar rollups de dados de séries temporais para um Canvas, fornecendo um resumo conciso dos resultados do Canvas.
Pré-requisitos
Para usar esse endpoint, você precisará de uma chave de API com a permissão canvas.data_summary.
Limite de taxa
Aplicamos o limite de frequência padrão da Braze de 250.000 solicitações por hora a esse endpoint, conforme documentado em Limites de frequência da API.
Parâmetros de solicitação
| Parâmetro | Obrigatória | Tipo de dados | Descrição | 
|---|---|---|---|
| canvas_id | Obrigatória | String | Veja identificador da API canva. | 
| ending_at | Obrigatória | Datetime (ISO-8601 string) | Data em que a exportação de dados deve terminar. Padrões para o momento da solicitação. | 
| starting_at | Opcional* | Datetime (ISO-8601 string) | Data em que a exportação de dados deve começar. * Ou lengthoustarting_até necessário. | 
| length | Opcional* | String | Número máximo de dias antes de ending_atpara incluir na série retornada. Deve estar entre 1 e 14 (inclusive).* Ou lengthoustarting_até necessário. | 
| include_variant_breakdown | Opcional | Booleano | Incluir ou não estatísticas variantes (padrão é false). | 
| include_step_breakdown | Opcional | Booleano | Se deve ou não incluir estatísticas de etapa (padrão é false). | 
| include_deleted_step_data | Opcional | Booleano | Se deve ou não incluir estatísticas de etapa para etapas excluídas (padrão é false). | 
Exemplo de solicitação
1
2
curl --location -g --request GET 'https://rest.iad-01.braze.com/canvas/data_summary?canvas_id={{canvas_id}}&ending_at=2018-05-30T23:59:59-05:00&starting_at=2018-05-28T23:59:59-05:00&length=5&include_variant_breakdown=true&include_step_breakdown=true&include_deleted_step_data=true' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'
Resposta
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
  "data": {
    "name": (string) the Canvas name,
    "total_stats": {
      "revenue": (float) the number of dollars of revenue (USD),
      "conversions": (int) the number of conversions,
      "conversions_by_entry_time": (int) the number of conversions for the conversion event by entry time,
      "entries": (int) the number of entries
    },
    "variant_stats": (optional) {
      "00000000-0000-0000-0000-0000000000000": (string) the API identifier for the variant {
        "name": (string) the name of variant,
        "revenue": (float) the number of dollars of revenue (USD),
        "conversions": (int) the number of conversions,
        "entries": (int) the number of entries
      },
      ... (more variants)
    },
    "step_stats": (optional) {
      "00000000-0000-0000-0000-0000000000000": (string) the API identifier for the step {
        "name": (string) the name of step,
        "revenue": (float) the number of dollars of revenue (USD),
        "conversions": (int) the number of conversions,
        "conversions_by_entry_time": (int) the number of conversions for the conversion event by entry time,
        "messages": {
          "android_push": (name of channel) [
            {
              "sent": (int) the number of sends,
              "opens": (int) the number of opens,
              "influenced_opens": (int) the number of influenced opens,
              "bounces": (int) the number of bounces
              ... (more stats for channel)
            }
          ],
          ... (more channels)
        }
      },
      ... (more steps)
    }
  },
  "message": (required, string) the status of the export, returns 'success' when completed without errors
}
 tip: 
Para obter ajuda com exportações de CSV e API, acesse Resolução de problemas de exportação.
New Stuff!
 
  Editar esta página no GitHub
   Editar esta página no GitHub