Get-DominosOrderStatus by xcudcom 29 months ago
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/1355"></script>download | new post
Gets the status of your Dominos pizza order. Your phone number is the only input parameter. This is the most important Psh module you’ll ever import.
- # Get-DominosOrderStatus.psm1
- # Author: xcud.com
- #
- # Inspired by Dana Merrick's Dominos Pizza Script
- # http://shakti.trincoll.edu/~dmerrick/dominos.html
- function Get-DominosOrderStatus($phone_number) {
- $url = "http://trkweb.dominos.com/orderstorage/GetTrackerData?Phone=$phone_number"
- [xml]$content = (new-object System.Net.WebClient).DownloadString($url);
- $statii = select-xml -xml @($content) `
- -Namespace @{dominos="http://www.dominos.com/message/"} `
- -XPath descendant::dominos:OrderStatus
- if($statii.Count -gt 0) { $statii | %{ $_.Node } }
- else { "No orders" }
- }
- Export-ModuleMember Get-DominosOrderStatus
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
PowerShell Code Repository