Giter Site home page Giter Site logo

bryan-az / x-twitter-api-plugin Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 21 KB

Developing a simplistic plugin to make twitter posts, with a web UI form to interact with the API.

Dockerfile 1.99% Shell 1.48% PHP 54.03% JavaScript 25.27% Python 17.23%

x-twitter-api-plugin's Introduction

This is a team-project with Joash Muganda, Suresh Ravuri, and Alexis Ambriz, we didn't specify who wrote which code however we all assisted each-other during development.

The base-line code was partially generated using iterative chatGPT-4 prompts using the command-line 'gpt-engineer' tool here: https://github.com/AntonOsika/gpt-engineer. We used Tweepy library with Twitter's API Version 1.1, using the developer tool found at https://developer.twitter.com/en/portal/dashboard To use this wordpress-plugin, you would need to make an account, set up your user authentication settings, and then copy-paste your developer keys and tokens into the docker-compose.yml. They will need to be posted in the section belonging to the X-Twitter service. Make sure that you have marked the 'Read & Write' box for APP permissions, marked 'Web App' for the app type, and have marked localhost:5000 as the callback URL. The website URL is required and must be a valid domain name, but it could be anything if you do not need to connect it to your site.

Once you have your keys/tokens and updated authentication settings, you could clone the repo into your local computer. CD into the directory in your terminal, and the run "bash run.sh" This will start the docker-compose service that will create the wordpress site, the plugin app, and the database services. Once it is live, you can open the http://localhost/ address in your web browser. You will need to wait a couple seconds for the webserver to bring up the wordpress install page. Once the install page is up, you select a language and install as you would for a wordpress site. Enter the details and then you will be brought to the admin dashboard after you sign-in.

To set up the plugin:

  1. Head to the dashboard on the top-left of the interface. image
  2. Go to 'plugins', look for the X-Twitter-Plugin, and click 'Activate' image
  3. Open the posts page, and edit any post to include a Wordpress block called "short-code". image
  4. For the code, type "[x_twitter]" image
  5. Save the code-block and open the page by clicking the link in the top right. image
  6. On the post you just made, you can now see the GUI of the X plugin. You can enter text in the first box and click the button and your tweet will be made.
  7. To delete a tweet, you will need to enter the ID in the second box by visiting the tweet you made on twitter, looking at the URL, and write down the long string of numbers at the end of the url. Once you enter it, click the button and your tweet should be deleted. image

x-twitter-api-plugin's People

Contributors

bryan-az avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.