Created
June 25, 2012 18:06
-
-
Save zhangcheng/2990264 to your computer and use it in GitHub Desktop.
WB2 fetch own's info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WB2.anyWhere (W) -> | |
W.widget.connectButton | |
id: "wb_connect_btn" | |
type: '3,2' | |
callback : | |
login: (o) -> | |
console.log o | |
logout: -> | |
console.log '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WB2.anyWhere(function(W){ | |
W.parseCMD("/account/get_uid.json", function(sResult, bStatus){ | |
console.log(sResult, bStatus); | |
}, null, {method: 'get'});}) | |
WB2.anyWhere(function(W){ | |
W.parseCMD("/users/show.json", function(sResult, bStatus){ | |
console.log(sResult, bStatus); | |
}, {uid: 2765476897}, {method: 'get'});}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment