Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "twitter"

Title:A pack to access the twitter api
Rating:
(1/1)
Latest version:0.10
SHA1 sum:d85b21fb7ba7bd3cff3ae49ffa479146ea5e5fbf
Author:Sam Neaves <sam.neaves@gmail.com>

Reviews

Write a review or add a rating.

Great! Gives basic access to the Twitter API.

Really easy to use.

Friday 23 March 2018, Anne Ogborn

Details by download location

VersionSHA1#DownloadsURL
0.101e5f7f91f29a17b2fe779d0fa0d969588b67283a18https://github.com/samwalrus/twitter_pack.git
d85b21fb7ba7bd3cff3ae49ffa479146ea5e5fbf7https://github.com/samwalrus/twitter_pack.git

This is a pack to make application searches of twitter.

You need to go to https://apps.twitter.com/ and make an app with a consumer key and consumer secret.

To use :

use_module(library(twitter)). get_bearer_token('yourkey','yoursecret',Json,Token,Error).

%This this asserts token/1

Then you can make a search. e.g. searching for tweets with the word 'walrus' is done as so:

token(T),make_a_search('walrus',T,Json,ErrorCode).

Json is a dict with the response from twitter.

Contents of pack "twitter"

Pack contains 3 files holding a total of 4.8K bytes.