From 70859516bbd66fc50728f074ddacb8b4a711d259 Mon Sep 17 00:00:00 2001 From: Pavel Zika Date: Tue, 15 Apr 2014 13:20:24 +0200 Subject: [PATCH] First version --- hellojs/hellojs-test.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hellojs/hellojs-test.ts diff --git a/hellojs/hellojs-test.ts b/hellojs/hellojs-test.ts new file mode 100644 index 0000000000..fbe36ce66d --- /dev/null +++ b/hellojs/hellojs-test.ts @@ -0,0 +1,30 @@ +hello.init( + { + 'facebook': '', + }, + { + redirect_uri: 'hello.html', + display: 'page', + } + ); + +hello('facebook').login(); + +hello('facebook').logout(); + +hello.on('auth.login', auth => { + alert('log to ' + auth.network) +}).on('auth.logout', auth => { + alert('unlog from ' + auth.network) + }); + +hello.getAuthResponse('facebook'); + +hello.login('facebook', null, () => { + var req = hello.getAuthResponse('facebook'); +}); + +hello.logout('facebook'); + +var serviceInfo = hello.service('facebook'); +