# Obtener a todos los suscriptores
# GET /subscribers/
no parameters
curl -X GET "https://suscripcion.expreso.ec/api/v1/subscribers" -H "accept: application/json" -H "Authorization: Bearer password" -H "X-CSRF-TOKEN: "
Request URL
https://suscripcion.expreso.ec/api/v1/subscribers
1
2
3
4
5
6
2
3
4
5
6
# Response body
{
"data": [
{
"id": 1,
"user_id": 2,
"first_name": "Emiliano",
"last_name": "Wyleex",
"email": "test@test.com",
"phone": "123123123",
"identification_type": "Cedula",
"identification_number": "24724290",
"created_at": "2020-04-30T09:23:52-03:00",
"updated_at": "2020-04-30T09:23:52-03:00",
"addresses": [
{
"country": "EC",
"state": "Napo",
"city": "Napo",
"street": "La Calle",
"number": "123",
"floor": null,
"apt": null,
"postal_code": "12345",
"details": null,
"type": "shipping"
}
]
},
{
"id": 2,
"user_id": 1,
"first_name": "Emiliano",
"last_name": "Alcaraz",
"email": "test@gmail.com",
"phone": "1231231313",
"identification_type": "RUC",
"identification_number": "12312333",
"created_at": "2020-04-30T09:41:58-03:00",
"updated_at": "2020-04-30T09:41:58-03:00",
"addresses": [
{
"country": "EC",
"state": "Azuay",
"city": "Napo",
"street": "La calle",
"number": "123",
"floor": null,
"apt": null,
"postal_code": "123",
"details": null,
"type": "shipping"
}
]
}],
"links": {
"first": "https://suscripcion.expreso.ec/api/v1/subscribers?page=1",
"last": "https://suscripcion.expreso.ec/api/v1/subscribers?page=2",
"prev": null,
"next": "https://suscripcion.expreso.ec/api/v1/subscribers?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 2,
"path": "https://suscripcion.expreso.ec/api/v1/subscribers",
"per_page": 15,
"to": 15,
"total": 21
}
}
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Response headers
cache-control: no-cache, private
connection: keep-alive
content-type: application/json
date: Thu, 07 May 2020 18:32:50 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 un suscriptor por ID
# GET /subscribers/{id}
no parameters
curl -X GET "https://suscripcion.expreso.ec/api/v1/subscribers/1" -H "accept: application/json" -H "Authorization: Bearer password" -H "X-CSRF-TOKEN: "Request URL
https://suscripcion.expreso.ec/api/v1/subscribers/{id}
1
2
3
4
5
2
3
4
5
# Response body
{
"data": {
"id": 1,
"user_id": 2,
"first_name": "Emiliano",
"last_name": "Wyleex",
"email": "Emiliano@wyleex.com",
"phone": "123123123",
"identification_type": "Cedula",
"identification_number": "24724290",
"created_at": "2020-04-30T09:23:52-03:00",
"updated_at": "2020-04-30T09:23:52-03:00",
"addresses": [
{
"country": "EC",
"state": "test",
"city": "test",
"street": "La Calle",
"number": "1234",
"floor": null,
"apt": null,
"postal_code": "12345",
"details": null,
"type": "shipping"
}
]
}
}
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
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
# Response headers
cache-control: no-cache, private
connection: keep-alive
content-type: application/json
date: Thu, 07 May 2020 18:35:22 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: 58
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10