mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-14 16:53:52 +00:00
update
This commit is contained in:
@@ -126,7 +126,7 @@ override func getContactsCallback(_ data: NSDictionary) {
|
|||||||
**getNewMessages** - получение новых сообщений от оператора.
|
**getNewMessages** - получение новых сообщений от оператора.
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
ChatApi.getNewMessages("<TOKEN>", "<clientId>")
|
ChatApi.getNewMessages("<TOKEN>", "<clientId>", callback:
|
||||||
{(result) in
|
{(result) in
|
||||||
if result?["error"] != nil {
|
if result?["error"] != nil {
|
||||||
print("error : \(String(describing: result?["error"]))")
|
print("error : \(String(describing: result?["error"]))")
|
||||||
@@ -134,6 +134,7 @@ ChatApi.getNewMessages("<TOKEN>", "<clientId>")
|
|||||||
print("result : \(result.debugDescription)")
|
print("result : \(result.debugDescription)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
)
|
||||||
```
|
```
|
||||||
Подробное описание можно прочесть в разделе «Интеграция и API - REST API - Инструкции по подключению».
|
Подробное описание можно прочесть в разделе «Интеграция и API - REST API - Инструкции по подключению».
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user