简体   繁体   English

Trello + Butler,你如何将卡片信息邮寄到我的 api?

[英]Trello + Butler, how do you post card info to my api?

I am trying to use Butler to post a request to my API with card info.我正在尝试使用 Butler 向我的 API 发送带有卡信息的请求。 Butler looks like this:巴特勒长这样: 在此处输入图像描述

How do I send the card info inside the payload?如何在有效载荷内发送卡信息? Butler has variables like {cardname} but how would I set this up to send a request properly? Butler 有像 {cardname} 这样的变量,但我该如何设置才能正确发送请求?

You just need to send all your data in a JSON format with appropriate Butler variables.您只需使用适当的 Butler 变量以 JSON 格式发送所有数据。

For example, in your payload例如,在您的有效载荷中

{ "yourKey": "{cardname}" }

I used variable {cardname} , but you can use all other that you need.我使用了变量{cardname} ,但您可以使用您需要的所有其他变量。

The same rules goes for Headers if you need some.如果你需要,同样的规则也适用于Headers

Remember that in your code you'll receive data as a plain string inside your request body.请记住,在您的代码中,您将在请求正文中以纯字符串形式接收数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM