Codebase list libnet-twitter-perl / ad15cce
New upstream version 4.01043 gregor herrmann 6 years ago
36 changed file(s) with 149 addition(s) and 93 deletion(s). Raw diff Collapse all Expand all
0 4.01043 2018-01-17
1 - deprecation notice: Twitter::API is the new Net::Twitter
2 - deprecated update_with_media
3 - doc and build updates
4 - remove debugger breakpoint (Oof!)
5
06 4.01042 2017-02-06
17 - deprecated contributors/contributees
28 - Fixed: follow_suggestions and follow_suggestions_for were reversed
0 This software is copyright (c) 2016 by Marc Mims.
0 This software is copyright (c) 2018 by Marc Mims.
11
22 This is free software; you can redistribute it and/or modify it under
33 the same terms as the Perl 5 programming language system itself.
1111
1212 --- The GNU General Public License, Version 1, February 1989 ---
1313
14 This software is Copyright (c) 2016 by Marc Mims.
14 This software is Copyright (c) 2018 by Marc Mims.
1515
1616 This is free software, licensed under:
1717
271271
272272 --- The Artistic License 1.0 ---
273273
274 This software is Copyright (c) 2016 by Marc Mims.
274 This software is Copyright (c) 2018 by Marc Mims.
275275
276276 This is free software, licensed under:
277277
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008.
0 # This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010.
11 Changes
22 LICENSE
33 MANIFEST
2121 configure_requires:
2222 ExtUtils::MakeMaker: '7.1101'
2323 dynamic_config: 0
24 generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150001'
24 generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150001'
2525 license: perl
2626 meta-spec:
2727 url: http://module-build.sourceforge.net/META-spec-v1.4.html
6767 bugtracker: http://github.com/semifor/Net-Twitter/issues
6868 homepage: https://github.com/semifor/Net-Twitter
6969 repository: https://github.com/semifor/Net-Twitter.git
70 version: '4.01042'
70 version: '4.01043'
7171 x_serialization_backend: 'YAML::Tiny version 1.69'
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008.
0 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010.
11 use strict;
22 use warnings;
33
6565 "utf8" => 0,
6666 "warnings" => 0
6767 },
68 "VERSION" => "4.01042",
68 "VERSION" => "4.01043",
6969 "test" => {
7070 "TESTS" => "t/*.t"
7171 }
4242 Net::Twitter::Manual::MigratingToV1_1.
4343
4444 DESCRIPTION
45 This module has been superseded by Twitter::API. Please update as soon
46 as you possibly can to use new features and the new API versions. This
47 module will no longer be supported.
48
4549 This module provides a perl interface to the Twitter APIs. See
46 <http://dev.twitter.com/doc> for a full description of the Twitter APIs.
50 <http://dev.twitter.com/docs> for a full description of the Twitter
51 APIs.
4752
4853 TWITTER API VERSION 1.1
4954 Twitter will (perhaps has by the time you read this) deprecated version
278283
279284 useragent
280285 The value for "User-Agent" HTTP header. It defaults to
281 "Net::Twitter/4.01042 (Perl)".
286 "Net::Twitter/4.01043 (Perl)".
282287
283288 source
284289 Twitter on longer uses the "source" parameter. Support for it
734739 Parameters: media_id, alt_text
735740 Required: media_id
736741
737 add metadata to media
742 Adds metadata -- alt text, in particular -- to a previously uploaded
743 media object, specified by its ID. (One knows this ID via the return
744 value of the preceding "upload" call.)
745
746 The "alt_text" parameter must have as its value a hashref containing
747 a single key-value pair. The key must be "text", and the value is
748 the alt text to assign to the media object. The text must be 400
749 characters or fewer in length.
738750
739751 Returns: HashRef
740752
23882400 <https://dev.twitter.com/rest/reference/post/account/update_profile_
23892401 image>
23902402
2391 update_with_media
2403 update_with_media DEPRECATED
23922404 update_with_media(status, media[])
23932405
23942406 Parameters: status, media[], possibly_sensitive,
23972409
23982410 Updates the authenticating user's status and attaches media for
23992411 upload.
2412
2413 Note that Twitter has marked this endpoint as deprecated, and
2414 recommends instead calling "upload", then (optionally)
2415 "create_media_metadata", then "update".
24002416
24012417 The "media[]" parameter is an arrayref with the following
24022418 interpretation:
24222438
24232439 Returns: Status
24242440
2425 Twitter API documentation: POST statuses/update_with_media
2426 <https://dev.twitter.com/rest/reference/post/statuses/update_with_me
2427 dia>
2428
24292441 upload
24302442 upload(media)
24312443
24322444 Parameters: media
24332445 Required: media
24342446
2435 Upload images to twitter without posting them on the timeline
2436
2437 Returns: Image
2447 Uploads an image to twitter without immediately posting it to the
2448 authenticating user's timeline. Its return-value hashref notably
2449 contains a "media_id" value that's useful as a parameter value in
2450 various other endpoint calls, such as "update" and
2451 "create_media_metadata".
2452
2453 Returns: HashRef
24382454
24392455 Twitter API documentation: POST media/upload
24402456 <https://dev.twitter.com/rest/reference/post/media/upload>
00 name = Net-Twitter
1 version = 4.01042
1 version = 4.01043
22 author = Marc Mims <mmims@cpan.org>
33 license = Perl_5
44 copyright_holder = Marc Mims
5 copyright_year = 2016
5 copyright_year = 2018
66
77 [GithubMeta]
88 [MetaResources]
00 package Net::Identica;
1 $Net::Identica::VERSION = '4.01042';
1 $Net::Identica::VERSION = '4.01043';
22 use Moose;
33
44 extends 'Net::Twitter::Core';
2121
2222 =head1 VERSION
2323
24 version 4.01042
24 version 4.01043
2525
2626 =head1 SYNOPSIS
2727
00 package Net::Twitter::API;
1 $Net::Twitter::API::VERSION = '4.01042';
1 $Net::Twitter::API::VERSION = '4.01043';
22 use Moose ();
33 use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
44 use Moose::Exporter;
116116 }
117117
118118 package Net::Twitter::Meta::Method;
119 $Net::Twitter::Meta::Method::VERSION = '4.01042';
119 $Net::Twitter::Meta::Method::VERSION = '4.01043';
120120 use Moose;
121121 use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
122122 extends 'Moose::Meta::Method';
163163
164164 =head1 VERSION
165165
166 version 4.01042
166 version 4.01043
167167
168168 =head1 SYNOPSIS
169169
00 package Net::Twitter::Core;
1 $Net::Twitter::Core::VERSION = '4.01042';
1 $Net::Twitter::Core::VERSION = '4.01043';
22 # ABSTRACT: A perl interface to the Twitter API
33
44 use 5.008001;
369369
370370 =head1 VERSION
371371
372 version 4.01042
372 version 4.01043
373373
374374 =head1 SYNOPSIS
375375
00 package Net::Twitter::Error;
1 $Net::Twitter::Error::VERSION = '4.01042';
1 $Net::Twitter::Error::VERSION = '4.01043';
22 use Moose;
33 use Try::Tiny;
44 use Devel::StackTrace;
115115
116116 =head1 VERSION
117117
118 version 4.01042
118 version 4.01043
119119
120120 =head1 SYNOPSIS
121121
33
44 =head1 VERSION
55
6 version 4.01042
6 version 4.01043
77
88 =head1 SYNOPSIS
99
00 package Net::Twitter::OAuth;
1 $Net::Twitter::OAuth::VERSION = '4.01042';
1 $Net::Twitter::OAuth::VERSION = '4.01043';
22 use Moose;
33
44 extends 'Net::Twitter::Core';
1818
1919 =head1 VERSION
2020
21 version 4.01042
21 version 4.01043
2222
2323 =head1 SYNOPSIS
2424
00 package Net::Twitter::Role::API::Lists;
1 $Net::Twitter::Role::API::Lists::VERSION = '4.01042';
1 $Net::Twitter::Role::API::Lists::VERSION = '4.01043';
22 use Moose::Role;
33 use Net::Twitter::API;
44 use DateTime::Format::Strptime;
1212
1313 =head1 VERSION
1414
15 version 4.01042
15 version 4.01043
1616
1717 =head1 SYNOPSIS
1818
00 package Net::Twitter::Role::API::REST;
1 $Net::Twitter::Role::API::REST::VERSION = '4.01042';
1 $Net::Twitter::Role::API::REST::VERSION = '4.01043';
22 use Moose::Role;
33 use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
44 use Net::Twitter::API;
17361736
17371737 =head1 VERSION
17381738
1739 version 4.01042
1739 version 4.01043
17401740
17411741 =head1 SYNOPSIS
17421742
00 package Net::Twitter::Role::API::RESTv1_1;
1 $Net::Twitter::Role::API::RESTv1_1::VERSION = '4.01042';
1 $Net::Twitter::Role::API::RESTv1_1::VERSION = '4.01043';
22 use Moose::Role;
33 use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
44 use Net::Twitter::API;
206206 );
207207
208208 twitter_api_method update_with_media => (
209 deprecated => 1,
209210 path => 'statuses/update_with_media',
210211 method => 'POST',
211212 params => [qw/
216217 returns => 'Status',
217218 description => <<'EOT',
218219 Updates the authenticating user's status and attaches media for upload.
220
221 Note that Twitter has marked this endpoint as B<deprecated>, and recommends
222 instead calling C<upload>, then (optionally) C<create_media_metadata>, then
223 C<update>.
219224
220225 The C<media[]> parameter is an arrayref with the following interpretation:
221226
21392144 params => [qw/media_id alt_text/],
21402145 required => [qw/media_id/],
21412146 returns => 'HashRef',
2142 description => 'add metadata to media',
2143 content_type => 'application/json'
2147 content_type => 'application/json',
2148 description => <<'EOT',
2149 Adds metadata -- alt text, in particular -- to a previously uploaded media
2150 object, specified by its ID. (One knows this ID via the return value of the
2151 preceding C<upload> call.)
2152
2153 The C<alt_text> parameter must have as its value a hashref containing a single
2154 key-value pair. The key must be C<text>, and the value is the alt text to assign
2155 to the media object. The text must be 400 characters or fewer in length.
2156 EOT
21442157 );
21452158
21462159 # infer screen_name or user_id from positional args for backwards compatibility
21842197
21852198 =head1 VERSION
21862199
2187 version 4.01042
2200 version 4.01043
21882201
21892202 =head1 SYNOPSIS
21902203
00 package Net::Twitter::Role::API::Search::Trends;
1 $Net::Twitter::Role::API::Search::Trends::VERSION = '4.01042';
1 $Net::Twitter::Role::API::Search::Trends::VERSION = '4.01043';
22 use Moose::Role;
33
44 after BUILD => sub {
2525
2626 =head1 VERSION
2727
28 version 4.01042
28 version 4.01043
2929
3030 =head1 SYNOPSIS
3131
00 package Net::Twitter::Role::API::Search;
1 $Net::Twitter::Role::API::Search::VERSION = '4.01042';
1 $Net::Twitter::Role::API::Search::VERSION = '4.01043';
22 use Moose::Role;
33 use Net::Twitter::API;
44 use DateTime::Format::Strptime;
5151
5252 =head1 VERSION
5353
54 version 4.01042
54 version 4.01043
5555
5656 =head1 SYNOPSIS
5757
00 package Net::Twitter::Role::API::TwitterVision;
1 $Net::Twitter::Role::API::TwitterVision::VERSION = '4.01042';
1 $Net::Twitter::Role::API::TwitterVision::VERSION = '4.01043';
22 use Moose::Role;
33
44 requires qw/credentials/;
4646
4747 =head1 VERSION
4848
49 version 4.01042
49 version 4.01043
5050
5151 =head1 SYNOPSIS
5252
00 package Net::Twitter::Role::API::Upload;
1 $Net::Twitter::Role::API::Upload::VERSION = '4.01042';
1 $Net::Twitter::Role::API::Upload::VERSION = '4.01043';
22 use Moose::Role;
33 use Net::Twitter::API;
44 use DateTime::Format::Strptime;
6464
6565 =head1 VERSION
6666
67 version 4.01042
67 version 4.01043
6868
6969 =head1 SYNOPSIS
7070
00 package Net::Twitter::Role::API::UploadMedia;
1 $Net::Twitter::Role::API::UploadMedia::VERSION = '4.01042';
1 $Net::Twitter::Role::API::UploadMedia::VERSION = '4.01043';
22 use Moose::Role;
33 use Net::Twitter::API;
44 use DateTime::Format::Strptime;
2121 params => [qw/media/],
2222 required => [qw/media/],
2323 booleans => [qw/possibly_sensitive display_coordinates/],
24 returns => 'Image',
25 description => 'Upload images to twitter without posting them on the timeline'
24 returns => 'HashRef',
25 description => <<'',
26 Uploads an image to twitter without immediately posting it to the
27 authenticating user's timeline. Its return-value hashref notably contains a
28 C<media_id> value that's useful as a parameter value in various other
29 endpoint calls, such as C<update> and C<create_media_metadata>.
30
2631 );
2732
2833 twitter_api_method upload_status => (
4550
4651 =head1 VERSION
4752
48 version 4.01042
53 version 4.01043
4954
5055 =head1 SYNOPSIS
5156
00 package Net::Twitter::Role::AppAuth;
1 $Net::Twitter::Role::AppAuth::VERSION = '4.01042';
1 $Net::Twitter::Role::AppAuth::VERSION = '4.01043';
22 use Moose::Role;
33 use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
44 use HTTP::Request::Common qw/POST/;
118118
119119 =head1 VERSION
120120
121 version 4.01042
121 version 4.01043
122122
123123 =head1 SYNOPSIS
124124
00 package Net::Twitter::Role::AutoCursor;
1 $Net::Twitter::Role::AutoCursor::VERSION = '4.01042';
1 $Net::Twitter::Role::AutoCursor::VERSION = '4.01043';
22 use MooseX::Role::Parameterized;
33
44 parameter max_calls => isa => 'Int', default => 16;
6767
6868 =head1 VERSION
6969
70 version 4.01042
70 version 4.01043
7171
7272 =head1 SYNOPSIS
7373
00 package Net::Twitter::Role::InflateObjects;
1 $Net::Twitter::Role::InflateObjects::VERSION = '4.01042';
1 $Net::Twitter::Role::InflateObjects::VERSION = '4.01043';
22 use Moose::Role;
33 use namespace::autoclean;
44 use Data::Visitor::Callback;
1010
1111 =head1 VERSION
1212
13 version 4.01042
13 version 4.01043
1414
1515 =cut
1616
00 package Net::Twitter::Role::Legacy;
1 $Net::Twitter::Role::Legacy::VERSION = '4.01042';
1 $Net::Twitter::Role::Legacy::VERSION = '4.01043';
22 use Moose::Role;
33
44 use namespace::autoclean;
4646
4747 =head1 VERSION
4848
49 version 4.01042
49 version 4.01043
5050
5151 =head1 SYNOPSIS
5252
00 package Net::Twitter::Role::OAuth;
1 $Net::Twitter::Role::OAuth::VERSION = '4.01042';
1 $Net::Twitter::Role::OAuth::VERSION = '4.01043';
22 use Moose::Role;
33 use HTTP::Request::Common;
44 use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
266266
267267 =head1 VERSION
268268
269 version 4.01042
269 version 4.01043
270270
271271 =head1 SYNOPSIS
272272
00 package Net::Twitter::Role::RateLimit;
1 $Net::Twitter::Role::RateLimit::VERSION = '4.01042';
1 $Net::Twitter::Role::RateLimit::VERSION = '4.01043';
22 use Moose::Role;
33 use namespace::autoclean;
44 use Try::Tiny;
1010
1111 =head1 VERSION
1212
13 version 4.01042
13 version 4.01043
1414
1515 =head1 SYNOPSIS
1616
00 package Net::Twitter::Role::RetryOnError;
1 $Net::Twitter::Role::RetryOnError::VERSION = '4.01042';
1 $Net::Twitter::Role::RetryOnError::VERSION = '4.01043';
22 use Moose::Role;
33 use namespace::autoclean;
44 use Time::HiRes;
1111
1212 =head1 VERSION
1313
14 version 4.01042
14 version 4.01043
1515
1616 =head1 SYNOPSIS
1717
00 package Net::Twitter::Role::SimulateCursors;
1 $Net::Twitter::Role::SimulateCursors::VERSION = '4.01042';
1 $Net::Twitter::Role::SimulateCursors::VERSION = '4.01043';
22 use Moose::Role;
33 use namespace::autoclean;
44
4040
4141 =head1 VERSION
4242
43 version 4.01042
43 version 4.01043
4444
4545 =head1 SYNOPSIS
4646
00 package Net::Twitter::Role::WrapError;
1 $Net::Twitter::Role::WrapError::VERSION = '4.01042';
1 $Net::Twitter::Role::WrapError::VERSION = '4.01043';
22 use Moose::Role;
33 use Try::Tiny;
44 use Scalar::Util qw/blessed/;
3434
3535 my $r = try { $next->($self, $res, $sythetic_args, $datetime_parser) }
3636 catch {
37 $DB::single = 1;
3837 die $_ unless blessed $_ && $_->isa('Net::Twitter::Error');
3938
4039 $self->_twitter_error($_->has_twitter_error
6362
6463 =head1 VERSION
6564
66 version 4.01042
65 version 4.01043
6766
6867 =head1 SYNOPSIS
6968
00 package Net::Twitter::Role::WrapResult;
1 $Net::Twitter::Role::WrapResult::VERSION = '4.01042';
1 $Net::Twitter::Role::WrapResult::VERSION = '4.01043';
22 use Moose::Role;
33 use Net::Twitter::WrappedResult;
44
2828
2929 =head1 VERSION
3030
31 version 4.01042
31 version 4.01043
3232
3333 =head1 SYNOPSIS
3434
00 package Net::Twitter::Search;
1 $Net::Twitter::Search::VERSION = '4.01042';
1 $Net::Twitter::Search::VERSION = '4.01043';
22 use Moose;
33
44 extends 'Net::Twitter::Core';
1818
1919 =head1 VERSION
2020
21 version 4.01042
21 version 4.01043
2222
2323 =head1 SYNOPSIS
2424
00 package Net::Twitter::Types;
1 $Net::Twitter::Types::VERSION = '4.01042';
1 $Net::Twitter::Types::VERSION = '4.01043';
22 use Moose::Util::TypeConstraints;
33 use URI;
44
1818
1919 =head1 VERSION
2020
21 version 4.01042
21 version 4.01043
2222
2323 =cut
00 package Net::Twitter::WrappedResult;
1 $Net::Twitter::WrappedResult::VERSION = '4.01042';
1 $Net::Twitter::WrappedResult::VERSION = '4.01043';
22 use Moose;
33
44 # decoded JSON Twitter API response
4242
4343 =head1 VERSION
4444
45 version 4.01042
45 version 4.01043
4646
4747 =head1 SYNOPSIS
4848
00 package Net::Twitter;
1 $Net::Twitter::VERSION = '4.01042';
1 $Net::Twitter::VERSION = '4.01043';
22 use Moose;
33 use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/;
44 use JSON::MaybeXS;
159159
160160 =head1 VERSION
161161
162 version 4.01042
162 version 4.01043
163163
164164 =head1 DESCRIPTION
165165
166 See Net/Twitter.pod
166 This module has been superseded by L<Twitter::API>. Please update your applications and/or downstream dependent modules as soon as possible.
33
44 =head1 VERSION
55
6 version 4.01042
6 version 4.01043
77
88 =head1 SYNOPSIS
99
5151
5252 =head1 DESCRIPTION
5353
54 This module has been superseded by L<Twitter::API>. Please update as
55 soon as you possibly can to use new features and the new API
56 versions. This module will no longer be supported.
57
5458 This module provides a perl interface to the Twitter APIs. See
55 L<http://dev.twitter.com/doc> for a full description of the Twitter APIs.
59 L<http://dev.twitter.com/docs> for a full description of the Twitter APIs.
5660
5761 =head1 TWITTER API VERSION 1.1
5862
303307 =item useragent
304308
305309 The value for C<User-Agent> HTTP header. It defaults to
306 "Net::Twitter/4.01042 (Perl)".
310 "Net::Twitter/4.01043 (Perl)".
307311
308312 =item source
309313
888892
889893 =back
890894
891 add metadata to media
895 Adds metadata -- alt text, in particular -- to a previously uploaded media
896 object, specified by its ID. (One knows this ID via the return value of the
897 preceding C<upload> call.)
898
899 The C<alt_text> parameter must have as its value a hashref containing a single
900 key-value pair. The key must be C<text>, and the value is the alt text to assign
901 to the media object. The text must be 400 characters or fewer in length.
902
892903
893904 Returns: HashRef
894905
32373248
32383249 Twitter API documentation: L<POST account/update_profile_image|https://dev.twitter.com/rest/reference/post/account/update_profile_image>
32393250
3240 =item B<update_with_media>
3251 =item B<update_with_media> B<DEPRECATED>
32413252
32423253 =item B<update_with_media(status, media[])>
32433254
32523263 =back
32533264
32543265 Updates the authenticating user's status and attaches media for upload.
3266
3267 Note that Twitter has marked this endpoint as B<deprecated>, and recommends
3268 instead calling C<upload>, then (optionally) C<create_media_metadata>, then
3269 C<update>.
32553270
32563271 The C<media[]> parameter is an arrayref with the following interpretation:
32573272
32773292
32783293 Returns: Status
32793294
3280 Twitter API documentation: L<POST statuses/update_with_media|https://dev.twitter.com/rest/reference/post/statuses/update_with_media>
3281
32823295 =item B<upload>
32833296
32843297 =item B<upload(media)>
32933306
32943307 =back
32953308
3296 Upload images to twitter without posting them on the timeline
3297
3298 Returns: Image
3309 Uploads an image to twitter without immediately posting it to the
3310 authenticating user's timeline. Its return-value hashref notably contains a
3311 C<media_id> value that's useful as a parameter value in various other
3312 endpoint calls, such as C<update> and C<create_media_metadata>.
3313
3314
3315 Returns: HashRef
32993316
33003317 Twitter API documentation: L<POST media/upload|https://dev.twitter.com/rest/reference/post/media/upload>
33013318