iOS client app for Twitter
Library dependencies
All libraries is installed via SwiftPackageManager. You can check all library dependencies here.
How to start
- Clone this repository.
- 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
- Press 'Sign in with Twitter' button
- 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.