Commenti
discussione: The Site
Pays de la Loire, FranceStun5 years ago

Ok thank you, effectively there was some invisible symbols in my link now it's work !

Oreo321 piace questo
discussione: The Site
Pays de la Loire, FranceStun5 years ago

Thanks for your answers.

So I try with the "Location" response header but this doesn't give me a link with the ID but the same link (https:/​/​www.speedrun.​com/​api/​v1/​users/​Pseudo).

Request: https:/​/​www.speedrun.​com/​api/​v1/​users/​Stun

response header: { server: 'nginx/1.10.3', date: 'Wed, 11 Mar 2020 11:29:23 GMT', 'content-type': 'text/html', 'content-length': '187', connection: 'close', location: 'https://www.speedrun.com/api/v1/users/Stun' }

discussione: The Site
Pays de la Loire, FranceStun5 years ago

I want to use the speedrun.com api for a discord bot in JS but I can't get the players id by their nickname :

I use NodeJs and HTTPS for the request so when i make a request on https://speedrun.com/api/v1/users/Pseudo this doesn't return me a JSON file.

How can i get the ID by the pseudo to make my request ?

Sorry if there are mistakes.

Info su Stun
Iscritto
5 years ago
Online
16 days ago
Runs
1
Giochi corso
Portal
Portal
Ultima corsa 5 years ago
1
Run
Giochi seguiti
Refunct
Refunct
Ultima visita 5 years ago
14
visite
Portal
Portal
Ultima visita 2 years ago
39
visite