blob: e846402b42294099a7dc0a6d57bbe19e3aeb048c (
plain)
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
73
74
75
76
77
|
# Equipos (Disponible pronto!)
Objetos equipo contienen información agregada durante la existencia de cada equipo.
Este endpoint recoge una colección de hasta 6 equipos.
<aside class="warning">
Importante - Recursos de equipo aún no están disponibles en el API..
</aside>
{% method %}
## Conseguir una colección de equipos
{% sample lang="shell" %}
```shell
curl "https://api.dc01.gamelockerapp.com/shards/na/teams?filter[teamNames]=team1" \
-H "Authorization: Bearer <api-key>" \
-H "X-TITLE-ID: semc-vainglory" \
-H "Accept: application/vnd.api+json"
```
{% endmethod %}
### Petición HTTP
`GET https://api.dc01.gamelockerapp.com/teams`
### Parámetros de pregunta
Parámetro | Defecto | Descripción
--------- | ------- | -----------
filter[teamNames] | none | Flirta por nombre del equipo. Uso: filter[teamNames]=team1
filter[teamIds] | none | Filtra por id del equipo. Uso: filter[teamIds]=12345
<aside class="success">
Recuerda — un equipo autentificado es un equipo feliz!
</aside>
{% method %}
## Conseguir un Solo Equipo
Este endpoint devuelve un equipo específico.
{% sample lang="shell" %}
```shell
curl "https://api.dc01.gamelockerapp.com/teams/<ID>" \
-H "Authorization: Bearer <api-key>" \
-H "X-TITLE-ID: semc-vainglory" \
-H "Accept: application/vnd.api+json"
```
{% sample lang="python" %}
```python
```
{% common %}
> El comando arriba devuelve JSON estructurado de esta manera:
```json
{
"id": 2,
"name": "Max",
"breed": "unknown",
"fluffiness": 5,
"cuteness": 10
}
```
{% endmethod %}
### Petición HTTP
`GET https://api.dc01.gamelockerapp.com/teams/<ID>`
### Parámetros URL
Parámetro | Descripción
--------- | -----------
ID | El ID del equipo a recoger
|