nodejs-sdk icon indicating copy to clipboard operation
nodejs-sdk copied to clipboard

`fetchUserFollowersV2` has incorrect response type

Open alex-grover opened this issue 4 months ago • 0 comments

The SDK (and OAS spec) indicates that the fetchUserFollowersV2 endpoint returns a UsersResponse, but it actually returns a response with the following shape:

{
  users: {
    object: "follow",
    user: UserV2 // Nesting here is not reflected in the spec/types
  }[]
}

I haven't checked the other following APIs but it looks like they also have UsersResponse listed so they may be incorrect as well.

alex-grover avatar Oct 01 '24 23:10 alex-grover