Unity3D sample code for GIF upload using chunked media/upload API of Twitter. Not polished, but I hope this sample helps anyone interested in knowing how to implement twitter GIF upload on Unity3D
- Download TwitterKit (https://github.com/twitter/twitter-kit-unity)
- Attach TwitterKitInit(Included in TwitterKit SDK) and TwitterController to a GameObject
- Call TwitterController::Login()
- Call TwitterController::PostGIF()
UTwitter/TwitterClient
and UTwitter/TwitterRestClient
are not dependent on TwitterKit, so if you can get authtoken by yourself, you can upload GIF without Twitterkit dependencies. If what all you need is Auth, you can pick the logic from TwitterRestClient (Learned a lot from LetsTweet on UnityAsset Store)