public function editAddressBook($id, $newName)
    {
        if (empty($newName) || empty($id)) {
            return $this->handleError('Empty new name or book id');
        }

        $data = array('name' => $newName);
        $requestResult = $this->sendRequest('addressbooks/' . $id, 'PUT', $data);

        return $this->handleResult($requestResult);
    }
public function editAddressBook($id, $newName)
    {
        if (empty($newName) || empty($id)) {
            return $this->handleError('Empty new name or book id');
        }

        $data = array('name' => $newName);
        $requestResult = $this->sendRequest('addressbooks/' . $id, 'PUT', $data);

        return $this->handleResult($requestResult);
    }
public function editAddressBook ( $ id , $ newName ) { if ( empty ( $ newName ) || empty ( $ id ) ) { return $ this -> handleError ( 'Empty new name or book id' ) ; } $ data = array ( 'name' => $ newName ) ; $ requestResult = $ this -> sendRequest ( 'addressbooks/' . $ id , 'PUT' , $ data ) ; return $ this -> handleResult ( $ requestResult ) ; }
Edit address book name

@param $id
@param $newName

@return stdClass
Edit address book name