From: indresh singh bhadoria Date: Fri, 12 May 2017 16:07:00 +0530 Subject: all api has been consumed and functionality completed --- all api has been consumed and functionality completed --- Binary files /dev/null and b/Downloads/+.png differ Binary files /dev/null and b/Downloads/BJAZ_POLICY_COPY_OG-17-2047-1801-00007746(1).pdf differ Binary files /dev/null and b/Downloads/BJAZ_POLICY_COPY_OG-17-2047-1801-00007746.pdf differ Binary files /dev/null and b/Downloads/DSC_0704.JPG differ Binary files /dev/null and b/Downloads/My Certificateswild.jpeg differ Binary files 'a/Downloads/avatar04.png' and b/Downloads/avatar04.png differ Binary files /dev/null and b/Downloads/demo(2).pdf differ Binary files /dev/null and b/Downloads/digi.png differ Binary files /dev/null and b/Downloads/favicon-touch.png differ Binary files /dev/null and b/Downloads/hocl.pdf differ Binary files /dev/null and b/Downloads/nature - Copy.jpg differ Binary files /dev/null and b/Downloads/pic1.jpg differ Binary files /dev/null and b/Downloads/sol-api-response.PNG differ Binary files /dev/null and b/Downloads/wild.jpg differ --- /dev/null +++ b/browse.php @@ -0,0 +1,29 @@ +buffer($fileContent); +$client_secret = 'Pax7Rmv9uWo2KrNcXMtlDtsQN'; +$hk = hash_hmac('sha256', $fileContent, $client_secret, true); +$hmac = base64_encode($hk); +$ur = array('Content-Type: '.$mime, 'Authorization: Bearer ' . $access_token, 'path : '.$filePath, 'hmac : ' . $hmac . ''); +//$fileContent = file_get_contents($filePath); +$ch = curl_init(); +curl_setopt($ch, CURLOPT_URL, "https://developers.digitallocker.gov.in/public/oauth2/1/file/upload"); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); +curl_setopt($ch, CURLOPT_NOSIGNAL, 1); +curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); +curl_setopt($ch, CURLOPT_POST, 1); +curl_setopt($ch, CURLOPT_POSTFIELDS, $fileContent); +curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); +curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); +curl_setopt($ch, CURLOPT_TCP_NODELAY, 1); +curl_setopt($ch, CURLOPT_HTTPHEADER, $ur); +$output = curl_exec($ch); +curl_close($ch); +echo ' Your file has been uploaded'; +?> \ No newline at end of file --- 'a/doc.php' +++ b/doc.php @@ -62,42 +62,41 @@ $issuedNew = explode('¿', $resissued); $dataI = json_decode($issuedNew[1], TRUE); ?> +
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+ -
-
-
- -
-
-
- -
-
-
-
-
-
-
-
-
- - + - + @@ -115,131 +114,128 @@ $dataI = json_decode($issuedNew[1], TRUE } ?>
-
Name Size Date Action
- - - - - - -
-
+ +
- + - - - - - - - + + - - - + + +
-
-
- -
-
-
-
-
-
-
-
- - - - - - + + + + + +
+
+
+
+
+
+
+
NameSizeDate
+ + + + + + + + + + + - - - - - -
NameSizeDate
+ "; + echo($issued_detail['name']); + ?> + +
- "; - echo($issued_detail['name']); - ?> - - -
- + endforeach; + ?> + +
-
-
-
-
+
+
+
+
- + + + \ No newline at end of file --- 'a/download.php' +++ b/download.php @@ -1,10 +1,11 @@ Click Here to view your document"; ?> \ No newline at end of file --- 'a/index.php' +++ /dev/null @@ -1,76 +0,0 @@ - -
- -
-
-
-
-
-
-

Open Account

-
-
-

DigiLocker is Government of India's cloud based platform for issuance and verification of documents & certificates digitally.

-

With DigiLocker, you can:

-
    -
  • Access your documents anytime, anywhere.
  • -
  • Share documents digitally for verification.
  • -
  • eSign documents (which is similar to self-attestation).
  • -
-
- - - - - -
-
-
-
-
-
-
-
-
-
-
-
-

- Important security information: -

-
-
-
    -
  • - Before logging in, please ensure that the URL address on the address bar of your internet browser starts with demobank.gov.in. -
  • -
  • - Never provide your User ID or password to any one on phone or in response to a mail. Report a suspicious mail. -
  • -
  • - Do not enter login or other sensitive information in any pop up window. -
  • -
  • - Verify the site's security certificate by clicking on the padlock icon of your internet browser. For more details, click here. -
  • -
-
-
-
-
-
- -
- \ No newline at end of file --- 'a/loanapproval.php' +++ b/loanapproval.php @@ -43,7 +43,7 @@
- - + + \ No newline at end of file --- 'a/payment.php' +++ b/payment.php @@ -12,74 +12,74 @@
- -
- -
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
- - -
-
- - -
-
-
-
-
- Ammount: - Rs.10 -
-
-
-
-
- -
-
-
-
-
- Please correct the errors and try again. -
-
+ +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ Ammount: + Rs.10 +
+
+
+
+
+ +
+
+
+
+
+ Please correct the errors and try again. +
+
+
+
- - - + - - -
- + +
+ + --- 'a/uploaddoc.php' +++ b/uploaddoc.php @@ -42,28 +42,6 @@ $resFile = curl_exec($vhf); curl_close($vhf); $resFileNew = explode('¿', $resFile); $dataF = json_decode($resFileNew[1], TRUE); - - - -$fileContent = file_get_contents('C:/img/digi.png'); -$client_secret = 'Pax7Rmv9uWo2KrNcXMtlDtsQN'; -$hk = hash_hmac('sha256', $fileContent, $client_secret, true); -$hmac = base64_encode($hk); -$ur = array('Content-Type: application/octet-stream', 'Authorization: Bearer ' . $access_token, 'path : cehck.png', 'hmac : ' . $hmac . ''); -$fileContent = file_get_contents('C:/img/digi.png'); -$ch = curl_init(); -curl_setopt($ch, CURLOPT_URL, "https://developers.digitallocker.gov.in/public/oauth2/1/file/upload"); -curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); -curl_setopt($ch, CURLOPT_NOSIGNAL, 1); -curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0); -curl_setopt($ch, CURLOPT_POST, 1); -curl_setopt($ch, CURLOPT_POSTFIELDS, $fileContent); -curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); -curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); -curl_setopt($ch, CURLOPT_TCP_NODELAY, 1); -curl_setopt($ch, CURLOPT_HTTPHEADER, $ur); -$output = curl_exec($ch); - ?>
@@ -97,14 +75,27 @@ $output = curl_exec($ch);
-
- -
-
- +
+ + + + + +
--- 'a/uri.php' +++ b/uri.php @@ -1,10 +1,11 @@