Hi, how to start with oauth and Twitter API for desktop apps without any Plugins? I am realy new to HTTPSocket and HTTPSecureSocket.
After many trys and readings i have this, but only get a 400 error:
Dim socket1 As New HTTPSecureSocket
Dim randomn As String
dim h As new HTTPSecureSocket
Dim timestamp As String
Dim keyer As String = “mykey”
Dim secret As String = “mysecret”
Dim newkey, encodedkey, encodedsecret As String
timestamp = h.get( “https://www.example.com/time.php”, 5) //to get a timestamp
You didn’t mention that. Rolling a Twitter client with oauth is tricky. I did this a couple years ago. Twitter had some step by step instructions with things you could verify at each step. It’s worth looking on their developer pages to see if they still have something like that.
[quote]You didn’t mention that.[/quote] Sorry. I looked a lomg time on the developers page, i think my biggest problem is to get the headers send correctly. But thanks for the anwser.
Ater a lot of work I am able to post tweets and images from my Xojo app… but the code is currently in no shape to share. A while back I started working on an example project that others could use but work that “pays” got in the way. If you are really interested I could restart that effort but it might take me a few weeks to get it done.
hi, thanks for the reply, but you shall not remove me the work, I do this purely as a hobby and want to learn, but I think this oauth think is too much for me :). meanwhile i found this code: http://sourceforge.net/p/praemusalpha/code/HEAD/tree/, i will look at this, but i think realy thats too much for a beginner (like me).
We ended up using Temboo for a project recently. Why try to support hundreds of different API’s in Xojo if someone else is willing to do it. Of course this may not be suitable for all projects or purposes.
Yes Phillip, this is right, but i will learn :). I think its even faster to use a service like Temboo, but than i can use plugins too. But now i get my header correctly. The header is build so for example (if anyone needs it):