Difference between revisions of "Talk:Mojang API"

From wiki.vg
Jump to navigation Jump to search
Line 4: Line 4:
 
--[[User:Tron|Tron]] ([[User talk:Tron|talk]]) 17:39, 21 March 2016 (UTC)
 
--[[User:Tron|Tron]] ([[User talk:Tron|talk]]) 17:39, 21 March 2016 (UTC)
 
:How exactly should the payload look like? Whatever I send (even garbage data) I get back a 403 HTTP response with <syntaxhighlight lang="json">{"error":"Forbidden","errorMessage":"Current IP not secured"}</syntaxhighlight> --[[User:Grego87|Grego87]] ([[User talk:Grego87|talk]]) 00:00, 3 May 2016 (UTC)
 
:How exactly should the payload look like? Whatever I send (even garbage data) I get back a 403 HTTP response with <syntaxhighlight lang="json">{"error":"Forbidden","errorMessage":"Current IP not secured"}</syntaxhighlight> --[[User:Grego87|Grego87]] ([[User talk:Grego87|talk]]) 00:00, 3 May 2016 (UTC)
 +
::I've tried editing the article to address these two issues. To do so I looked at [https://minecraft.net/static/CACHE/js/de279fdd7b68.js Mojang's implementation] ([https://web.archive.org/web/20160518164414/https://minecraft.net/static/CACHE/js/de279fdd7b68.js 05/18/2016 archive], depack [http://jsbeautifier.org/ here]) and various error messages their servers returned my cURL attempts. I've been trying to find an API for 'deleting/resetting' skins, but I cannot understand this mechanism (it would help if I knew javascript). For a good starting point search up "onResetSkinClick". --[[User:Max Shen|Max Shen]] ([[User talk:Max Shen|talk]]) 07:43, 20 May 2016 (UTC)

Revision as of 07:43, 20 May 2016

Skin Change API call

I've added the API call for skin changes but it'll need some editing to fit in with the other calls on the page. --Tron (talk) 17:39, 21 March 2016 (UTC)

How exactly should the payload look like? Whatever I send (even garbage data) I get back a 403 HTTP response with
{"error":"Forbidden","errorMessage":"Current IP not secured"}
--Grego87 (talk) 00:00, 3 May 2016 (UTC)
I've tried editing the article to address these two issues. To do so I looked at Mojang's implementation (05/18/2016 archive, depack here) and various error messages their servers returned my cURL attempts. I've been trying to find an API for 'deleting/resetting' skins, but I cannot understand this mechanism (it would help if I knew javascript). For a good starting point search up "onResetSkinClick". --Max Shen (talk) 07:43, 20 May 2016 (UTC)