call-control-sdk 5.0.4 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,6 +69,22 @@ function App() {
|
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
```
|
|
72
|
+
### 3. Use the useLogout function
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import React from 'react';
|
|
76
|
+
import { useLogout } from 'call-control-sdk';
|
|
77
|
+
|
|
78
|
+
function App() {
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<div>
|
|
82
|
+
<button onClick={useLogout}>Logout</button>
|
|
83
|
+
</div>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
- `useLogout` is used to logout the agent.
|
|
72
88
|
|
|
73
89
|
## API Reference
|
|
74
90
|
|
|
@@ -80,10 +96,10 @@ Initializes the SDK with an API key, tenantId, agentId, baseUrl. Must be called
|
|
|
80
96
|
- `apiKey` (string): Your API key for SDK authentication
|
|
81
97
|
- `tenantId` (string): Your Tenant Id key for Events authentication
|
|
82
98
|
- `agentId` (string): Agent Id for access call controls
|
|
83
|
-
- `baseUrl` (string): Base URL for save events info
|
|
84
99
|
|
|
85
100
|
**Throws:** Error if API key is missing or invalid
|
|
86
101
|
|
|
102
|
+
|
|
87
103
|
### `CallControlPanel`
|
|
88
104
|
|
|
89
105
|
The main draggable control panel component.
|