VeeFu wrote:...inspired me to learn a bit of python to parse...
way more fun using PowerShell


Code: Select all
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\joshua> $body = 'batch={"authKey":"XXXX","pickupMessages":true,"lastLoginTime":1488198034,"co
mmands":[{"action":"player.neighbor.visit","args":{"playerId":"779a335e-7216-11e6-8b58-06033c004f77","neighborId":"61488
bd7-f0c0-11e6-9524-06cb44004f79"},"requestId":42,"time":1488198290,"token":"XXXX-XXXX-..."}]}'
PS C:\Users\joshua> $r = Invoke-RestMethod https://n7-startswin-web-active.playdom.com/app/batch/json -Method Post -Body
$body
PS C:\Users\joshua> $r.data.result.player.playerModel|gm
TypeName: System.Management.Automation.PSCustomObject
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
activeArmory NoteProperty System.Management.Automation.PSCustomObject activeArmory=@{equipment=System....
armoryInfo NoteProperty System.Management.Automation.PSCustomObject armoryInfo=@{firstCratePurchased...
battleLogs NoteProperty Object[] battleLogs=System.Object[]
buildingsUnderConstruction NoteProperty Object[] buildingsUnderConstruction=System.Object[]
campaigns NoteProperty System.Management.Automation.PSCustomObject campaigns=@{cmp_fue=; sw_hth_out...
contracts NoteProperty Object[] contracts=System.Object[]
currentQuest NoteProperty string currentQuest=
DamagedBuildings NoteProperty System.Management.Automation.PSCustomObject DamagedBuildings=@{bld_110=100; ...
deviceInfo NoteProperty System.Management.Automation.PSCustomObject deviceInfo=
donatedTroops NoteProperty System.Management.Automation.PSCustomObject donatedTroops=@{troopDark4=}
faction NoteProperty string faction=empire
frozenBuildings NoteProperty Object[] frozenBuildings=System.Object[]
guildInfo NoteProperty System.Management.Automation.PSCustomObject guildInfo=@{guildId=568c7e7c-9dd...
holonetRewards NoteProperty Object[] holonetRewards=System.Object[]
identitySwitchTimes NoteProperty System.Management.Automation.PSCustomObject identitySwitchTimes=
intros NoteProperty Object[] intros=System.Object[]
inventory NoteProperty System.Management.Automation.PSCustomObject inventory=@{storage=; capacity=-...
isConnectedAccount NoteProperty bool isConnectedAccount=False
isFueInProgress NoteProperty bool isFueInProgress=False
isRateIncentivized NoteProperty bool isRateIncentivized=False
lastMission NoteProperty string lastMission=chapter_10_bgh_e_4
lastObjectiveCheckTime NoteProperty int lastObjectiveCheckTime=1488200007
lastPaymentTime NoteProperty object lastPaymentTime=null
lastWarParticipationTime NoteProperty int lastWarParticipationTime=1487587255
map NoteProperty System.Management.Automation.PSCustomObject map=@{next=117; planet=planet1; ...
missions NoteProperty System.Management.Automation.PSCustomObject missions=@{fue_defendBaseMission...
openOffer NoteProperty object openOffer=null
perksInfo NoteProperty System.Management.Automation.PSCustomObject perksInfo=@{perks=}
playerObjectives NoteProperty System.Management.Automation.PSCustomObject playerObjectives=@{planet1=; pla...
prizes NoteProperty System.Management.Automation.PSCustomObject prizes=@{troop=; specialAttack=;...
protectedUntil NoteProperty int protectedUntil=1488209051
protectionCooldownUntil NoteProperty System.Management.Automation.PSCustomObject protectionCooldownUntil=
protectionFrom NoteProperty int protectionFrom=1488151451
pvpTargetServedTime NoteProperty int pvpTargetServedTime=1488151307
raids NoteProperty System.Management.Automation.PSCustomObject raids=@{planet1=}
relocationStarCount NoteProperty int relocationStarCount=-1
shards NoteProperty System.Management.Automation.PSCustomObject shards=
timeZoneOffset NoteProperty decimal timeZoneOffset=0.0
tournaments NoteProperty System.Management.Automation.PSCustomObject tournaments=
troopDonationProgress NoteProperty System.Management.Automation.PSCustomObject troopDonationProgress=@{donation...
unlockedPlanets NoteProperty Object[] unlockedPlanets=System.Object[]
upgrades NoteProperty System.Management.Automation.PSCustomObject upgrades=@{troop=; specialAttack...
PS C:\Users\joshua> $r.data.result.player.playerModel.map.buildings
key : bld_30
x : 12
z : 14
uid : rockLarge1
lastCollectTime :
currentStorage : 2
key : bld_35
x : 16
z : -9
uid : junkLarge1
lastCollectTime :
currentStorage : 2
key : bld_49
x : 9
z : -20
uid : junkLarge1
lastCollectTime :
currentStorage : 3
key : bld_51
x : 5
z : -20
uid : junkSmall1
lastCollectTime :
currentStorage : 2
key : bld_94
x : -4
z : -14
uid : junkLarge1
lastCollectTime :
currentStorage : 2
key : bld_68
x : -8
z : 5
uid : empireBarracks4
lastCollectTime :
currentStorage : 0
key : bld_105
x : 20
z : -19
uid : junkSmall1
lastCollectTime :
currentStorage : 0
key : bld_92
x : -3
z : 0
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_11
x : -2
z : 0
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_9
x : -1
z : 0
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_8
x : 0
z : 0
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_3
x : 1
z : 0
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_10
x : 2
z : 0
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_7
x : 3
z : 0
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_17
x : 4
z : 0
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_18
x : 4
z : -1
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_6
x : 4
z : -2
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_91
x : 4
z : -3
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_75
x : -16
z : 19
uid : empireCreditStorage4
lastCollectTime :
currentStorage : 0
key : bld_54
x : -17
z : 16
uid : empireMaterialsStorage4
lastCollectTime :
currentStorage : 0
key : bld_26
x : 20
z : 20
uid : empireDroidHut1
lastCollectTime :
currentStorage : 0
key : bld_69
x : 19
z : 14
uid : empireOffenseLab4
lastCollectTime :
currentStorage : 0
key : bld_23
x : -19
z : 19
uid : empireCreditStorage4
lastCollectTime :
currentStorage : 0
key : bld_72
x : -20
z : 16
uid : empireMaterialsStorage4
lastCollectTime :
currentStorage : 0
key : bld_102
x : -5
z : 5
uid : empireBarracks4
lastCollectTime :
currentStorage : 0
key : bld_56
x : -11
z : 5
uid : empireBarracks4
lastCollectTime :
currentStorage : 0
key : bld_96
x : 17
z : 2
uid : empireTacticalCommand3
lastCollectTime :
currentStorage : 0
key : bld_66
x : 16
z : -2
uid : empireFactory4
lastCollectTime :
currentStorage : 0
key : bld_109
x : -20
z : 13
uid : rockLarge1
lastCollectTime :
currentStorage : 1
key : bld_98
x : -17
z : 13
uid : empireScoutTower1
lastCollectTime :
currentStorage : 0
key : bld_112
x : 8
z : 17
uid : junkLarge1
lastCollectTime :
currentStorage : 3
key : bld_25
x : 16
z : -17
uid : empireStarport4
lastCollectTime :
currentStorage : 0
key : bld_113
x : 7
z : 5
uid : junkMedium1
lastCollectTime :
currentStorage : 1
key : bld_103
x : 2
z : -9
uid : empireTrapStrikeGeneric2
lastCollectTime :
currentStorage : 1
key : bld_1
x : -21
z : -21
uid : empireHQ4
lastCollectTime :
currentStorage : 0
key : bld_110
x : -16
z : -21
uid : empireShieldGenerator2
lastCollectTime :
currentStorage : 0
key : bld_52
x : -14
z : -21
uid : empireRapidFireTurret3
lastCollectTime :
currentStorage : 0
key : bld_62
x : -14
z : -19
uid : empireRapidFireTurret3
lastCollectTime :
currentStorage : 0
key : bld_22
x : -14
z : -17
uid : empireRapidFireTurret3
lastCollectTime :
currentStorage : 0
key : bld_70
x : -16
z : -17
uid : empireMortar2
lastCollectTime :
currentStorage : 0
key : bld_111
x : -18
z : -16
uid : empireShieldGenerator2
lastCollectTime :
currentStorage : 0
key : bld_63
x : -21
z : -16
uid : empireRapidFireTurret3
lastCollectTime :
currentStorage : 0
key : bld_106
x : -21
z : -14
uid : empireRapidFireTurret3
lastCollectTime :
currentStorage : 0
key : bld_71
x : -12
z : -19
uid : empireTrapStrikeGeneric3
lastCollectTime :
currentStorage : 1
key : bld_76
x : -16
z : -15
uid : empireRocketTurret4
lastCollectTime :
currentStorage : 0
key : bld_101
x : -14
z : -15
uid : empireRocketTurret3
lastCollectTime :
currentStorage : 0
key : bld_61
x : -12
z : -21
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_78
x : -12
z : -17
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_80
x : -12
z : -14
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_79
x : -12
z : -15
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_82
x : -12
z : -16
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_81
x : -14
z : -13
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_114
x : -15
z : 6
uid : rockLarge1
lastCollectTime :
currentStorage : 2
key : bld_14
x : -15
z : -13
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_15
x : -16
z : -13
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_59
x : -18
z : -12
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_60
x : -19
z : -12
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_87
x : -21
z : -12
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_57
x : -20
z : -12
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_58
x : -17
z : -12
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_12
x : -16
z : -12
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_16
x : -13
z : -13
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_85
x : -12
z : -13
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_99
x : -21
z : -10
uid : empireMaterialsGenerator4
lastCollectTime : 1488200781
currentStorage : 0
key : bld_53
x : -18
z : -10
uid : empireMaterialsGenerator4
lastCollectTime : 1488200782
currentStorage : 0
key : bld_64
x : -14
z : -11
uid : empireMaterialsGenerator4
lastCollectTime : 1488200782
currentStorage : 0
key : bld_73
x : -21
z : -7
uid : empireMaterialsGenerator4
lastCollectTime : 1488200781
currentStorage : 0
key : bld_65
x : -2
z : -21
uid : empireStarport4
lastCollectTime :
currentStorage : 0
key : bld_100
x : -10
z : -11
uid : empireCreditGenerator4
lastCollectTime : 1488200783
currentStorage : 0
key : bld_74
x : -10
z : -14
uid : empireCreditGenerator4
lastCollectTime : 1488200855
currentStorage : 0
key : bld_24
x : -10
z : -17
uid : empireCreditGenerator4
lastCollectTime : 1488200783
currentStorage : 0
key : bld_5
x : -7
z : -21
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_67
x : -10
z : -20
uid : empireCreditGenerator4
lastCollectTime : 1488200784
currentStorage : 0
key : bld_4
x : -7
z : -20
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_2
x : -7
z : -19
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_89
x : -7
z : -18
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_86
x : -7
z : -17
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_84
x : -7
z : -16
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_90
x : -7
z : -15
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_83
x : -7
z : -14
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_13
x : -7
z : -13
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_88
x : -7
z : -12
uid : empireWall3
lastCollectTime :
currentStorage : 0
key : bld_19
x : -7
z : -11
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_20
x : -7
z : -10
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_21
x : -7
z : -9
uid : empireWall2
lastCollectTime :
currentStorage : 0
key : bld_55
x : -11
z : -7
uid : empireSquadBuilding3
lastCollectTime :
currentStorage : 0
key : bld_115
x : -16
z : 4
uid : rockSmall1
lastCollectTime :
currentStorage : 1
key : bld_116
x : -13
z : -2
uid : rockSmall1
lastCollectTime :
currentStorage : 2
PS C:\Users\joshua>