Issue 146 in oauth-php: where is the updateConsumer function?

5 views
Skip to first unread message

oaut...@googlecode.com

unread,
Mar 14, 2015, 11:40:46 PM3/14/15
to oauth-ph...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 146 by zmt...@gmail.com: where is the updateConsumer function?
https://code.google.com/p/oauth-php/issues/detail?id=146

What steps will reproduce the problem?

I use the code $key= $store->updateConsumer($consumer, $user_id); and
there is not any output , and I cannot find updateConsumer() function in
the OauthStore.php file



What version of the product are you using? On what operating system?
oauth-php-175.tar.gz

Please provide any additional information below.

whole code text is following:
<?php

$user_id = 1;

$consumer = array(
'requester_name' => 'Fising',
'requester_email' =>'Fis...@qq.com',
/*
'callback_uri'
=> 'http://oauth.hznuassist.com/oauth_callback',
'application_uri' => 'http://oauth.hznuassist.com/',
'application_title' => 'Online Printer',
'application_descr' => 'Online Print Your Photoes',
'application_notes' => 'Online Printer',
'application_type' => 'website',
'application_commercial' => 0
*/
);

include_once 'config.inc.php';
include_once 'oauth-php/library/OAuthStore.php';

$store = OAuthStore::instance('MySQL', $dbOptions);

$key = $store->updateConsumer($consumer, $user_id);

$consumer = $store->getConsumer($key, $user_id);

$consumer_id = $consumer['id'];
$consumer_key = $consumer['consumer_key'];
$consumer_secret = $consumer['consumer_secret'];

echo 'Your App Key: ' . $consumer_key;
echo 'Your App Secret: ' . $consumer_secret;
?>

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

oaut...@googlecode.com

unread,
Mar 15, 2015, 12:23:23 AM3/15/15
to oauth-ph...@googlegroups.com

Comment #1 on issue 146 by zmt...@gmail.com: where is the updateConsumer
function?
https://code.google.com/p/oauth-php/issues/detail?id=146

I found it , but the function array_map(), does it the 1st Parameters is
the callback function ? but $args =
array_map(array($this, 'sql_escape_string'), $args); is what?
Reply all
Reply to author
Forward
0 new messages