getBulkRequest() публичный Метод

Performs multiple API requests at once and returns every result.
public getBulkRequest ( array $urls ) : array
$urls array The array of API requests.
Результат array
Пример #1
0
 public function test_getBulkRequest_IsAbleToHandleManyDifferentRequests()
 {
     $token = Fixture::getTokenAuth();
     $urls = array("method%3dVisitsSummary.get%26idSite%3d1%26date%3d2015-01-26%26period%3dday", "method%3dVisitsSummary.get%26token_auth%3d{$token}%26idSite%3d1%26date%3d2015-01-26%26period%3dday", "method%3dVisitsSummary.get%26idSite%3d1%26date%3d2015-01-26%26period%3dday", "method%3dVisitsSummary.get%26idSite%3d1%26token_auth%3danonymous%26date%3d2015-01-26%26period%3dday");
     $response = $this->api->getBulkRequest($urls);
     $this->assertResponseIsPermissionError($response[0]);
     $this->assertResponseIsSuccess($response[1]);
     $this->assertSame(0, $response[1]['nb_visits']);
     $this->assertResponseIsPermissionError($response[2]);
     $this->assertResponseIsPermissionError($response[3]);
 }