View source: R/start-listening.R
classify_event | R Documentation |
Events need to be handled differently depending on how the Lambda is invoked. For example, an event via an API Gateway needs to be parsed and handled differently to that of an event received via direct invocation. This function attempts to detect the method of invocation and returns a character vector which can be used to assign an S3 class to the event. The last element of the vector is always "event".
classify_event(event_content)
event_content |
the content of the response received from querying the text invocation endpoint, as a character |
character vector, the last element of which is always "event"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.