shuba_ivan

Untitled

Nov 20th, 2015
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.27 KB | None | 0 0
  1.  $bankUser = $client
  2.             ->post(
  3.                 "https://bankid.privatbank.ua/ResourceService/checked/data",
  4.                 [
  5.                     "Content-Type" => "application/json",
  6.                     "Accept" => "application/json",
  7.                     "Authorization" => "Bearer {$accessToken['access_token']}, Id {$this->clientId}",
  8.                 ],
  9.                 json_encode([
  10.                     "type" => "physical",
  11.                     "fields" => ["firstName","middleName","lastName","phone","inn","clId","clIdText","birthDay","email","sex","resident","dateModification"],
  12.                     "addresses" =>  [[
  13.                         "type" => "factual",
  14.                         "fields" => ["country","state","area","city","street","houseNo","flatNo","dateModification"]
  15.                     ],[
  16.                         "type" => "birth",
  17.                         "fields" => ["country","state","area","city","street","houseNo","flatNo","dateModification"]
  18.                     ]],
  19.                     "documents" => [[
  20.                         "type" => "passport",
  21.                         "fields" => ["series","number","issue","dateIssue","dateExpiration","issueCountryIso2","dateModification"]
  22.                     ]]
  23.                 ])
  24.             )
Advertisement
Add Comment
Please, Sign In to add comment