post_ticket: Create a client connection to the Zendesk API

Description Usage Arguments Value Examples

Description

Allows user to post a new ticket to the Zendesk API on behalf of a customer

Usage

1
2
post_ticket(requester_name, requester_email, body, subject, group,
  tags = list(), public, cli = client())

Arguments

requester_name

a string to identify customer who should be listed as ticket requester (optional, if NULL the email will pull in corresponding name)

requester_email

a string to identify customer who should be listed as ticket requester

body

a character string that is passed to the body of the Zendesk ticket

subject

the subject of your Zendesk ticket

group

an integer to indicate the group_id for your new ticket (optional, can be set to NULL)

tags

a list of character strings to set as the ticket tags for your new ticket (optional, can be set to NULL)

public

an optional logical value to indicate if the ticket comment should be public (TRUE) or privet (FALSE), default value FALSE

cli

the Zendesk client [created from ::client]

Value

Zendesk ticket number for successfully created ticket

Examples

1
2
3
4
5
6
7
8
9
post_ticket(
  requester_name = 'fake_name',
  requester_email = 'fake_email',
  body = 'comment in body of ticket',
  subject = 'subject of ticket',
  group = 1234567,
  tags = list(),
  public = FALSE
)

TifMoe/RZendesk documentation built on May 9, 2019, 4:46 p.m.