Leva o rating do PadelRank em direto para a app, os ecrãs ou o site do teu clube.
Autentica cada pedido com a tua chave de API, através de um cabeçalho Authorization: Bearer ou de um parâmetro ?key=.
curl "function(){throw Error("Attempted to call RATING_API_BASE() from the server but RATING_API_BASE is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")}/v1/player?username=demoplayer" \
-H "Authorization: Bearer prk_your_key_here"https://us-central1-paddlerank-app.cloudfunctions.net/ratingApi/v1/player?username=<username>O rating, a fiabilidade, os jogos e a localização de um jogador.
/v1/rankings?country=<ISO2>&limit=<1-100>Melhores jogadores, global ou por país (ISO 3166 alfa-2).
{
"player": {
"username": "demoplayer",
"name": "Demo Player",
"rating": 18,
"reliability": 72,
"matches": 24,
"country": "ES",
"city": "Madrid"
}
}Cria uma chave para começar. A chave completa é mostrada uma só vez, guarda-a num local seguro.
A carregar…