Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where is the updateConsumer function? #146

Open
GoogleCodeExporter opened this issue May 27, 2015 · 1 comment
Open

where is the updateConsumer function? #146

GoogleCodeExporter opened this issue May 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant