Home

Awesome

Twi Deno v2

Twitter API client for Deno ported from twitter-api-typescript-sdk.

Example

import { Client } from "https://deno.land/x/twi/mod.ts";

const client = new Client("BEARER_TOKEN");

const stream = client.tweets.sampleStream({
  "tweet.fields": ["author_id"],
});
for await (const tweet of stream) {
  console.log(tweet.data?.author_id);
}

Check out examples/ for more examples or see this real-word bot.