Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1.  
  2. $request = array (
  3.   'key' => 'a3ce9d7077c177d834a402ab035022b6',
  4.   'type' => 'stock_search',
  5.   'page' => '1',
  6.   'limit' => '9',
  7.   'stock_type' => '1',
  8.   'parent' => 'all',
  9.   'randomize' => '0',
  10.   'group[0]' => '178',
  11.   'extstock' =>
  12.   array (
  13.     0 =>
  14.     array (
  15.       'id' => 1220,
  16.       'type' => 'multiselect',
  17.       'value' => 'Выгружать на наш сайт',
  18.     ),
  19.   ),
  20.   'group' =>
  21.   array (
  22.     0 => 178,
  23.   ),
  24. );
  25.  
  26. $context = stream_context_create(
  27.     array(
  28.         'http' => array(
  29.             'method' => 'POST',
  30.             'header' => 'Content-Type: application/x-www-form-urlencoded' . PHP_EOL,
  31.             'content' => http_build_query($request)
  32.         )
  33.     )
  34. );
  35.  
  36. $response = file_get_contents('https://cleankey.intrumnet.com/functionapi/',false,$context);
  37.  
  38. var_dump($response);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement