Definition
The commitPostLinksImport API Command will finish the started import operation created by the “beginPostLinksImport” command. Use it after you inserted all the links with the Postlinksimport command. The command is processed in a queue, meaning that the result will be available after finishing creating the new campaign.
Cost
Using this command consumes 1 credit per each link imported. *It will also consume credits from the remaining number of links per site credits pool.
Module
The command is included in the Campaign API Module and will only consume credits assigned for Campaign API Operations.
Parameters
campaignId | The ID number of the campaign you wish to add competitors to. |
siteId | The ID number of the website you added links to. |
Input URL Example
http://api.cognitiveseo.com/command.php?apiKey=your_api_key&command=commitPostLinksImport&campaignId=8&siteId=14
Output Example
Running this command will result in the following JSON output:
1 2 3 4 5 6 7 8 9 10 11 12 |
{ "api": "cognitiveSEO API", "data": { "status": "success", "data": { "errors": null, "importedUrls": 3 }, "credits": 3 }, "time": 1.962 } |
Output Details
status | The status of the command (success or error). |
errors | Displays the cause and the number of errors encountered when importing the links. |
importedUrls | Represents the number of URLs inserted. |
credits | The credit cost of the command. |
time | The time it took for the command to take place. |