Class: abuseTickets

abuseTickets(domainOrOptionsopt)

new abuseTickets(domainOrOptionsopt)

Parameters:
Name Type Attributes Description
domainOrOptions string | object <optional>
The project domain or options object. If object, see the object's optional properties.
Properties
Name Type Attributes Description
domain string <optional>
The project domain
token object <optional>
auth token - object with value property and optional headerOrQueryName and isQuery properties
Source:

Methods

createTicket(body)

Create a new abuse ticket
Parameters:
Name Type Description
body AbuseTicketCreate The endpoint which allows the Reporter to create a new abuse ticket
Source:

getTicketInfo(ticketId)

Return the abuse ticket data for a given ticket id
Parameters:
Name Type Description
ticketId string A unique abuse ticket identifier
Source:

getTickets(type, closed, sourceDomainOrIp, target, createdStart, createdEnd, limit, offset)

List all abuse tickets ids that match user provided filters
Parameters:
Name Type Description
type string The type of abuse.
closed boolean Is this abuse ticket closed?
sourceDomainOrIp string The domain name or ip address abuse originated from
target string The brand/company the abuse is targeting. ie: brand name/bank name
createdStart string The earliest abuse ticket creation date to pull abuse tickets for
createdEnd string The latest abuse ticket creation date to pull abuse tickets for
limit integer Number of abuse ticket numbers to return.
offset integer The earliest result set record number to pull abuse tickets for
Source:

setToken(value, headerOrQueryName, isQuery)

Set Token
Parameters:
Name Type Description
value string token's value
headerOrQueryName string the header or query name to send the token at
isQuery boolean true if send the token as query param, otherwise, send as header param
Source: