Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.98 KB

API.md

File metadata and controls

64 lines (44 loc) · 1.98 KB

Modules

handleGet

Built in definition for API deployment GET method

handlePost

Built in definition for API deployment POST method

handleGet

Built in definition for API deployment GET method

handleGet~doGet(e) ⇒ object

Returns the corresponding user entry in the Contacts sheet matching the serialNumber query parameter

Kind: inner method of handleGet
Returns: object - Standard response with a JavaScript text body

Param Type Description
e object Request event data

handlePost

Built in definition for API deployment POST method

handlePost~doPost(e) ⇒ object

Creates an event entry in the Events spreadsheet

Kind: inner method of handlePost
Returns: object - Standard response with a JavaScript text body

Param Type Description
e object Request event data

handlePost~addEvent(sheet, eventJson) ⇒ boolean

Adds a PassNinja event to a new row in the target spreadsheet

Kind: inner method of handlePost
Returns: boolean - If the action completed successfully

Param Type Description
sheet Sheet Sheet to insert the event into
eventJson object JSON representation of the PassNinja event