protected static function prepareRequest($httpHeaders = array(), $dataArray = array())
    {

        self::$postDataJSON = json_encode($dataArray);

        self::$httpHeaders = $httpHeaders;

        if (!empty($dataArray)) {
            self::$httpHeaders['Content-type'] = 'application/json';
            self::$httpHeaders['Content-Length'] = strlen(self::$postDataJSON);
        }
    }
protected static function prepareRequest($httpHeaders = array(), $dataArray = array())
    {

        self::$postDataJSON = json_encode($dataArray);

        self::$httpHeaders = $httpHeaders;

        if (!empty($dataArray)) {
            self::$httpHeaders['Content-type'] = 'application/json';
            self::$httpHeaders['Content-Length'] = strlen(self::$postDataJSON);
        }
    }
protected static function prepareRequest ( $ httpHeaders = array ( ) , $ dataArray = array ( ) ) { self :: $ postDataJSON = json_encode ( $ dataArray ) ; self :: $ httpHeaders = $ httpHeaders ; if ( ! empty ( $ dataArray ) ) { self :: $ httpHeaders [ 'Content-type' ] = 'application/json' ; self :: $ httpHeaders [ 'Content-Length' ] = strlen ( self :: $ postDataJSON ) ; } }
Prepare the data and request headers before making the call

@param array $dataArray
@param array $httpHeaders

@return void
Prepare the data and request headers before making the call