Loading...

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/report

Description

Gets a list of all available reports.

Path Parameters

accountId integer Account Id that list of reports belongs to required

Response Properties application/json

AccountId integer The account to which this report belongs.
CategoryId number The type of report this is.
ReportName string This is the name sent when asking to execute the report.
DisplayName string The display name of the report in the UI.
Columns array[object] List of columns that are defined on this report.
[
  {
    "AccountId": 22,
    "CategoryId": 1,
    "ReportName": "MessageLogReport",
    "DisplayName": "Message Log",
    "Columns": [
      {
        "ColumnName": "AccountId",
        "DataTypeId": 1,
        "IsNullable": true
      },
      {
        "ColumnName": "AccountName",
        "DataTypeId": 2,
        "IsNullable": true
      },
      {
        "ColumnName": "Id",
        "DataTypeId": 1,
        "IsNullable": false
      },
      {
        "ColumnName": "CampaignId",
        "DataTypeId": 1,
        "IsNullable": true
      },
      {
        "ColumnName": "Sent",
        "DataTypeId": 5,
        "IsNullable": false
      },
      {
        "ColumnName": "LogDate",
        "DataTypeId": 4,
        "IsNullable": false
      },
      {
        "ColumnName": "ChannelName",
        "DataTypeId": 2,
        "IsNullable": true
      },
      {
        "ColumnName": "Target",
        "DataTypeId": 2,
        "IsNullable": false
      },
      {
        "ColumnName": "ContactId",
        "DataTypeId": 1,
        "IsNullable": true
      },
      {
        "ColumnName": "Message",
        "DataTypeId": 2,
        "IsNullable": false
      }
    ]
  }
]

C#


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXX;

var context = new ReportRestContext();

var list = context.GetAllReports(accountId);

}

}