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/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