Python Forum
Is there anyway to make this work?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there anyway to make this work?
#1
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
Reply
#2
Internet time machine? Supposed to be an archive
Reply
#3
(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?
Reply
#4
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".
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  hi need help to make this code work correctly atulkul1985 5 702 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 626 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,259 May-22-2023, 10:39 PM
Last Post: ICanIBB
  Make my py script work only on 1 compter tomtom 14 3,738 Feb-20-2022, 06:19 PM
Last Post: DPaul
  Cannot make 'pandas' module to work... ellie145 2 4,138 Jan-05-2021, 09:38 PM
Last Post: ellie145
  Cannot Make the python Code work ErnestTBass 4 2,610 Apr-23-2020, 02:42 PM
Last Post: snippsat
  if, or, in, else in 1 line - how to make it work? zarize 2 1,813 Sep-10-2019, 04:51 PM
Last Post: zarize
  To make an algorithm work faster pianistseb 3 2,757 Apr-01-2019, 08:42 AM
Last Post: Gribouillis
  Rewrite a function to make it work with 'bottle-pymysql' nikos 1 1,937 Feb-26-2019, 02:59 PM
Last Post: nikos
  Can i make this work in any way? Stefanovietch 4 3,123 Nov-17-2018, 10:46 PM
Last Post: Stefanovietch

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020