src/Core/LTIX.php
public static function jsonSend($method, $postBody, $content_type,
        $service_url, &$debug_log=false) {

        $key_key = self::ltiParameter('key_key');
        $secret = self::decrypt_secret(self::ltiParameter('secret'));

        $retval = LTI::sendJSONBody($method, $postBody, $content_type,
            $service_url, $key_key, $secret, $debug_log);
        return $retval;
    }
public static function jsonSend($method, $postBody, $content_type,
        $service_url, &$debug_log=false) {

        $key_key = self::ltiParameter('key_key');
        $secret = self::decrypt_secret(self::ltiParameter('secret'));

        $retval = LTI::sendJSONBody($method, $postBody, $content_type,
            $service_url, $key_key, $secret, $debug_log);
        return $retval;
    }
public static function jsonSend ( $ method , $ postBody , $ content_type , $ service_url , & $ debug_log = false ) { $ key_key = self :: ltiParameter ( 'key_key' ) ; $ secret = self :: decrypt_secret ( self :: ltiParameter ( 'secret' ) ) ; $ retval = LTI :: sendJSONBody ( $ method , $ postBody , $ content_type , $ service_url , $ key_key , $ secret , $ debug_log ) ; return $ retval ; }
Send a JSON Body to a URL after looking up the key and secret

@param $method The HTTP Method to use
@param $postBody
@param $content_type
@param $service_url
@param bool $debug_log
@return mixed
Send a JSON Body to a URL after looking up the key and secret