[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Programming
. -> [Folder]  General
. . -> [Subject]  Using cURL+OAuth in C

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Using cURL+OAuth in C

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Syriac   (46 posts)  [Biography] bio
Date Mon 13 Dec 2010 02:08 PM (UTC)  quote  ]
Message
Hey all - I've been awake for about 6 hours longer than I had planned attempting to work on this project. Essentially what I was trying to do was integrate the twitter API into my MUD so certain events could be tweeted automatically from the game; it took me about 30 minutes to figure out curl with the basic auth only to discover twitter disabled this method. So I signed up, got my tokens and now I have no flippin clue how to authenticate them using curl. I've seen many php examples but they all seem very messy and I cannot seem to find anything for C. Has anyone messed around with this before?
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Reply #1 on Mon 13 Dec 2010 02:52 PM (UTC)  quote  ]

Amended on Mon 13 Dec 2010 02:55 PM (UTC) by Nick Cash

Message
This sounds like a neat idea, though I must admit I haven't played with it. Twitter did have a link to this open source library that may help you with authentication:

http://liboauth.sourceforge.net/

[Edit]

This may also be helpful, though it says it is C++ based:

http://code.google.com/p/twitcurl/

~Nick Cash
http://www.nick-cash.com
[Go to top] top

Posted by Syriac   (46 posts)  [Biography] bio
Date Reply #2 on Sat 18 Dec 2010 02:40 AM (UTC)  quote  ]
Message
Figured out a work around --

http://twitter.com/ros_mud

Using Curl and in conjunction with http://www.supertweet.net/ worked!
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,700 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]