Comments
Comments¤
Comment list¤
with_answers = True #False
comments = api.get_call(
"comment", "list", content="YOUR_POST_ID", withAnswers=with_answers
)
For more details see api.lumapps.com
Comment get¤
from lumapps.api.base_client import BaseClient
client = BaseClient(token="<your_token>")
comment = client.get_call(
"comment/get", uid="YOUR_COMMENT_ID"
)
For more details see api.lumapps.com
Comment save¤
The variable comment
is a json object described here.
You can either construct a new one from scratch:
comment = {
"content": "YOUR_POST_ID",
"customer": "YOUR_CUSTOMER_ID",
"instance": "YOUR_INSTANCE_ID",
"text": {
{"fr": "Comment content, you can use markdown"},
},
"publicationDate": publication_date,
"createdAt": publication_date,
"startDate": publication_date,
}
or update properties from one you just got using the api.
```python
from lumapps.api.base_client import BaseClient
client = BaseClient(token="
comment = client.get_call( "comment/get", uid="YOUR_COMMENT_ID" )
comment["title"] = {"fr": "New title"}
comment = client.get_call( "comment/save", body=comment )
For more details see the api documentation