Forum Discussion
Hey, I'm a little late to this one, but I just recently started playing around with the Care API and thought I might give this a try.
This API Get conversation details by document source ID (khoros.com) returns Care conversation info based on the source id not the Care id. They give twitter and Facebook as examples, but I would assume it should work for community conversations as well.
Has anyone ever used this successfully?
https://instance.response.lithium.com/api/v2/conversations/bySourceDocumentId/networks/{network}/instances/{instance}/id/{source document id}
It says the network parameter is "The unique name of the network serving as the source channel". No examples so I tried "community". It seemed ok with that but said "No conversations found that contain document with id 10041".
Anyone here ever gotten this to work with community posts that could share some details? If so, it seems like a link to the Care conversation from community is probably achievable.
Thanks
- DaveEv2 years agoKhoros Staff
Akenefick Looking at this now: try network either "Lia" or "Lithium" -- should be one of those two. Let me know how this works-- very cool idea.
Thx-
D
- Akenefick2 years agoGenius
Hi DaveEv Thanks, I tried both without any luck. I'm also wondering if I'm using the right thing under "instance".
https://instance.response.lithium.com/api/v2/conversations/bySourceDocumentId/networks/{network}/instances/{instance}/id/{source document id}
The first occurrence of "instance" for us is definitely "ptc". I've used it in other API calls successfully. Should the second "instance" in the path parameters be the same? The documentation says - "The unique name of the Khoros Care instance through which the conversation is managed." I've tried "ptc" and "ptc1" which I think I've seen used somewhere for our care instance as well. I also thought that instance might refer to our community instance not Care, even though the documentation says otherwise. So, I tried "sejnu66972" which is our community instance id. I've tried all of those with both Lithium and Lia for the network.
Here is part of the results from a different API call to get conversation details with the Care display id. It has a lot of information about the network and other info that I thought might be useful to piecing this together.
"primaryMessage": {"lakeProperties": [],"listeningTokenExternalId": "sejnu66972", <- tried this for instance also tried ptc and ptc1"userHasPermissionToView": true,"isSourceHidden": false,"gdprdeleted": false,"conversationDisplayId": 29805745,"network": "lithium", <- this makes me think you are right, and network should be "lithium""networkinstance": "community.ptc.com/","id": "community.ptc.com/:869687", <- this is the community id for the topic which I use for the last parameter "source document id""lswUuid": "bddf6ed3-9ab0-4582-9884-537866c114bd",Thanks!
Related Content
- 12 years ago