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
url - address untwisted page (photos, groups ...)
count - the number of likes (clicks, visits ...)
params - additional parameters (country, gender ...) array in json format
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
quantity - kolchestvo subscribers
price - price per quantity
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));    print_r($api->add('fb01', '', 100, array('sex'=>'male', 'country'=>'UK')));?>