Spaces:
Running
Running
axeronis commited on
Commit ·
5820d73
1
Parent(s): f501374
fix: update connectWhatsApp signature in api.ts
Browse files- frontend/lib/api.ts +6 -6
frontend/lib/api.ts
CHANGED
|
@@ -273,12 +273,12 @@ export const channelsApi = {
|
|
| 273 |
return response.data
|
| 274 |
},
|
| 275 |
|
| 276 |
-
connectWhatsApp: async (
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
return response.data
|
| 283 |
},
|
| 284 |
|
|
|
|
| 273 |
return response.data
|
| 274 |
},
|
| 275 |
|
| 276 |
+
connectWhatsApp: async (accessToken: string, phoneNumberId: string, businessAccountId: string) => {
|
| 277 |
+
const response = await api.post('/api/v1/channels/whatsapp/connect', {
|
| 278 |
+
access_token: accessToken,
|
| 279 |
+
phone_number_id: phoneNumberId,
|
| 280 |
+
business_account_id: businessAccountId
|
| 281 |
+
})
|
| 282 |
return response.data
|
| 283 |
},
|
| 284 |
|