Readers

API for managing app readers

List Readers

GET https://www.magloft.com/api/portal/v1/readers/:app_id

This endpoint returns a list of all readers that belong to the magazine

Path Parameters

Query Parameters

{
  "id": 1234,
  "email": "john.doe@magloft.com",
  "name": "John",
  "lastname": "Doe",
  "last_sign_in_at": "2018-01-24 10:55:35",
  "created_at": "2018-01-24 10:55:35",
  "devices": [
    "android",
    "apple"
  ],
  "confirmed": true,
  "authentication_token": "aabbccddeeff00112233445566778899",
  "custom_data": {
  },
  "password": "",
  "classification_ids": [
    1,
    2,
    3
  ]
}

Retrieve paginated list of readers

GET https://www.magloft.com/api/portal/v1/readers/:app_id/page/:page

This endpoint returns a page list of all readers that belong to the magazine

Path Parameters

Query Parameters

{
  "total": 1,
  "page": 1,
  "records": [
    {
      "id": 1234,
      "email": "john.doe@magloft.com",
      "name": "John",
      "lastname": "Doe",
      "last_sign_in_at": "2018-01-24 10:55:35",
      "created_at": "2018-01-24 10:55:35",
      "devices": [
        "android",
        "apple"
      ],
      "confirmed": true,
      "classification_ids": [
        1,
        2,
        3
      ]
    }
  ]
}

Get Reader

GET https://www.magloft.com/api/portal/v1/readers/:app_id/(:email)(:id)

This endpoint returns a specific reader by id

Path Parameters

{
  "id": 1234,
  "email": "john.doe@magloft.com",
  "name": "John",
  "lastname": "Doe",
  "last_sign_in_at": "2018-01-24 10:55:35",
  "created_at": "2018-01-24 10:55:35",
  "devices": [
    "android",
    "apple"
  ],
  "confirmed": true,
  "authentication_token": "aabbccddeeff00112233445566778899",
  "custom_data": {
  },
  "password": "",
  "classification_ids": [
    1,
    2,
    3
  ]
}

Create a Reader

POST https://www.magloft.com/api/portal/v1/readers/:app_id

This endpoint creates a new reader and returns the saved reader

Path Parameters

Request Body

{
  "id": 1234,
  "email": "john.doe@magloft.com",
  "name": "John",
  "lastname": "Doe",
  "last_sign_in_at": "2018-01-24 10:55:35",
  "created_at": "2018-01-24 10:55:35",
  "devices": [
    "android",
    "apple"
  ],
  "confirmed": true,
  "authentication_token": "aabbccddeeff00112233445566778899",
  "custom_data": {
  },
  "password": "",
  "classification_ids": [
    1,
    2,
    3
  ]
}

Update a Reader

PUT https://www.magloft.com/api/portal/v1/readers/:app_id/:id

This endpoint updates a specific reader by id and returns the updated reader

Path Parameters

Request Body

{
  "id": 1234,
  "email": "john.doe@magloft.com",
  "name": "John",
  "lastname": "Doe",
  "last_sign_in_at": "2018-01-24 10:55:35",
  "created_at": "2018-01-24 10:55:35",
  "devices": [
    "android",
    "apple"
  ],
  "confirmed": true,
  "authentication_token": "aabbccddeeff00112233445566778899",
  "custom_data": {
  },
  "password": "",
  "classification_ids": [
    1,
    2,
    3
  ]
}

Delete Reader

DELETE https://www.magloft.com/api/portal/v1/readers/:app_id/:id

This endpoint deletes a specific reader by id and returns an empty response with status 204

Path Parameters

null

Create Issue Purchases

POST https://www.magloft.com/api/portal/v1/readers/:app_id/:id/unlock

This endpoint creates one or many issue purchases by product_id and returns a list of issue purchases

Path Parameters

Request Body

{
}

Unlock Issue By Coupon

POST https://www.magloft.com/api/portal/v1/readers/:app_id/:id/unlock/coupon

This endpoint unlock one issue by coupon and returns a list of issue purchases

Path Parameters

Request Body

{
}

Export readers

GET https://www.magloft.com/api/portal/v1/readers/:app_id/export.csv

Path Parameters

null

Last updated