You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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' =>'Fising@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;
?>
Original issue reported on code.google.com by zmt...@gmail.com on 15 Mar 2015 at 3:40
The text was updated successfully, but these errors were encountered:
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?
Original comment by zmt...@gmail.com on 15 Mar 2015 at 4:23
Original issue reported on code.google.com by
zmt...@gmail.com
on 15 Mar 2015 at 3:40The text was updated successfully, but these errors were encountered: