Skip to content

where is the updateConsumer function? #146

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions