Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problem using twitter with cURL

    I used
    curl --cookie tcookie --cookie-jar tcookie --data
    "username_or_email=twitusername&password=twitpass& commit=Sign In"
    I am able to get the session cookies but when i want to tweet a
    "direct message" to my friend

    When i do
    curl --cookie tcookie --data "text=Testing cURL" --data 'udpate=send'
    --output twitt.html --location me
    Note: please replace ~ with /. (Forum is not allowing me to post direct urls).

    But nothing happens, it is not working.

    Not sure what i missed, any help is much appreciated.

  2. #2
    hey man,

    I think your problem is due to Twitter (and most other social networking sites) upgrading from BasicAuth, to OAuth authorization when using their API's.

    I'm about 98% positive this move to OAuth eliminates the old shell `curl' Twitter trick.

    BasicAuth basically just required a username and password in order to gain access to Twitter's API features. OAuth on the other hand alleviates the use of passwords/usernames when using the API. OAuth basically requests access tokens from the specific Twitter application's provided request key/secret tokens.

    If you know any Python, I would suggest looking into Tweepy by JoshTheCoder for your Twitter command-line needs =)

    (I cannot post URL's to other sites yet as I have < 15 posts here. But in other words, go to `github . com /joshthecoder /tweepy')

    Hope this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts