This module adds the following API access for the FreeScout.
- knowledge base (module)
- report module
- FreeScout installed
- FreeScout Knowledge base module
- FreeScout Reports module
- ssh into your server, and navigate to the freescout modules folder, e.g.
cd /freescout/Modules/
- Clone the repo
If you cloned the repo locally, and need it on the server, then zip it first and follow the step 2 of Method 2.
git clone https://github.com/osoobe/freescout-api-extender ApiExtender
- Activate the module via the Modules page in FreeScout.
- Download the latest module zip file via the releases card on the right.
- Transfer the zip file to the server in the Modules folder of FreeScout.
- Unpack the zip file.
- Remove the zip file.
- Activate the module via the Modules page in FreeScout.
If you had originally downloaded the zip file, please follow Method 2, otherwise, follow the steps below.
- ssh into your server, and navigate to the freescout modules folder, e.g.
cd /freescout/Modules/ApiExtender
- Pull the updates
git pull origin main
- Download the latest module zip file via the releases card on the right.
- Transfer the zip file to the server in the Modules folder of FreeScout.
- Remove the folder ApiExtender
- Unpack the zip file.
- Remove the zip file.
Feel free to add your own features by sending a pull request.
curl "https://example.com/api/knowledgebase/1/categories?locale=en" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{}'
curl "https://example.com/api/knowledgebase/1/categories/1?locale=en" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{}'
curl "https://example.com/api/knowledgebase/138/1/how-do-i-reset-my-password" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{}'
curl --location 'https://example.com/api/report/productivity' \
--header 'X-FreeScout-API-Key: <API-KEY>' \
--header 'Content-Type: application/json' \
--data '{
"action": "report",
"report_name": "productivity",
"filters": {
"type": "",
"mailbox": "",
"tag": "",
"from": "2024-06-09",
"to": "2024-06-16"
},
"chart": {
"group_by": "d",
"type": "customers_helped"
}
}'
MIT