asyncRequest() public method

Sends async request to SparkPost API.
public asyncRequest ( string $method = 'GET', string $uri = '', array $payload = [], array $headers = [] ) : SparkPostPromise
$method string
$uri string
$payload array
$headers array
return SparkPostPromise
 /**
  * @expectedException \Exception
  */
 public function testUnsupportedAsyncRequest()
 {
     $this->resource->setHttpClient(Mockery::mock('Http\\Client\\HttpClient'));
     $this->resource->asyncRequest('POST', 'transmissions', $this->postTransmissionPayload);
 }