Merge pull request #18 from integ3r/gh-pages
Display items, AP, and XM for redeemed passcodes
This commit is contained in:
292
json_examples/redeeming.js
Normal file
292
json_examples/redeeming.js
Normal file
@ -0,0 +1,292 @@
|
||||
// http://www.ingress.com/rpc/dashboard.redeemReward
|
||||
|
||||
{
|
||||
"passcode": "<insert passcode here>"
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
{
|
||||
"gameBasket": {
|
||||
"apGains": [{
|
||||
"apGainAmount": "200",
|
||||
"apTrigger": "REDEEMED_AP"
|
||||
}],
|
||||
"deletedEntityGuids": [],
|
||||
"gameEntities": [],
|
||||
"inventory": [
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239302",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"modResource": {
|
||||
"displayName": "Portal Shield",
|
||||
"rarity": "VERY_RARE",
|
||||
"resourceType": "RES_SHIELD",
|
||||
"stats": {
|
||||
"MITIGATION": "10"
|
||||
}
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239330",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239313",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"modResource": {
|
||||
"displayName": "Portal Shield",
|
||||
"rarity": "VERY_RARE",
|
||||
"resourceType": "RES_SHIELD",
|
||||
"stats": {
|
||||
"MITIGATION": "10"
|
||||
}
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 7
|
||||
},
|
||||
"requiredLevel": 7
|
||||
},
|
||||
"empWeapon": {
|
||||
"ammo": 1,
|
||||
"level": 7
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239348",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 7,
|
||||
"resourceType": "EMP_BURSTER"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239319",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239342",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239336",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}]
|
||||
],
|
||||
"playerEntity": ["00000000000000000000000000000000.c",
|
||||
1358631239530, {
|
||||
"controllingTeam": {
|
||||
"team": "RESISTANCE"
|
||||
},
|
||||
"playerPersonal": {
|
||||
"allowFactionChoice": false,
|
||||
"allowNicknameEdit": false,
|
||||
"ap": "326513",
|
||||
"clientLevel": 26,
|
||||
"energy": 3205,
|
||||
"energyState": "XM_OK",
|
||||
"mediaHighWaterMarks": {
|
||||
"General": 8,
|
||||
"RESISTANCE": 9
|
||||
}
|
||||
}
|
||||
}]
|
||||
},
|
||||
"result": {
|
||||
"apAward": "200",
|
||||
"inventoryAward": [
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239302",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"modResource": {
|
||||
"displayName": "Portal Shield",
|
||||
"rarity": "VERY_RARE",
|
||||
"resourceType": "RES_SHIELD",
|
||||
"stats": {
|
||||
"MITIGATION": "10"
|
||||
}
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239330",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239313",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"modResource": {
|
||||
"displayName": "Portal Shield",
|
||||
"rarity": "VERY_RARE",
|
||||
"resourceType": "RES_SHIELD",
|
||||
"stats": {
|
||||
"MITIGATION": "10"
|
||||
}
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 7
|
||||
},
|
||||
"requiredLevel": 7
|
||||
},
|
||||
"empWeapon": {
|
||||
"ammo": 1,
|
||||
"level": 7
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239348",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 7,
|
||||
"resourceType": "EMP_BURSTER"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239319",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239342",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}],
|
||||
["00000000000000000000000000000000.5",
|
||||
1358631239636, {
|
||||
"accessLevel": {
|
||||
"failure": {
|
||||
"isAllowed": false,
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"requiredLevel": 1
|
||||
},
|
||||
"inInventory": {
|
||||
"acquisitionTimestampMs": "1358631239336",
|
||||
"playerId": "00000000000000000000000000000000.c"
|
||||
},
|
||||
"resourceWithLevels": {
|
||||
"level": 1,
|
||||
"resourceType": "EMITTER_A"
|
||||
}
|
||||
}]
|
||||
],
|
||||
"xmAward": "300"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user