Ignore:
Timestamp:
Sep 8, 2010, 9:32:01 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
ad7cc2f
Parents:
2c5ee3e
Message:
Twitter: Allow users to specify their own consumer key/secret.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Twitter/lib/BarnOwl/Module/Twitter/Handle.pm

    r5d59c1e r8c6e2c1  
    6565        publish_tweets   => 0,
    6666        show_mentions    => 1,
    67         %$cfg
     67        oauth_key        => BARNOWL_CONSUMER_KEY,
     68        oauth_secret     => BARNOWL_CONSUMER_SECRET,
     69        %$cfg,
    6870       };
    6971
     
    8789        $username = delete $twitter_args{username};
    8890        $password = delete $twitter_args{password};
    89         $twitter_args{consumer_key}    = BARNOWL_CONSUMER_KEY;
    90         $twitter_args{consumer_secret} = BARNOWL_CONSUMER_SECRET;
     91        $twitter_args{consumer_key}    = $cfg->{oauth_key};
     92        $twitter_args{consumer_secret} = $cfg->{oauth_secret};
    9193    } else {
    9294        BarnOwl::error("Please upgrade your version of Net::Twitter::Lite to support xAuth.");
Note: See TracChangeset for help on using the changeset viewer.