惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Vulnerabilities – Threatpost
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
P
Privacy International News Feed
F
Full Disclosure
P
Proofpoint News Feed
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
The Blog of Author Tim Ferriss
T
Threatpost
L
Lohrmann on Cybersecurity
I
Intezer
S
SegmentFault 最新的问题
小众软件
小众软件
T
Threat Research - Cisco Blogs
MongoDB | Blog
MongoDB | Blog
美团技术团队
NISL@THU
NISL@THU
罗磊的独立博客
N
News | PayPal Newsroom
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园 - 聂微东
W
WeLiveSecurity
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
Scott Helme
Scott Helme
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
A
Arctic Wolf
P
Privacy & Cybersecurity Law Blog
Attack and Defense Labs
Attack and Defense Labs
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
S
Securelist
D
Darknet – Hacking Tools, Hacker News & Cyber Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Schneier on Security
Schneier on Security
Know Your Adversary
Know Your Adversary
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
U
Unit 42
The Cloudflare Blog
T
Tenable Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Recent Announcements
Recent Announcements
D
DataBreaches.Net
量子位

博客园 - Samgle

HttpRequest重写,解决资源占用/链接超时/分块下载事件通知 问题。 解决删除域用户Exception from HRESULT: 0x80072030 PDF-XChange 3.0 / Pro4.0注册码 Welcome to the Live Labs Pivot Technical Preview 修复 VS2008 asp.net 设计视图 失效/工具-选项[Html设计视图]出现"加载此属性页时出错" 方案 对于JavaScript的 Stack overflow at line 错误总结 - Samgle 10 Free Chart Scripts 如何让mvc运行在IIS6.0上? (ASP.NET MVC on IIS 6 Walkthrough) BIND9.5b1 for windows 2003 Google Maps by asp.net API集成-S.Sams Olympic Medal 如何在asp.net中用jQuery实现便捷的提示功能和表单验证功能-S.Sams jQuery jGrow 改进版 通过代理访问 http://sourceforge.net/ 常用简易JavaScript函数 世界真細小 (原曲: It's A Small World), 作曲: Richard She 做下笔记, Response 文件流类型 推荐微软官方Windows Server 2008实战攻略系列下载 Most used CSS tricks
Live.com MSN 在线状态查询接口(JSON数据输出) - Samgle
Samgle · 2008-09-19 · via 博客园 - Samgle

今天在查阅 MSDN 文档时发现这个接口, 其实在线状态的接口, Live已经提供了, 但是需要用户自己操作才能获到该地址. 而且是加密的.


http://messenger.services.live.com/users/d67cb5fcd15e35a5@apps.messenger.live.com/presenceimage?mkt=zh-cn


现在有以下的接口参数就太方便了. 可在自己定义状态的图片信息等.

http://messenger.services.live.com/users/youliveid@msn.com/presence/?cb=showpresence

{
    "icon": {
        "url": "http://www.wlmessenger.net/static/img/presence/Online.gif", "height": 16, "width": 16
    }, "statusText": "Online", "status": "Online", "displayName": "s.sams", "id": "youliveid@msn.com"
}

再结合 Newtonsoft.Json 完全实现自定义操作.

http://www.codeplex.com/Json

Code(该摘自:Json.net/Newtonsoft 3.0 新特性JObject/Linq to Json )
static void Main(string[] args)
{
string str = "{title:123,body:456,list:{title:'这是一个标题',body:'what'}}";
JObject o = JObject.Parse(str);
Console.WriteLine(o[
"title"]);
Console.WriteLine(o[
"body"]);
Console.WriteLine(o[
"list"]["title"]);
Console.WriteLine(o[
"list"]["body"]);
Console.ReadKey();
}


更多技术文档请参阅: http://dev.live.com/Messenger/default.aspx

附上MSN在线小图标直接地址: http://messenger.services.live.com/users/youmsnid@msn.com/presenceimage/
Live 在线状态生成地址: http://settings.messenger.live.com/applications/CreateHtml.aspx

补充一下: 其实在 http://www.onlinestatus.org/ 是可以生成在线图标的, 但服务很不稳定.