vgrem / phpSPO

Microsoft 365 Library for PHP.
MIT License
355 stars 115 forks source link

getting an error conection DOMDocument::loadXML(): Empty string supplied as input #170

Open gabrielMoran23 opened 4 years ago

gabrielMoran23 commented 4 years ago

ive red many examples and triying with correct url, user and password but im getiting this error im new working with sharepoint please helpme with this.

this are my method. $url="https://profecionalglm.sharepoint.com"; $user="gabriel@profecionalglm.onmicrosoft.com"; $password="Zr4x001";

            try {
                $authCtx = new AuthenticationContext($url);
                $authCtx->acquireTokenForUser($user,$password);
                $ctx = new ClientContext($Url,$authCtx);

            }
            catch (Exception $e) {
                echo 'Authentication failed: ',  $e->getMessage(), "\n";
            }
ayimdomnic commented 4 years ago

This could be an issue with how the xml is formatted, which version of this library are you using?

gabrielMoran23 commented 4 years ago

hello, it was necesary to create an account on microsoft developer program, but now its working find im not receibing warnings, but my file not appear on sharepoint site, Sin título can you helpme, what im doing worng my site calls cv_files, my library candidates_cv