Skip to content

Latest commit

 

History

History
148 lines (102 loc) · 6.99 KB

TransactionalSMSApi.md

File metadata and controls

148 lines (102 loc) · 6.99 KB

sib_api_v3_sdk.TransactionalSMSApi

All URIs are relative to https://api.sendinblue.com/v3

Method HTTP request Description
GetSmsEvents Get /transactionalSMS/statistics/events Get all your SMS activity (unaggregated events)
GetTransacAggregatedSmsReport Get /transactionalSMS/statistics/aggregatedReport Get your SMS activity aggregated over a period of time
GetTransacSmsReport Get /transactionalSMS/statistics/reports Get your SMS activity aggregated per day
SendTransacSms Post /transactionalSMS/sms Send SMS message to a mobile number

GetSmsEvents

GetSmsEventReport GetSmsEvents(ctx, optional) Get all your SMS activity (unaggregated events)

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *TransactionalSMSApiGetSmsEventsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a TransactionalSMSApiGetSmsEventsOpts struct

Name Type Description Notes
limit optional.Int64 Number of documents per page [default to 50]
startDate optional.String Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report
endDate optional.String Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
offset optional.Int64 Index of the first document of the page [default to 0]
days optional.Int64 Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'
phoneNumber optional.String Filter the report for a specific phone number
event optional.String Filter the report for specific events
tags optional.String Filter the report for specific tags passed as a serialized urlencoded array
sort optional.String Sort the results in the ascending/descending order of record creation. Default order is descending if `sort` is not passed [default to desc]

Return type

GetSmsEventReport

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTransacAggregatedSmsReport

GetTransacAggregatedSmsReport GetTransacAggregatedSmsReport(ctx, optional) Get your SMS activity aggregated over a period of time

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *TransactionalSMSApiGetTransacAggregatedSmsReportOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a TransactionalSMSApiGetTransacAggregatedSmsReportOpts struct

Name Type Description Notes
startDate optional.String Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report
endDate optional.String Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
days optional.Int64 Number of days in the past including today (positive integer). Not compatible with startDate and endDate
tag optional.String Filter on a tag

Return type

GetTransacAggregatedSmsReport

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetTransacSmsReport

GetTransacSmsReport GetTransacSmsReport(ctx, optional) Get your SMS activity aggregated per day

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *TransactionalSMSApiGetTransacSmsReportOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a TransactionalSMSApiGetTransacSmsReportOpts struct

Name Type Description Notes
startDate optional.String Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report
endDate optional.String Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
days optional.Int64 Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'
tag optional.String Filter on a tag
sort optional.String Sort the results in the ascending/descending order of record creation. Default order is descending if `sort` is not passed [default to desc]

Return type

GetTransacSmsReport

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SendTransacSms

SendSms SendTransacSms(ctx, body) Send SMS message to a mobile number

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body SendTransacSms Values to send a transactional SMS

Return type

SendSms

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]