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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
Query Parameters
Name | Type | Description |
---|---|---|
debug | Virtus::Attribute::Boolean |
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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
page | Integer | The page number to list |
Query Parameters
Name | Type | Description |
---|---|---|
per_page | Integer | Number of items to show per page |
order_by | Symbol | Field to sort results by |
order_dir | Symbol | Direction (asc, desc) to sort results by |
filter | JSON |
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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
String | Reader Email Address | |
id | Integer | Reader ID |
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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
Request Body
Name | Type | Description |
---|---|---|
String | Reader Email Address | |
password | String | Reader Password |
name | String | Reader First Name |
lastname | String | Reader Last Name |
custom_data | Hash | Custom key-value data stored for this reader |
confirmation | Virtus::Attribute::Boolean | Send Confirmation Email |
confirmed | Virtus::Attribute::Boolean | Whether this readers' Email was confirmed |
classification_ids | Array | Reader Classification IDs |
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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
id | Integer | Reader ID |
Request Body
Name | Type | Description |
---|---|---|
name | String | Reader First Name |
lastname | String | Reader Last Name |
String | Reader Email Address | |
custom_data | Hash | Custom key-value data stored for this reader |
password | String | Reader Password |
confirmed | Virtus::Attribute::Boolean | Whether this readers' Email was confirmed |
classification_ids | Array | Reader Classification IDs |
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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
id | Integer | Reader ID |
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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
id | Integer | Reader ID |
Request Body
Name | Type | Description |
---|---|---|
product_ids | Array | Array containing Issue Product IDs to unlock |
order_id | String | Subscription Order ID |
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
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
id | Integer | Reader ID |
Request Body
Name | Type | Description |
---|---|---|
issue_id | Integer | |
article_id | Integer | |
code | String |
Export readers
GET
https://www.magloft.com/api/portal/v1/readers/:app_id/export.csv
Path Parameters
Name | Type | Description |
---|---|---|
app_id | String | App ID (Publication) to scope this request for. |
Last updated