src/MediaServices/MediaServicesRestProxy.php
private function _getCreateTaskContext(Task $task)
    {
        $result = new HttpCallContext();
        $result->setMethod(Resources::HTTP_POST);
        $result->setHeaders($this->_batchHeaders);
        $result->setUri($this->getUri());
        $result->setPath('/$1/Tasks');
        $result->setBody($this->wrapAtomEntry($task));
        $result->addStatusCode(Resources::STATUS_CREATED);

        return $result;
    }
private function _getCreateTaskContext(Task $task)
    {
        $result = new HttpCallContext();
        $result->setMethod(Resources::HTTP_POST);
        $result->setHeaders($this->_batchHeaders);
        $result->setUri($this->getUri());
        $result->setPath('/$1/Tasks');
        $result->setBody($this->wrapAtomEntry($task));
        $result->addStatusCode(Resources::STATUS_CREATED);

        return $result;
    }
private function _getCreateTaskContext ( Task $ task ) { $ result = new HttpCallContext ( ) ; $ result -> setMethod ( Resources :: HTTP_POST ) ; $ result -> setHeaders ( $ this -> _batchHeaders ) ; $ result -> setUri ( $ this -> getUri ( ) ) ; $ result -> setPath ( '/$1/Tasks' ) ; $ result -> setBody ( $ this -> wrapAtomEntry ( $ task ) ) ; $ result -> addStatusCode ( Resources :: STATUS_CREATED ) ; return $ result ; }
Create task HTTP call context.

@param Task $task Task object to be created

@return HttpCallContext
Create task HTTP call context .