Forum Discussion
Hi nzacharakis
The answer to this depends on where you want to run the code, the API calls you could use are
Create Message (the article could just include links back to the docx files on your main site).
OR
Add Attachment to existing Message (if you want to upload them to Khoros)
If you want to access the API externally then you need to authenticate.
- nzacharakis2 years agoHelper
Hi cblown,
I went through the links and their relevant documentation you sent me.
Basically I have a Word document (docx) that I need to POST to the specific company community. The stuff I was going through talk about JSON files.
I also googled "how to" perform my case using Python script and I cam across this link https://khoros.readthedocs.io/en/latest/ .
Unfortunately so far I could not get a clear picture as to how to use the API to "upload/POST" a Word document. Am I missing something?
Thank you in advance,
Nikos
- Akenefick2 years agoGenius
I don't think there is a way to directly post a word document (unless it is an attachment, but I don't think that's what you want). I think you would need to first convert that doc to html and then you could use the community API to create a post with that html as the body with this Create message (khoros.com)
I don't know much about it, but it looks like there are python libraries you can use to go from a word doc to html if python is what you are using.
- nzacharakis2 years agoHelper
Good morning Andrew ,
Thank you for your informative reply. I think you have a good point because so far I have not found anything that describes how to post a Word doc. I will go ahead and try your solution and I hope I get a break through.
Keep you updated.
Thank you,
Nikos
Related Content
- 2 months ago
- 5 months ago