Metadata-Version: 2.1
Name: x_posting_api
Version: 0.4
Summary: A simple Python library for posting tweets using new X API v2.
Home-page: https://github.com/redianmarku/x-posting-api
Author: Redian Marku
Author-email: redian@topnotch-programmer.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: requests-oauthlib

# Twitter API Package

A simple Python library for posting tweets using Twitter API v2.

## Installation

You can install the package using pip:

```bash
pip install x_posting_api
```

## Usage

```
from x_posting_api import XPostingAPI

# Twitter API credentials
CONSUMER_KEY = 'your_consumer_key'
CONSUMER_SECRET = 'your_consumer_secret'

def main():
    # Initialize XPostingAPI
    twitter_api = XPostingAPI(CONSUMER_KEY, CONSUMER_SECRET)

    # Authorize (only needed once)
    twitter_api.authorize()

    # Post a tweet
    tweet_text = "Hello world!"
    twitter_api.post_tweet(tweet_text)

if __name__ == "__main__":
    main()

```

## License

This project is licensed under the MIT License - see the LICENSE file for details.
