Definition
The postLinksImport API Command adds the links to the website in the campaign selected earlier in the “beginPostLinksImport” command. After importing all the links use the “commitPostLinksImport” command to end the process.
Cost
Using this command consumes 1 credit.
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 will add links to. |
nrLinks | The total number of links you are going to import. |
links(*) | The URL of the link added. * represents the number of the link added (its takes values between 1 and the number from the “nrLinks” parameter) |
Input URL Example
http://api.cognitiveseo.com/command.php?apiKey=your_api_key&command=postLinksImport&campaignId=8&siteId=14&nrLinks=3&link1=http://cognitiveseo.com&link2=http://siteexample.com&link3=http://siteexample2.com
Output Example
Running this command will result in the following JSON output:
1 2 3 4 5 6 7 8 |
{ "api": "cognitiveSEO API", "data": { "status": "success", "credits": 1 }, "time": 5.962 } |
Output Details
status | The status of the command (success or error). |
credits | The credit cost of the command. |
time | The time it took to process the command. |