/**
  * Creates a geo similar places request.
  *
  * @param string $latitude  The latitude.
  * @param string $longitude The longitude.
  * @param string $name      The name of a place.
  */
 public function __construct($latitude, $longitude, $name)
 {
     parent::__construct();
     $this->setLat($latitude);
     $this->setLong($longitude);
     $this->setName($name);
 }
 /**
  * Creates a statuses oembed request.
  *
  * @param string $id  The tweet identifier.
  * @param string $url The URL of the Tweet/status to be embedded.
  */
 public function __construct($id, $url)
 {
     parent::__construct();
     $this->setId($id);
     $this->setUrl($url);
 }
Пример #3
0
 /**
  * Creates a trends place request.
  *
  * @param string $id The WOEID.
  */
 public function __construct($id)
 {
     parent::__construct();
     $this->setId($id);
 }
Пример #4
0
 /**
  * Creates a geo id place id request.
  *
  * @param string $placeId The place id.
  */
 public function __construct($placeId)
 {
     parent::__construct();
     $this->setPlaceId($placeId);
 }
 /**
  * Creates a users suggestions slug request.
  *
  * @param string $slug The list/category slug.
  */
 public function __construct($slug)
 {
     parent::__construct();
     $this->setSlug($slug);
 }
Пример #6
0
 /**
  * Creates a search tweets request.
  *
  * @param string $query The search query.
  */
 public function __construct($query)
 {
     parent::__construct();
     $this->setQ($query);
 }