PDA

View Full Version : Neopets Mobile Internal Functions



DarkByte
03-02-2014, 06:50 PM
These can be handy when making bots:

[Only registered and activated users can see links]


Login Procedure
MobileService.auth(username , password , bday)

Bday in the above is optional (only if needed)

Return Data e.g:



(Object)#0
banReason = (null)
dailies = (Object)#1
auth = true
dailies = (Object)#2
anchormanagement = (Object)#3
accessible = true
canPlay = true
cost = 0
image = "[Only registered and activated users can see links]"
name = "<tt182938>Anchor Management</tt182938>"
nextPlay = (null)
fruitmachine = (Object)#4
accessible = true
canPlay = true
cost = 0
image = "[Only registered and activated users can see links]"
name = "Fruit Machine"
nextPlay = (null)
mobilescratchcard = (Object)#5
accessible = true
canPlay = true
cost = 0
image = ""
name = "Scratch Card"
nextPlay = 0
wheelofexcitement = (Object)#6
accessible = true
canPlay = true
cost = 500
image = "[Only registered and activated users can see links]"
name = "Wheel of Excitement"
nextPlay = (null)
neopoints = "101886"
errors = (null)
games = (Object)#7
auth = true
games = (Object)#8
1134 = (Object)#9
highScore = ""
icon = "[Only registered and activated users can see links]"
id = 1134
name = "Spinacles"
nameShort = "Spinacles"
ratio = 0.18
sendMax = 3
sentToday = 0
306 = (Object)#10
highScore = ""
icon = "[Only registered and activated users can see links]"
id = 306
name = "Sutek's Tomb"
nameShort = "Sutek's Tomb"
ratio = 0.15
sendMax = 3
sentToday = 0
381 = (Object)#11
highScore = ""
icon = "[Only registered and activated users can see links]"
id = 381
name = "Kass Basher"
nameShort = "Kass Basher"
ratio = 1.17
sendMax = 3
sentToday = 0
500 = (Object)#12
highScore = "600"
icon = "[Only registered and activated users can see links]"
id = 500
name = "Meerca Chase II"
nameShort = "Meerca Chase II"
ratio = 1.79
sendMax = 3
sentToday = 0
locations = (Object)#13
1 = (Object)#14
exists = true
id = 1
maximum = (null)
size = 1
14 = (Object)#15
exists = (null)
id = 14
maximum = 30
size = 4
2 = (Object)#16
exists = true
id = 2
maximum = 650
size = 6
6 = (Object)#17
exists = false
id = 6
maximum = (null)
size = (null)
7 = (Object)#18
exists = true
id = 7
maximum = (null)
size = 424
notifications = 0
pets = (Array)#19
[0] (Object)#20
color = 8
gender = 2
happiness = "miserable"
hash = "kc96rglw"
headUrl = "[Only registered and activated users can see links]"
health = 1
hunger = "dying"
hungerState = 1
largeUrl = "[Only registered and activated users can see links]"
maxHealth = 11
mobileFed = false
mood = 2
name = "_nanook_51"
owner = "manymoocow__34"
species = 52
sso = "05889ea8005180eed6f6418b76b6f769AAABRIW7oBg"
success = true
time = "06:17 AM"
token = "730a4baffdf38ab663eadb98052b4d288e67a5df"
user = (Object)#21
active_pet = "_nanook_51"
age = 26
auth = true
name = "jessica koehn"
neopoints = "101,886"
username = "manymoocow__34"



As we can see above , we are given a token here:
token = "730a4baffdf38ab663eadb98052b4d288e67a5df"

This token is now used to i.d the user. We must send the token in later request.

Exploit alert : This function did not seem to have a limit on invalid bday attempts when i tried (only if ur password is correct , or u will get locked out)


MobileService.anchorManagement(username,token)
Plays anchor Management

Return e.g:

(Object)#0
bonusMessage = ""
id = 57227
message = ""
name = "Forgotten Shore Map Piece"
neohome = false
type = 1
url = "[Only registered and activated users can see links]"
wearable = false



MobileService.validate(username,token)
Get info on the user


Return:

(Object)#0
banReason = (null)
dailies = (Object)#1
auth = true
dailies = (Object)#2
anchormanagement = (Object)#3
accessible = true
canPlay = false
cost = 0
image = "[Only registered and activated users can see links]"
name = "<tt182938>Anchor Management</tt182938>"
nextPlay = 63235
fruitmachine = (Object)#4
accessible = true
canPlay = true
cost = 0
image = "[Only registered and activated users can see links]"
name = "Fruit Machine"
nextPlay = (null)
mobilescratchcard = (Object)#5
accessible = true
canPlay = true
cost = 0
image = ""
name = "Scratch Card"
nextPlay = 0
wheelofexcitement = (Object)#6
accessible = true
canPlay = true
cost = 500
image = "[Only registered and activated users can see links]"
name = "Wheel of Excitement"
nextPlay = (null)
neopoints = "101886"
errors = (null)
games = (Object)#7
auth = true
games = (Object)#8
1134 = (Object)#9
highScore = ""
icon = "[Only registered and activated users can see links]"
id = 1134
name = "Spinacles"
nameShort = "Spinacles"
ratio = 0.18
sendMax = 3
sentToday = 0
306 = (Object)#10
highScore = ""
icon = "[Only registered and activated users can see links]"
id = 306
name = "Sutek's Tomb"
nameShort = "Sutek's Tomb"
ratio = 0.15
sendMax = 3
sentToday = 0
381 = (Object)#11
highScore = ""
icon = "[Only registered and activated users can see links]"
id = 381
name = "Kass Basher"
nameShort = "Kass Basher"
ratio = 1.17
sendMax = 3
sentToday = 0
500 = (Object)#12
highScore = "600"
icon = "[Only registered and activated users can see links]"
id = 500
name = "Meerca Chase II"
nameShort = "Meerca Chase II"
ratio = 1.79
sendMax = 3
sentToday = 0
locations = (Object)#13
1 = (Object)#14
exists = true
id = 1
maximum = (null)
size = 2
14 = (Object)#15
exists = (null)
id = 14
maximum = 30
size = 4
2 = (Object)#16
exists = true
id = 2
maximum = 650
size = 6
6 = (Object)#17
exists = false
id = 6
maximum = (null)
size = (null)
7 = (Object)#18
exists = true
id = 7
maximum = (null)
size = 424
notifications = 0
pets = (Array)#19
[0] (Object)#20
color = 8
gender = 2
happiness = "miserable"
hash = "kc96rglw"
headUrl = "[Only registered and activated users can see links]"
health = 1
hunger = "dying"
hungerState = 1
largeUrl = "[Only registered and activated users can see links]"
maxHealth = 11
mobileFed = false
mood = 2
name = "_nanook_51"
owner = "manymoocow__34"
species = 52
sso = (null)
success = true
time = "06:26 AM"
token = 730
user = (Object)#21
active_pet = "_nanook_51"
age = 26
auth = true
name = "jessica koehn"
neopoints = "101,886"
username = "manymoocow__34"


MobileService.startMonotony(username,token)
Starts wheel of monotony , we call spinwheel when its complete to collect our reward

Return Data:
7200 (I think this is the time until complition)

MobileService.spinWheel(wheelid,username,token)


Return data: (from wheelid 1)
(Object)#0
altimage = "[Only registered and activated users can see links]"
message = ""
prize = (Object)#1
bonusMessage = ""
id = "question"
message = ""
name = "question"
neohome = false
type = 4
url = ""
wearable = false
prizedescription = "<tt177729>Type "recon" while playing Biscuit Brigade to reveal the path of the attackers.</tt177729>"
reaction = 3
slot = 8
spinagain = false



MobileService.resetAnchorManagement(username,token )
Developer only function to reset this daily

MobileService.readEvents(id,username,token)
Read a given event message (e.g X user bid on ur trade post item)

MobileService.logout(username,token)
Destroys the current user token


MobileService.getUser(username,token)
Gets basic user info

Return data:

(Object)#0
active_pet = "_nanook_51"
age = 26
auth = true
name = "jessica koehn"
neopoints = 100736
username = "manymoocow__34"






MobileService.getPets(username,token)
Get all pets the user owns

Return data:

(Array)#0
[0] (Object)#1
color = 8
gender = 2
happiness = "miserable"
hash = "kc96rglw"
headUrl = "[Only registered and activated users can see links]"
health = 1
hunger = "dying"
hungerState = 1
largeUrl = "[Only registered and activated users can see links]"
maxHealth = 11
mobileFed = false
mood = 2
name = "_nanook_51"
owner = "manymoocow__34"
species = 52


MobileService.getGames(username,token)
Gets info on games we can play via mobile:

Return data:

(Object)#0
auth = false
games = (Object)#1
1134 = (Object)#2
highScore = (null)
icon = "[Only registered and activated users can see links]"
id = 1134
name = "Spinacles"
nameShort = "Spinacles"
ratio = 0.18
sendMax = 3
sentToday = (null)
306 = (Object)#3
highScore = (null)
icon = "[Only registered and activated users can see links]"
id = 306
name = "Sutek's Tomb"
nameShort = "Sutek's Tomb"
ratio = 0.15
sendMax = 3
sentToday = (null)
381 = (Object)#4
highScore = (null)
icon = "[Only registered and activated users can see links]"
id = 381
name = "Kass Basher"
nameShort = "Kass Basher"
ratio = 1.17
sendMax = 3
sentToday = (null)
500 = (Object)#5
highScore = (null)
icon = "[Only registered and activated users can see links]"
id = 500
name = "Meerca Chase II"
nameShort = "Meerca Chase II"
ratio = 1.79
sendMax = 3
sentToday = (null)


MobileService.getEvents(username,token,page)
Get all events from a page



MobileService.getDailies(username,token)
Gets info on all dailys (most likely used for push notifications)


(Object)#0
auth = false
dailies = (Object)#1
anchormanagement = (Object)#2
accessible = true
canPlay = false
cost = 0
image = "[Only registered and activated users can see links]"
name = "<tt182938>Anchor Management</tt182938>"
nextPlay = 30991
fruitmachine = (Object)#3
accessible = (null)
cost = 0
image = "[Only registered and activated users can see links]"
name = "Fruit Machine"
nextPlay = (null)
mobilescratchcard = (Object)#4
accessible = (null)
cost = 0
image = ""
name = "Scratch Card"
nextPlay = (null)
wheelofexcitement = (Object)#5
accessible = (null)
cost = 500
image = "[Only registered and activated users can see links]"
name = "Wheel of Excitement"
nextPlay = (null)
neopoints = false


MobileService.feedPet(username,token,petname)
A new daily , allows u to feed ur pet once per day on mobile for free.

MobileService.deleteEvents(ids,username,token)
Delete events , pretty simple


MobileScratchcardService.timeRemaining(username,to ken)
Time left until user can buy a mobile scratch card

MobileScratchcardService.getCard(username,token)
Get a mobiloe scratch card


MobileScratchcardService.finishCard(username,token )
Finish a mobile scratch card

NewsService.getNews()
Gets the home page news in html format..

janikanicolepi
03-04-2014, 02:42 AM
I always wonder what the token function means in the amfphp, now I know :D Thanks DarkByte!

VitaminX
03-04-2014, 03:32 AM
I thank you.

Back to coding I am.