Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mihkel Putrinš
Entu API library
Commits
894ba0fd
Commit
894ba0fd
authored
Oct 09, 2014
by
Mihkel Putrinš
Browse files
Update README.md
parent
7160291a
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
894ba0fd
...
...
@@ -3,4 +3,22 @@ entulib
Library for authenticated access to Entu database
api_key property should hold your key.
## 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)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment