forked from GNUsocial/gnu-social
use home_timeline instead of friends_timeline
This commit is contained in:
parent
45bdbcdc78
commit
93001a28a6
@ -188,7 +188,7 @@ class TwitterOAuthClient extends OAuthClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls Twitter's /statuses/friends_timeline API method
|
* Calls Twitter's /statuses/home_timeline API method
|
||||||
*
|
*
|
||||||
* @param int $since_id show statuses after this id
|
* @param int $since_id show statuses after this id
|
||||||
* @param int $max_id show statuses before this id
|
* @param int $max_id show statuses before this id
|
||||||
@ -197,11 +197,11 @@ class TwitterOAuthClient extends OAuthClient
|
|||||||
*
|
*
|
||||||
* @return mixed an array of statuses
|
* @return mixed an array of statuses
|
||||||
*/
|
*/
|
||||||
function statusesFriendsTimeline($since_id = null, $max_id = null,
|
function statusesHomeTimeline($since_id = null, $max_id = null,
|
||||||
$cnt = null, $page = null)
|
$cnt = null, $page = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
$url = 'https://twitter.com/statuses/friends_timeline.json';
|
$url = 'https://twitter.com/statuses/home_timeline.json';
|
||||||
$params = array('since_id' => $since_id,
|
$params = array('since_id' => $since_id,
|
||||||
'max_id' => $max_id,
|
'max_id' => $max_id,
|
||||||
'count' => $cnt,
|
'count' => $cnt,
|
||||||
|
Loading…
Reference in New Issue
Block a user