Well, I only copied your sample code to the letter? It is not my intention to use your API incorrectly.
I have a pounding headache this morning so all Twitter API development is at a halt.:( Kind regards, Obrzut On Jun 26, 1:25 am, Bojan Rajkovic <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > > > Obrzut wrote: > > Hello, > > > Sadly, your API does not work. :( > > > odule Module1 > > > Sub Main() > > > Dim pin As Integer = 0 Dim OAuth As New > > OAuth.Twitter("Key","Secret") OAuth.Debugging = True > > > Dim URL As String = OAuth.GetAuthorizationLink() > > > Dim pinRead As String = String.Empty While Not > > (System.Int16.TryParse(pinRead, pin)) Console.WriteLine("Type in > > the PIN provided by Twitter and press Enter/Return.") > > Console.WriteLine(pinRead) pinRead = Console.ReadLine() End While > > > If OAuth.GetAccessToken(pin) Then URL = > > "http://twitter.com/account/verify_credentials.xml" Dim Xml As > > String = (OAuth.WebRequest (Global.OAuth.RequestMethod.GET, URL, > > String.Empty)) Console.WriteLine(Xml) End If End Sub > > > End Module > > > ------------------------------------------------------------ > > > This is my code - using your API. But, no pin appears - why? > > > It fails on the pin number. > > You're using the API wrong. You have to open the webpage provided by > GetAuthorizationLink (), and get the PIN from there. I won't parse the > page that Twitter sends back with the PIN. > > - -- > Bojan Rajkovic <[email protected]> > Biochemistry '10, Brandeis University > PGP Signature Key ID: 0x8783D016 > PGP Encryption Key ID: 0x2497B8B2 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > iQIcBAEBAgAGBQJKRBWAAAoJEO4IwQyHg9AWfocP/ikGk7Mo4h49khsrkzYTUxOR > 4POcmRSRObHDRTC7YZrvypH9NyfWgquYRj6W/Qkc5fvF8DWWyUcw3EnHBzfHjHKB > aCSxqJPtTCtAgh7RjFCOjgZRJK+4xum7llq2DnBNnnNGzQPoSQdCI3eCOdkjF01K > gH1mnnO4ofj/0rTDoCPyQzW2GLvUy4sMironwUX9fEyDo60f4J9LH2Cr6lAm4jRU > tMJ8cfDPA6EToeallidFcc2reKeCvK0EAw2R0nAumwWH8DTk4egpHHrX34AeYCOW > I/hJNgeaakZNvl8eJsuGCTlqGjkUuOSFgxNEQ1IgyPKCT2cZYz0fq8A7ricIb6kp > 4s+aWFVLjSIYMAykHEna/AGkQygwv6otWOELiNjX+hGjrywNw3Q7cSbr0HASHZ58 > VFH3xDnrK7d4Qecr+brFJA92T2sBkUzHuxtLOOqLPdHMPAEQFjRpxDv6qcGsNOid > qWdXDTXZGkQ+eVye0whTHdpZYOroWvMCM12dwPQcphtgO99Sl+bCUNqOPomAf0xZ > uSqOZosEzaaoMo8WYeeRGkQ7u+8hvU3jYF6J1Fxd//kpozJSiv/yw/jgxToZSTHQ > JD4R+7rwIr+rduGnTcL1Ad5BRU9GCb5kkcWxfAB0q0jwGWl3niAKvHYFttKRUTe2 > ubrdygwavcpBBDed/CVJ > =IG+B > -----END PGP SIGNATURE-----
