-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.yaml
118 lines (99 loc) · 2.7 KB
/
doc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
asyncapi: '2.4.0'
info:
title: Go-whatsapp web API
version: '1.0.0'
description: |
The Go-whatsapp web API give you the ability to interact with your whatsapp
application from the website.
defaultContentType: application/json
servers:
test:
url: localhost:5050
protocol: http || ws
security:
- bearerAuth: []
channels:
iologs:
description: Publisher of Socket.io errors
publish:
message:
$ref: '#/components/messages/iologs'
wdata:
description: Publisher of wwhatsapp web client data responses
publish:
message:
$ref: '#/components/messages/wdata'
wlogs:
description: Publisher of wwhatsapp web client logs
publish:
message:
$ref: '#/components/messages/wlogs'
w:init:
description: Subscribe to initialize whatsapp web client
subscribe:
description: Subscribe to initialize whatsapp web client
chats:getAll:
description: Subscribe to get all chats
subscribe:
description: Subscribe to get all chats
contacts:getAll:
description: Subscribe to get all contacts
subscribe:
description: Subscribe to get all contacts
msgs:send:
description: Subscribe to send message
subscribe:
message:
$ref: '#/components/messages/msgs:send'
components:
messages:
iologs:
name: iologs
title: Socket.io Logs
contentType: text/plain
payload:
type: string
description: Socket.io logs and errors
wdata:
name: wdata
title: wwhatsapp web client data responses
contentType: application/json
payload:
type: object
properties:
data:
type: object
description: Object with data from wwhatsapp web client response
wlogs:
name: wlogs
title: wwhatsapp web client logs
contentType: text/plain
payload:
type: string
description: Logs from wwhatsapp web client
msgs:send:
name: msgs:send
title: Send message to One User or multiple users
contentType: application/json
payload:
type: object
properties:
users:
type:
- string
- array
description: Array of users to send message to
text:
type: string
description: Message body to send
base64:
type: string
description: Media file to send in base64
mimeType:
type: string
description: mimiType of media to send
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: Bearer <token>