No description
| website | ||
| .gitignore | ||
| post.curlrc | ||
| post.ps1 | ||
| post.sh | ||
| README.md | ||
Setup
- Make the script executable:
chmod +x post.sh - The already created configuration file,
post.curlrc, is in the same folder aspost.sh:
score=0&time=00000&name=test&activityId=0&templateId=0
- This file stores all the POST data for
curl. - Since the file is named
post.curlrc(not.curlrc), you must tellcurlto use it with--config ./post.curlrc.
How to Use the Script
- Open the WordWall resource in your browser. Example URL:
https://wordwall.net/resource/104101895/test - Find the
activityIdin the URL. In the example above, it is104101895. - Find the
templateId:- Open your browser's Developer Tools (F12 or right-click -> Inspect).
- Go to the Network tab.
- Reload the page to capture all requests.
- In the filter box, type
templateId. - Look for a GET request URL containing
templateId=Example:https://wordwall.net/leaderboardajax/getoption?activityId=104101895&templateId=2&authorUserId=32017905 - Copy the number after
templateId=. In the example, it is2.
Update the POST Request
Edit post.curlrc to include the correct values:
score=0&time=0&name=test&activityId=104101895&templateId=2
Sending the Request
Run the script:
- Shell Example:
./post.sh score=100 time=00000 name=test activityId=104101895 templateId=2 - Powershell Example:
./post.ps1 score=100 time=00000 name=test activityId=104101895 templateId=2