Skip to content

Commit

Permalink
Rename fetchChannelNotificationForUser -> fetchChannelNotificationsFo…
Browse files Browse the repository at this point in the history
…rUser
  • Loading branch information
Shreyaschorge committed Dec 5, 2023
1 parent 3c45050 commit cfbd89c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/neynar-api/neynar-api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ export class NeynarAPIClient {
*
* @example
* // Example: Retrieve channel notifications for a user limit to 30 results
* client.fetchChannelNotificationForUser(3, ['chain://eip155:1/erc721:0xd4498134211baad5846ce70ce04e7c4da78931cc', 'chain://eip155:7777777/erc721:0x5556efe18d87f132054fbd4ba9afc13ebb1b0594'],
* client.fetchChannelNotificationsForUser(3, ['chain://eip155:1/erc721:0xd4498134211baad5846ce70ce04e7c4da78931cc', 'chain://eip155:7777777/erc721:0x5556efe18d87f132054fbd4ba9afc13ebb1b0594'],
* {
* limit: 30,
* // cursor: "nextPageCursor" // Omit this parameter for the initial request
Expand All @@ -1325,12 +1325,12 @@ export class NeynarAPIClient {
*
* For more information, refer to the [Neynar documentation](https://docs.neynar.com/reference/notifications).
*/
public async fetchChannelNotificationForUser(
public async fetchChannelNotificationsForUser(
fid: number,
parentUrls: string[],
options?: { cursor?: string; limit?: number }
): Promise<NotificationsResponse> {
return await this.clients.v2.fetchChannelNotificationForUser(
return await this.clients.v2.fetchChannelNotificationsForUser(
fid,
parentUrls,
options
Expand Down
4 changes: 2 additions & 2 deletions src/neynar-api/v2/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ export class NeynarV2APIClient {
*
* @example
* // Example: Retrieve channel notifications for a user limit to 30 results
* client.fetchChannelNotificationForUser(3, ['chain://eip155:1/erc721:0xd4498134211baad5846ce70ce04e7c4da78931cc', 'chain://eip155:7777777/erc721:0x5556efe18d87f132054fbd4ba9afc13ebb1b0594'],
* client.fetchChannelNotificationsForUser(3, ['chain://eip155:1/erc721:0xd4498134211baad5846ce70ce04e7c4da78931cc', 'chain://eip155:7777777/erc721:0x5556efe18d87f132054fbd4ba9afc13ebb1b0594'],
* {
* limit: 30,
* // cursor: "nextPageCursor" // Omit this parameter for the initial request.
Expand All @@ -909,7 +909,7 @@ export class NeynarV2APIClient {
*
* For more information, refer to the [Neynar documentation](https://docs.neynar.com/reference/notifications).
*/
public async fetchChannelNotificationForUser(
public async fetchChannelNotificationsForUser(
fid: number,
parentUrls: string[],
options?: { cursor?: string; limit?: number }
Expand Down

0 comments on commit cfbd89c

Please sign in to comment.