Skip to content

Commit

Permalink
feat: add /user/by_location route (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerierose authored Oct 30, 2024
1 parent bf66939 commit 26a6796
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/v2/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5884,6 +5884,65 @@ paths:
$ref: "#/components/responses/404Response"
"500":
$ref: "#/components/responses/500Response"
/farcaster/user/by_location:
get:
tags:
- User
summary: "By location"
description: "Fetches a list of users given a location"
operationId: fetch-users-by-location
externalDocs:
url: https://docs.neynar.com/reference/fetch-users-by-location
parameters:
- name: latitude
in: query
required: true
schema:
type: number
example: 37.77
description: Latitude of the location
- name: longitude
in: query
required: true
schema:
type: number
example: -122.41
description: Longitude of the location
- name: viewer_fid
in: query
description: FID of the user viewing the feed. Providing this will return a list of users that respects this user's mutes and blocks and includes `viewer_context`.
required: false
example: 3
schema:
$ref: "#/components/schemas/Fid"
- name: limit
in: query
required: false
schema:
type: integer
example: 10
default: 25
maximum: 100
description: Number of results to fetch
- name: cursor
in: query
required: false
schema:
type: string
description: Pagination cursor
responses:
"200":
description: Successful operation.
content:
application/json:
schema:
$ref: "#/components/schemas/UsersResponse"
"400":
$ref: "#/components/responses/400Response"
"404":
$ref: "#/components/responses/404Response"
"500":
$ref: "#/components/responses/500Response"
/farcaster/login/authorize:
get:
tags:
Expand Down

0 comments on commit 26a6796

Please sign in to comment.