Send a carousel message
send_carousel.send(SendCarouselSendParams**kwargs) -> SendCarouselSendResponse
POST/api/send-carousel
Send a carousel of images to a single recipient. Requires a V2 (Mac Mini) line. The carousel must contain between 2 and 20 HTTPS image URLs. For sending a single image, use /api/send-message with media_url instead.
Parameters
Returns
Send a carousel message
import os
from sendblue_api import SendblueAPI
client = SendblueAPI(
api_key=os.environ.get("SENDBLUE_API_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SENDBLUE_API_API_SECRET"), # This is the default and can be omitted
)
response = client.send_carousel.send(
from_number="+19998887777",
media_urls=["https://example.com/image1.jpg", "https://example.com/image2.jpg", "https://example.com/image3.jpg"],
number="+19998887777",
)
print(response.account_email){
"accountEmail": "[email protected]",
"from_number": "+19998887777",
"is_outbound": true,
"media_url": "https://example.com/image1.jpg",
"message_handle": "msg_abc123def456",
"message_type": "carousel",
"number": "+19998887777",
"status": "QUEUED"
}Returns Examples
{
"accountEmail": "[email protected]",
"from_number": "+19998887777",
"is_outbound": true,
"media_url": "https://example.com/image1.jpg",
"message_handle": "msg_abc123def456",
"message_type": "carousel",
"number": "+19998887777",
"status": "QUEUED"
}