Skip to content

Instantly share code, notes, and snippets.

@semifor
Created November 30, 2011 01:23
Show Gist options
  • Select an option

  • Save semifor/1407524 to your computer and use it in GitHub Desktop.

Select an option

Save semifor/1407524 to your computer and use it in GitHub Desktop.
# tokens.pl
package My::Consumer;
sub key () { 'foo' }
sub secret () { 'eyes-only!' }
1;
=head1 SYNOPSIS
require 'tokens.pl';
my $nt = Net::Twitter::Lite->new(
consumer_key => My::Consumer->key,
consumer_secret => My::Consumer->secret,
);
=cut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment