Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-06

ANN: Twitter demo application+library

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Hi list,

Earlier, I announced an OAuthv1 and Twitter library that uses Synapse on the fpc and Synapse mailing lists.

I've just finished a demo application for Lazarus (fpctwitGUI) that uses the Twitter library.

The program shows:
- connecting to Twitter with preset credentials (that you get from Twitter)
- getting public timeline (Tweets) and private timeline
- Tweeting - note: the application does not immediately show the tweet... which might be nice.

I've still got a memory leak but it's probably a stupid mistake that I'm sure one of you will be glad to point out to me ;)

See screenshot and details at
http://wiki.lazarus.freepascal.org/Lazarus_Application_Gallery#fpctwitGUI

The fpctwit console-mode demo program shows connecting, getting timelines, tweeting, but also connecting with the streaming API and sucking down and showing tweets/deletion messages until the program is stopped.

Source code can be found at:
https://bitbucket.org/reiniero/fpctwit

All my source code is under MIT license, so quite liberal. Commercial use and inclusion in e.g. GPL programs is allowed. The code uses modified FPC fpJSON units (thanks, Michael) and Synapse units (thanks, Lukas, also for the quick commits).

Thanks,
Reinier

Reply by email

Reinier Olislagers
to waldo kitty
waldo kitty wrote 6 lines
On 6/25/2012 10:59, Reinier Olislagers wrote: > I've still got a memory leak but it's probably a stupid mistake that I'm > sure one of you will be glad to point out to me ;) shouldn't compiling with the heaptrace unit help out there? ;)

Yep, thanks waldo.

Meanwhile, the memory leak has been fixed; I'd forgotten to free an object in the OAuth destructor.

Also, the application has been polished a bit with grid autoresize, showing the location of the config file in Help/About, preliminary support for OOB/PIN authentication (not tested yet)...

Thanks,
Reinier

Reply by email