forked from sysread/Reddit-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jeff Ober
committed
May 21, 2012
1 parent
2b6e746
commit 814ebd6
Showing
5 changed files
with
70 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,17 +40,6 @@ Wraps C<Reddit::API::get_comments>, implicitly providing the permalink parameter | |
=back | ||
=head1 INTERNAL ROUTINES | ||
=over | ||
=item set_likes | ||
Conditionally sets the value of "likes" since it may validly be true, false, or | ||
neither, in the case of no vote being cast. | ||
=back | ||
=head1 AUTHOR | ||
Jeff Ober L<mailto:[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,56 @@ sub send { | |
} | ||
} | ||
|
||
1; | ||
1; | ||
|
||
__END__ | ||
=pod | ||
=head1 NAME | ||
Reddit::API::Request | ||
=head1 DESCRIPTION | ||
HTTP request driver for Reddit::API. Uses LWP to perform GET and POST requests | ||
to the reddit.com servers. This module is used internally by the Reddit::API | ||
and is not designed for external use. | ||
=head1 SUBROUTINES/METHODS | ||
=over | ||
=item new(%params) | ||
Creates a new Reddit::Request::API instance. Parameters: | ||
user_agent User agent string | ||
url Target URL | ||
query Hash of query parameters | ||
post_data Hash of POST parameters | ||
cookie Reddit session cookie | ||
modhash Reddit session modhash | ||
=item build_query($query) | ||
Builds a URI-escaped query string from a hash of query parameters. | ||
=item send | ||
Performs the HTTP request and returns the result. Croaks on HTTP error. | ||
=back | ||
=head1 AUTHOR | ||
Jeff Ober L<mailto:[email protected]> | ||
=head1 LICENSE | ||
BSD license | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters