API PHP Examples

PHP example codes

Order example

Example code
$url = 'http://panel.seoestore.net/action/api.php';
$api_key = 'Your API Key';
$email = 'Your email';

$data = Array(
    'api_key'=>$api_key,//must included in every request
    'email'=>$email,//must included in every request
    'action'=>'order',//action must included in every request
    'service'=>'1',//must included with action: order
    'quantity'=>'2',//must included with action: order
    'extras'=>'6,11',//must included with action: order
    'links'=>"http://link1.com\r\nhttp://link2.com",//must included with action: order & no tier or tier=0
    'keywords'=>'keyword1,keyword2,keyword3',//must included with action: order & no tier or tier=0
    'article'=>'business_search-engine-optimization',//optional
    'ref_id'=>'myTrackingID',//optional
    'notes'=>'my notes'//optional
    );

if (is_array($data)) {
  foreach ($data as $key => $value) {
    $_post[] = $key.'='.$value;
  }
}

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
$result = curl_exec($ch);
curl_close($ch);
Example response
{
    "order": 269013
}

Tier2 order example

Example code
$url = 'http://panel.seoestore.net/action/api.php';
$api_key = 'Your API Key';
$email = 'Your email';

$data = Array(
    'api_key'=>$api_key,//must included in every request
    'email'=>$email,//must included in every request
    'action'=>'order',//action must included in every request
    'service'=>'9',//must included with action: order
    'quantity'=>'100',//must included with action: order
    'extras'=>'1',//must included with action: order
    'tier'=>'1',//converting order to tier project
    'tier_orders'=>'269012,269013',//must included with action: order & tier=1
    'article'=>'business_search-engine-optimization',//optional
    'ref_id'=>'myTrackingID',//optional
    'notes'=>'my notes'//optional
    );
Example response
{
    "order": 269014
}

Order details example

Example code
$url = 'http://panel.seoestore.net/action/api.php';
$api_key = 'Your API Key';
$email = 'Your email';

$data = Array(
    'api_key'=>$api_key,//must included in every request
    'email'=>$email,//must included in every request
    'action'=>'order_details',//action must included in every request
    'order_id'=>'269013'//must included with action: order_details
    );
Example response
{
    "order_id": "269013",
    "service_id": "1",
    "extras_id": "6,11",
    "quantity": "2",
    "price": "510",
    "links": "http:\/\/link1.com\r\nhttp:\/\/link2.com",
    "keywords": "keyword1,keyword2,keyword3",
    "date": "2016-06-18 13:04:11"
}

Order details example

Example code
$url = 'http://panel.seoestore.net/action/api.php';
$api_key = 'Your API Key';
$email = 'Your email';

$data = Array(
    'api_key'=>$api_key,//must included in every request
    'email'=>$email,//must included in every request
    'action'=>'order_status',//action must included in every request
    'order_id'=>'269013'//must included with action: order_status
    );
Example response
{
    "order_id": "269013",
    "status": "Pending"
}
{
    "order_id": "269013",
    "status": "Processing"
}
{
    "order_id": "269013",
    "status": "Completed"
}

Order details example

Example code
$url = 'http://panel.seoestore.net/action/api.php';
$api_key = 'Your API Key';
$email = 'Your email';

$data = Array(
    'api_key'=>$api_key,//must included in every request
    'email'=>$email,//must included in every request
    'action'=>'report',//action must included in every request
    'order_id'=>'269013'//must included with action: report
    );
Example response
{
    "order_id": "268999",
    "report": "reports\/AAA\/11-22\/269013.zip",
    "report_link": "https:\/\/ses-rpts.s3.amazonaws.com\/reports\/AAA\/11-22\/269013.zip"
}

Order details example

Example code
$url = 'http://panel.seoestore.net/action/api.php';
$api_key = 'Your API Key';
$email = 'Your email';

$data = Array(
    'api_key'=>$api_key,//must included in every request
    'email'=>$email,//must included in every request
    'action'=>'services'//action must included in every request
    );
Example response
[
    {
        "id": "22",
        "code": "WEB2",
        "description": "Web 2.0 blogs (Shared accounts)",
        "min_qty": "10",
        "price": "7.000"
    },
    {
        "id": "25",
        "code": "WEB2+ACC",
        "description": "Web 2.0 blogs (Dedicated accounts)",
        "min_qty": "20",
        "price": "13.000"
    },
    {
        "id": "29",
        "code": "FM+",
        "description": "The full monty Premium Edition (high DA sites list)",
        "min_qty": "1",
        "price": "500.000"
    }
]

Order details example

Example code
$url = 'http://panel.seoestore.net/action/api.php';
$api_key = 'Your API Key';
$email = 'Your email';

$data = Array(
    'api_key'=>$api_key,//must included in every request
    'email'=>$email,//must included in every request
    'action'=>'extras'//action must included in every request
    );
Example response
[
    {
        "id": "1",
        "code": "i",
        "description": "Indexer #1 (95%+ Crawled rate)",
        "price": "0.01"
    },
    {
        "id": "2",
        "code": "i2",
        "description": "Indexer #2 (Very High indexer rate)",
        "price": "0.10"
    },
    {
        "id": "11",
        "code": "rtcl100",
        "description": "100 Unique Articles for submission",
        "price": "10.00"
    }
]
Processing...