New upstream version 4.01043
gregor herrmann
6 years ago
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 | ||
0 | 6 | 4.01042 2017-02-06 |
1 | 7 | - deprecated contributors/contributees |
2 | 8 | - 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. | |
1 | 1 | |
2 | 2 | This is free software; you can redistribute it and/or modify it under |
3 | 3 | the same terms as the Perl 5 programming language system itself. |
11 | 11 | |
12 | 12 | --- The GNU General Public License, Version 1, February 1989 --- |
13 | 13 | |
14 | This software is Copyright (c) 2016 by Marc Mims. | |
14 | This software is Copyright (c) 2018 by Marc Mims. | |
15 | 15 | |
16 | 16 | This is free software, licensed under: |
17 | 17 | |
271 | 271 | |
272 | 272 | --- The Artistic License 1.0 --- |
273 | 273 | |
274 | This software is Copyright (c) 2016 by Marc Mims. | |
274 | This software is Copyright (c) 2018 by Marc Mims. | |
275 | 275 | |
276 | 276 | This is free software, licensed under: |
277 | 277 |
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. | |
1 | 1 | Changes |
2 | 2 | LICENSE |
3 | 3 | MANIFEST |
21 | 21 | configure_requires: |
22 | 22 | ExtUtils::MakeMaker: '7.1101' |
23 | 23 | 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' | |
25 | 25 | license: perl |
26 | 26 | meta-spec: |
27 | 27 | url: http://module-build.sourceforge.net/META-spec-v1.4.html |
67 | 67 | bugtracker: http://github.com/semifor/Net-Twitter/issues |
68 | 68 | homepage: https://github.com/semifor/Net-Twitter |
69 | 69 | repository: https://github.com/semifor/Net-Twitter.git |
70 | version: '4.01042' | |
70 | version: '4.01043' | |
71 | 71 | 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. | |
1 | 1 | use strict; |
2 | 2 | use warnings; |
3 | 3 | |
65 | 65 | "utf8" => 0, |
66 | 66 | "warnings" => 0 |
67 | 67 | }, |
68 | "VERSION" => "4.01042", | |
68 | "VERSION" => "4.01043", | |
69 | 69 | "test" => { |
70 | 70 | "TESTS" => "t/*.t" |
71 | 71 | } |
42 | 42 | Net::Twitter::Manual::MigratingToV1_1. |
43 | 43 | |
44 | 44 | 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 | ||
45 | 49 | 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. | |
47 | 52 | |
48 | 53 | TWITTER API VERSION 1.1 |
49 | 54 | Twitter will (perhaps has by the time you read this) deprecated version |
278 | 283 | |
279 | 284 | useragent |
280 | 285 | The value for "User-Agent" HTTP header. It defaults to |
281 | "Net::Twitter/4.01042 (Perl)". | |
286 | "Net::Twitter/4.01043 (Perl)". | |
282 | 287 | |
283 | 288 | source |
284 | 289 | Twitter on longer uses the "source" parameter. Support for it |
734 | 739 | Parameters: media_id, alt_text |
735 | 740 | Required: media_id |
736 | 741 | |
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. | |
738 | 750 | |
739 | 751 | Returns: HashRef |
740 | 752 | |
2388 | 2400 | <https://dev.twitter.com/rest/reference/post/account/update_profile_ |
2389 | 2401 | image> |
2390 | 2402 | |
2391 | update_with_media | |
2403 | update_with_media DEPRECATED | |
2392 | 2404 | update_with_media(status, media[]) |
2393 | 2405 | |
2394 | 2406 | Parameters: status, media[], possibly_sensitive, |
2397 | 2409 | |
2398 | 2410 | Updates the authenticating user's status and attaches media for |
2399 | 2411 | 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". | |
2400 | 2416 | |
2401 | 2417 | The "media[]" parameter is an arrayref with the following |
2402 | 2418 | interpretation: |
2422 | 2438 | |
2423 | 2439 | Returns: Status |
2424 | 2440 | |
2425 | Twitter API documentation: POST statuses/update_with_media | |
2426 | <https://dev.twitter.com/rest/reference/post/statuses/update_with_me | |
2427 | dia> | |
2428 | ||
2429 | 2441 | upload |
2430 | 2442 | upload(media) |
2431 | 2443 | |
2432 | 2444 | Parameters: media |
2433 | 2445 | Required: media |
2434 | 2446 | |
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 | |
2438 | 2454 | |
2439 | 2455 | Twitter API documentation: POST media/upload |
2440 | 2456 | <https://dev.twitter.com/rest/reference/post/media/upload> |
0 | 0 | name = Net-Twitter |
1 | version = 4.01042 | |
1 | version = 4.01043 | |
2 | 2 | author = Marc Mims <mmims@cpan.org> |
3 | 3 | license = Perl_5 |
4 | 4 | copyright_holder = Marc Mims |
5 | copyright_year = 2016 | |
5 | copyright_year = 2018 | |
6 | 6 | |
7 | 7 | [GithubMeta] |
8 | 8 | [MetaResources] |
0 | 0 | package Net::Identica; |
1 | $Net::Identica::VERSION = '4.01042'; | |
1 | $Net::Identica::VERSION = '4.01043'; | |
2 | 2 | use Moose; |
3 | 3 | |
4 | 4 | extends 'Net::Twitter::Core'; |
21 | 21 | |
22 | 22 | =head1 VERSION |
23 | 23 | |
24 | version 4.01042 | |
24 | version 4.01043 | |
25 | 25 | |
26 | 26 | =head1 SYNOPSIS |
27 | 27 |
0 | 0 | package Net::Twitter::API; |
1 | $Net::Twitter::API::VERSION = '4.01042'; | |
1 | $Net::Twitter::API::VERSION = '4.01043'; | |
2 | 2 | use Moose (); |
3 | 3 | use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; |
4 | 4 | use Moose::Exporter; |
116 | 116 | } |
117 | 117 | |
118 | 118 | package Net::Twitter::Meta::Method; |
119 | $Net::Twitter::Meta::Method::VERSION = '4.01042'; | |
119 | $Net::Twitter::Meta::Method::VERSION = '4.01043'; | |
120 | 120 | use Moose; |
121 | 121 | use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; |
122 | 122 | extends 'Moose::Meta::Method'; |
163 | 163 | |
164 | 164 | =head1 VERSION |
165 | 165 | |
166 | version 4.01042 | |
166 | version 4.01043 | |
167 | 167 | |
168 | 168 | =head1 SYNOPSIS |
169 | 169 |
0 | 0 | package Net::Twitter::Core; |
1 | $Net::Twitter::Core::VERSION = '4.01042'; | |
1 | $Net::Twitter::Core::VERSION = '4.01043'; | |
2 | 2 | # ABSTRACT: A perl interface to the Twitter API |
3 | 3 | |
4 | 4 | use 5.008001; |
369 | 369 | |
370 | 370 | =head1 VERSION |
371 | 371 | |
372 | version 4.01042 | |
372 | version 4.01043 | |
373 | 373 | |
374 | 374 | =head1 SYNOPSIS |
375 | 375 |
0 | 0 | package Net::Twitter::Error; |
1 | $Net::Twitter::Error::VERSION = '4.01042'; | |
1 | $Net::Twitter::Error::VERSION = '4.01043'; | |
2 | 2 | use Moose; |
3 | 3 | use Try::Tiny; |
4 | 4 | use Devel::StackTrace; |
115 | 115 | |
116 | 116 | =head1 VERSION |
117 | 117 | |
118 | version 4.01042 | |
118 | version 4.01043 | |
119 | 119 | |
120 | 120 | =head1 SYNOPSIS |
121 | 121 |
0 | 0 | package Net::Twitter::OAuth; |
1 | $Net::Twitter::OAuth::VERSION = '4.01042'; | |
1 | $Net::Twitter::OAuth::VERSION = '4.01043'; | |
2 | 2 | use Moose; |
3 | 3 | |
4 | 4 | extends 'Net::Twitter::Core'; |
18 | 18 | |
19 | 19 | =head1 VERSION |
20 | 20 | |
21 | version 4.01042 | |
21 | version 4.01043 | |
22 | 22 | |
23 | 23 | =head1 SYNOPSIS |
24 | 24 |
0 | 0 | package Net::Twitter::Role::API::Lists; |
1 | $Net::Twitter::Role::API::Lists::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::API::Lists::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Net::Twitter::API; |
4 | 4 | use DateTime::Format::Strptime; |
12 | 12 | |
13 | 13 | =head1 VERSION |
14 | 14 | |
15 | version 4.01042 | |
15 | version 4.01043 | |
16 | 16 | |
17 | 17 | =head1 SYNOPSIS |
18 | 18 |
0 | 0 | package Net::Twitter::Role::API::REST; |
1 | $Net::Twitter::Role::API::REST::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::API::REST::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; |
4 | 4 | use Net::Twitter::API; |
1736 | 1736 | |
1737 | 1737 | =head1 VERSION |
1738 | 1738 | |
1739 | version 4.01042 | |
1739 | version 4.01043 | |
1740 | 1740 | |
1741 | 1741 | =head1 SYNOPSIS |
1742 | 1742 |
0 | 0 | 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'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; |
4 | 4 | use Net::Twitter::API; |
206 | 206 | ); |
207 | 207 | |
208 | 208 | twitter_api_method update_with_media => ( |
209 | deprecated => 1, | |
209 | 210 | path => 'statuses/update_with_media', |
210 | 211 | method => 'POST', |
211 | 212 | params => [qw/ |
216 | 217 | returns => 'Status', |
217 | 218 | description => <<'EOT', |
218 | 219 | 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>. | |
219 | 224 | |
220 | 225 | The C<media[]> parameter is an arrayref with the following interpretation: |
221 | 226 | |
2139 | 2144 | params => [qw/media_id alt_text/], |
2140 | 2145 | required => [qw/media_id/], |
2141 | 2146 | 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 | |
2144 | 2157 | ); |
2145 | 2158 | |
2146 | 2159 | # infer screen_name or user_id from positional args for backwards compatibility |
2184 | 2197 | |
2185 | 2198 | =head1 VERSION |
2186 | 2199 | |
2187 | version 4.01042 | |
2200 | version 4.01043 | |
2188 | 2201 | |
2189 | 2202 | =head1 SYNOPSIS |
2190 | 2203 |
0 | 0 | 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'; | |
2 | 2 | use Moose::Role; |
3 | 3 | |
4 | 4 | after BUILD => sub { |
25 | 25 | |
26 | 26 | =head1 VERSION |
27 | 27 | |
28 | version 4.01042 | |
28 | version 4.01043 | |
29 | 29 | |
30 | 30 | =head1 SYNOPSIS |
31 | 31 |
0 | 0 | package Net::Twitter::Role::API::Search; |
1 | $Net::Twitter::Role::API::Search::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::API::Search::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Net::Twitter::API; |
4 | 4 | use DateTime::Format::Strptime; |
51 | 51 | |
52 | 52 | =head1 VERSION |
53 | 53 | |
54 | version 4.01042 | |
54 | version 4.01043 | |
55 | 55 | |
56 | 56 | =head1 SYNOPSIS |
57 | 57 |
0 | 0 | package Net::Twitter::Role::API::TwitterVision; |
1 | $Net::Twitter::Role::API::TwitterVision::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::API::TwitterVision::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | |
4 | 4 | requires qw/credentials/; |
46 | 46 | |
47 | 47 | =head1 VERSION |
48 | 48 | |
49 | version 4.01042 | |
49 | version 4.01043 | |
50 | 50 | |
51 | 51 | =head1 SYNOPSIS |
52 | 52 |
0 | 0 | package Net::Twitter::Role::API::Upload; |
1 | $Net::Twitter::Role::API::Upload::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::API::Upload::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Net::Twitter::API; |
4 | 4 | use DateTime::Format::Strptime; |
64 | 64 | |
65 | 65 | =head1 VERSION |
66 | 66 | |
67 | version 4.01042 | |
67 | version 4.01043 | |
68 | 68 | |
69 | 69 | =head1 SYNOPSIS |
70 | 70 |
0 | 0 | package Net::Twitter::Role::API::UploadMedia; |
1 | $Net::Twitter::Role::API::UploadMedia::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::API::UploadMedia::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Net::Twitter::API; |
4 | 4 | use DateTime::Format::Strptime; |
21 | 21 | params => [qw/media/], |
22 | 22 | required => [qw/media/], |
23 | 23 | 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 | ||
26 | 31 | ); |
27 | 32 | |
28 | 33 | twitter_api_method upload_status => ( |
45 | 50 | |
46 | 51 | =head1 VERSION |
47 | 52 | |
48 | version 4.01042 | |
53 | version 4.01043 | |
49 | 54 | |
50 | 55 | =head1 SYNOPSIS |
51 | 56 |
0 | 0 | package Net::Twitter::Role::AppAuth; |
1 | $Net::Twitter::Role::AppAuth::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::AppAuth::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; |
4 | 4 | use HTTP::Request::Common qw/POST/; |
118 | 118 | |
119 | 119 | =head1 VERSION |
120 | 120 | |
121 | version 4.01042 | |
121 | version 4.01043 | |
122 | 122 | |
123 | 123 | =head1 SYNOPSIS |
124 | 124 |
0 | 0 | package Net::Twitter::Role::AutoCursor; |
1 | $Net::Twitter::Role::AutoCursor::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::AutoCursor::VERSION = '4.01043'; | |
2 | 2 | use MooseX::Role::Parameterized; |
3 | 3 | |
4 | 4 | parameter max_calls => isa => 'Int', default => 16; |
67 | 67 | |
68 | 68 | =head1 VERSION |
69 | 69 | |
70 | version 4.01042 | |
70 | version 4.01043 | |
71 | 71 | |
72 | 72 | =head1 SYNOPSIS |
73 | 73 |
0 | 0 | package Net::Twitter::Role::InflateObjects; |
1 | $Net::Twitter::Role::InflateObjects::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::InflateObjects::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use namespace::autoclean; |
4 | 4 | use Data::Visitor::Callback; |
10 | 10 | |
11 | 11 | =head1 VERSION |
12 | 12 | |
13 | version 4.01042 | |
13 | version 4.01043 | |
14 | 14 | |
15 | 15 | =cut |
16 | 16 |
0 | 0 | package Net::Twitter::Role::Legacy; |
1 | $Net::Twitter::Role::Legacy::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::Legacy::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | |
4 | 4 | use namespace::autoclean; |
46 | 46 | |
47 | 47 | =head1 VERSION |
48 | 48 | |
49 | version 4.01042 | |
49 | version 4.01043 | |
50 | 50 | |
51 | 51 | =head1 SYNOPSIS |
52 | 52 |
0 | 0 | package Net::Twitter::Role::OAuth; |
1 | $Net::Twitter::Role::OAuth::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::OAuth::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use HTTP::Request::Common; |
4 | 4 | use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; |
266 | 266 | |
267 | 267 | =head1 VERSION |
268 | 268 | |
269 | version 4.01042 | |
269 | version 4.01043 | |
270 | 270 | |
271 | 271 | =head1 SYNOPSIS |
272 | 272 |
0 | 0 | package Net::Twitter::Role::RateLimit; |
1 | $Net::Twitter::Role::RateLimit::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::RateLimit::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use namespace::autoclean; |
4 | 4 | use Try::Tiny; |
10 | 10 | |
11 | 11 | =head1 VERSION |
12 | 12 | |
13 | version 4.01042 | |
13 | version 4.01043 | |
14 | 14 | |
15 | 15 | =head1 SYNOPSIS |
16 | 16 |
0 | 0 | package Net::Twitter::Role::RetryOnError; |
1 | $Net::Twitter::Role::RetryOnError::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::RetryOnError::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use namespace::autoclean; |
4 | 4 | use Time::HiRes; |
11 | 11 | |
12 | 12 | =head1 VERSION |
13 | 13 | |
14 | version 4.01042 | |
14 | version 4.01043 | |
15 | 15 | |
16 | 16 | =head1 SYNOPSIS |
17 | 17 |
0 | 0 | package Net::Twitter::Role::SimulateCursors; |
1 | $Net::Twitter::Role::SimulateCursors::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::SimulateCursors::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use namespace::autoclean; |
4 | 4 | |
40 | 40 | |
41 | 41 | =head1 VERSION |
42 | 42 | |
43 | version 4.01042 | |
43 | version 4.01043 | |
44 | 44 | |
45 | 45 | =head1 SYNOPSIS |
46 | 46 |
0 | 0 | package Net::Twitter::Role::WrapError; |
1 | $Net::Twitter::Role::WrapError::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::WrapError::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Try::Tiny; |
4 | 4 | use Scalar::Util qw/blessed/; |
34 | 34 | |
35 | 35 | my $r = try { $next->($self, $res, $sythetic_args, $datetime_parser) } |
36 | 36 | catch { |
37 | $DB::single = 1; | |
38 | 37 | die $_ unless blessed $_ && $_->isa('Net::Twitter::Error'); |
39 | 38 | |
40 | 39 | $self->_twitter_error($_->has_twitter_error |
63 | 62 | |
64 | 63 | =head1 VERSION |
65 | 64 | |
66 | version 4.01042 | |
65 | version 4.01043 | |
67 | 66 | |
68 | 67 | =head1 SYNOPSIS |
69 | 68 |
0 | 0 | package Net::Twitter::Role::WrapResult; |
1 | $Net::Twitter::Role::WrapResult::VERSION = '4.01042'; | |
1 | $Net::Twitter::Role::WrapResult::VERSION = '4.01043'; | |
2 | 2 | use Moose::Role; |
3 | 3 | use Net::Twitter::WrappedResult; |
4 | 4 | |
28 | 28 | |
29 | 29 | =head1 VERSION |
30 | 30 | |
31 | version 4.01042 | |
31 | version 4.01043 | |
32 | 32 | |
33 | 33 | =head1 SYNOPSIS |
34 | 34 |
0 | 0 | package Net::Twitter::Search; |
1 | $Net::Twitter::Search::VERSION = '4.01042'; | |
1 | $Net::Twitter::Search::VERSION = '4.01043'; | |
2 | 2 | use Moose; |
3 | 3 | |
4 | 4 | extends 'Net::Twitter::Core'; |
18 | 18 | |
19 | 19 | =head1 VERSION |
20 | 20 | |
21 | version 4.01042 | |
21 | version 4.01043 | |
22 | 22 | |
23 | 23 | =head1 SYNOPSIS |
24 | 24 |
0 | 0 | package Net::Twitter::Types; |
1 | $Net::Twitter::Types::VERSION = '4.01042'; | |
1 | $Net::Twitter::Types::VERSION = '4.01043'; | |
2 | 2 | use Moose::Util::TypeConstraints; |
3 | 3 | use URI; |
4 | 4 | |
18 | 18 | |
19 | 19 | =head1 VERSION |
20 | 20 | |
21 | version 4.01042 | |
21 | version 4.01043 | |
22 | 22 | |
23 | 23 | =cut |
0 | 0 | package Net::Twitter::WrappedResult; |
1 | $Net::Twitter::WrappedResult::VERSION = '4.01042'; | |
1 | $Net::Twitter::WrappedResult::VERSION = '4.01043'; | |
2 | 2 | use Moose; |
3 | 3 | |
4 | 4 | # decoded JSON Twitter API response |
42 | 42 | |
43 | 43 | =head1 VERSION |
44 | 44 | |
45 | version 4.01042 | |
45 | version 4.01043 | |
46 | 46 | |
47 | 47 | =head1 SYNOPSIS |
48 | 48 |
0 | 0 | package Net::Twitter; |
1 | $Net::Twitter::VERSION = '4.01042'; | |
1 | $Net::Twitter::VERSION = '4.01043'; | |
2 | 2 | use Moose; |
3 | 3 | use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; |
4 | 4 | use JSON::MaybeXS; |
159 | 159 | |
160 | 160 | =head1 VERSION |
161 | 161 | |
162 | version 4.01042 | |
162 | version 4.01043 | |
163 | 163 | |
164 | 164 | =head1 DESCRIPTION |
165 | 165 | |
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. |
3 | 3 | |
4 | 4 | =head1 VERSION |
5 | 5 | |
6 | version 4.01042 | |
6 | version 4.01043 | |
7 | 7 | |
8 | 8 | =head1 SYNOPSIS |
9 | 9 | |
51 | 51 | |
52 | 52 | =head1 DESCRIPTION |
53 | 53 | |
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 | ||
54 | 58 | 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. | |
56 | 60 | |
57 | 61 | =head1 TWITTER API VERSION 1.1 |
58 | 62 | |
303 | 307 | =item useragent |
304 | 308 | |
305 | 309 | The value for C<User-Agent> HTTP header. It defaults to |
306 | "Net::Twitter/4.01042 (Perl)". | |
310 | "Net::Twitter/4.01043 (Perl)". | |
307 | 311 | |
308 | 312 | =item source |
309 | 313 | |
888 | 892 | |
889 | 893 | =back |
890 | 894 | |
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 | ||
892 | 903 | |
893 | 904 | Returns: HashRef |
894 | 905 | |
3237 | 3248 | |
3238 | 3249 | Twitter API documentation: L<POST account/update_profile_image|https://dev.twitter.com/rest/reference/post/account/update_profile_image> |
3239 | 3250 | |
3240 | =item B<update_with_media> | |
3251 | =item B<update_with_media> B<DEPRECATED> | |
3241 | 3252 | |
3242 | 3253 | =item B<update_with_media(status, media[])> |
3243 | 3254 | |
3252 | 3263 | =back |
3253 | 3264 | |
3254 | 3265 | 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>. | |
3255 | 3270 | |
3256 | 3271 | The C<media[]> parameter is an arrayref with the following interpretation: |
3257 | 3272 | |
3277 | 3292 | |
3278 | 3293 | Returns: Status |
3279 | 3294 | |
3280 | Twitter API documentation: L<POST statuses/update_with_media|https://dev.twitter.com/rest/reference/post/statuses/update_with_media> | |
3281 | ||
3282 | 3295 | =item B<upload> |
3283 | 3296 | |
3284 | 3297 | =item B<upload(media)> |
3293 | 3306 | |
3294 | 3307 | =back |
3295 | 3308 | |
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 | |
3299 | 3316 | |
3300 | 3317 | Twitter API documentation: L<POST media/upload|https://dev.twitter.com/rest/reference/post/media/upload> |
3301 | 3318 |