For those of you that use Windows 10, you can use the following Powershell function to check the stock which helped me:
1) Load the function into Windows Powershell by cut and pasting the following code (amend hash tables to suit your needs):
Function IphoneCheck {
#Create Hash Table to hold Phone your interested in
$PhonesHT = @{
'MN922B/A'='iPhone 7 128GB Black'
'MN942B/A'='iPhone 7 128GB Gold'
'MN962B/A'='iPhone 7 128GB Jet Black'
'MN952B/A'='iPhone 7 128GB Rose Gold'
'MN932B/A'='iPhone 7 128GB Silver'
'MN972B/A'='iPhone 7 256GB Black'
'MN992B/A'='iPhone 7 256GB Gold'
'MN9C2B/A'='iPhone 7 256GB Jet Black'
'MN9A2B/A'='iPhone 7 256GB Rose Gold'
'MN982B/A'='iPhone 7 256GB Silver'
'MN8X2B/A'='iPhone 7 32GB Black'
'MN902B/A'='iPhone 7 32GB Gold'
'MN912B/A'='iPhone 7 32GB Rose Gold'
'MN8Y2B/A'='iPhone 7 32GB Silver'
'MN4M2B/A'='iPhone 7 Plus 128GB Black'
'MN4Q2B/A'='iPhone 7 Plus 128GB Gold'
'MN4V2B/A'='iPhone 7 Plus 128GB Jet Black'
'MN4U2B/A'='iPhone 7 Plus 128GB Rose Gold'
'MN4P2B/A'='iPhone 7 Plus 128GB Silver'
'MN4W2B/A'='iPhone 7 Plus 256GB Black'
'MN4Y2B/A'='iPhone 7 Plus 256GB Gold'
'MN512B/A'='iPhone 7 Plus 256GB Jet Black'
'MN502B/A'='iPhone 7 Plus 256GB Rose Gold'
'MN4X2B/A'='iPhone 7 Plus 256GB Silver'
'MNQM2B/A'='iPhone 7 Plus 32GB Black'
'MNQP2B/A'='iPhone 7 Plus 32GB Gold'
'MNQQ2B/A'='iPhone 7 Plus 32GB Rose Gold'
'MNQN2B/A'='iPhone 7 Plus 32GB Silver'
}
#Create Hash Table to hold Store locations
$StoresHT = @{
'R659'='Apple Watch at Selfridges'
'R227'='Bentall Centre'
'R113'='Bluewater'
'R340'='Braehead'
'R163'='Brent Cross'
'R496'='Bromley'
'R135'='Buchanan Street'
'R118'='Bullring'
'R252'='Cabot Circus'
'R391'='Chapelfield'
'R244'='Churchill Square'
'R245'='Covent Garden'
'R393'='Cribbs Causeway'
'R545'='Drake Circus'
'R341'='Eldon Square'
'R482'='Festival Place'
'R270'='Grand Arcade'
'R308'='Highcross'
'R242'='Lakeside'
'R239'='Liverpool ONE'
'R215'='Manchester Arndale'
'R153'='Meadowhall'
'R423'='Metrocentre'
'R269'='Milton Keynes'
'R328'='Princes Street'
'R279'='Princesshay'
'R092'='Regent Street'
'R335'='SouthGate'
'R334'='St Davids 2'
'R410'='Stratford City'
'R176'='The Oracle'
'R255'='Touchwood Centre'
'R136'='Trafford Centre'
'R372'='Trinity Leeds'
'R363'='Union Square'
'R313'='Victoria Square'
'R527'='Watford'
'R174'='WestQuay'
'R226'='White City'
}
$URL = 'https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/availability.json'
$WebContent = Invoke-WebRequest $URL
$Stock = $WebContent | ConvertFrom-Json
$LastUpdate = ([datetime]'1/1/1970').AddMilliseconds($Stock.updated).AddHours(1)
$Results = $StoresHT.GetEnumerator() | Foreach-Object {
$Store = $_
$PhonesHT.GetEnumerator() | Foreach-Object {
$Phone = $_
$Obj = New-Object -TypeName PSObject
Add-member -InputObject $Obj -MemberType noteproperty -name "Store" -value ($Store.Value)
Add-member -InputObject $Obj -MemberType noteproperty -name "Phone" -value ($Phone.Value)
Add-member -InputObject $Obj -MemberType noteproperty -name "Status" -value ($Stock.($Store.Name).($_.name))
Add-member -InputObject $Obj -MemberType noteproperty -name "Last Updated" -value ($LastUpdate)
$Obj
}
}
$Results
}
2) Execute the function:
PS C:\> IphoneCheck
Store Phone Status Last Updated
----- ----- ------ ------------
Highcross Plus Silver 256GB NONE 21/09/2016 11:42:06
Highcross Plus Gold 256GB NONE 21/09/2016 11:42:06
Highcross Plus Rose 128GB NONE 21/09/2016 11:42:06
Highcross Plus Black 128GB NONE 21/09/2016 11:42:06
Highcross Plus Black 256GB NONE 21/09/2016 11:42:06
Highcross Plus Rose 256GB NONE 21/09/2016 11:42:06
Highcross Plus Sliver 128GB NONE 21/09/2016 11:42:06
Highcross Plus Gold 128GB NONE 21/09/2016 11:42:06
BullRing Plus Silver 256GB NONE 21/09/2016 11:42:06
BullRing Plus Gold 256GB NONE 21/09/2016 11:42:06
BullRing Plus Rose 128GB NONE 21/09/2016 11:42:06
BullRing Plus Black 128GB NONE 21/09/2016 11:42:06
BullRing Plus Black 256GB NONE 21/09/2016 11:42:06
BullRing Plus Rose 256GB NONE 21/09/2016 11:42:06
BullRing Plus Sliver 128GB NONE 21/09/2016 11:42:06
BullRing Plus Gold 128GB NONE 21/09/2016 11:42:06
Touchwood Plus Silver 256GB NONE 21/09/2016 11:42:06
Touchwood Plus Gold 256GB NONE 21/09/2016 11:42:06
Touchwood Plus Rose 128GB NONE 21/09/2016 11:42:06
Touchwood Plus Black 128GB UNLOCKED 21/09/2016 11:42:06
Touchwood Plus Black 256GB UNLOCKED 21/09/2016 11:42:06
Touchwood Plus Rose 256GB NONE 21/09/2016 11:42:06
Touchwood Plus Sliver 128GB UNLOCKED 21/09/2016 11:42:06
Touchwood Plus Gold 128GB NONE 21/09/2016 11:42:06
Hope this helps someone, as it helped me grab my phones
1) Load the function into Windows Powershell by cut and pasting the following code (amend hash tables to suit your needs):
Function IphoneCheck {
#Create Hash Table to hold Phone your interested in
$PhonesHT = @{
'MN922B/A'='iPhone 7 128GB Black'
'MN942B/A'='iPhone 7 128GB Gold'
'MN962B/A'='iPhone 7 128GB Jet Black'
'MN952B/A'='iPhone 7 128GB Rose Gold'
'MN932B/A'='iPhone 7 128GB Silver'
'MN972B/A'='iPhone 7 256GB Black'
'MN992B/A'='iPhone 7 256GB Gold'
'MN9C2B/A'='iPhone 7 256GB Jet Black'
'MN9A2B/A'='iPhone 7 256GB Rose Gold'
'MN982B/A'='iPhone 7 256GB Silver'
'MN8X2B/A'='iPhone 7 32GB Black'
'MN902B/A'='iPhone 7 32GB Gold'
'MN912B/A'='iPhone 7 32GB Rose Gold'
'MN8Y2B/A'='iPhone 7 32GB Silver'
'MN4M2B/A'='iPhone 7 Plus 128GB Black'
'MN4Q2B/A'='iPhone 7 Plus 128GB Gold'
'MN4V2B/A'='iPhone 7 Plus 128GB Jet Black'
'MN4U2B/A'='iPhone 7 Plus 128GB Rose Gold'
'MN4P2B/A'='iPhone 7 Plus 128GB Silver'
'MN4W2B/A'='iPhone 7 Plus 256GB Black'
'MN4Y2B/A'='iPhone 7 Plus 256GB Gold'
'MN512B/A'='iPhone 7 Plus 256GB Jet Black'
'MN502B/A'='iPhone 7 Plus 256GB Rose Gold'
'MN4X2B/A'='iPhone 7 Plus 256GB Silver'
'MNQM2B/A'='iPhone 7 Plus 32GB Black'
'MNQP2B/A'='iPhone 7 Plus 32GB Gold'
'MNQQ2B/A'='iPhone 7 Plus 32GB Rose Gold'
'MNQN2B/A'='iPhone 7 Plus 32GB Silver'
}
#Create Hash Table to hold Store locations
$StoresHT = @{
'R659'='Apple Watch at Selfridges'
'R227'='Bentall Centre'
'R113'='Bluewater'
'R340'='Braehead'
'R163'='Brent Cross'
'R496'='Bromley'
'R135'='Buchanan Street'
'R118'='Bullring'
'R252'='Cabot Circus'
'R391'='Chapelfield'
'R244'='Churchill Square'
'R245'='Covent Garden'
'R393'='Cribbs Causeway'
'R545'='Drake Circus'
'R341'='Eldon Square'
'R482'='Festival Place'
'R270'='Grand Arcade'
'R308'='Highcross'
'R242'='Lakeside'
'R239'='Liverpool ONE'
'R215'='Manchester Arndale'
'R153'='Meadowhall'
'R423'='Metrocentre'
'R269'='Milton Keynes'
'R328'='Princes Street'
'R279'='Princesshay'
'R092'='Regent Street'
'R335'='SouthGate'
'R334'='St Davids 2'
'R410'='Stratford City'
'R176'='The Oracle'
'R255'='Touchwood Centre'
'R136'='Trafford Centre'
'R372'='Trinity Leeds'
'R363'='Union Square'
'R313'='Victoria Square'
'R527'='Watford'
'R174'='WestQuay'
'R226'='White City'
}
$URL = 'https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/availability.json'
$WebContent = Invoke-WebRequest $URL
$Stock = $WebContent | ConvertFrom-Json
$LastUpdate = ([datetime]'1/1/1970').AddMilliseconds($Stock.updated).AddHours(1)
$Results = $StoresHT.GetEnumerator() | Foreach-Object {
$Store = $_
$PhonesHT.GetEnumerator() | Foreach-Object {
$Phone = $_
$Obj = New-Object -TypeName PSObject
Add-member -InputObject $Obj -MemberType noteproperty -name "Store" -value ($Store.Value)
Add-member -InputObject $Obj -MemberType noteproperty -name "Phone" -value ($Phone.Value)
Add-member -InputObject $Obj -MemberType noteproperty -name "Status" -value ($Stock.($Store.Name).($_.name))
Add-member -InputObject $Obj -MemberType noteproperty -name "Last Updated" -value ($LastUpdate)
$Obj
}
}
$Results
}
2) Execute the function:
PS C:\> IphoneCheck
Store Phone Status Last Updated
----- ----- ------ ------------
Highcross Plus Silver 256GB NONE 21/09/2016 11:42:06
Highcross Plus Gold 256GB NONE 21/09/2016 11:42:06
Highcross Plus Rose 128GB NONE 21/09/2016 11:42:06
Highcross Plus Black 128GB NONE 21/09/2016 11:42:06
Highcross Plus Black 256GB NONE 21/09/2016 11:42:06
Highcross Plus Rose 256GB NONE 21/09/2016 11:42:06
Highcross Plus Sliver 128GB NONE 21/09/2016 11:42:06
Highcross Plus Gold 128GB NONE 21/09/2016 11:42:06
BullRing Plus Silver 256GB NONE 21/09/2016 11:42:06
BullRing Plus Gold 256GB NONE 21/09/2016 11:42:06
BullRing Plus Rose 128GB NONE 21/09/2016 11:42:06
BullRing Plus Black 128GB NONE 21/09/2016 11:42:06
BullRing Plus Black 256GB NONE 21/09/2016 11:42:06
BullRing Plus Rose 256GB NONE 21/09/2016 11:42:06
BullRing Plus Sliver 128GB NONE 21/09/2016 11:42:06
BullRing Plus Gold 128GB NONE 21/09/2016 11:42:06
Touchwood Plus Silver 256GB NONE 21/09/2016 11:42:06
Touchwood Plus Gold 256GB NONE 21/09/2016 11:42:06
Touchwood Plus Rose 128GB NONE 21/09/2016 11:42:06
Touchwood Plus Black 128GB UNLOCKED 21/09/2016 11:42:06
Touchwood Plus Black 256GB UNLOCKED 21/09/2016 11:42:06
Touchwood Plus Rose 256GB NONE 21/09/2016 11:42:06
Touchwood Plus Sliver 128GB UNLOCKED 21/09/2016 11:42:06
Touchwood Plus Gold 128GB NONE 21/09/2016 11:42:06
Hope this helps someone, as it helped me grab my phones
Last edited: