MessageTemplateClient Class
- java.
lang. Object - com.
azure. communication. messages. MessageTemplateClient
- com.
public final class MessageTemplateClient
Initializes a new instance of the synchronous MessageTemplateClient type.
Method Summary
Modifier and Type | Method and Description |
---|---|
Paged |
listTemplates(String channelId)
List all templates for given Azure Communication Services channel. |
Paged |
listTemplates(String channelId, RequestOptions requestOptions)
List all templates for given Azure Communication Services channel. |
Methods inherited from java.lang.Object
Method Details
listTemplates
public PagedIterable
List all templates for given Azure Communication Services channel.
Parameters:
channelId
- The registration ID of the channel.
Returns:
paged collection of MessageTemplateItem items as paginated response with PagedIterable<T>.
listTemplates
public PagedIterable
List all templates for given Azure Communication Services channel.
Query Parameters
| ----------- | ------- | -------- | ------------------------------------- |
| Name | Type | Required | Description |
| maxpagesize | Integer | No | Number of objects to return per page. |
You can add these to a request with RequestOptions#addQueryParam
Response Body Schema
{
kind: String(whatsApp) (Required)
name: String (Required)
language: String (Required)
status: String(approved/rejected/pending/paused) (Required)
}
Parameters:
channelId
- The registration ID of the channel.
requestOptions
- The options to configure the HTTP request before HTTP client sends it.
Returns:
paged collection of MessageTemplateItem items as paginated response with PagedIterable<T>.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java