hellojs-xiaotian
Version:
A clientside Javascript library for standardizing requests to OAuth2 web services (and OAuth1 - with a shim)
25 lines (19 loc) • 455 B
HTML
<html>
<head></head>
<body>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key : exgsps7wo5o7
authorise : true
</script>
<script type="in/Login">
Hello, js= firstName js= lastName .
</script>
<script>
function callbackFunction(){
IN.API.Profile("me").result(function(r){console.log(r);});
}
</script>
<button onclick="IN.User.authorize(callbackFunction, '')">login</button>
</body>
</html>