fa0311 / twitter-openapi-typescript

Implementation of Twitter internal API (Twitter graphql API) in TypeScript
https://www.npmjs.com/package/twitter-openapi-typescript
Other
73 stars 11 forks source link

getUserMediaでカーソル移動した際のレスポンスがdataに含まれない #99

Closed fa0311 closed 7 months ago

fa0311 commented 7 months ago
import { getClient } from '@test/init';

(async () => {
  const api = await getClient();
  const res1 = await api.getTweetApi().getUserMedia({
    userId: '69496975',
  });

  const res2 = await api.getTweetApi().getUserMedia({
    userId: '69496975',
    cursor: res1.data.cursor.bottom?.value,
  });

  console.log(res2.data); // length が 0
})();