Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit e066669

Browse files
committed
add twitter apis
1 parent fd35c2a commit e066669

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

yabcounts.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,55 @@ paths:
207207
type: integer
208208
commentCount:
209209
type: integer
210+
/twitter/user/{username}:
211+
get:
212+
summary: Get a Twitter user
213+
parameters:
214+
- name: username
215+
in: path
216+
required: true
217+
schema:
218+
type: string
219+
description: The username of the Twitter user.
220+
example: elonmusk
221+
- name: fields
222+
in: query
223+
required: false
224+
schema:
225+
type: string
226+
description: Used to specify the specific fields you want from the response.
227+
example: name,statistics.followerCount
228+
responses:
229+
"200":
230+
description: OK
231+
content:
232+
application/json:
233+
schema:
234+
type: object
235+
properties:
236+
username:
237+
type: string
238+
name:
239+
type: string
240+
handle:
241+
type: string
242+
url:
243+
type: string
244+
thumbnail:
245+
type: string
246+
banner:
247+
type: string
248+
description:
249+
type: string
250+
statistics:
251+
type: object
252+
properties:
253+
followerCount:
254+
type: integer
255+
followingCount:
256+
type: integer
257+
postCount:
258+
type: integer
210259
components:
211260
securitySchemes:
212261
apiKey:

0 commit comments

Comments
 (0)