public function getCommand($id = null)
    {
        $uri = ($id) ? 'command/' . $id : 'command';

        $response = [
            'uri' => $uri,
            'type' => 'get',
            'data' => []
        ];

        return $this->processRequest($response);
    }
public function getCommand($id = null)
    {
        $uri = ($id) ? 'command/' . $id : 'command';

        $response = [
            'uri' => $uri,
            'type' => 'get',
            'data' => []
        ];

        return $this->processRequest($response);
    }
public function getCommand ( $ id = null ) { $ uri = ( $ id ) ? 'command/' . $ id : 'command' ; $ response = [ 'uri' => $ uri , 'type' => 'get' , 'data' => [ ] ] ; return $ this -> processRequest ( $ response ) ; }
Queries the status of a previously started command, or all currently started commands.

@param null $id Unique ID of the command
@return array|object|string
Queries the status of a previously started command or all currently started commands .