Example #1
0
    public static SqlInt32 APICaller_POST_Extended(SqlString URL, SqlString Headers, SqlString JsonBody)
    {
        SqlInt32 ExecutionResult = APIConsumer.DEFAULT_EXECUTION_RESULT;

        API_Consumer.ExtendedResult ExtResult = new API_Consumer.ExtendedResult();

        try
        {
            string Result = APIConsumer.POSTMethod_Extended(ref ExtResult, URL.ToString(), JsonBody.ToString(), Headers.ToString());

            Helper.SendResultValue(ExtResult);
        }
        catch (Exception ex)
        {
            Helper.SendResultValue(ExtResult);
            ExecutionResult = APIConsumer.FAILED_EXECUTION_RESULT;
        }

        return(ExecutionResult);
    }