I am trying call getDisplayName() with a SOAP web service but $cb how recognized in class method

Can you tell please, its seems $cb->statuses_updateWithMedia($this->params); Not called
how embed in class the static var… in the end I am trying call getDisplayName() with a SOAP web service but $cb how recognized in class method…?

require_once('../codebird-php-develop/codebird.php');
 
\Codebird\Codebird::setConsumerKey("wwwwwwwwwwwwwww", "iiiiiiiiiiiiiii");
$cb = \Codebird\Codebird::getInstance();
$cb->setToken("999999999-uuuuuuuuuu", "yyyyyyyyyyy");
 
class ServiceFunctions
{
	
	public function getDisplayName($status, $url) {
		$this->params = array(
		  'status' => $status,
		  'media[]' => $url
		);
		$reply = $cb->statuses_updateWithMedia($this->params);	
	
		return $reply;
	}
	
}

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.