# Setting up

##

{% hint style="danger" %}
Before reading this please visit the token page to know on how to get your tokens, this guide only follows user auth
{% endhint %}

## Installing

```
You can install the package easily by doing 
npm i tweets.js
```

{% hint style="warning" %}
You need npm and node.js installed for this package to work
{% endhint %}

## Basic usage

{% hint style="warning" %}
Please visit the token page on how to acquire the following tokens
{% endhint %}

{% content-ref url="tokens" %}
[tokens](https://seoden2136.gitbook.io/tweet-js/tokens)
{% endcontent-ref %}

```
const bird = require('tweets.js')

const bot = new bird.tweet({
consumer_key: "Your consumer key",
consumer_secret: "Your consumer secret",
access_token: "Your access token",
access_token_secret: "Your access token secret"
});
```

That's it, you now have a basic bot. visit the methods page for a guide on all the methods available


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://seoden2136.gitbook.io/tweet-js/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
