百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

skyweb

> 编程语言
开源

通过"Skype (HTTP)"协议提供的非官方 Skype API for nodejs。

196 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

通过"Skype (HTTP)"协议提供的非官方 Skype API for nodejs。

Skyweb

Unofficial Skype API for nodejs via 'Skype (HTTP)' protocol.

If you want to create a bot, take a look at https://github.com/Microsoft/BotBuilder first.

Running example

As username and password you should use your Skype account or your Microsoft account.

bash
git clone https://github.com/ShyykoSerhiy/skyweb.git
cd skyweb
npm install
cd dist/demo
node demo.js username password

After 'Skyweb is initialized now' appears in console any message you receive in your Skype will be automatically replied.

Usage

Initializing and login

javascript
Skyweb = require('skyweb');
var skyweb = new Skyweb.default();
skyweb.login(username, password).then(function (skypeAccount) {
    console.log('Skyweb is initialized now');
});

Keeping track of errors

Because the whole lib is quite volatile it's may be a good idea to keep track of errors that might occur while requests being made. This is the place where you might try to relogin or to terminate the process.

javascript
Skyweb = require('skyweb');
var skyweb = new Skyweb.default();
const errorListener = (eventName: string, error: string) => {
    console.log(`${errorCount} : Error occured : ${error}`);
    errorCount++;
    if (errorCount === 10) {
        console.log(`Removing error listener`);
        skyweb.un('error', errorListener); // Removing error listener
    }
};
skyweb.on('error', errorListener); //Adding error listener

Getting contacts info

javascript
var skyweb = new Skyweb.default();
skyweb.login(username, password).then((skypeAccount) => {    
    console.log('Your contacts : ' + JSON.stringify(skyweb.contactsService.contacts, null, 2));
});

Setting status

javascript
var skyweb = new Skyweb.default();
skyweb.login(username, password).then((skypeAccount) => {
    skyweb.setStatus('Hidden'); //Now everybody thinks I'm sleeping
});

Currently supported values are : "Hidden" | "Online" | "Away" | "Busy"

Creating thread(Skype group)

javascript
var skyweb = new Skyweb.default();
skyweb.login(username, password).then((skypeAccount) => {
    skyweb.createThread([{"id":"8:someuserid","role":"User"},{"id":"8:live:someliveuserid","role":"User"},{"id":"8:youruserid","role":"Admin"}]);
});

It's probably a good idea to include at least one user with Admin role in new thread(at least you should have Admin role).

What's not working and probably never will.

  • Old P2P group chats. According to Skype community site only new, Cloud based group chats are shown in SkypeWeb Beta(therefore works in this API). The old P2P group chats are not.

Disclaimer

This project relies on SkypeWeb Skype implementation. If Microsoft Corporation decides to remove Skype implementation (or change it in any) skyweb might not be in working state. Therefore it's not recommended to use it in any critical part of production code. In fact it's not recommended to use it in production at all.

MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言