simple bash script, but no tweets are arriving

201 views
Skip to first unread message

Hans-Cees Speel

unread,
Jul 26, 2013, 11:24:24 AM7/26/13
to supertweet-...@googlegroups.com
Hi,

I have become member to be able to tweet simple stories line by line.

I am using bash with tweet account @hanscees

This is my script (but changed pwd):

##########################
#!/bin/bash
# tweet_mess.sh Tweet from your Linux account
USERNAME="hanscees"
PASSWORD="vellyseclet"

# Now lets post to Twitter.
result=`curl -vu $USERNAME:$PASSWORD -d status="This is a test to sent a tweet with supertweet from linux bash" $URL`
exit 0
###########################3

curl says:

dollar 1 is dit is een test auto-tweet met supertweet.net
* About to connect() to api.supertweet.net port 80
*   Trying 50.18.251.175... connected
* Connected to api.supertweet.net (50.18.251.175) port 80
* Server auth using Basic with user 'hanscees'
> POST / HTTP/1.1
> Authorization: Basic aGFuc2NlZXM6eXVweXVwIUAjI0Ah
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Accept: */*
> Content-Length: 52
> Content-Type: application/x-www-form-urlencoded
>
> status=dit is een test auto-tweet met supertweet.netHTTP/1.1 302 Found
< Date: Fri, 26 Jul 2013 15:17:49 GMT
< Content-Length: 0
< Connection: keep-alive
< Server: Apache-Coyote/1.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connection #0 to host api.supertweet.net left intact


But no tweets appear. 

Any tips? Or does it take a while before my account hanscees will work?






Mr Blog

unread,
Jul 26, 2013, 1:59:20 PM7/26/13
to supertweet-...@googlegroups.com
Note you are getting a redirect to the SuperTweet home http://www.supertweet.net/ because the url you're using is not valid http://api.supertweet.net

Read the docs again: http://www.supertweet.net/about/api

And see the example:

curl -u user:password -d "status=playing with cURL and the SuperTweet.net API" http://api.supertweet.net/1.1/statuses/update.json

Note proper url endpoint: http://api.supertweet.net/1.1/statuses/update.json
Reply all
Reply to author
Forward
0 new messages