Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Latest commit

 

History

History
54 lines (38 loc) · 2.09 KB

01-preparation.md

File metadata and controls

54 lines (38 loc) · 2.09 KB

01: Preparation

Create your API keys

Before creating an application, you have to register your phone number.

Create an application

  1. Access https://apps.twitter.com/.
  2. Click the button Create New App.
  3. Fill out the form to submit.
  • Callback URL is actually a REQUIRED field when you create web-based applications.
    Even if you can change it when you provide authentication, you should fill with dummy URL.

Upgrade privileges

To use all endpoints, you have to upgrade privilages of your API key.

  1. Access https://apps.twitter.com/ to select the application you created.
  2. Click the tab Permissions.
  3. Select Read, Write and Access direct messages to submit.

Confirm API keys

  1. Access https://apps.twitter.com/ to select the application you created.
  2. Click the tab Keys and Access Tokens.
  3. Note Consumer Key Consumer Secret. They are for every account that uses your application.
  4. Note Access Token Access Token Secret. They are only for your own account.

Install PHP, Composer and Cowitter

For Windows beginners

  1. Download and install XAMPP that contains PHP version 7.x.
  2. Download and install Composer.
  3. Create your project folder somewhere.
  4. Right-click in the folder pressing Shift key to click Open Command Window Here.
  5. Run the followings commands.
  • composer require mpyw/cowitter:^1.0
  • composer install
  1. Now you can verify some files are created.
  • The file composer.json contains your package information.
  • The folder vendor contains installed packages.

For Windows, macOS or Linux geeks

  1. Install PHP and Composer using your favorite package manager.
  2. Run the followings commands.
  • mkdir ~/myapp && cd ~/myapp
  • composer require mpyw/cowitter:^1.0
  • composer install

I believe your skill :D