public function Twitter::statuses_oembed in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::statuses_oembed()
- 7.6 twitter.lib.php \Twitter::statuses_oembed()
Returns information allowing the creation of an embedded representation of a Tweet on third party sites.
Parameters
mixed $id: The Tweet/status ID or the URL of the Tweet/status to be embedded.
array $params: an array of parameters.
See also
https://dev.twitter.com/docs/api/1.1/get/statuses/oembed
File
- ./
twitter.lib.php, line 467 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
- Primary Twitter API implementation class
Code
public function statuses_oembed($id, $params = array()) {
if (is_numeric($id)) {
$params['id'] = $id;
}
else {
$params['url'] = $id;
}
return $this
->call('statuses/oembed', $params, 'GET');
}