Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

fpctwit is an OAuthv1, Twitter and Plurk library with example programs 
(console and GUI).

NOTE: In the default configuration, you WILL need the openssl libraries, e.g. 
sselay32.dll and libeay32.dll, and presumably zlib1.dll.

It is written for FreePascal but meant to be usable in Delphi as well. 
It currently uses the Synapse network library (included) but can be adapted for 
other network libraries.

Twitter is a major user of the OAuthv1 authentication protocol, but there are 

The Twitter library's functionality includes: getting tweets using the Search 
API, tweeting, getting username info, authenticating using PIN/OOB or preset 
credentials (consumerkey+secret,authtoken+secret).
It supports OAuthv1 secure authentication and TLS encryption. The library uses 
modified FPC fpJSON units to allow getting UTF8 data out of the JSON data with 
Tweets returned from Twitter. For newer FPC versions, it will use the native 
fpJSON units as those support UTF8.

The fpctwit console demo program and fpctwitgui GUI demo programs demonstrate 
the functionality of the Twitter and OAuthv1 libraries.

The fpctwit console demo also uses the Twitter library's Streaming API support 
to process and show Tweets and deletion messages.

The fpcplurktest console demo demonstrates use of the Plurk library 

The applications and libraries are distributed under a very liberal license 
(my code under MIT license; see Synapse and fpjson units for their licenses) 
which allows commercial use as well as interoperability with GPL programs.

Patches are welcome!


Reinier Olislagers, Mario Ray Mahardhika and Ludo Brands

Recent activity


reiniero pushed 1 commit to reiniero/fpctwit

5fefec8 - Move utc time implementation to correct place (network provider levels) as an example of other providers: they can use the 2.6.2+ implementation

reiniero pushed 1 commit to reiniero/fpctwit

aeda0b5 - Synapse: upgrade to trunk r181. Use built in json, UTC time functions for FPC 2.6.2+ Hardened twitter connect code a bit. Twitter code seems nonfunctional ...
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.