JSPM

  • Created
  • Published
  • Downloads 2027
  • Score
    100M100P100Q111943F
  • License AGPL-3.0-only

Implementation of Twitter internal API in TypeScript

Package Exports

  • twitter-openapi-typescript
  • twitter-openapi-typescript/dist/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (twitter-openapi-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

twitter-openapi-typescript@0.0.2

  const api = new TwitterOpenApi();
  const client = await api.getClientFromCookies('<csrf toke here>', '<auth token here>');
  const response = await client.getUserApi().getUserByScreenName({ screenName: 'elonmusk' });
  const legacy = response.data.legacy;
  console.log(response.data);
  console.log(legacy.screenName);
  console.log(`followedBy: ${legacy.followedBy} following: ${legacy.following}`);