Ejemplo n.º 1
0
    public static void APICaller_GET_JsonBody_Header(SqlString URL, SqlString JsonBody, SqlString Headers)
    {
        try
        {
            string Result = APIConsumer.GETMethod_Headers(URL.ToString(), JsonBody.ToString(), Headers.ToString());

            Helper.SendResultValue("Result", Result);
        }
        catch (Exception ex)
        {
            Helper.SendResultValue("Error", ex.Message.ToString());
        }
    }
Ejemplo n.º 2
0
    public static SqlInt32 APICaller_GET_JsonBody_Header(SqlString URL, SqlString Headers, SqlString JsonBody)
    {
        SqlInt32 ExecutionResult = APIConsumer.DEFAULT_EXECUTION_RESULT;

        try
        {
            string Result = APIConsumer.GETMethod_Headers(URL.ToString(), JsonBody.ToString(), Headers.ToString());

            Helper.SendResultValue(APIConsumer.DEFAULT_COLUMN_RESULT, Result);
        }
        catch (Exception ex)
        {
            Helper.SendResultValue(APIConsumer.DEFAULT_COLUMN_ERROR, ex.Message.ToString());
            ExecutionResult = APIConsumer.FAILED_EXECUTION_RESULT;
        }

        return(ExecutionResult);
    }