huyurt / coc-api-consumer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clash of Clans Api Consumer

Netlify Status

npm run serve
curl http://localhost:9000/api/clans
curl http://localhost:9000/api/my-clan
curl http://localhost:9000/api/my-clan/save-members
curl http://localhost:9000/api/my-clan/save-current-war
curl http://localhost:9000/api/my-clan/save-league-wars

index.html simply loads html from the Express.js app using <object>, and the app is hosted at /.netlify/functions/server. Examples of how to access the Express.js endpoints:

curl https://netlify-express.netlify.com/.netlify/functions/server
curl https://netlify-express.netlify.com/.netlify/functions/server/another
curl --header "Content-Type: application/json" --request POST --data '{"json":"POST"}' https://netlify-express.netlify.com/.netlify/functions/server

Clash of Clans Api Reference

Endpoint Description
/clans Search clans
/clans/{clanTag} Get clan information
/clans/{clanTag}/warlog Retrieve clan's clan war log
/clans/{clanTag}/currentwar Retrieve information about clan's current clan war
/clans/{clanTag}/currentwar/leaguegroup Retrieve information about clan's current clan war league group
/clanwarleagues/wars/{warTag} Retrieve information about individual clan war league war
/clans/{clanTag}/members List clan members.
/clans/{clanTag}/capitalraidseasons Retrieve clan's capital raid seasons
/players/{playerTag} Get player information
/leagues List leagues
/warleagues List war leagues
/capitalleagues List capital leagues
/locations List locations

About

License:Apache License 2.0


Languages

Language:TypeScript 94.5%Language:JavaScript 3.9%Language:HTML 0.9%Language:Shell 0.7%