public function ensureFormDigest(RequestOptions $request)
    {
        if (!isset($this->contextWebInformation)) {
            $this->requestFormDigest();
        }
        $request->addCustomHeader("X-RequestDigest",$this->getContextWebInformation()->FormDigestValue);
    }
public function ensureFormDigest(RequestOptions $request)
    {
        if (!isset($this->contextWebInformation)) {
            $this->requestFormDigest();
        }
        $request->addCustomHeader("X-RequestDigest",$this->getContextWebInformation()->FormDigestValue);
    }
public function ensureFormDigest ( RequestOptions $ request ) { if ( ! isset ( $ this -> contextWebInformation ) ) { $ this -> requestFormDigest ( ) ; } $ request -> addCustomHeader ( "X-RequestDigest" , $ this -> getContextWebInformation ( ) -> FormDigestValue ) ; }
Ensure form digest value for POST request
@param RequestOptions $request
Ensure form digest value for POST request