From: indresh singh bhadoria Date: Wed, 03 May 2017 21:06:39 +0530 Subject: äpi sample application view change --- äpi sample application view change --- --- 'a/accountstatement.php' +++ b/accountstatement.php @@ -1,106 +1,183 @@ - -
+
-
-
-
-

Account Statement

-
-
- -
- -
- - - - -
-
-
- -
-
- -
- -
- -
-
- -
-
- -
-
- -
-
- -
-
- - + +$urlissued = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/issued'; +$vhi = curl_init($urlissued); +//curl_setopt($vhi, CURLOPT_CUSTOMREQUEST, "GET"); +//curl_setopt($vhi, CURLOPT_POST, true); +curl_setopt($vhi, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds +curl_setopt($vhi, CURLOPT_HTTPHEADER, $headers); +//curl_setopt($vhi, CURLOPT_POSTFIELDS, $post); +//curl_setopt($vhi, CURLOPT_FOLLOWLOCATION, true); +curl_setopt($vhi, CURLOPT_SSL_VERIFYPEER, 0); +curl_setopt($vhi, CURLOPT_SSL_VERIFYHOST, 0); +curl_setopt($vhi, CURLOPT_RETURNTRANSFER, true); +$resissued = curl_exec($vhi); +$resissuedErr = curl_error($vhi); +curl_close($vhi); +$issuedNew = explode('¿', $resissued); +$dataI = json_decode($issuedNew[1], TRUE); +?> + + + + + + + + + + DigiLocker Service Center + + + + + + + + + + + +
+ + +
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + + + + &uri=&id="> + * * */ ?> + + + +
NameSizeDate
+ "; + echo($api_detail['name']); + } elseif ($api_detail['type'] == "file") { + echo " "; + echo($api_detail['name']); + } + ?> +
+ +
+ +
+
+
+
+
+
+
+ +
- -
- -
-
- -
- -
- - -
- - - - - - - - - - - - - - - - - - - -
Txn DateValue DateDescriptionRef No.DebitCreditBalance
16 Apr -201716 Apr -2017TO TRANSFER-INB IRCTCRAILWAY -TICKET BOOK -Railway Ticket Booki-100000809530637 -IGABDMOHD8 -TRANSFER T150.0011,271.78
-
-
-

- Please do not share your ATM, Debit/Credit card number, PIN and OTP with anyone over mail, SMS, phone call or any other -media. Bank never asks for such information. -

-
- - - - - +
+
+
-
-
- - -
- \ No newline at end of file + +
+
+ + + + + + + + + --- 'a/fetchdoc.php' +++ b/fetchdoc.php @@ -1,4 +1,5 @@ - DigiBank + DigiLocker Service Center @@ -64,13 +65,13 @@ $dataI = json_decode($issuedNew[1], TRUE @@ -102,16 +103,20 @@ $dataI = json_decode($issuedNew[1], TRUE foreach ($dataF['items'] as $api_detail): ?> - - "; - echo($api_detail['name']); - } elseif ($api_detail['type'] == "file") { - echo " "; - echo($api_detail['name']); - } - ?> + &uri=&id="> + * * */ ?> + + "; + echo($api_detail['name']); + } elseif ($api_detail['type'] == "file") { + echo " "; + echo($api_detail['name']); + } + ?> +
@@ -195,7 +200,21 @@ $dataI = json_decode($issuedNew[1], TRUE window.opener.postMessage(uri, '*'); window.close(); } + function uriData(id) { + var id = id; + var accessTocken = ""; + var uri = ""; + if (id != null) { + $.post("http://localhost/digibank/uri.php", {access_token: accessTocken, id: id}, function (result) { + $("#div1").html(result.directory); + }, "json") + .fail(function () { + alert("error"); + }); + } + } + --- 'a/header.php' +++ b/header.php @@ -9,7 +9,7 @@ - Bank Demo + DigiLocker Service Center @@ -56,13 +56,13 @@