You can use this microservice to count anything (website visits, package usage, cookies eaten, ...)
The main version is hosted at https://count1up.herokuapp.com
Usage
Create a counter
Make a GET request on the route /new/counterName to create a new counter, you will be returned the secret for that counter.
Optional parameters:
secret: to set a custom secretprotected: if enabled the route/up/counterNamewill be protected, so you will have to put the secret in the query to up the counterhidden: if eneabled the route/total/counterNamewill be protected
Up a counter
Make a GET request on the route /up/counterName to 1Up the counter, if the counter is protected you need to pass the secret in the query like this /up/counterName?secret=yoursecret
Read a counter
Make a GET request on the route /total/counterName to read the counter, if the counter is hidden you will have to pass the secret like this /total/counterName?secret=yoursecret
Delete a counter
Make a GET request on the route /delete/counterName to remove the counter, this route is always protected, so you have to pass the secret too like this /remove/counterName?secret=yoursecret
