Skip to content

Instantly share code, notes, and snippets.

@jufemaiz
Last active October 16, 2015 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jufemaiz/ba88cc477c9f08cf82ca to your computer and use it in GitHub Desktop.
Save jufemaiz/ba88cc477c9f08cf82ca to your computer and use it in GitHub Desktop.
Ausgrid Outage Services

Ausgrid Outage Web Services

As per http://www.ausgrid.com.au/services/Outage/Outage.asmx

GetNetworkArea

curl 'http://www.ausgrid.com.au/services/Outage/Outage.asmx/GetNetworkArea' \
-X POST \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Length: 0' \
--compressed

GetOutages

curl 'http://www.ausgrid.com.au/services/Outage/Outage.asmx/GetOutages' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json, text/plain, */*' \
--data-binary '{"box":{"bottomleft":{"lat":-90,"lng":180},"topright":{"lat":0,"lng":0},"zoom":1}}' \
--compressed

GetOutage

curl 'http://www.ausgrid.com.au/services/Outage/Outage.asmx/GetOutage' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json, text/plain, */*' \
-H 'DNT: 1' \
--data-binary '{"id":{"WebId":45627,"OutageDisplayType":"P"}}' \
--compressed

GetPlannedOutagesToday

curl 'http://www.ausgrid.com.au/services/Outage/Outage.asmx/GetPlannedOutagesToday' \
-X POST \
-H 'Content-Type: application/json;charset=utf-8' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Length: 0' \
-H 'DNT: 1' \
--compressed

GetPlannedOutagesFuture

curl 'http://www.ausgrid.com.au/services/Outage/Outage.asmx/GetPlannedOutagesFuture' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json, text/plain, */*' \
-H 'DNT: 1' \
--data-binary '{"futureDays":"365"}' \
--compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment