Description API-Interface

URL interface:


Parameter transmission method: POST

coding input and output data: UTF-8


required parameters


useame - email User

apikey - your unique 32-character API-key. Lea it you can in the settings section of your account

action - the called function

additional options


showinput - retus in the response array 'input' having passed parameters



function description parameters


(field 'message')

test Connection test no an array containing the fields:
test - ok
balance Check Your balance no an array containing the fields:
balance - balance value
check check order orderid - id order in system

an array containing the fields:

orderid - id Order

name - the name of the order

service - the service code

price - the price

status - status code Order

statusText - the text of the order status

url - url ordered

count - Amount ordered

remain - the remaining amount of

add add to order

service - code added service

depends of service you will call

an array containing the fields:

orderid - id created order

price - the price

services a list of available services service - an optional code of service for which

you need to get the data, if not specified,

it retus data for all services

an array containing the fields:

service - the service code

category - the category of service

price - price of the service (if any)

prices - an array containing the data on the cost and quantity

product_name - full name of product

price - price per quantity

description of params:
params - array of data: 
    name - full name params
    param - what params nee to send in post request 
    required - retu 0 - not necessary value 1 - necessary value
    valid - validation value
    values - (if exist) values you can send 


the results of the function call api vozvrazhayutsya format json, UTF-8 encoding

the answer is as follows:

        {        "result":"success",        "error":"",        "message":""    }    
field decription
result success or error
a query result
error error message when "result": "error"
message the function result, if "result": "success"

code services


code in link (url) on


example: - code soclikes - code instlikeenava


Example api function in php

class to work with api smmlaboratoryApi.php
Example of use:

<?php     require_once 'smmlaboratoryApi.php';    $api = new smmlabaApi('', '00e9b12465a918afa58f320c0bdcc9d0040a56cd'); 
   print_r($api->balance());    print_r($api->check(123456));   
  $params = array (
            'url' => '',
            'comments'=> 'text 1
                          text 2
                          text 3
                          text 4
                          text 5'
  print_r($api->add('instcustomcomments',  $params));?>