Skip to content

Instantly share code, notes, and snippets.

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 ssougnez/f4058129775ed2a0e6f1637ead964b48 to your computer and use it in GitHub Desktop.
Save ssougnez/f4058129775ed2a0e6f1637ead964b48 to your computer and use it in GitHub Desktop.
Function GetSiteName {
Param([string]$hostname, [string]$port)
return $("{0}{1}" -f $hostname, $port);
}
Function GetSiteUrl {
Param([string]$hostname, [string]$port)
return ("http://{0}:{1}" -f $hostname, $port);
}
Function ParseResponse {
Param([object]$response)
return ($response.Content.Substring($response.Content.IndexOf("{")) | ConvertFrom-Json)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment