Welcom To Rocky Liker Api
HTTP Method GET
API URL http://rockysite.net/api/api.php
Response format JSON
Version API 1.5.1
Like On Post Like On Page Reactions On Post Comments On Post

Rand Comments On Post Rate On Page Followers To User Get Status By Hash

About Response

You need to add this function to get response.

//-------------PHP Function-------------
	function get_json($url) {
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		curl_setopt($ch, CURLOPT_FAILONERROR, 0);
		$data = curl_exec($ch);
		curl_close($ch);
		return json_decode($data);
	}  
	     	

Send Like On Post Order
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=post
&action=like
&postid=YOUR_POST_ID
&limit=LIMIT';

//-------------Example Code To Get 1000 Likes-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=post&action=like&postid=1839323189431708&limit=1000';

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => like
            [postid] => 1839323189431708
            [limit] => 1000
            [added] => 1523988719
            [status] => true
            [res] => success,successfully added.
            [hash] => 1bFaT6Uqy3NpgJlolO87
        )
)
	     	

Send Like On Page Order
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=post
&action=like
&pageid=YOUR_PAGE_ID
&limit=LIMIT';

//-------------Example Code To Get 1000 Likes-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=post&action=like&pageid=333112203869853&limit=1000';

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => like
            [pageid] => 333112203869853
            [limit] => 1000
            [added] => 1523984854
            [status] => true
            [res] => success,successfully added.
            [hash] => hckGzFZBQMKbuyvGXCCT
        )
)
	     	

Send Reactions On Post Order
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=post
&action=reaction
&postid=YOUR_POST_ID
&limit=LIMIT
&type=all';

// you can use all reactions type or use ('LOVE','WOW','HAHA','SAD','ANGRY')

//-------------Example Code To Get 300 reactions-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=post&action=reaction&postid=1839323189431708&limit=300&type=all';

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => reaction
            [postid] => 1839323189431708
            [limit] => 300
            [type] => all
            [added] => 1523994721
            [status] => true
            [res] => success,successfully added.
            [hash] => 1bFaT6Uqy3NpgJlolO87
        )
)
	     	

Send Comments On Post
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=post
&action=comment
&postid=YOUR_POST_ID
&comments=comment 1,,comment 2,,comment 3';

//-------------Example Code To Get 3 Comments-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=post&action=comment&postid=1839323189431708&comments=comment 1,,comment 2,,comment 3';

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => comment
            [postid] => 1839323189431708
            [comments] => Array
                (
                    [0] => comment 1
                    [1] => comment 2
                    [2] => comment 3
                )

            [limit] => 3
            [added] => 1523989657
            [status] => true
            [res] => success,successfully added.
            [hash] => Qrg7pFYKtP9xF5ySPE3l
        )

)
	     	

Send Rand Comments On Post
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=post
&action=randomcomment
&postid=YOUR_POST_ID
&limit=LIMIT
&comments=Comment_Lang';


//----- Comment Lang --------
/*
for arabic    -> rocky_arabic 
for einglish  -> rocky_einglish 
for indian    -> rocky_indian 
for russian   -> rocky_russian 
for indonesia -> rocky_indonesia 
for china     -> rocky_china 
*/
//-------------Example Code To Get 3 Comments-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=post&action=randomcomment&postid=1839323189431708&limit=3&comments=rocky_einglish';

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => randomcomment
            [postid] => 1839323189431708
            [comments] => Array
                (
                    [0] => comment 1
                    [1] => comment 2
                    [2] => comment 3
                )

            [limit] => 3
            [added] => 1523989657
            [status] => true
            [res] => success,successfully added.
            [hash] => Qrg7pFYKtP9xF5ySPE3l
        )

)
	     	

Send Rate On Page Order
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=post
&action=rating
&pageid=YOUR_PAGE_ID
&limit=LIMIT
&rate=Rate';

//-------------Example Code To Get 20 Rating-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=post&action=rating&pageid=333112203869853&limit=20&rate=5');

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => rating
            [pageid] => 333112203869853
            [limit] => 20
            [rate] => 5
            [added] => 1523990096
            [status] => true
            [res] => success,successfully added.
            [hash] => ClsfQ2kveFFrpZwNOM8s
        )

)
	     	

Send Followers To User
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=post
&action=follow
&userid=USER_ID
&limit=LIMIT';

//-------------Example Code To Get 10 Followers-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=post&action=follow&userid=100000621331082&limit=10');

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => follow
            [userid] => 100000621331082
            [limit] => 10
            [added] => 1523990335
            [status] => true
            [res] => success,successfully added.
            [hash] => TcdYMptuhc0fUBlzYgES
        )

)
	     	




Get Status

Get Status By Hash
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=get
&action=status
&hash=HASH';

//-------------Example Code This Hash -> 'ClsfQ2kveFFrpZwNOM8s' -------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=get&action=status&hash=ClsfQ2kveFFrpZwNOM8s');

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => stdClass Object
        (
            [action] => rating
            [pageid] => 333112203869853
            [limit] => 500
            [added] => 1523990760
            [status] => pending
            [hash] => ClsfQ2kveFFrpZwNOM8s
            [start] => 1183
            [end] => 1683
        )

)
	     	

Get All Status
//--------------------------
$url = 'http://rockysite.net/api/api.php?api_key=YOUR_API_KEY
&method=get
&action=get_all_status
&limit=LIMIT';

//-------------Example Code To Get Last 5 Status-------------
$url = 'http://rockysite.net/api/api.php?api_key=dewdewd23edg4d2zs2e3xrgecec65efe5e3&method=get&action=get_all_status&limit=5');

get_json($url) ;

//-------------Response json-------------
stdClass Object
(
    [response] => Array
        (
            [0] => stdClass Object
                (
                    [action] => follow
                    [userid] => 100000621331082
                    [limit] => 10
                    [added] => 1523991243
                    [status] => finished
                    [hash] => TcdYMptuhc0fUBlzYgES
                )

            [1] => stdClass Object
                (
                    [action] => rating
                    [pageid] => 333112203869853
                    [limit] => 5
                    [added] => 1523991243
                    [status] => working
                    [hash] => ClsfQ2kveFFrpZwNOM8s
                )

            [2] => stdClass Object
                (
                    [action] => comment
                    [postid] => 1839323189431708
                    [comments] => Array
                        (
                            [0] => comment_1
                            [1] => comment_2
                            [2] => comment_3
                        )

                    [limit] => 50
                    [added] => 1523991243
                    [status] => pending
                    [hash] => Qrg7pFYKtP9xF5ySPE3l
                )

            [3] => stdClass Object
                (
                    [action] => comment
                    [postid] => 1839323189431708
                    [comments] => Array
                        (
                            [0] => comment_1
                            [1] => comment_2
                            [2] => comment_3
                        )

                    [limit] => 10
                    [added] => 1523991243
                    [status] => canceled
                    [hash] => zjdtSbml9hv03eEQelF5
                )

            [4] => stdClass Object
                (
                    [action] => like
                    [postid/pageid] => 1839323189431708
                    [limit] => 10
                    [added] => 1523991243
                    [status] => finished
                    [hash] => hckGzFZBQMKbuyvGXCCT
                )
        )
)