README.md 902 Bytes
Newer Older
Mihkel Putrinš's avatar
Mihkel Putrinš committed
1
2
3
4
entulib
=======

Library for authenticated access to Entu database
5

Mihkel Putrinš's avatar
Mihkel Putrinš committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## 5 methods to please your application

### python 3
#### class EntuLib():
- def \__init__(self, entu_user_id, entu_user_key, entu_url):
- def get_entity(self, entity_id):
- def find_entity(self, definition, query, limit=1000000):
- def create_entity(self, parent_id, definition, properties={}):
- def add_properties(self, entity_id, definition, properties):
- def add_file(self, entity_id, property_definition, abspath):


### javascript
#### var EntuLib = function EntuLib(entu_user_id, entu_user_key, entu_url)
- getEntity: function (callback, entity_id)
- findEntity: function (callback, definition, query, limit)
- createEntity: function (callback, parent_id, definition, properties)
- addProperties: function (callback, entity_id, definition, properties)
- addFile: function (callback, entity_id, property_definition, abspath)