Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript Is there anyway to make this work?

dre

New Coder
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/#/redeemCape/08f0ca5233d344669f039085e21abaf7

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
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom