Training Academy (Neopets): Difference between revisions
From Computers Wiki
Jump to navigationJump to search
(Add some observed error scenarios) |
(Add another error text) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The '''Training Academy''' API (WIP) |
The '''Training Academy''' API (WIP) |
||
Anything marked as an error uses the [[Neopets error template]]. |
|||
== /pirates/process_academy.html == |
== /pirates/process_academy.html == |
||
It looks like requests can be done as either GET (with all the variables in the query string) or POST, but regardless of the method, the <code>Referer</code> header is checked. If it is not set correctly, you get a [[Neopets Referer error]]. |
|||
=== Complete - Normal === |
=== Complete - Normal === |
||
==== |
==== Request ==== |
||
<syntaxhighlight lang="html"> |
<syntaxhighlight lang="html"> |
||
type=complete&pet_name=Berrysap |
type=complete&pet_name=Berrysap |
||
Line 23: | Line 27: | ||
=== Complete - Bonus === |
=== Complete - Bonus === |
||
==== |
==== Request ==== |
||
<syntaxhighlight lang="html"> |
<syntaxhighlight lang="html"> |
||
type=complete&pet_name=Lilia_Roo |
type=complete&pet_name=Lilia_Roo |
||
Line 38: | Line 42: | ||
<center><IMG src="//pets.neopets.com/cpn/Lilia_Roo/1/2.png" width="150" height="150" border="0"><br><b>Woohoo!</b><p>Congratulations! <b>Lilia_Roo</b> now has increased Level!!!<p><b>*** SUPER BONUS - You went up 2 points!! ***</b><p><p><form action='academy.phtml' method='get'><input type='submit' value='Back to the Swashbuckling Academy'></form> |
<center><IMG src="//pets.neopets.com/cpn/Lilia_Roo/1/2.png" width="150" height="150" border="0"><br><b>Woohoo!</b><p>Congratulations! <b>Lilia_Roo</b> now has increased Level!!!<p><b>*** SUPER BONUS - You went up 2 points!! ***</b><p><p><form action='academy.phtml' method='get'><input type='submit' value='Back to the Swashbuckling Academy'></form> |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
=== Complete - Not on course === |
|||
⚫ | |||
Sorry, this Neopet does not seem to be on a course! |
|||
=== Pay === |
=== Pay === |
||
The page seems to just redirect to itself if you don't have the right item. |
|||
⚫ | |||
==== Request ==== |
|||
<syntaxhighlight lang="html"> |
<syntaxhighlight lang="html"> |
||
type=pay&pet_name=Berrysap |
type=pay&pet_name=Berrysap |
||
</syntaxhighlight> |
|||
=== Cancel === |
|||
==== Request ==== |
|||
<syntaxhighlight lang="html"> |
|||
type=cancel&pet_name=Lilia_Roo |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
=== Start === |
=== Start === |
||
==== |
==== Request ==== |
||
<syntaxhighlight lang="html"> |
<syntaxhighlight lang="html"> |
||
type=start&course_type=Strength&pet_name=Lilia_Roo |
type=start&course_type=Strength&pet_name=Lilia_Roo |
Latest revision as of 01:54, 31 July 2024
The Training Academy API (WIP)
Anything marked as an error uses the Neopets error template.
/pirates/process_academy.html
It looks like requests can be done as either GET (with all the variables in the query string) or POST, but regardless of the method, the Referer
header is checked. If it is not set correctly, you get a Neopets Referer error.
Complete - Normal
Request
type=complete&pet_name=Berrysap
Response
<style type=text/css>
A{COLOR:#000099;FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:9pt;TEXT-DECORATION:none}
TD,P,body{FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:9pt;}
A:hover{COLOR:#990000;}
.smallfont, .sf{FONT-SIZE:7.5pt;}
</style>
<center><IMG src="//pets.neopets.com/cpn/Berrysap/1/2.png" width="150" height="150" border="0"><br><b>Woohoo!</b><p>Congratulations! <b>Berrysap</b> now has increased Defence!!!<p><p><form action='academy.phtml' method='get'><input type='submit' value='Back to the Swashbuckling Academy'></form>
Complete - Bonus
Request
type=complete&pet_name=Lilia_Roo
Response
<style type=text/css>
A{COLOR:#000099;FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:9pt;TEXT-DECORATION:none}
TD,P,body{FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:9pt;}
A:hover{COLOR:#990000;}
.smallfont, .sf{FONT-SIZE:7.5pt;}
</style>
<center><IMG src="//pets.neopets.com/cpn/Lilia_Roo/1/2.png" width="150" height="150" border="0"><br><b>Woohoo!</b><p>Congratulations! <b>Lilia_Roo</b> now has increased Level!!!<p><b>*** SUPER BONUS - You went up 2 points!! ***</b><p><p><form action='academy.phtml' method='get'><input type='submit' value='Back to the Swashbuckling Academy'></form>
Complete - Not on course
Error text
Sorry, this Neopet does not seem to be on a course!
Pay
The page seems to just redirect to itself if you don't have the right item.
Request
type=pay&pet_name=Berrysap
Cancel
Request
type=cancel&pet_name=Lilia_Roo
Start
Request
type=start&course_type=Strength&pet_name=Lilia_Roo
course_type
can be any of the following:
- Strength
- Defence
- Agility
- Endurance
- Level
Start - Double enrollment
Error text
Berrysap is currently enrolled in an Academy course!
Start - Invalid neopet
Error text
You cannot do anything as that is not your Neopet
Start - Invalid course
Error text
This is not a recognised course!