|
@@ 2063-2072 (lines=10) @@
|
| 2060 |
|
* @param string [optional] $id Specifies the ID or screen name of the user for whom to return results for. |
| 2061 |
|
* @param int [optional] $page Specifies the page of results to retrieve. |
| 2062 |
|
*/ |
| 2063 |
|
public function favorites($id = null, $page = null) |
| 2064 |
|
{ |
| 2065 |
|
// build parameters |
| 2066 |
|
$parameters = null; |
| 2067 |
|
if ($id != null) $parameters['id'] = (string)$id; |
| 2068 |
|
if ($page != null) $parameters['page'] = (int)$page; |
| 2069 |
|
|
| 2070 |
|
// make the call |
| 2071 |
|
return (array)$this->doCall('favorites.json', $parameters, true); |
| 2072 |
|
} |
| 2073 |
|
|
| 2074 |
|
/** |
| 2075 |
|
* Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful. |
|
@@ 2447-2456 (lines=10) @@
|
| 2444 |
|
* @param float [optional] $lat If passed in conjunction with long, then the available trend locations will be sorted by distance to the lat and long passed in. The sort is nearest to furthest. |
| 2445 |
|
* @param float [optional] $long If passed in conjunction with lat, then the available trend locations will be sorted by distance to the lat and long passed in. The sort is nearest to furthest. |
| 2446 |
|
*/ |
| 2447 |
|
public function trendsAvailable($lat = null, $long = null) |
| 2448 |
|
{ |
| 2449 |
|
// build parameters |
| 2450 |
|
$parameters = null; |
| 2451 |
|
if ($lat != null) $parameters['lat_for_trends'] = (float)$lat; |
| 2452 |
|
if ($long != null) $parameters['long_for_trends'] = (float)$long; |
| 2453 |
|
|
| 2454 |
|
// make the call |
| 2455 |
|
return (array)$this->doCall('trends/available.json', $parameters); |
| 2456 |
|
} |
| 2457 |
|
|
| 2458 |
|
/** |
| 2459 |
|
* Returns the top 10 trending topics for a specific location Twitter has trending topic information for. |