All URIs are relative to https://notify.eskiz.uz
| Method | HTTP request | Description |
|---|---|---|
| ExportMessages | Post /api/message/export | Экспортировать в формате CSV |
| GetDispatchStatus | Post /api/message/sms/get-dispatch-status | Статус рассылки |
| GetNicknames | Get /api/nick/me | Получить список ник |
| GetSmsLogs | Get /api/logs/sms/{id} | Системные логи |
| GetSmsStatusById | Get /api/message/sms/status_by_id/{id} | Получить статус по ID |
| GetTotalByDispatch | Post /api/report/total-by-dispatch | Расходы по рассылке |
| GetTotalByMonth | Get /api/report/total-by-month | Итого по месяцам |
| GetTotalByRange | Post /api/report/total-by-range | Расходы по датам |
| GetTotalBySmsc | Post /api/report/total-by-smsc | Итого по компаниям |
| GetUserInfo | Get /api/auth/user | Данные ползователья |
| GetUserLimit | Get /api/user/get-limit | Получить баланс |
| GetUserMessages | Post /api/message/sms/get-user-messages | Детализация |
| GetUserMessagesByDispatch | Post /api/message/sms/get-user-messages-by-dispatch | Получить СМС по рассылке |
| GetUserTemplates | Get /api/user/templates | Получить список шаблонов |
| GetUserTotals | Post /api/user/totals | Итог отправленных СМС |
| Login | Post /api/auth/login | Получить токен |
| NormalizeSms | Post /api/message/sms/normalizer | Нормализации SMS |
| RefreshToken | Patch /api/auth/refresh | Обновить токен |
| SendSms | Post /api/message/sms/send | Отправить СМС |
| SendSmsBatch | Post /api/message/sms/send-batch | Отправить СМС рассылка |
| SendSmsGlobal | Post /api/message/sms/send-global | Отправить Международный СМС |
| SendTemplate | Post /api/user/template | Отправить шаблон |
*os.File ExportMessages(ctx).Status(status).End(end).Month(month).Start(start).Year(year).Execute()
Экспортировать в формате CSV
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
status := "status_example" // string | `all` или `delivered` или `rejected` (optional)
end := "end_example" // string | YYYY-MM-DD HH:mm:ss (optional)
month := "month_example" // string | Месяц (optional)
start := "start_example" // string | YYYY-MM-DD HH:mm:ss (optional)
year := "year_example" // string | Год (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.ExportMessages(context.Background()).Status(status).End(end).Month(month).Start(start).Year(year).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ExportMessages``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ExportMessages`: *os.File
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ExportMessages`: %v\n", resp)
}Other parameters are passed through a pointer to a apiExportMessagesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| status | string | `all` или `delivered` или `rejected` | |
| end | string | YYYY-MM-DD HH:mm:ss | |
| month | string | Месяц | |
| start | string | YYYY-MM-DD HH:mm:ss | |
| year | string | Год |
- Content-Type: multipart/form-data
- Accept: text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DispatchStatusResponse GetDispatchStatus(ctx).DispatchId(dispatchId).UserId(userId).Execute()
Статус рассылки
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
dispatchId := "dispatchId_example" // string | ID рассылки (optional)
userId := "userId_example" // string | ID пользователя (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetDispatchStatus(context.Background()).DispatchId(dispatchId).UserId(userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetDispatchStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDispatchStatus`: DispatchStatusResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetDispatchStatus`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetDispatchStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| dispatchId | string | ID рассылки | |
| userId | string | ID пользователя |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]string GetNicknames(ctx).Execute()
Получить список ник
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetNicknames(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetNicknames``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNicknames`: []string
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetNicknames`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetNicknamesRequest struct via the builder pattern
[]string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SmsLogsResponse GetSmsLogs(ctx, id).Execute()
Системные логи
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
id := "id_example" // string | ID СМС
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetSmsLogs(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSmsLogs``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSmsLogs`: SmsLogsResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSmsLogs`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ID СМС |
Other parameters are passed through a pointer to a apiGetSmsLogsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SmsStatusResponse GetSmsStatusById(ctx, id).Execute()
Получить статус по ID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetSmsStatusById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSmsStatusById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetSmsStatusById`: SmsStatusResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSmsStatusById`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
Other parameters are passed through a pointer to a apiGetSmsStatusByIdRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserTotalsResponse GetTotalByDispatch(ctx).Status(status).DispatchId(dispatchId).IsAd(isAd).Execute()
Расходы по рассылке
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
status := "status_example" // string | [пустой] - все \"delivered\" - только частично и полностью доставленное \"rejected\" - только не доставленное (optional)
dispatchId := "dispatchId_example" // string | ID рассылки (optional)
isAd := "isAd_example" // string | [пустой] - все 1 - только рекламное 0 - только сервисное (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetTotalByDispatch(context.Background()).Status(status).DispatchId(dispatchId).IsAd(isAd).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTotalByDispatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTotalByDispatch`: UserTotalsResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTotalByDispatch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetTotalByDispatchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| status | string | [пустой] - все "delivered" - только частично и полностью доставленное "rejected" - только не доставленное | |
| dispatchId | string | ID рассылки | |
| isAd | string | [пустой] - все 1 - только рекламное 0 - только сервисное |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TotalByMonthResponse GetTotalByMonth(ctx).Year(year).Execute()
Итого по месяцам
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
year := "year_example" // string | Год (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetTotalByMonth(context.Background()).Year(year).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTotalByMonth``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTotalByMonth`: TotalByMonthResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTotalByMonth`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetTotalByMonthRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| year | string | Год |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserTotalsResponse GetTotalByRange(ctx).Status(status).IsAd(isAd).StartDate(startDate).ToDate(toDate).Execute()
Расходы по датам
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
status := "status_example" // string | [пустой] - все \"delivered\" - только частично и полностью доставленное \"rejected\" - только не доставленное (optional)
isAd := "isAd_example" // string | [пустой] - все 1 - только рекламное 0 - только сервисное (optional)
startDate := "startDate_example" // string | С `%Y-%m-%d %H:%M` (optional)
toDate := "toDate_example" // string | По `%Y-%m-%d %H:%M` (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetTotalByRange(context.Background()).Status(status).IsAd(isAd).StartDate(startDate).ToDate(toDate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTotalByRange``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTotalByRange`: UserTotalsResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTotalByRange`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetTotalByRangeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| status | string | [пустой] - все "delivered" - только частично и полностью доставленное "rejected" - только не доставленное | |
| isAd | string | [пустой] - все 1 - только рекламное 0 - только сервисное | |
| startDate | string | С `%Y-%m-%d %H:%M` | |
| toDate | string | По `%Y-%m-%d %H:%M` |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TotalBySmscResponse GetTotalBySmsc(ctx).Month(month).Year(year).Execute()
Итого по компаниям
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
month := "month_example" // string | Месяц (optional)
year := "year_example" // string | Год (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetTotalBySmsc(context.Background()).Month(month).Year(year).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetTotalBySmsc``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTotalBySmsc`: TotalBySmscResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetTotalBySmsc`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetTotalBySmscRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| month | string | Месяц | |
| year | string | Год |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserInfoResponse GetUserInfo(ctx).Execute()
Данные ползователья
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetUserInfo(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetUserInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserInfo`: UserInfoResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetUserInfo`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetUserInfoRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserLimitResponse GetUserLimit(ctx).Execute()
Получить баланс
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetUserLimit(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetUserLimit``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserLimit`: UserLimitResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetUserLimit`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetUserLimitRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserMessagesResponse GetUserMessages(ctx).Status(status).Count(count).IsAd(isAd).PageSize(pageSize).StartDate(startDate).ToDate(toDate).Execute()
Детализация
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
status := "status_example" // string | [пустой] - все \"delivered\" - только частично и полностью доставленное \"rejected\" - только не доставленное (optional)
count := "count_example" // string | 1 - Если необходимо получить итог по статусу (optional)
isAd := "isAd_example" // string | [пустой] - все 1 - только рекламное 0 - только сервисное (optional)
pageSize := "pageSize_example" // string | Количество SMS сообщений (с 20 до 200) (optional)
startDate := "startDate_example" // string | С `%Y-%m-%d %H:%M` (optional)
toDate := "toDate_example" // string | По `%Y-%m-%d %H:%M` (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetUserMessages(context.Background()).Status(status).Count(count).IsAd(isAd).PageSize(pageSize).StartDate(startDate).ToDate(toDate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetUserMessages``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserMessages`: UserMessagesResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetUserMessages`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetUserMessagesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| status | string | [пустой] - все "delivered" - только частично и полностью доставленное "rejected" - только не доставленное | |
| count | string | 1 - Если необходимо получить итог по статусу | |
| isAd | string | [пустой] - все 1 - только рекламное 0 - только сервисное | |
| pageSize | string | Количество SMS сообщений (с 20 до 200) | |
| startDate | string | С `%Y-%m-%d %H:%M` | |
| toDate | string | По `%Y-%m-%d %H:%M` |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserMessagesResponse GetUserMessagesByDispatch(ctx).Status(status).Count(count).DispatchId(dispatchId).IsAd(isAd).Execute()
Получить СМС по рассылке
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
status := "status_example" // string | [пустой] - все \"delivered\" - только частично и полностью доставленное \"rejected\" - только не доставленное (optional)
count := "count_example" // string | 1 - Если необходимо получить итог по статусу (optional)
dispatchId := "dispatchId_example" // string | ID рассылки (optional)
isAd := "isAd_example" // string | [пустой] - все 1 - только рекламное 0 - только сервисное (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetUserMessagesByDispatch(context.Background()).Status(status).Count(count).DispatchId(dispatchId).IsAd(isAd).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetUserMessagesByDispatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserMessagesByDispatch`: UserMessagesResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetUserMessagesByDispatch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetUserMessagesByDispatchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| status | string | [пустой] - все "delivered" - только частично и полностью доставленное "rejected" - только не доставленное | |
| count | string | 1 - Если необходимо получить итог по статусу | |
| dispatchId | string | ID рассылки | |
| isAd | string | [пустой] - все 1 - только рекламное 0 - только сервисное |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TemplatesListResponse GetUserTemplates(ctx).Execute()
Получить список шаблонов
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetUserTemplates(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetUserTemplates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserTemplates`: TemplatesListResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetUserTemplates`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetUserTemplatesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserTotalsResponse GetUserTotals(ctx).IsGlobal(isGlobal).Month(month).Year(year).Execute()
Итог отправленных СМС
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
isGlobal := "isGlobal_example" // string | (optional)
month := "month_example" // string | (optional)
year := "year_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.GetUserTotals(context.Background()).IsGlobal(isGlobal).Month(month).Year(year).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetUserTotals``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserTotals`: UserTotalsResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetUserTotals`: %v\n", resp)
}Other parameters are passed through a pointer to a apiGetUserTotalsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| isGlobal | string | ||
| month | string | ||
| year | string |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginResponse Login(ctx).Email(email).Password(password).Execute()
Получить токен
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
email := "email_example" // string | (optional)
password := "password_example" // string | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.Login(context.Background()).Email(email).Password(password).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.Login``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Login`: LoginResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.Login`: %v\n", resp)
}Other parameters are passed through a pointer to a apiLoginRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| string | |||
| password | string |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NormalizeSmsResponse NormalizeSms(ctx).Message(message).Execute()
Нормализации SMS
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
message := "message_example" // string | Сообщение (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.NormalizeSms(context.Background()).Message(message).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.NormalizeSms``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `NormalizeSms`: NormalizeSmsResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.NormalizeSms`: %v\n", resp)
}Other parameters are passed through a pointer to a apiNormalizeSmsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| message | string | Сообщение |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RefreshTokenResponse RefreshToken(ctx).Execute()
Обновить токен
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.RefreshToken(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.RefreshToken``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RefreshToken`: RefreshTokenResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.RefreshToken`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiRefreshTokenRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendSmsResponse SendSms(ctx).CallbackUrl(callbackUrl).From(from).Message(message).MobilePhone(mobilePhone).Execute()
Отправить СМС
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
callbackUrl := "callbackUrl_example" // string | Это необязательное поле, которое используется для автоматического получения смс-статуса с сервера. Укажите URL-адрес обратного вызова, по которому вы будете получать данные POST в следующем формате: `{\\\"request_id\\\": \\\"UUID\\\", \\\"message_id\\\": \\\"4385062\\\", \\\"user_sms_id\\\": \\\"vash_ID_zdes\\\", \\\"country\\\": \\\"UZ\\\", \\\"phone_number\\\": \\\"998991234567\\\", \\\"sms_count\\\": \\\"1\\\", \\\"status\\\" : \\\"DELIVRD\\\", \\\"status_date\\\": \\\"2021-04-02 00:39:36\\\"}`. request_id — это значение, возвращаемое в поле \\\"id\\\" в результате выполнения API запросов send, send-batch и send-global. (optional)
from := "from_example" // string | Для того, чтобы использовать никнейм, вам нужно поменять 4546 на свои. (optional)
message := "message_example" // string | Сообщение (optional)
mobilePhone := "mobilePhone_example" // string | Номер телефона (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.SendSms(context.Background()).CallbackUrl(callbackUrl).From(from).Message(message).MobilePhone(mobilePhone).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SendSms``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SendSms`: SendSmsResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SendSms`: %v\n", resp)
}Other parameters are passed through a pointer to a apiSendSmsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| callbackUrl | string | Это необязательное поле, которое используется для автоматического получения смс-статуса с сервера. Укажите URL-адрес обратного вызова, по которому вы будете получать данные POST в следующем формате: `{\"request_id\": \"UUID\", \"message_id\": \"4385062\", \"user_sms_id\": \"vash_ID_zdes\", \"country\": \"UZ\", \"phone_number\": \"998991234567\", \"sms_count\": \"1\", \"status\" : \"DELIVRD\", \"status_date\": \"2021-04-02 00:39:36\"}`. request_id — это значение, возвращаемое в поле \"id\" в результате выполнения API запросов send, send-batch и send-global. | |
| from | string | Для того, чтобы использовать никнейм, вам нужно поменять 4546 на свои. | |
| message | string | Сообщение | |
| mobilePhone | string | Номер телефона |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendSmsBatchResponse SendSmsBatch(ctx).SendSmsBatchRequest(sendSmsBatchRequest).Execute()
Отправить СМС рассылка
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
sendSmsBatchRequest := *openapiclient.NewSendSmsBatchRequest() // SendSmsBatchRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.SendSmsBatch(context.Background()).SendSmsBatchRequest(sendSmsBatchRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SendSmsBatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SendSmsBatch`: SendSmsBatchResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SendSmsBatch`: %v\n", resp)
}Other parameters are passed through a pointer to a apiSendSmsBatchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| sendSmsBatchRequest | SendSmsBatchRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendSmsResponse SendSmsGlobal(ctx).CallbackUrl(callbackUrl).CountryCode(countryCode).Message(message).MobilePhone(mobilePhone).Unicode(unicode).Execute()
Отправить Международный СМС
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
callbackUrl := "callbackUrl_example" // string | Это необязательное поле, которое используется для автоматического получения смс-статуса с сервера. Укажите URL-адрес обратного вызова, по которому вы будете получать данные POST в следующем формате: `{\\\"request_id\\\": \\\"UUID\\\", \\\"message_id\\\": \\\"4385062\\\", \\\"user_sms_id\\\": \\\"vash_ID_zdes\\\", \\\"country\\\": \\\"UZ\\\", \\\"phone_number\\\": \\\"998991234567\\\", \\\"sms_count\\\": \\\"1\\\", \\\"status\\\" : \\\"DELIVRD\\\", \\\"status_date\\\": \\\"2021-04-02 00:39:36\\\"}` request_id — это значение, возвращаемое в поле \\\"id\\\" в результате выполнения API запросов send, send-batch и send-global. (optional)
countryCode := "countryCode_example" // string | Страна (optional)
message := "message_example" // string | Сообщение (optional)
mobilePhone := "mobilePhone_example" // string | Номер телефона (optional)
unicode := "unicode_example" // string | 1 - если хотите отправить на кирилице (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.SendSmsGlobal(context.Background()).CallbackUrl(callbackUrl).CountryCode(countryCode).Message(message).MobilePhone(mobilePhone).Unicode(unicode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SendSmsGlobal``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SendSmsGlobal`: SendSmsResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SendSmsGlobal`: %v\n", resp)
}Other parameters are passed through a pointer to a apiSendSmsGlobalRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| callbackUrl | string | Это необязательное поле, которое используется для автоматического получения смс-статуса с сервера. Укажите URL-адрес обратного вызова, по которому вы будете получать данные POST в следующем формате: `{\"request_id\": \"UUID\", \"message_id\": \"4385062\", \"user_sms_id\": \"vash_ID_zdes\", \"country\": \"UZ\", \"phone_number\": \"998991234567\", \"sms_count\": \"1\", \"status\" : \"DELIVRD\", \"status_date\": \"2021-04-02 00:39:36\"}` request_id — это значение, возвращаемое в поле \"id\" в результате выполнения API запросов send, send-batch и send-global. | |
| countryCode | string | Страна | |
| message | string | Сообщение | |
| mobilePhone | string | Номер телефона | |
| unicode | string | 1 - если хотите отправить на кирилице |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SendTemplateResponse SendTemplate(ctx).Template(template).Execute()
Отправить шаблон
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/iota-uz/eskiz/eskizapi"
)
func main() {
template := "template_example" // string | шаблон или текс сообщение (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DefaultApi.SendTemplate(context.Background()).Template(template).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.SendTemplate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SendTemplate`: SendTemplateResponse
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.SendTemplate`: %v\n", resp)
}Other parameters are passed through a pointer to a apiSendTemplateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| template | string | шаблон или текс сообщение |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]