Author: Not specified Language: text
Description: Not specified Timestamp: 2013-05-13 14:31:53 +0000
View raw paste Reply
  1. $Consumer = new OAuthConsumerModel(Configuration::getDataStore());
  2. $Consumer->setConsumerCreateDate(time());
  3. $Consumer->setConsumerKey(OAuthProviderWrapper::generateToken());
  4. $Consumer->setConsumerSecret(OAuthProviderWrapper::generateToken());
  5. $Consumer->save();
  6.  
  7. echo "Consumer key: " . $Consumer->getConsumerKey() . "<br>Consumer secret: " . $Consumer->getConsumerSecret();
View raw paste Reply