Answer the question
In order to leave comments, you need to log in
Is it possible to get data about a client's transactions through the Sberbank API, with his consent?
Greetings!
I would like to know if Sberbank has any API for obtaining data on transactions of a client who has previously authorized?
Answer the question
In order to leave comments, you need to log in
Can.
I am developing such a system.
But, most importantly, you must first AGREE with the bank.
It takes us six months for large banks and a month for small ones.
This is NOT a technical question.
$oldDir = './old_files';
$newDir = './new_files';
$files = array_slice(scandir($oldDir), 2);
$keys = [];
foreach ($files as $file) {
$keys = array_merge($keys, explode("\n",file_get_contents($oldDir.'/'.$file)));
}
$keyChunks = array_chunk($keys, 3);
foreach ($keyChunks as $key=>$chunk) {
file_put_contents($newDir.'/'.($key+1), implode("\n",$chunk));
}
The folder contains N files with keys for games. Each file contains the same number of keys for a particular game.
The code will create a file (keys.txt) in which there will be arrays of N keys from different games, with a separator (empty string).
$d = 'keys/old';
$dir = opendir($d);
$count = 0;
while($file = readdir($dir)){
if($file == '.' || $file == '..' || is_dir($d . $file)){
continue;
}
$count++;
}
$oldDir = 'keys/old';
$newDir = 'keys';
$files = array_slice(scandir($oldDir), 2);
$keys = [];
foreach ($files as $file) {
$keys = array_merge($keys, explode("\n",file_get_contents($oldDir.'/'.$file)));
}
$keyChunks = array_chunk($keys, $count);
$fk = fopen("keys/keys.txt", "w+");
foreach ($keyChunks as $key=>$chunk) {
array_push($chunk, "\n");
fwrite($fk, implode("\n",$chunk));
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question