forked from jdp/twitterlibphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
33 lines (22 loc) · 920 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
twitterlibphp - Twitter/PHP interface
http://jdp.github.com/twitterlibphp
This is a simple interface to the Twitter API.
I've tried to keep as close as possible to the real API
calls (some had to be changed due to ambiguity), but all
of the arguments are as they are in the official docs.
For documentation, go to:
http://jdp.github.com/twitterlibphp/doc
http://apiwiki.twitter.com
Usage:
$twitter = new Twitter("username", "password");
$public_timeline = $twitter->getPublicTimeline();
When you go through the docs, a lot of methods just take
an $options array and a $format parameter. The $options array
allows you to pass API arguments just like you would if you
were calling it from pure HTTP. For example:
$twitter->getMentions(array('page'=>2), 'json')
is mapped to...
http://twitter.com/statuses/mentions.json?page=2
Justin Poliey <[email protected]>
http://justinpoliey.com
@justinpoliey