You are here

function oauth_save_consumer in OAuth 1.0 6

Save consumer record to oauth_consumer table

Parameters

uid: User ID to save consumer record for

key: Consumer Key

secret: Consumer Secret

1 call to oauth_save_consumer()
oauth_generate_consumer in ./oauth.module
Generate a new consumer ID for a user.

File

./oauth.module, line 388

Code

function oauth_save_consumer($uid, $key, $secret) {
  db_query("INSERT INTO {oauth_consumer} VALUES (%d, '%s', '%s')", $uid, $key, $secret);
}