Python Forum

Full Version: Is there anyway to make this work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Got a question for you. Is it possible to run a line of code, which will have the same outcome, if the host has disabled/modified it?

So here's where I'm stuck:

I attended Minecon back in 2015 (cringe ik) and I'm trying to force-apply this link that was issued out after the event finished (it simply puts a cape on your character). Recently, Mojang changed the API to stop this from happening, practically blocking the input that I'm entering.

I'm using Postman, running a POST request, my content type is application/json and my authorisation is my bearer when I login to the website.

To put it simply, I have never used code before, I'm seeking help to see if it's possible to host my own endpoint which allows the same outcome.

CODE: "https://api.mojang.com/user/profile//capetokens/code/", method: "POST", headers: { "Content-Type": "application/json", "Authorization": "Bearer ", }

RESULT:
{ "error": "Not Found", "errorMessage": "The server has not found anything matching the request URI" }

THE LINK: https://minecraft.net/profile/#/redeemCa...85e21abaf7

If you manage to solve this, and or prove it can be done, I will PayPal you $50, or even more depending on outcome.

Thanks all
Internet time machine? Supposed to be an archive
(Nov-24-2020, 09:33 PM)jefsummers Wrote: [ -> ]Internet time machine? Supposed to be an archive

It's a specific link. When it was working you could click it and apply it there and then, however, now it has no endpoint. They completely removed where it was supposed to go.

Is there any possibility of clicking that link but sending it to a different endpoint, having the same outcome?
Yes. If you know where you want to send it
Edit your hosts or lmhosts file or the equivalent for your OS.

Quick story - when my kids were young I wanted to restrict them from going to Facebook but allow them to do their homework. I used the above to redirect from Facebook to a page that simply said "Do your homework".