• <bdo id='I0pqN'></bdo><ul id='I0pqN'></ul>

      <tfoot id='I0pqN'></tfoot><legend id='I0pqN'><style id='I0pqN'><dir id='I0pqN'><q id='I0pqN'></q></dir></style></legend>
      1. <small id='I0pqN'></small><noframes id='I0pqN'>

        <i id='I0pqN'><tr id='I0pqN'><dt id='I0pqN'><q id='I0pqN'><span id='I0pqN'><b id='I0pqN'><form id='I0pqN'><ins id='I0pqN'></ins><ul id='I0pqN'></ul><sub id='I0pqN'></sub></form><legend id='I0pqN'></legend><bdo id='I0pqN'><pre id='I0pqN'><center id='I0pqN'></center></pre></bdo></b><th id='I0pqN'></th></span></q></dt></tr></i><div id='I0pqN'><tfoot id='I0pqN'></tfoot><dl id='I0pqN'><fieldset id='I0pqN'></fieldset></dl></div>

        php zend gdata - 使用 oauth 获取谷歌文档列表

        时间:2023-05-30
          • <small id='f3ebM'></small><noframes id='f3ebM'>

          • <legend id='f3ebM'><style id='f3ebM'><dir id='f3ebM'><q id='f3ebM'></q></dir></style></legend>
            <i id='f3ebM'><tr id='f3ebM'><dt id='f3ebM'><q id='f3ebM'><span id='f3ebM'><b id='f3ebM'><form id='f3ebM'><ins id='f3ebM'></ins><ul id='f3ebM'></ul><sub id='f3ebM'></sub></form><legend id='f3ebM'></legend><bdo id='f3ebM'><pre id='f3ebM'><center id='f3ebM'></center></pre></bdo></b><th id='f3ebM'></th></span></q></dt></tr></i><div id='f3ebM'><tfoot id='f3ebM'></tfoot><dl id='f3ebM'><fieldset id='f3ebM'></fieldset></dl></div>
              <tbody id='f3ebM'></tbody>
                <bdo id='f3ebM'></bdo><ul id='f3ebM'></ul>

              • <tfoot id='f3ebM'></tfoot>

                  本文介绍了php zend gdata - 使用 oauth 获取谷歌文档列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我用我这样设置的有效令牌进行了会话:

                  I've got my session with the valid token that i set up this way :

                  $session_token = Zend_Gdata_AuthSub::getAuthSubSessionToken($_GET['token']);
                  // Store the session token in our session.
                  $_SESSION['cal_token'] = $session_token;
                  

                  然后我希望能够做到这一点:

                  Then i want to be able to do this:

                  $service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
                  $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
                  $docs = new Zend_Gdata_Docs($client);
                  $feed = $docs->getDocumentListFeed();
                  

                  但是使用令牌.而不是使用 user/pass/service 进行身份验证

                  But using the token. Instead of the authentication with user/pass/service

                  我已经看过一些这样的例子,但我没有找到任何让它工作的方法.

                  I already looked at some example of this but i didn't find any way to make it work.

                  谢谢大家!

                  推荐答案

                      // Retrieve user's list of Google Docs
                      $client = Zend_Gdata_AuthSub::getHttpClient($_SESSION['cal_token']);
                      $docs = new Zend_Gdata_Docs($client);
                      $feed = $docs->getDocumentListFeed();
                      foreach ($feed->entries as $entry) {
                        echo "$entry->title
                  ";
                      }
                  

                  这篇关于php zend gdata - 使用 oauth 获取谷歌文档列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 PHP 中使用 jqgrid 上传文件 下一篇:为什么在 setter 方法中返回 $this ?

                  相关文章

                  <small id='SmlRW'></small><noframes id='SmlRW'>

                1. <i id='SmlRW'><tr id='SmlRW'><dt id='SmlRW'><q id='SmlRW'><span id='SmlRW'><b id='SmlRW'><form id='SmlRW'><ins id='SmlRW'></ins><ul id='SmlRW'></ul><sub id='SmlRW'></sub></form><legend id='SmlRW'></legend><bdo id='SmlRW'><pre id='SmlRW'><center id='SmlRW'></center></pre></bdo></b><th id='SmlRW'></th></span></q></dt></tr></i><div id='SmlRW'><tfoot id='SmlRW'></tfoot><dl id='SmlRW'><fieldset id='SmlRW'></fieldset></dl></div>
                  <tfoot id='SmlRW'></tfoot>

                      <bdo id='SmlRW'></bdo><ul id='SmlRW'></ul>
                    1. <legend id='SmlRW'><style id='SmlRW'><dir id='SmlRW'><q id='SmlRW'></q></dir></style></legend>