public function processResponse(stdClass $response) { $response = parent::processResponse($response); if (isset($response->collections[0])) { return $response->collections[0]; } }
public function processResponse(stdClass $response) { // Use TingClientSearchRequest::processResponse for processing the // response from Ting. $searchRequest = new TingClientSearchRequest(NULL); $response = $searchRequest->processResponse($response); if (isset($response->collections[0]->objects[0])) { return $response->collections[0]->objects[0]; } }