App\Libraries\CurlUtils::post PHP Метод

post() публичный статический Метод

public static post ( $url, $data, $headers = false )
    public static function post($url, $data, $headers = false)
    {
        return self::exec('POST', $url, $data, $headers);
    }

Usage Example

Пример #1
0
 private function sendResponse($token, $to, $message)
 {
     $url = sprintf('%s/conversations/%s/activities/', SKYPE_API_URL, $to);
     $headers = ['Authorization: Bearer ' . $token];
     //echo "<pre>" . htmlentities(json_encode(json_decode($message), JSON_PRETTY_PRINT)) . "</pre>";
     $response = CurlUtils::post($url, $message, $headers);
     //var_dump($response);
 }