<?php
        
// Your data
        
$your_api              "api_key";
        
$type ="offline";//all / offline / abused / partially online (optional, Standard: all)


        
$data = array(
            
"api" => $your_api,
            
"type" => $type
        
);

        
$post_url "http://relink.to/api/container_offline.php";
         
        
// create a post request
        
PostRequest($post_url$data);
        
/*
        ** The function:
        */
         
        
function PostRequest($url$_data) {

            
// convert variables array to string:
            
$data urldecode(http_build_query($_data));
            
            
$ch curl_init($url);                                                                      
            
curl_setopt($chCURLOPT_CUSTOMREQUEST"POST");                                                                     
            
curl_setopt($chCURLOPT_POSTFIELDS$data);                                                                  
            
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);                                                                      
                                                                                                                 
            
$result curl_exec($ch);
            echo 
$result;
        }
        
?>