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

    list($code, $session) = $this->httpClient->post('/sync/start', null, array_merge($options, ['headers' => $this->buildHeaders($deviceUUID)]));

    if ($code == 204) return null;
    return $session;
  }
public function start($deviceUUID, array $options = array())
  {
    // @throws InvalidArgumentException
    $this->checkArgument($deviceUUID, 'deviceUUID');

    list($code, $session) = $this->httpClient->post('/sync/start', null, array_merge($options, ['headers' => $this->buildHeaders($deviceUUID)]));

    if ($code == 204) return null;
    return $session;
  }
public function start ( $ deviceUUID , array $ options = array ( ) ) { // @throws InvalidArgumentException $ this -> checkArgument ( $ deviceUUID , 'deviceUUID' ) ; list ( $ code , $ session ) = $ this -> httpClient -> post ( '/sync/start' , null , array_merge ( $ options , [ 'headers' => $ this -> buildHeaders ( $ deviceUUID ) ] ) ) ; if ( $ code == 204 ) return null ; return $ session ; }
Start synchronization flow

post '/sync/start'

Starts a new synchronization session.
This is the first endpoint to call, in order to start a new synchronization session.

@param string $deviceUUID Device's UUID for which to perform synchronization.
@param array $options Additional request's options.

@return array The resulting object representing synchronization session or null if there is nothing to synchronize.
Start synchronization flow