public function Status_Get($guid, $nowait = true) {
        if ($nowait === true) {
            $ret = $this->_call_api('get', "{$this->_url}/statusNoWait/$guid", array());
        } else {
            do {
                $ret = $this->_call_api('get', "{$this->_url}/status/$guid", array());
                switch($ret->statusCode) {
                    case 'COMPLETED':
                    case 'CANCELLED':
                    case 'ERROR':
                        $wait = false;
                        break;

                    case 'INPROGRESS':
                    case 'SUBMITTED':
                    case 'PAUSED':
                        $wait = true;
                        break;

                    default:
                        $wait = false; // Unknown status, don't wait forever
                }
            } while ( $wait === true);
        }

        return $ret;
    }
public function Status_Get($guid, $nowait = true) {
        if ($nowait === true) {
            $ret = $this->_call_api('get', "{$this->_url}/statusNoWait/$guid", array());
        } else {
            do {
                $ret = $this->_call_api('get', "{$this->_url}/status/$guid", array());
                switch($ret->statusCode) {
                    case 'COMPLETED':
                    case 'CANCELLED':
                    case 'ERROR':
                        $wait = false;
                        break;

                    case 'INPROGRESS':
                    case 'SUBMITTED':
                    case 'PAUSED':
                        $wait = true;
                        break;

                    default:
                        $wait = false; // Unknown status, don't wait forever
                }
            } while ( $wait === true);
        }

        return $ret;
    }
public function Status_Get ( $ guid , $ nowait = true ) { if ( $ nowait === true ) { $ ret = $ this -> _call_api ( 'get' , "{$this->_url}/statusNoWait/$guid" , array ( ) ) ; } else { do { $ ret = $ this -> _call_api ( 'get' , "{$this->_url}/status/$guid" , array ( ) ) ; switch ( $ ret -> statusCode ) { case 'COMPLETED' : case 'CANCELLED' : case 'ERROR' : $ wait = false ; break ; case 'INPROGRESS' : case 'SUBMITTED' : case 'PAUSED' : $ wait = true ; break ; default : $ wait = false ; // Unknown status, don't wait forever } } while ( $ wait === true ) ; } return $ ret ; }
Get the status of an outstanding request.

@param int $guid The trackingId of the request to get status for
@param bool $nowait True if we should return without blocking. False if we should block until the request
reaches a completed state.
@return mixed A JSON decoded PHP variable representing the HTTP response.
@access public
Get the status of an outstanding request .