A PowerShell Module to interact with the ZenDesk ticketing system.
This is a work in progress and has had limited testing Pull requests and other contributions would be welcome!
# Download the repository
# Unblock the zip
# Extract the PoshZD folder to a module path (e.g. $env:USERPROFILE\Documents\WindowsPowerShell\Modules\)
Import-Module PoshZD
Get-Command -Module PoshZD
- PowerShell 3 or later
- A valid token from ZenDesk API or your User Name and Password (Coming Soon)
# This example shows how to create a ZenDesk Ticket Object that can be used to create a ZenDesk ticket
#Create your ZenDesk Headers and Domain variables
Set-ZDHeader -Email '[email protected]' -Token 'zendesktokengoeshere'
Set-ZDDomain -Domain 'domain' #example of domain is https//:{domain}.zendesk.com
$ZDObject = Create-ZDTicketObject -String 'New Ticket for customer' `
-Description 'Orgnization has issues with software' `
-Comment 'creating ticket for orgnization because of issues with software' `
-Type incident `
-Priority high `
-Status new
$ZDObject | New-ZDTicket
$ZDObject | Update-ZDTicket -TicketNumber 123456789
or
$ZDTicket = Get-ZDTicket -TicketId 123456789
Update-ZDTicket -TicketId $ZDTicket -TicketObject $ZDObject