summaryrefslogtreecommitdiff
path: root/es/authorization.md
diff options
context:
space:
mode:
authorBrian Corrigan <bcorrigan78@gmail.com>2017-10-04 08:48:13 -0400
committerBrian Corrigan <bcorrigan78@gmail.com>2017-10-04 08:48:13 -0400
commit1542bd5e0533c535a5b4410ff83f1db8956a5acd (patch)
tree0921b175dc5aef422e667125cefe5cf748c788e1 /es/authorization.md
downloadvainglory-docs-1542bd5e0533c535a5b4410ff83f1db8956a5acd.tar.gz
vainglory-docs-1542bd5e0533c535a5b4410ff83f1db8956a5acd.zip
Initial commit
Diffstat (limited to 'es/authorization.md')
-rw-r--r--es/authorization.md61
1 files changed, 61 insertions, 0 deletions
diff --git a/es/authorization.md b/es/authorization.md
new file mode 100644
index 0000000..daa26a9
--- /dev/null
+++ b/es/authorization.md
@@ -0,0 +1,61 @@
+{% method %}
+# Enlaces (Disponibles pronto!)
+
+## Consigue un enlace
+
+Este endpoint comprueba que un objeto link existe para un código dado.
+
+{% sample lang="shell" %}
+```shell
+curl "https://api.dc01.gamelockerapp.com/shards/na/link/{id}" \
+ -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/link`
+
+### Parámetros de pregunta
+
+Parámetro | Defecto | Descripción
+--------- | ------- | -----------
+
+{% method %}
+# Pública un Enlace
+
+Este punto final crea un objeto de PlayerLink si el código de verificación coincide con el proporcionado por el juego
+
+{% sample lang="shell" %}
+```shell
+curl -XPOST "https://api.dc01.gamelockerapp.com/shards/na/link/{player_id}" \
+ -H "Authorization: Bearer <api-key>" \
+ -H "Accept: application/vnd.api+json"
+```
+{% endmethod %}
+
+### HTTP Request
+
+`POST https://api.dc01.gamelockerapp.com/link/{player_id}`
+
+### Query Parameters
+
+Parameter | Default | Description
+--------- | ------- | -----------
+code | | The verification code
+
+## PlayerLink
+
+```json
+{
+ "attributes": {
+ "playerId": "fb374a7b-78be-4fcc-83ed-6a532a8a6f55",
+ "shardId": "na",
+ "titleId": "semc-vainglory"
+ },
+ "id": "2454e5ac-0a69-4468-ad12-8616f066e817",
+ "type": "playerLink"
+}
+```