-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisplayApplications.php
36 lines (34 loc) · 1.02 KB
/
DisplayApplications.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
<?php
//Include menu options applicable to all pages of the web site
include("PhpSampleTemplate.php");
?>
<HTML>
<head>
<title>
Administration Page For applicationss
</title>
<link rel="stylesheet" type="text/css" href="StyleSheet.css" />
</head>
<BODY>
<h1>
/applications
</h1>
<br/><br/>
<table id="directoryObjects">
<tr>
<th>Name</th>
<th>ObjectId</th>
<th>AppPrincipalId</th>
</tr>
<?php
$applications = GraphServiceAccessHelper::getFeed('applications');
if (isset($applications))
{
foreach ($applications as $applications){
echo('<tr><td>'. $applications->{'displayName'}. '</td><td>'. $applications->{'objectId'} .'</td><td>'. $applications->{'appId'}.'</td></tr>');
}
}
?>
</table>
</BODY>
</HTML>