Definition
The commitPostSocialLinksImport API Command will end the import process started using the “beginPostSocialLinksImport” command. Use it after you have inserted all links with the “postSocialLinks” 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 for each link imported.
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. |
siteId | The ID Number of the site you will import links to. |
Input URL Example
http://api.cognitiveseo.com/command.php?apiKey=your_api_key&&command=commitPostSocialLinksImport&campaignId=7&siteId=39
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": 2 }, "credits": 2 }, "time": 4.883 } |
Output Details
status | The status of the command (success or error). |
errors | Displays the cause of the error and the number of errors encountered in the import process. |
importedUrls | The number of imported URLs. |
credits | The credit cost of the command. |
time | The time it took to process the command. |