|
|
|
@ -1,7 +1,7 @@ |
|
|
|
openapi: 3.0.0 |
|
|
|
info: |
|
|
|
title: WhatsApp API MultiDevice |
|
|
|
version: 2.2.1 |
|
|
|
version: 2.3.0 |
|
|
|
description: This API is used for sending whatsapp via API |
|
|
|
servers: |
|
|
|
- url: http://localhost:3000 |
|
|
|
@ -606,9 +606,6 @@ paths: |
|
|
|
caption: |
|
|
|
type: string |
|
|
|
example: selamat malam |
|
|
|
view_once: |
|
|
|
type: boolean |
|
|
|
example: 'false' |
|
|
|
file: |
|
|
|
type: string |
|
|
|
format: binary |
|
|
|
@ -689,3 +686,106 @@ paths: |
|
|
|
code: 500 |
|
|
|
message: you are not loggin |
|
|
|
results: null |
|
|
|
/send/video: |
|
|
|
post: |
|
|
|
tags: |
|
|
|
- send |
|
|
|
summary: Send Video |
|
|
|
requestBody: |
|
|
|
content: |
|
|
|
multipart/form-data: |
|
|
|
schema: |
|
|
|
type: object |
|
|
|
properties: |
|
|
|
phone: |
|
|
|
type: integer |
|
|
|
example: '6289685024091' |
|
|
|
caption: |
|
|
|
type: string |
|
|
|
example: ini contoh caption video |
|
|
|
view_once: |
|
|
|
type: boolean |
|
|
|
example: 'false' |
|
|
|
video: |
|
|
|
type: string |
|
|
|
format: binary |
|
|
|
type: |
|
|
|
type: string |
|
|
|
example: 'user' |
|
|
|
description: 'user/group | default: user' |
|
|
|
compress: |
|
|
|
type: boolean |
|
|
|
example: 'false' |
|
|
|
responses: |
|
|
|
'200': |
|
|
|
description: OK |
|
|
|
headers: |
|
|
|
Date: |
|
|
|
schema: |
|
|
|
type: string |
|
|
|
example: Fri, 11 Feb 2022 03:42:57 GMT |
|
|
|
Content-Type: |
|
|
|
schema: |
|
|
|
type: string |
|
|
|
example: application/json |
|
|
|
Content-Length: |
|
|
|
schema: |
|
|
|
type: integer |
|
|
|
example: '123' |
|
|
|
content: |
|
|
|
application/json: |
|
|
|
schema: |
|
|
|
type: object |
|
|
|
example: |
|
|
|
code: 200 |
|
|
|
message: Success |
|
|
|
results: |
|
|
|
status: >- |
|
|
|
Video sent to 6289685024091@s.whatsapp.net (server timestamp: 2022-05-17 14:39:29 +0700 WIB) |
|
|
|
'400': |
|
|
|
description: Bad Request |
|
|
|
headers: |
|
|
|
Date: |
|
|
|
schema: |
|
|
|
type: string |
|
|
|
example: Fri, 11 Feb 2022 03:02:17 GMT |
|
|
|
Content-Type: |
|
|
|
schema: |
|
|
|
type: string |
|
|
|
example: application/json |
|
|
|
Content-Length: |
|
|
|
schema: |
|
|
|
type: integer |
|
|
|
example: '70' |
|
|
|
content: |
|
|
|
application/json: |
|
|
|
schema: |
|
|
|
type: object |
|
|
|
example: |
|
|
|
code: 400 |
|
|
|
message: 'phone: cannot be blank.' |
|
|
|
results: null |
|
|
|
'500': |
|
|
|
description: Internal Server Error |
|
|
|
headers: |
|
|
|
Date: |
|
|
|
schema: |
|
|
|
type: string |
|
|
|
example: Fri, 11 Feb 2022 03:02:48 GMT |
|
|
|
Content-Type: |
|
|
|
schema: |
|
|
|
type: string |
|
|
|
example: application/json |
|
|
|
Content-Length: |
|
|
|
schema: |
|
|
|
type: integer |
|
|
|
example: '58' |
|
|
|
content: |
|
|
|
application/json: |
|
|
|
schema: |
|
|
|
type: object |
|
|
|
example: |
|
|
|
code: 500 |
|
|
|
message: you are not loggin |
|
|
|
results: null |
|
|
|
|