First version of ASP Twitter Library
Posted on 18.05.09 01:26:32 by Ariel G. Saputra in Classic ASP, News
Finally I publish a premature version of asp twitter library, a small script package written in Classic ASP (VBScript) to allow you update, retrieve, format and display your tweets and twitter profile within your Classic ASP application.
Currently only support methods:
- Twitter REST API user show, allow you to get your detail profile in twitter
- Twitter REST API user timeline, allow you to get your most recent twitter status
- Twitter REST API statuses update, allow you update twitter status within your asp page
Also added functions:
- Autolink, turn valid url format at your twitter status text into clickable link
- Short URL (redirection URL) class, allow you to create short url on the fly within your asp page. currently support: tinyurl, is.gd, bit.ly, hex.io (default: tinyurl)
ASP Twitter Library licensed under GNU LESSER GENERAL PUBLIC LICENSE, for more informations you can see the license at http://www.gnu.org/licenses/lgpl.html. You can download here along with sample of implementations.
If you find any bugs, or made any modifications, features additions and you think that it is useful for future release of this library please let me know, i will update the download files and adding your contributions notice.
Happy ASP Programming
Author: Ariel G. Saputra
5 Comments For This Post
1 Trackbacks For This Post
-
02.04.10 01:19:21 at 01:19
oAuth and Classic ASP « Splash Web Effects Says:
[...] http://asp.web.id/first-version-of-asp-twitter-library.html [...]



Frank Bailey
06/08/09 05:05
Hi Ariel, awesome work on this Twitter library for ASP. I just have one quick question – is it possible to query the friend status timeline in the same way, or have you not implemented that part yet? I’ve had a look at the XML produced by the friends timeline, here: http://twitter.com/statuses/friends_timeline.xml?count=5 and it seems identical to that produced by the user timeline. Just to try it, I changed your function aspTwitterGetUserTimeline() to access the friends timeline, but it gives this error: “Oops unabled fetching user statuses : Not Authorized: Authentication credentials were missing or incorrect. Check your username & password”
Do you have any idea as to how I could make it work?
Thanks!
Alexandre
11/08/09 21:43
Hi Ariel,
I´m trying use the ASP Twitter Library, but the update function didn´t works. It responses that “Oops error occured: The URL requested is invalid or the resource requested, such as a user, does not exists.”. With the old function Update Twitter Status works. Can you help me? Thank you.
Alexandre
11/08/09 21:49
Hi Ariel,
Me again. I founded the error. In your example update_status.asp. You forgot to put oTwitterAPI.aspTwitterDataFormat = “xml”.
Thank you
Ariel G. Saputra
18/09/09 01:11
@alexandre
it should be working now, as xml is the only and default type, it will be assigned automatically
@frank
I thats because get Friends timeline require authentication and using HTTP GET method,
Now i have implemented get friends timeline grab the new file and find the example inside
Erik
03/11/09 23:22
Hi, this code looks very interesting but do you guys also know how to make the authentication work in classic ASP with the “Sign in with Twitter” button? I would like people with a twitter account to be able to login their twitter account via my classic ASP website? Of course I don’t want to ask them their twitter username and password on my website. This has to be done in the protected twitter pop-up window and after succesful login they return to my classic ASP website and they can manage their account. They have many examples of that here: http://apiwiki.twitter.com/OAuth-Examples but those are not in classic ASP.
Hope any of you can help in this.