-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Obrzut wrote: > 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: > > > > > 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. > You clearly did not copy the entire sample--I just checked the sample, and there's a part where the URL is written to the console, and you are asked to open the URL and get the pin. Please check the sample again, make sure you are using it exactly.
- -- 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 iQIcBAEBAgAGBQJKRPTpAAoJEO4IwQyHg9AWuUwQAJkeeSu5+X4aYtkHvwKYDmtP jhU20FoLUi51CRPuI0qg/SJvKyUVGp788oM6V1un49ax2zAnwiq9xOM4qTKqffpg x1l6d4tAVWplUe7BXDoL83Sf4xdxFfoBQ8me/v1r/kaoBdt4/hmVwZm/JBt9TDZs SXGWnmlcuF8zPTU3dlgsdTNeeVh/AXfrVOGkZWuGIwHW6Rfn6yJRFXy9lsCHc7FH cf0OKOClqOIdB/54eP39Ditt/Da/dnNsXbUgkLcGN2i6YC/TKx74CzJgxxoKDV/9 hBgHQxDNAA3Vu3gxy/iR0PZDCkeqRvoqQmsP2Qm8CgPuEW3CnqXpT6ISFooqeZaI dbiaGiM3DjeOjm2wal2tULYfnRINusJI73YaLIULolVS/lvWJMSiqu58MFFRZPTS UqarwKeFBNFC6wZPu5+P9c8qtNjYtLE8FvqkkDc5cmt4sSSkz3B+EQMokohuLkR9 GyfLPiSARew3VENbIwzL973Wlhgngj6p/yGqlXdU2XXJH+DMxjb7gX+53b3VSqpo N65NBlVm9zdB5CGZMK82n44S1+ClVSHQHw3cg32gUb0pS8b+WjfKxwr/CKn4tmll 77MPufL2RC9RsMqBbyTF++QgUpzlIJ4OOhh/3v1EiKv+YonznBW6RxiaIpHuZt7J KHNvBdUtLhtb635g5EkK =G9s/ -----END PGP SIGNATURE-----
