https://github.com/mohit-s96/clashroyaleapiexample
clas royale api usage example
https://github.com/mohit-s96/clashroyaleapiexample
api-rest clash-royale css html jwt-authentication jwt-token responsive-web-design vanilla-javascript wip
Last synced: about 2 months ago
JSON representation
clas royale api usage example
- Host: GitHub
- URL: https://github.com/mohit-s96/clashroyaleapiexample
- Owner: mohit-s96
- Created: 2020-07-04T17:02:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T21:09:06.000Z (almost 5 years ago)
- Last Synced: 2025-02-08T21:45:49.899Z (4 months ago)
- Topics: api-rest, clash-royale, css, html, jwt-authentication, jwt-token, responsive-web-design, vanilla-javascript, wip
- Language: CSS
- Homepage:
- Size: 640 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ClashRoyaleAPIExample
Practice project to create a news portal for the popular mobile game 'Clash Royale'..includes a little profile viewer using the officialClash royale API...... WIP*GO TO THE VIEW YOUR PROFILE LINK TO CHECK A FEW STATS OF ANYONES PROFILE (Provided you have their tag) AND TO SEE WHAT I THINK ABOUT THEM ~_^*
Update:
Implemented Clash Royale API with Vanilla JSHow to Use :
1- Get your own jwt token from the official developer website of clash royale https://developer.clashroyale.com/#/
2- Replace the dummy key value of 'api_key' in app.js with your new key from the official website
3- Recent chrome Updates have made it impossible to hit API auth requests with browser because of the new CORS policy
4- A workaround would be to use an all security stripped instance of chrome purely for dev/testing purpose
5- You can create such an instance of chrome with a few steps which are detailed in the video belowhttps://www.youtube.com/watch?v=3yACsnV30N8
REMEMBER TO USE THIS CHROME INSTANCE ONLY FOR DEV/TESTING PURPOSE AND NOT FOR CASUAL BROWSING
6- Once you setup the no-security chrome, you can open your localhost in there and fire the API without the annoying CORS error