From: indresh singh bhadoria Date: Thu, 11 May 2017 18:46:55 +0530 Subject: sample api app view change --- sample api app view change --- Binary files /dev/null and b/Downloads/44008552Singh.pdf differ Binary files /dev/null and b/Downloads/avatar04.png differ --- 'a/accountstatement.php' +++ /dev/null @@ -1,190 +0,0 @@ - $code, - 'grant_type' => 'authorization_code', - 'client_id' => 'NIELN3M9', - 'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU', - 'redirect_uri' => 'http://localhost/digibank/loanapproval.php', -); -$vh = curl_init($url); -curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST"); -curl_setopt($vh, CURLOPT_POST, true); -curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds -curl_setopt($vh, CURLOPT_POSTFIELDS, $post); -//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers); -curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0); -curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0); -curl_setopt($vh, CURLOPT_RETURNTRANSFER, true); -$result = curl_exec($vh); -curl_close($vh); -$notgettingdata = explode('¿', $result); -$getToken = json_decode($notgettingdata[1]); -$access_token = $getToken->access_token; - - - -$headers = array( - 'Authorization: Bearer ' . $access_token - //'Authorization: Basic '. base64_encode("$username:$password") -); -$urlFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/'; -$vhf = curl_init($urlFile); -curl_setopt($vhf, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds -curl_setopt($vhf, CURLOPT_HTTPHEADER, $headers); -curl_setopt($vhf, CURLOPT_SSL_VERIFYPEER, 0); -curl_setopt($vhf, CURLOPT_SSL_VERIFYHOST, 0); -curl_setopt($vhf, CURLOPT_RETURNTRANSFER, true); -$resFile = curl_exec($vhf); -curl_close($vhf); -$resFileNew = explode('¿', $resFile); -$dataF = json_decode($resFileNew[1], TRUE); - - -?> - - - - - - - - - - DigiLocker Service Center - - - - - - - - - - - -
- - -
-
- -
-
-
- -
-
-
-
-
-
-
-
- - - - - - - - - &uri=&id="> - * * */ ?> - - - -
NameSizeDate
- "; - echo($api_detail['name']); - } elseif ($api_detail['type'] == "file") { - echo " "; - echo($api_detail['name']); - } - ?> -
- -
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- - - - - - - - - - - - --- 'a/css/style.css' +++ b/css/style.css @@ -212,7 +212,7 @@ div.navbar-inverse { .navbar-header a img{ margin-top:-10px; - margin-left:100px; + /*margin-left:100px;*/ } footer{ margin:0px; --- /dev/null +++ b/doc.php @@ -0,0 +1,245 @@ + $code, + 'grant_type' => 'authorization_code', + 'client_id' => 'NIELN3M9', + 'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU', + 'redirect_uri' => 'http://localhost/digibank/doc.php', +); +$vh = curl_init($url); +curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST"); +curl_setopt($vh, CURLOPT_POST, true); +curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds +curl_setopt($vh, CURLOPT_POSTFIELDS, $post); +//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers); +curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0); +curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0); +curl_setopt($vh, CURLOPT_RETURNTRANSFER, true); +$result = curl_exec($vh); +curl_close($vh); +$notgettingdata = explode('¿', $result); +$getToken = json_decode($notgettingdata[1]); +$access_token = $getToken->access_token; + + + +$headers = array( + 'Authorization: Bearer ' . $access_token + //'Authorization: Basic '. base64_encode("$username:$password") +); +$urlFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/'; +$vhf = curl_init($urlFile); +curl_setopt($vhf, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds +curl_setopt($vhf, CURLOPT_HTTPHEADER, $headers); +curl_setopt($vhf, CURLOPT_SSL_VERIFYPEER, 0); +curl_setopt($vhf, CURLOPT_SSL_VERIFYHOST, 0); +curl_setopt($vhf, CURLOPT_RETURNTRANSFER, true); +$resFile = curl_exec($vhf); +curl_close($vhf); +$resFileNew = explode('¿', $resFile); +$dataF = json_decode($resFileNew[1], TRUE); + + +$headers = array( + 'Authorization: Bearer ' . $access_token + //'Authorization: Basic '. base64_encode("$username:$password") +); +$urlissued = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/issued'; +$vhi = curl_init($urlissued); +curl_setopt($vhi, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds +curl_setopt($vhi, CURLOPT_HTTPHEADER, $headers); +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); +?> + + +
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + + + + + + + + &uri=&id="> + * * */ ?> + + + + + + + + + + + + + +
NameSizeDateAction
+ "; + echo($api_detail['name']); + } elseif ($api_detail['type'] == "file") { + echo " "; + echo($api_detail['name']); + } + ?> +
+ +
+
+ +
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + +
NameSizeDate
+ "; + echo($issued_detail['name']); + ?> + + +
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + + + \ No newline at end of file --- 'a/footer.php' +++ b/footer.php @@ -48,7 +48,5 @@ + - - - \ No newline at end of file --- 'a/header.php' +++ b/header.php @@ -1,22 +1,16 @@ - - - DigiLocker Service Center - - - - - -
--- 'a/loanapproval.php' +++ b/loanapproval.php @@ -1,347 +1,49 @@ - $code, - 'grant_type' => 'authorization_code', - 'client_id' => 'NIELN3M9', - 'client_secret' => 'DQ3pWgCtB0I3EhSrtTXU', - 'redirect_uri' => 'http://localhost/digibank/loanapproval.php', -); -$vh = curl_init($url); -curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST"); -curl_setopt($vh, CURLOPT_POST, true); -curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds -curl_setopt($vh, CURLOPT_POSTFIELDS, $post); -//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers); -curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0); -curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0); -curl_setopt($vh, CURLOPT_RETURNTRANSFER, true); -$result = curl_exec($vh); -curl_close($vh); -$notgettingdata = explode('¿', $result); -$getToken = json_decode($notgettingdata[1]); -$access_token = $getToken->access_token; - - - -$headers = array( - 'Authorization: Bearer ' . $access_token - //'Authorization: Basic '. base64_encode("$username:$password") -); -$urlFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/'; -$vhf = curl_init($urlFile); -curl_setopt($vhf, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds -curl_setopt($vhf, CURLOPT_HTTPHEADER, $headers); -curl_setopt($vhf, CURLOPT_SSL_VERIFYPEER, 0); -curl_setopt($vhf, CURLOPT_SSL_VERIFYHOST, 0); -curl_setopt($vhf, CURLOPT_RETURNTRANSFER, true); -$resFile = curl_exec($vhf); -curl_close($vhf); -$resFileNew = explode('¿', $resFile); -$dataF = json_decode($resFileNew[1], TRUE); -//print_r($dataF);die(); - - - - -$headers = array( - 'Authorization: Bearer ' . $access_token - //'Authorization: Basic '. base64_encode("$username:$password") -); -$urlissued = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/issued'; -$vhi = curl_init($urlissued); -curl_setopt($vhi, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds -curl_setopt($vhi, CURLOPT_HTTPHEADER, $headers); -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); - -$fileContent = file_get_contents('C:/img/digi.png'); -$client_secret = 'DQ3pWgCtB0I3EhSrtTXU'; -$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); -?> - - - - - - - - - - DigiLocker Service Center - - - - - - - - - - - -
-
-
-

- Important security information: -

-
-
-
    -
  • - Before logging in, please ensure that the URL address on the address bar of your internet browser starts with digilockerservicecenter.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. -
  • -
-
+ +
+ +
+
- -
- -
-
-
-
- - +
+
+
+

Download

-
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
-
- - - - - - - - - - &uri=&id="> - * * */ ?> - - - - - - - - -
NameSizeDateAction
- "; - echo($api_detail['name']); - } elseif ($api_detail['type'] == "file") { - echo " "; - echo($api_detail['name']); - } - ?> -
- - - -
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - -
NameSizeDate
- "; - echo($issued_detail['name']); - ?> - - -
- -
-
-
-
-
-
-
-
-
-
-
-
- -
+
+

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 digilockerservicecenter.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 +
+
+
+
+ +
+ \ No newline at end of file --- /dev/null +++ b/payment.php @@ -0,0 +1,99 @@ + +
+ +
+
+
+
+

Payment

+
+
+ +
+ + + +
+ +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+
+ Ammount: + Rs.10 +
+
+
+
+
+ +
+
+
+
+
+ Please correct the errors and try again. +
+
+
+ +
+ + + + + + + + + +
+
+ +
+
+ + + + +
+ + + + \ No newline at end of file --- /dev/null +++ b/signup.php @@ -0,0 +1,31 @@ + +
+ +
+
+
+
+
+
+

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).
  • +
+
+ Signup +
+
+
+
+
+
+
+ +
+ \ No newline at end of file --- /dev/null +++ b/upload.php @@ -0,0 +1,50 @@ + +
+ +
+
+
+
+
+
+

Upload

+
+
+

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).
  • +
+
+ + + + + + +
+
+
+
+
+
+
+ +
+ +
+ \ No newline at end of file --- /dev/null +++ b/uploaddoc.php @@ -0,0 +1,114 @@ + $code, + 'grant_type' => 'authorization_code', + 'client_id' => '7QAKRAJO', + 'client_secret' => 'Pax7Rmv9uWo2KrNcXMtlDtsQN', + 'redirect_uri' => 'http://localhost/digibank/uploaddoc.php', +); +$vh = curl_init($url); +curl_setopt($vh, CURLOPT_CUSTOMREQUEST, "POST"); +curl_setopt($vh, CURLOPT_POST, true); +curl_setopt($vh, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds +curl_setopt($vh, CURLOPT_POSTFIELDS, $post); +//curl_setopt($vh, CURLOPT_HTTPHEADER, $headers); +curl_setopt($vh, CURLOPT_SSL_VERIFYPEER, 0); +curl_setopt($vh, CURLOPT_SSL_VERIFYHOST, 0); +curl_setopt($vh, CURLOPT_RETURNTRANSFER, true); +$result = curl_exec($vh); +curl_close($vh); +$notgettingdata = explode('¿', $result); +$getToken = json_decode($notgettingdata[1]); +$access_token = $getToken->access_token; + + + +$headers = array( + 'Authorization: Bearer ' . $access_token + //'Authorization: Basic '. base64_encode("$username:$password") +); +$urlFile = 'https://developers.digitallocker.gov.in/public/oauth2/1/files/'; +$vhf = curl_init($urlFile); +curl_setopt($vhf, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds +curl_setopt($vhf, CURLOPT_HTTPHEADER, $headers); +curl_setopt($vhf, CURLOPT_SSL_VERIFYPEER, 0); +curl_setopt($vhf, CURLOPT_SSL_VERIFYHOST, 0); +curl_setopt($vhf, CURLOPT_RETURNTRANSFER, true); +$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); + +?> +
+ +
+
+
+
+
+

+ 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