Skip to content

Commit

Permalink
Changed upload method name from post to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
htgc committed Nov 24, 2010
1 parent ff660c3 commit 32825eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ Revision history for Net-Twitpic
0.0.1 Wed Nov 24 00:59:23 2010
Initial release.

0.0.4 Wed Nov 24 23:30:00 2010
Changed upload method name from 'post' to 'upload'.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Net-Twitpic version 0.0.1
Net-Twitpic version 0.0.4

Net::Twitpic is upload module for Twitpic using APIv2.

Expand Down
8 changes: 4 additions & 4 deletions lib/Net/Twitpic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;
use strict;
use Carp;

use version; our $VERSION = qv('0.0.3');
use version; our $VERSION = qv('0.0.4');

use Digest::HMAC_SHA1 qw/hmac_sha1/;
use WWW::Curl::Easy;
Expand Down Expand Up @@ -67,7 +67,7 @@ sub _get_signature {
return $hmac->b64digest . '%3D';
}

sub post {
sub upload {
my $self = shift;
my %args = @_;
my $message = $args{message} || '';
Expand Down Expand Up @@ -118,7 +118,7 @@ Net::Twitpic - [Twitpic upload module using APIv2]
=head1 VERSION
This document describes Net::Twitpic version 0.0.1
This document describes Net::Twitpic version 0.0.4
=head1 SYNOPSIS
Expand All @@ -133,7 +133,7 @@ This document describes Net::Twitpic version 0.0.1
api_key => 'TWITPIC-API-KEY'
);
my $response = $twitpic->post(
my $response = $twitpic->upload(
message => 'Hello',
media => '/file/to/path'
);
Expand Down

0 comments on commit 32825eb

Please sign in to comment.