/Twitter

Using Twitter api, get tweets from your time line. This App is also made by Swift Concurrency.

Primary LanguageSwiftMIT LicenseMIT

iOS client app for Twitter

⚠️ iOS client app for Twitter has reached end-of-life. Twitter API is now closed, and I considered new API plan which costs $100 per mondth is not worth to use. Using Twitter api, get tweets from your time line. This App is also made by Swift Concurrency.

Library dependencies

All libraries is installed via SwiftPackageManager. You can check all library dependencies here.

How to start

  1. Clone this repository.
  2. Make Twitter.plist such as below. And replace consumer_key and consumer_secret to Twitter API's APIKey and APISecretKey.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>bearer_token</key>
	<string></string>
	<key>client_id</key>
	<string></string>
	<key>oauth2_state</key>
	<string></string>
	<key>oauth2_code_challenge</key>
	<string></string>
</dict>
</plist>

Twitter.plist is added in .gitignore file for the security.

Twitter authentification is base on OAuth2.
oauth_state and oauth_code_challenge is generated base on below document.
https://datatracker.ietf.org/doc/html/rfc7636

How to use

  1. Press 'Sign in with Twitter' button
  2. Then, you will get your timeline.

How it works

Simulator.Screen.Recording.-.iPhone.12.Pro.Max.-.2022-07-27.at.00.51.20.mov

API Docs

All API documents are referenced by Twitter API v2.
All api endpoints are defined here.