Doc #67649 [Opn]: OAuth::getRequestToken() has a 3rd parameter

From: Date: Sat, 19 Jul 2014 07:40:28 +0000
Subject: Doc #67649 [Opn]: OAuth::getRequestToken() has a 3rd parameter
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11386@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 Type: Documentation Problem Package: oauth PHP Version: Irrelevant Block user comment: N Private report: N New Comment: OAuth::getAccessToken() also has a 4th undocumented parameter; again the http method. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#11386) next »