lib/SyncService.php
public function ack($deviceUUID, array $ackKeys, array $options = array())
  {
    // @throws InvalidArgumentException
    $this->checkArgument($deviceUUID, 'deviceUUID');

    // fast path - nothing to acknowledge
    if (!$ackKeys) return true;

    $attributes = ['ack_keys' => $ackKeys];
    list($code,) = $this->httpClient->post('/sync/ack', $attributes, array_merge($options, ['headers' => $this->buildHeaders($deviceUUID)]));
    return $code == 202;
  }
public function ack($deviceUUID, array $ackKeys, array $options = array())
  {
    // @throws InvalidArgumentException
    $this->checkArgument($deviceUUID, 'deviceUUID');

    // fast path - nothing to acknowledge
    if (!$ackKeys) return true;

    $attributes = ['ack_keys' => $ackKeys];
    list($code,) = $this->httpClient->post('/sync/ack', $attributes, array_merge($options, ['headers' => $this->buildHeaders($deviceUUID)]));
    return $code == 202;
  }
public function ack ( $ deviceUUID , array $ ackKeys , array $ options = array ( ) ) { // @throws InvalidArgumentException $ this -> checkArgument ( $ deviceUUID , 'deviceUUID' ) ; // fast path - nothing to acknowledge if ( ! $ ackKeys ) return true ; $ attributes = [ 'ack_keys' => $ ackKeys ] ; list ( $ code , ) = $ this -> httpClient -> post ( '/sync/ack' , $ attributes , array_merge ( $ options , [ 'headers' => $ this -> buildHeaders ( $ deviceUUID ) ] ) ) ; return $ code == 202 ; }
Acknowledge received data

post '/sync/ack'

Send acknowledgement keys to let know the Sync service which data you have.
As you fetch new data, you need to send acknowledgement keys.

@param string $deviceUUID Device's UUID for which to perform synchronization.
@param array $ackKeys The list of acknowledgement keys.
@param array $options Additional request's options.

@return boolean Status of the operation.
Acknowledge received data