# Obtener los diferentes paquetes disponibles
# GET /resources
no parameters
curl -X GET "https://suscripcion.expreso.ec/api/v1/resources" -H "accept: application/json" -H "Authorization: Bearer password" -H "X-CSRF-TOKEN: "
Request URL
https://suscripcion.expreso.ec/api/v1/resources
1
2
3
4
5
6
7
2
3
4
5
6
7
# Response body
{
"data": [
{
"id": 1,
"code": "SDPEXPRESO",
"name": "Suscripción Digital Premium",
"price": 4.99,
"promotional_price": 4.99,
"promotional_months": 0,
"active_from": "2020-03-20T00:00:00-03:00",
"active_to": "2100-12-31T00:00:00-03:00",
"has_benefit_card": true,
"family_codes": 0,
"visible": true,
"block_plan": false,
"color": "#8e44ad",
"custom_description": "(*) Contrato mínimo de un año. Pago mensual recurrente. Renovable automáticamente al vencimiento."
}
],
"meta": {
"test": 1,
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://suscripcion.expreso.ec/api/v1/resources",
"per_page": 15,
"to": 1,
"total": 1
},
"links": {
"first": "https://suscripcion.expreso.ec/api/v1/resources?page=1",
"last": "https://suscripcion.expreso.ec/api/v1/resources?page=1",
"prev": null,
"next": null
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Response headers
cache-control: no-cache, private
connection: keep-alive
content-type: application/json
date: Thu, 07 May 2020 18:27:35 GMT
server: nginx
strict-transport-security: max-age=31536000; includeSubDomains
transfer-encoding: chunked
x-powered-by: PHP/7.3.13
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# Obtener los diferentes paquetes por ID
# Paquetes GET /resources/{id}
no parameters
curl -X GET "https://suscripcion.expreso.ec/api/v1/resources/1" -H "accept: application/json" -H "Authorization: Bearer password" -H "X-CSRF-TOKEN: "
Request URL
https://suscripcion.expreso.ec/api/v1/resources/{id}
1
2
3
4
5
6
2
3
4
5
6
# Response body
{
"data": {
"id": 1,
"code": "SDPEXPRESO",
"name": "Suscripción Digital Premium",
"price": 4.99,
"promotional_price": 4.99,
"promotional_months": 0,
"active_from": "2020-03-20T00:00:00-03:00",
"active_to": "2100-12-31T00:00:00-03:00",
"has_benefit_card": true,
"family_codes": 0,
"visible": true,
"block_plan": false,
"color": "#8e44ad",
"custom_description": "(*) Contrato mínimo de un año. Pago mensual recurrente. Renovable automáticamente al vencimiento."
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Response headers
cache-control: no-cache, private
connection: keep-alive
content-type: application/json
date: Thu, 07 May 2020 18:31:27 GMT
server: nginx
strict-transport-security: max-age=31536000; includeSubDomains
transfer-encoding: chunked
x-powered-by: PHP/7.3.13
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10