I tried to use Google document sample in the Zend Gdata demo and found the following error:
Fatal error: 'No' exception exception 'message' was found with 'Zend_Gdata_App_HttpException' with expected response code 200, 403 403.4 SSL requirement in 'F: \ PHP_libs \ Zend \ Gdata \ App.php: 714 Stack trace: # 0 F: \ PHP_libs \ Zend \ Gdata.php (21 9): Zend_Gdata_App-> Display HttpRequest ('GET', 'http: //docs.goo ...', Array, NULL, NULL, NULL) # 1F: \ PHP_libs \ Zend \ Gdata \ App .php (880): Zend_Gdata- & gt; ; Display HttpRequest ('GET', 'http: //docs.goo ...', Array) # 2 F: \ PHP_libs \ Zend \ Gdata \ App.php (768): Zend_Gdata_App - & gt; Obtain ('http: //docs.goo ...', NULL) # 3F: \ PHP_libs \ Zend \ Gdata \ App.php (210): Zend_Gdata_App-> ImportUrl ('http: // docs .goo ...', 'Zend_Gdata_Docs ...', NULL) # 4F: \ PHP_libs \ Zend \ Gdata.php (162): Zend_Gdata_App- & gt; GetFeed ('http: //docs.goo ...', 'Zend_Gdata_Docs ...') # 5F: \ PHP_libs \ Zend \ Gdata \ Docs. Php (130): Zend_Gdata- & gt; GetFeed ('http: //docs.goo ...', 'Zend_Gdata_Docs ...') # 6F: \ xampp \ htdocs \ ZendGdata-1.11.12 \ demos \ Zend \ Gdata \ docs. Php (277): Zend_Gdata_Docs-> GetDocumentListFeed ('http: //docs.goo ...') # 7F: \ xampp \ htdocs \ ZendGdata-1.11.12 \ demos \ Zend \ Gdata \ docs.php (752): Retrieve WPD in: \ PHP_libs \ Zend \ Gdata \ App.php on line 714
I am using the Zend library for the first time and I am unable to find out how the authorization works here Please help < / P>
I'm not sure that this is fixed in the latest version of the library library but I went and File in My Zend Updated: library / jend / gdata / docs.fp
To update the constant around line 62, there is a need to change https from http which now looks like this:
const DOCUMENTS_LIST_FEED_URI = 'https://docs.google.com/feeds/documents/private/full'; Const DOCUMENTS_FOLDER_FEED_URI = 'https://docs.google.com/feeds/folders/private/full'; Const DOCUMENTS_CATEGORY_SCHEMA = 'https://schemas.google.com/g/2005#kind'; Const DOCUMENTS_CATEGORY_TERM = 'https://schemas.google.com/docs/2007#folder';
That was the move.
Comments
Post a Comment