Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for send_direct_message unclear #40

Closed
lancew opened this issue Feb 10, 2014 · 1 comment
Closed

Documentation for send_direct_message unclear #40

lancew opened this issue Feb 10, 2014 · 1 comment

Comments

@lancew
Copy link

lancew commented Feb 10, 2014

When sending a DM the following response is received (The DM is sent successfully):

user argument to new_direct_message deprecated; use screen_name or user_id at /usr/local/share/perl/5.10.1/Net/Twitter/Role/API/RESTv1_1.pm line 385.

This is via the following line of code:
$nt->new_direct_message( 'target_user', 'This is a test text');

It might be nice if the documentation gave an example of using the screen_name param. I.e.

$nt->new_direct_message( 'This is a test text', { screen_name => 'target_user' } )

Below is the module details i ahve:

M/MM/MMIMS/Net-Twitter-4.01002.tar.gz
/usr/local/share/perl/5.10.1/Net/Twitter.pm
Installed: 4.00006
CPAN: 4.01002 Not up to date
Marc Mims (MMIMS)
mmims@cpan.org

@semifor
Copy link
Owner

semifor commented Nov 19, 2016

This is apparently no longer applicable. I don't find any documentation illustrating the positional parameter style with target ID and text. Please re-open if I'm missing something. And thanks for the issue. My apologies it has taken so long.

@semifor semifor closed this as completed Nov 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants