| 176 | raise Exception("A type is necessary. Example: contacts, leads, accounts, etc... check the library") |
| 177 | |
| 178 | def update_data(self, type=None, id=None, **kwargs): |
| 179 | if type is not None and id is not None: |
| 180 | url = '{0}({1})'.format(type, id) |
| 181 | params = {} |
| 182 | if kwargs is not None: |
| 183 | params.update(kwargs) |
| 184 | return self._patch(url, json=params) |
| 185 | raise Exception("A type is necessary. Example: contacts, leads, accounts, etc... check the library") |
| 186 | |
| 187 | def delete_data(self, type=None, id=None): |
| 188 | if type is not None and id is not None: |