3 * Sean's Simple Twitter Library - Laconica extension
5 * Copyright 2008, Sean Coates
6 * Usage of the works is permitted provided that this instrument is retained
7 * with the works, so that any entity that uses the works is notified of this
9 * DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
10 * ( Fair License - http://www.opensource.org/licenses/fair.php )
11 * Short license: do whatever you like with this.
14 class Twitter_Laconica extends Twitter {
17 * Constructor; sets up configuration.
19 * @param string $user Laconica user name; null for limited read-only access
20 * @param string $pass Laconica password; null for limited read-only access
21 * @param string $baseUrl Base URL of Laconica install. Defaults to identi.ca
23 public function __construct($user=null, $pass=null, $baseUrl = 'http://identi.ca/') {
24 $this->baseUrl = $baseUrl;
25 parent::__construct($user, $pass);
29 * Returns the base API URL
31 protected function getUrlApi() {
32 return $this->baseUrlFull . 'api/';
38 public function getUrlOutputStatus(StdClass $tweet) {
39 return $this->baseUrl . 'notice/' . urlencode($tweet->id);