Tribe__Tickets_Plus__REST__V1__Endpoints__QR::CHECK_IN_args()
Returns the content of the args array that should be used to register the endpoint with the register_rest_route function.
Return
(array)
Source
File: src/Tribe/REST/V1/Endpoints/QR.php
public function CHECK_IN_args() {
return array(
// QR fields
'api_key' => array(
'required' => true,
'validate_callback' => array( $this->validator, 'is_string' ),
'type' => 'string',
'description' => __( 'The API key to authorize check in.', 'event-tickets-plus' ),
),
'ticket_id' => array(
'required' => true,
'validate_callback' => array( $this->validator, 'is_numeric' ),
'type' => 'string',
'description' => __( 'The ID of the ticket to check in.', 'event-tickets-plus' ),
),
'security_code' => array(
'required' => true,
'validate_callback' => array( $this->validator, 'is_string' ),
'type' => 'string',
'description' => __( 'The security code of the ticket to verify for check in.', 'event-tickets-plus' ),
),
);
}
Changelog
| Version | Description |
|---|---|
| 4.7.5 | Introduced. |