src/WebIM/Client.php
function presence($show, $status = null){
        $data = $this->reqdata();
        $data['nick'] = $this->endpoint->nick;
        $data['show'] = $show;
        if($status) $data['status'] = $status;
		return $this->request('presences/show', $data, 'POST');
	}
function presence($show, $status = null){
        $data = $this->reqdata();
        $data['nick'] = $this->endpoint->nick;
        $data['show'] = $show;
        if($status) $data['status'] = $status;
		return $this->request('presences/show', $data, 'POST');
	}
function presence ( $ show , $ status = null ) { $ data = $ this -> reqdata ( ) ; $ data [ 'nick' ] = $ this -> endpoint -> nick ; $ data [ 'show' ] = $ show ; if ( $ status ) $ data [ 'status' ] = $ status ; return $ this -> request ( 'presences/show' , $ data , 'POST' ) ; }
Send presence.

@param string
$show: 'available' | 'away' | 'chat' | 'dnd' | 'invisible' | 'unavailable'
@param string $status

@return ok
Send presence .