Свойство | Type | Description | |
---|---|---|---|
$type |
Méthode | Description | |
---|---|---|
__construct ( string $secret, array $options = [] ) | Creates a new queued fork consumer which queues fork and identify calls before adding them to | |
flushBatch ( array $messages ) : boolean | Make an async request to our API. Fork a curl process, immediately send to the API. If debug is enabled, we wait for the response. |
public __construct ( string $secret, array $options = [] ) | ||
$secret | string | |
$options | array | boolean "debug" - whether to use debug output, wait for response. number "max_queue_size" - the max size of messages to enqueue number "batch_size" - how many messages to send in a single request |
public flushBatch ( array $messages ) : boolean | ||
$messages | array | array of all the messages to send |
Résultat | boolean | whether the request succeeded |