Prepare the data for injection
POST http://1.2.3.4:9503/categories/memory/prepare
This operation simply loads the domains to be injected into a queue.
The injection operation is not yet effective.
inside the post, add these fields
websites
: List of websites to be injected.category_id
: Number of the target personal category IDForceCat
: 1 or 0 Indicates whether, before importing domains, Artica should check whether they already exist in a personal or official category. ForceExt
: 1 or 0 By default, Artica prohibits all non-compliant domain extensions (e.g. domain.noexten ). Curl example:
curl -X POST -F "websites=@/home/user/websites.txt" -F "category_id=257" -F "ForceExt=0" -F "Force=1" "http://1.2.3.4:9503/categories/memory/prepare"
Where /home/user/websites.txt contains websites separated with a carriage return ( or a comma )
Once sent, parameters and domains are queued.
The queue content can be retrieved with the following command
List injection queue
GET http://1.2.3.4:9503/categories/memory/list
The API return a json like:
{
"Status": false,
"Info": "Massive injection queue list",
"Error": "",
"Queue": {
"257": {
"8492bf59354e7e0a214ce560a1fa13bc": {
"items": 1054,
"forceCat": 0,
"category": 257,
"forceExt": 0,
"size": 0,
"queuePath": "/home/artica/categories/import-queue/257/8492bf59354e7e0a214ce560a1fa13bc",
"queueID": "8492bf59354e7e0a214ce560a1fa13bc",
"progress": 0
}
}
}
}
Queue → Category → QueueID
)Import by category ID or Queue ID
GET http://1.2.3.4:9503/categories/memory/run/[categoryid] or [QueueID]
Examples:
GET http://1.2.3.4:9503/categories/memory/run/257
GET http://1.2.3.4:9503/categories/memory/run/8492bf59354e7e0a214ce560a1fa13bc
Parse all queues
GET http://1.2.3.4:9503/categories/memory/run/all