A global presence

35 points

Connect to the problem endpoint, write down your presence_token.

You now have 30 seconds to perform at least 7 requests to the URL https://hackattic.com/_/presence/$presence_token.

Here's the catch: every request has to come from a different country.

For every request, the response will return a list of countries that have checked in so far, in the form of a simple string, like so: PL,NL,DE,CA,RU. After you've accumulated at least 7, send an empty JSON to the solution endpoint to mark the challenge as solved.

Go!

Getting the problem set

GET /challenges/a_global_presence/problem?access_token=...

JSON structure:

  • presence_token: your token, use with https://hackattic.com/_/presence/$presence_token

Submitting a solution

POST /challenges/a_global_presence/solve?access_token=...

Send an empty JSON ({}) when you're done going around the world.


By the way, I'd love to hear from you. Whatever you got, drop me an email. My h^ profile is here.
Starting not that long ago, you can also support this website by buying me a coffee. Thanks!
RSS: full changelog, challenges – stay up to date, grab a world first, maybe?
Check out my little newsletter, Becoming a Better Developer, it's pretty OK.