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

Gammon 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

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Syriac   (46 posts)  [Biography] bio
Date Mon 13 Dec 2010 02:08 PM (UTC)
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)

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)
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.


4,260 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]