-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDisplayProfile.php
48 lines (42 loc) · 1.19 KB
/
DisplayProfile.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>LinkedIn JavaScript API Sample Application</title>
<!-- Load in the JavaScript framework and register a callback function when it's loaded -->
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: rbjecyqtr9pn
onLoad: onLinkedInLoad
authorize: true
</script>
<script type="text/javascript">
function onLinkedInLoad() {
// Listen for an auth event to occur
IN.Event.on(IN, "auth", onLinkedInAuth);
}
function onLinkedInAuth() {
// After they've signed-in, print a form to enable keyword searching
url = window.location.href;
id= url.substring( url.indexOf("=")+1);
alert(id);
}
</script>
</head>
<body>
<script type="IN/Login"></script>
<div id="peopleSearchResults"></div>
<script type="IN/MemberData" data-ids="S5LaA6z1wD";>
<ul>
<?js for (var key in $("*")) { ?>
<li>
<a href="<?js= $(key).publicProfileUrl ?>">
<?js if ($(key).pictureUrl) { ?>
<img src="<?js= $(key).pictureUrl ?>"></img>
<?js } ?>
<?js= $(key).firstName ?>
<?js= $(key).lastName ?>
</a>
</li>
<?js } ?>
</ul>
</script>
</body>
</html>