Google_Calendar_Helpers::parse_response( mixed $response )

Method parse_response.


Parameters Parameters

$response

(Required) The response from API Call.


Top ↑

Return Return

(array) The parsed response.


Source Source

File: src/integrations/google-calendar/helpers/google-calendar-helpers.php

	public function parse_response( $response ) {

		return array_map(
			function( $response ) {
				return array(
					'text'  => $response['summary'],
					'value' => $response['id'],
				);
			},
			$response
		);

	}