Connecting to twitter
Sam Neaves <[email protected]> Fri, 11 Jul 2014 15:21:36 +0100
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CACvcJmee3VNOcue3rJ1kd=i7_wrgD2SDMhSMdo=J+xzwqiazCQ@mail.gmail.com> |
Hello,
I would like to try and connect to twitter with prolog.
I am a beginner when it comes to API's so please bear with me.
I imagine using something like:
http_get('
https://api.twitter.com/1.1/statuses/mentions_timeline.json?count=10',Reply,
[]).
Where reply would be a Json term which I could then convert to normal
prolog terms with *json_to_prolog*(+JSON, _Prolog)
I am having trouble understanding the Oauth requirements of twitter. I
understand I have to create an app on twitter and this will give me various
keys and access token secrets. I imagine I would use these to build up a
string which I would pass to a term like http_get or http_post.
I have successfully used a python library to retrieve tweets but the
details of what is happening in the background are hidden.
Any help/ explanations would be appreciated.
-------------- next part --------------
HTML attachment scrubbed and removed