使用API​​创建Podio App工作流 - PHP

时间:2017-03-03 09:19:57

标签: podio

我正在使用Flows API创建新的工作流程。

API:https://developers.podio.com/doc/flows/add-new-flow-26309928

我已正确准备好属性(通过参考API文档)。它没有按预期工作,并在创建具有效果的流时返回错误。我能够创建一个没有任何效果的流,即。一个无效的空流。但是当我尝试使用效果创建流时,它会显示如下错误。

  

PodioServerError:执行期间发生意外错误。

下面给出的是我的代码部分,

 $attributes = array(
            'config' => array(
                'conditions' => array()
            ),
            "effects" => array(array(
                "values" => array(
                    'attribute_id' => "comment.value",
                    'label' => "Comment",
                    'required' => true,
                    'substitutions' => array(),
                    'type' => "text",
                    'value' => "This is a test comment from flow"
                ),
                'type' => "comment.create",
            )),
            'name' => 'Test Flow via API',
            'type' => 'item.create'
        );
    PodioFlow::create('app', $appID, $attrib);

知道错误是什么或如何正确调试吗?

1 个答案:

答案 0 :(得分:2)

请你试试:

values

唯一的区别是attributeseffects内的(defn tree->nums [tree] (->> tree flatten (filter number?)) (tree->nums my-tree) 取代。这在文档中是错误的,抱歉,现在已经解决了。

相关问题