From: indresh singh bhadoria Date: Fri, 05 May 2017 12:58:01 +0530 Subject: test --- test --- --- 'a/accountstatement.php' +++ b/accountstatement.php @@ -1,5 +1,10 @@ --- /dev/null +++ b/fetchdoc.php @@ -0,0 +1,220 @@ + + + + + + + + + + + DigiLocker Service Center + + + + + + + + + + + +
+ + +
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + + + + &uri=&id="> + * * */ ?> + + + +
NameSizeDate
+ "; + echo($api_detail['name']); + } elseif ($api_detail['type'] == "file") { + echo " "; + echo($api_detail['name']); + } + ?> +
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + +
NameSizeDate
+ "; + echo($issued_detail['name']); + ?> + + +
+ +
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + + + + + + --- 'a/loanapproval.php' +++ b/loanapproval.php @@ -1,6 +1,8 @@ access_token; + $headers = array( 'Authorization: Bearer ' . $access_token //'Authorization: Basic '. base64_encode("$username:$password") @@ -61,6 +64,28 @@ $resissuedErr = curl_error($vhi); curl_close($vhi); $issuedNew = explode('¿', $resissued); $dataI = json_decode($issuedNew[1], TRUE); + + +$headers = array( + 'Authorization: Bearer ' . $access_token + //'Authorization: Basic '. base64_encode("$username:$password") +); +$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, array('Content-Type: application/octet-stream','Authorization : Bearer . $access_token','path : cehck.png','hmac : CiLhWvbL5EX1+lOTdZzCOgXUzZ+m5fvwxkiEms9Bsvo=')); +$output = curl_exec($ch); +print_r($output); +die(); + ?> @@ -110,27 +135,13 @@ $dataI = json_decode($issuedNew[1], TRUE -