snipt

Ctrl+h for KB shortcuts

Bash

send direct message on twitter in linux terminal

curl -u username:password -d user="reciever" text="the message" http://twitter.com/direct_messages/new.xml
https://snipt.net/embed/c95e10a79fd0f803a4febb2c5ccc26eb/
/raw/c95e10a79fd0f803a4febb2c5ccc26eb/
c95e10a79fd0f803a4febb2c5ccc26eb
bash
Bash
1
2019-07-21T12:45:51
True
False
False
/api/public/snipt/6652/
send-direct-message-on-twitter-in-linux-terminal-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>curl -u username:password -d <span class="nv">user</span><span class="o">=</span><span class="s2">&quot;reciever&quot;</span> <span class="nv">text</span><span class="o">=</span><span class="s2">&quot;the message&quot;</span> http://twitter.com/direct_messages/new.xml </span></pre></div> </td></tr></table>
linux, twitter

Bash

send direct message on twitter in linux terminal

curl -u username:password -d user="reciever" text="the message" http://twitter.com/direct_messages/new.xml
https://snipt.net/embed/c710e32a29a6138c669c0fc368bb9e02/
/raw/c710e32a29a6138c669c0fc368bb9e02/
c710e32a29a6138c669c0fc368bb9e02
bash
Bash
1
2019-07-18T14:16:07
True
False
False
/api/public/snipt/4996/
send-direct-message-on-twitter-in-linux-terminal
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>curl -u username:password -d <span class="nv">user</span><span class="o">=</span><span class="s2">&quot;reciever&quot;</span> <span class="nv">text</span><span class="o">=</span><span class="s2">&quot;the message&quot;</span> http://twitter.com/direct_messages/new.xml </span></pre></div> </td></tr></table>
bash, curl, direct, linux, message, terminal, twitter

Text only

twitter api

1
2
3
4
5
Get the public timeline in RSS format, unauthenticated: curl http://twitter.com/statuses/public_timeline.rss
Get updates from users you follow in XML, authenticated: curl -u username:password http://twitter.com/statuses/friends_timeline.xml
See just the headers for that last request: curl --head -u username:password http://twitter.com/statuses/friends_timeline.xml
Post a status update and get the resulting status back as JSON: curl -u username:password -d status="your message here" http://twitter.com/statuses/update.json
 
https://snipt.net/embed/7ab2899d50cd539d21b53de1ec1ef120/
/raw/7ab2899d50cd539d21b53de1ec1ef120/
7ab2899d50cd539d21b53de1ec1ef120
text
Text only
5
2019-07-17T18:08:13
True
False
False
/api/public/snipt/4969/
twitter-api
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Get the public timeline in RSS format, unauthenticated: curl http://twitter.com/statuses/public_timeline.rss </span><span id="L-2"><a name="L-2"></a>Get updates from users you follow in XML, authenticated: curl -u username:password http://twitter.com/statuses/friends_timeline.xml </span><span id="L-3"><a name="L-3"></a>See just the headers for that last request: curl --head -u username:password http://twitter.com/statuses/friends_timeline.xml </span><span id="L-4"><a name="L-4"></a>Post a status update and get the resulting status back as JSON: curl -u username:password -d status=&quot;your message here&quot; http://twitter.com/statuses/update.json </span><span id="L-5"><a name="L-5"></a> </span></pre></div> </td></tr></table>
api, curl, twitter