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