How can I get it to fetch members from a certain club to show on a website?
It's right here in the documentation.
https://www.npmjs.com/package/chess-web-api#get-a-club
How can I get it to fetch members from a certain club to show on a website?
It's right here in the documentation.
https://www.npmjs.com/package/chess-web-api#get-a-club
Are you asking how to write the code, or do you just need the API endpoint for fetching club members??
Are you asking how to write the code, or do you just need the API endpoint for fetching club members??
What would a code snippet look like for a react app
Are you asking how to write the code, or do you just need the API endpoint for fetching club members??
What would a code snippet look like for a react app
I think it might be a good idea to go study React a little bit and APIs a little bit. Not that it's that hard, but what you're asking for can be found in tons of different tutorials. Once you know how to use React and do any given API call, the rest is pretty easy.
This is the endpont: https://api.chess.com/pub/club/{url-ID}/members
And here's the documentation: https://www.chess.com/news/view/published-data-api#pubapi-endpoint-club-members
Are you asking how to write the code, or do you just need the API endpoint for fetching club members??
What would a code snippet look like for a react app
I think it might be a good idea to go study React a little bit and APIs a little bit. Not that it's that hard, but what you're asking for can be found in tons of different tutorials. Once you know how to use React and do any given API call, the rest is pretty easy.
Ok, I just needed the docs, which I have now. I think I can do it now.thanks
Can someone give me sample code? I am stuck.
It would help if you could give some idea of what language or environment you're working in & what exactly is the point at which you've become stuck?
The guys here work in a host of different languages, so a code solution for one person may not be of much use to another. For example, I work exclusively in Python but if you're not familiar with that language, any code I post may not help you very much.
How can I get it to fetch members from a certain club to show on a website?