GET /api/v1/analytics
Get all analytics

Returns all analytics for a user

Supported Formats

json

Success Response:

200 Good Request
                  
    {
      "from_date":"2012-07-23T19:32:18Z",
      "to_date":"2014-03-19T08:43:52Z",
      "passes_count":2382,
      "redeemed_count":2000,
      "installed_count":2000
    }
              

Errors

401 Unauthorized

Examples

curl -i https://api.passdock.com/api/v1/analytics?api_token=75778a65dfdae310a107d2ef0bbd3780&from_date=1343071938&to_date=1395218632

Params

Param name Description
api_token
required

Your Passdock API key


Value: Must be String
from_date
optional

Starting date/time (expressed as EPOCH time in UTC)


Value: Must be Integer
to_date
optional

Ending date/time (expressed as EPOCH time in UTC)


Value: Must be Integer

GET /api/v1/analytics/templates/:id
Get all analytics for template

Returns all analytics for a Template

Supported Formats

json

Success Response:

200 Good Request
                  
    {
      "from_date":"2012-07-23T19:32:18Z",
      "to_date":"2014-03-19T08:43:52Z",
      "passes_count":2382,
      "redeemed_count":2000,
      "installed_count":2000,
      "removed" : 1344,
      "fetched" : 2333,
      "added" : 1890,
      "downloaded": 1799
    }
              

Errors

401 Unauthorized

Examples

curl -i https://api.passdock.com/api/v1/analytics/templates/1?api_token=75778a65dfdae310a107d2ef0bbd3780&from_date=1343071938&to_date=1395218632

Params

Param name Description
id
required

Templates ID


Value: Must be String
api_token
required

Your Passdock API key


Value: Must be String
from_date
optional

Starting date/time (expressed as EPOCH time in UTC)


Value: Must be Integer
to_date
optional

Ending date/time (expressed as EPOCH time in UTC)


Value: Must be Integer

GET /api/v1/analytics/created
Get analytics for created passes

Returns analytics for a user about created passes

Supported Formats

json

Success Response:

200 Good Request
                  
    {
      "from_date":"2012-07-23T19:32:18Z",
      "to_date":"2014-03-19T08:43:52Z",
      "passes_count":2382
    }
              

Errors

401 Unauthorized

Examples

curl -i https://api.passdock.com/api/v1/analytics/created?api_token=75778a65dfdae310a107d2ef0bbd3780&from_date=1343071938&to_date=1395218632

Params

Param name Description
api_token
required

Your Passdock API key


Value: Must be String
from_date
optional

Starting date/time (expressed as EPOCH time in UTC)


Value: Must be Integer
to_date
optional

Ending date/time (expressed as EPOCH time in UTC)


Value: Must be Integer

GET /api/v1/analytics/redeemed
Get analytics for redeemed passes

Returns analytics for a user about redeemed passes

Supported Formats

json

Success Response:

200 Good Request
                  
    {
      "from_date":"2012-07-23T19:32:18Z",
      "to_date":"2014-03-19T08:43:52Z",
      "redeemed_count":2382
    }
              

Errors

401 Unauthorized

Examples

curl -i https://api.passdock.com/api/v1/analytics/redeemed?api_token=75778a65dfdae310a107d2ef0bbd3780&from_date=1343071938&to_date=1395218632

Params

Param name Description
api_token
required

Your Passdock API key


Value: Must be String
from_date
optional

Starting date/time (expressed as EPOCH time in UTC)


Value: Must be Integer
to_date
optional

Ending date/time (expressed as EPOCH time in UTC)


Value: Must be Integer

GET /api/v1/analytics/installed
Get analytics for installed passes

Returns analytics for a user about installed passes

Supported Formats

json

Success Response:

200 Good Request
                  
    {
      "from_date":"2012-07-23T19:32:18Z",
      "to_date":"2014-03-19T08:43:52Z",
      "installed_count":2382
    }
              

Errors

401 Unauthorized

Examples

curl -i https://api.passdock.com/api/v1/analytics/installed?api_token=75778a65dfdae310a107d2ef0bbd3780&from_date=1343071938&to_date=1395218632

Params

Param name Description
api_token
required

Your Passdock API key


Value: Must be String
from_date
optional

Starting date/time (expressed as EPOCH time in UTC)


Value: Must be Integer
to_date
optional

Ending date/time (expressed as EPOCH time in UTC)


Value: Must be Integer