public function startConversation($id, $message)
    {
        if ($this->isEmptyId($id)) {
            throw new InvalidArgumentException;
        }

        if (!$message) {
            throw new InvalidArgumentException;
        }

        $params = [
            'body' => $message
        ];

        $res = $this->call('users/' . $id . '/startconversation', $params, 'post');

        if ($res && isset($res['id'])) {
            return true;
        }

        return false;
    }
public function startConversation($id, $message)
    {
        if ($this->isEmptyId($id)) {
            throw new InvalidArgumentException;
        }

        if (!$message) {
            throw new InvalidArgumentException;
        }

        $params = [
            'body' => $message
        ];

        $res = $this->call('users/' . $id . '/startconversation', $params, 'post');

        if ($res && isset($res['id'])) {
            return true;
        }

        return false;
    }
public function startConversation ( $ id , $ message ) { if ( $ this -> isEmptyId ( $ id ) ) { throw new InvalidArgumentException ; } if ( ! $ message ) { throw new InvalidArgumentException ; } $ params = [ 'body' => $ message ] ; $ res = $ this -> call ( 'users/' . $ id . '/startconversation' , $ params , 'post' ) ; if ( $ res && isset ( $ res [ 'id' ] ) ) { return true ; } return false ; }
Start conversation with user.

@param int $id - user ID
@param string $message

@return bool

@throws InvalidArgumentException
@throws Exception
Start conversation with user .