В ответ гет запросом приходит:
api_result {"response":[{"uid":18617158,"first_name":"Вадим","last_name":"Мальцев","sex":"2","city":"0"}]}
Вместе с ним аус кей, уид и т.д.є
Передаю так:
Код: Выделить всё
var $viewer_id; var $auth_key; var $api_result; var $sid; var $secret; function AppParams() { $this -> viewer_id = $_GET['viewer_id']; $this -> auth_key = $_GET['auth_key']; $this -> api_result = $_GET['api_result']; $this -> sid = $_GET['sid']; $this -> secret = $_GET['secret']; } function getParams($id=0) { if($id!=0) { $res = 'viewer_id='.$this->viewer_id. '&auth_key='.$this->auth_key. '&api_result='.$this->api_result; '&id='.$id; }else{ $res = 'viewer_id='.$this->viewer_id. '&auth_key='.$this->auth_key. '&api_result='.$this->api_result; '&sid='.$this->sid. '&secret='.$this->secret; } return $res; }