Skip Navigation
Expand
KA REST API samples (Retrieve and Search answer) with curl commands using MSDOS command window
Answer ID 12631   |   Last Review Date 05/24/2023

What are the KA REST API samples (Retrieve and Search answer) with curl commands using MSDOS command window?

Environment:

Knowledge Advanced for Oracle B2C Service

Resolution:

See the attached Xyz-23a-ka-RestApi-GetContent-Search.txt for the simple sample (via curl commands using MSDOS command window) with a fake site: Xyz-23a-ka on how to properly
- authenticate and authorize
then
- invoke the subsequent 'Get Content' and 'Search' KA REST API calls.   
 
Noite: Depending on the tool (say Postman), you may (or not) need to escape different special characters for the KA API call like \" for the curl command using MSDOS command window in the attached Xyz-23a-ka-RestApi-GetContent-Search.txt example.