예제 #1
0
 function getStreetNameById($id)
 {
     $this->restModule->haveHttpHeader('Content-Type', 'application/json');
     $city = $this->getCity(4);
     $this->restModule->sendGET('/lists/streets/' . $city);
     $streets = $this->restModule->grabResponse();
     $streetName = json_decode($streets)[$id]->name;
     //$this->debugSection('Street ID', $streetName);
     file_put_contents(codecept_data_dir('streets_name.json'), $streets);
     return $streetName;
 }