Location: PHPKode > projects > Agile Toolkit > atk4-atk4-addons-5a69383/sni/lib/Controller/SNI/Twitter.php
<?php

namespace sni;
class Controller_SNI_Twitter extends Controller_SNI {
    protected $baseurl = "http://api.twitter.com";
    protected $oauth; //oauth object
    function setOAuth($oauth){
        $this->oauth = $oauth;
    }
    function statusUpdate($msg){
        $url = $this->baseurl . "/1/statuses/update.xml";
        return $this->oauth->performTwitterRequest($url,array("status" => $msg));
    }
    function getUserProfile($screen_name){
        $url = $this->baseurl . "/1/users/show.xml?screen_name=" . $screen_name;
        return $this->oauth->performTwitterRequest($url, null, true);
    }
}
Return current item: Agile Toolkit