Doc #67649 [Opn->Csd]: OAuth::getRequestToken() has a 3rd parameter
| From: | cweiske@php.net | Date: | Thu, 13 Nov 2014 22:18:18 +0000 |
| Subject: | Doc #67649 [Opn->Csd]: OAuth::getRequestToken() has a 3rd parameter | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11635@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67649&edit=1
ID: 67649
Updated by: cweiske@php.net
Reported by: cweiske@php.net
Summary: OAuth::getRequestToken() has a 3rd parameter
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: oauth
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cweiske
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2014-11-13 22:17:35] cweiske@php.net
Automatic comment from SVN on behalf of cweiske
Revision: http://svn.php.net/viewvc/?view=revision&revision=335182
Log: FIx doc bug #67649: OAuth::getRequestToken() has a 3rd parameter
Document the http_method parameter for getAccessToken() and getRequestToken().
------------------------------------------------------------------------
[2014-07-19 07:40:27] cweiske@php.net
OAuth::getAccessToken() also has a 4th undocumented parameter; again the http method.
------------------------------------------------------------------------
[2014-07-18 14:20:09] cweiske@php.net
Description:
------------
---
From manual page: http://www.php.net/oauth.getrequesttoken
---
OAuth::getRequestToken() has a 3rd parameter that is not documented - the HTTP method. Per RFC 5849
is MUST be set to POST, but it does not currently do that automatically. Using the 3rd parameter is
a workaround.
See the source code in http://svn.php.net/viewvc/pecl/oauth/trunk/oauth.c?revision=332108&view=markup#l2193
> zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zs", &url, &url_len,
> &callback_url, &http_method, &http_method_len
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67649&edit=1