种子消息发送者mircoservice
seed-message-sender的Python项目详细描述
在seed服务和vumi http api之间发送和接收消息
信道配置
并发限制字段:
- 并发限制:值为0将禁用并发限制
- 消息延迟:重试等待消息前等待的秒数
- message\u timeout:在假定消息已完成之前的秒数
配置:
包含以下数据的json字段:
通用API:
- http-api-url:http://example.com/
- http_api_auth:('username','password')
- http_api来自:+4321
- 覆盖有效载荷:{'new_key':'key_from_original_payload'}
- strip_filepath:如果语音文件托管在api所在的位置,则为true/false-true。
原始有效载荷:
{ "to": "+27820000000", "from": "1444", "content": "Hey, this is a message!", "channel_data": { "voice": { "speech_url": "http://sbm.com/hello.mp3" } } }
覆盖有效载荷示例:
{ "to_msisdn": "to", "from_number": "from", "text": "content", "filename": "channel_data.voice.speech_url" }
将生成此负载:
{ "to_msisdn": "+27820000000", "from_number": "1444", "text": "Hey, this is a message!", "filename": "http://sbm.com/hello.mp3" }
六月号:
- junebug_api_url:http://example.com/
- junebug_api_auth:(“用户名”,“密码”)
- junebug_api来自:+4321
vumi:
- vumi_对话键:conv键
- vumi_帐户密钥:帐户密钥
- vumi_帐户令牌:帐户令牌
- vumi_api_url:http://example.com/
WhatsApp:
- api url:whatsapp api的根url
- api_令牌:用于访问api的令牌
- hsm_名称空间:(可选)hsm名称空间,如果要将outbounds作为hsm发送
- hsm_element_name:(可选)hsm element name如果要将outbounds作为hsms发送
- hmac_secret:(可选)用于接收事件和入站webhook的hmac密钥