twitter with oauth is finally here!
90% credit goes to Dentist, he wrote the original plugin which is what this plugin is mostly comprised of. I have just added in the OAuth stuff so twitter can work again.
Getting Started
The first time you run this, it will throw up a dialogue box and will load a webpage hopefully asking for you to log into twitter or to confirm/deny you're happy with Miranda to use twitter. Please confirm/log in, and it will present you with a PIN. Type the PIN into the dialogue box and click OK.
Everything should then work perfectly! Or... probably not. Computers are hard! Sometimes it will run into troubles, but can hopefully recover if you try to reconnect. If it consistently doesn't work, the best way around this is to just delete your entire twitter account (from Miranda! not twitter.com), and re-add it. this fixes all the problems I've seen. Good luck!
Open Source
YESSSSSSSSSSS
Also as I think I've mentioned many times, I'm not a terribly accomplished developer, so if you see anything in the source that needs fixing please let me know. Thanks!
Known Issues:
-native retweets are clipped by up to 19 characters. SO LAME. this has been fixed in the source. next version will have this fixed. twitter API is ****.FIXED -this was broken again with another API update. I fixed it, but it's an ugly fix, I can't get the retweet_count attribute to cast to an int. Any help gratefully received!crappy work around fixed with legit work around in the source. I still say work around because at this point I'm working around twitter's annoying API
- The function that pulls your friends down (ie the people you follow) is broken as the twitter API changed completely here. It will still pull friends in that have tweeted,but I'm pretty sure avatars are all brokenand most other things to do with friends. I can see what I have to do to fix it, but lack the skill/time at the moment to do it. It doesn't appear to affect functionality really, so not a critical priority. As of v1.1.0.0 avatars are fixed, but only for your friends that tweet. This is the same for the complete list of your friends, it's only as complete as those who tweet. Need to fix the UpdateFriends() function.
Download
32bit: Updater site | Google code site | Miranda addons site
64bit: Updater site | Google code site | Miranda addons site
Changelog:
1.1.0.0
- First official release of 64bit! Sorry for the delay, and thanks to FREAK_THEMIGHTY for all the help and patches
- Avatars are now working! But only for your followees that tweet.
- Double fixed truncated retweets. I really hope this is over now
1.0.0.3
- Fixed broken profile OAuth with API v1.1
- Fixed "&" in truncated retweets
- Fixed 140 character length tweets being blank
1.0.0.2
- Some memory leaks fixed
- Fixed "&" showing up in tweets when people used "&".
- Updated plugin to work with API v1.1
- Made an attempt to fix truncated retweets. My work around isn't pretty and can fail, if anyone wants to help give me a yell
1.0.0.0
- fixed a bug where certain avatars would crash miranda
- various gui and backend fixes
- added a UI tickbox in the options to treat tweets as messages. have a play if you think this might help you
- fixed status changing - if you change the status to anything but offline twitter will go online
- fixed a bug where twitter would attempt to go online even if you were already online
0.0.9.7
- Major options cleanup
- Default group now has a GUI in the options/accounts
- stopped twitter from going offline so much (needs 3 network fails in a row before it will go offline)
- open source! code is super messy. please feel free to post if you have any questions. the open source code will not compile with the official OAUTH keys!
- added code to stop tweets becoming messages. you will need to add a "TweetToMsg" variable as type BYTE to the db, and set to 0 if you want tweets to NOT become messages.
- fixed single % signs from disappearing in the group chat, and also stopped "%" becoming "%%" if you typed it into the group chat input area to tweet.
- fixed long native retweets from being truncated
- code cleanup, minor fixes
0.0.9.6
- Updater now working
- Auto group support, you'll see a field in the account page called Default Group. put in a group name there to have twitter contacts auto added to a group
- Other minor fixes
0.0.9.5
- Retweets will now appear in the timeline!
- Fixed group chat highlighting when YOU make a tweet
- Stopped self contact joining the clist
0.0.9.4
- Fixed duplicate contacts
0.0.9.3
- Fixed connection problems
- Hopefully fixed unicode problems, please let me know!
- Cleaned up some code, got rid of the password input field as this isn't required with OAuth. If you're security conscious feel free to delete the password field from the database. i'll add some code to do this automatically next time.
0.0.9.2
- DMs now actually work.
- your username should appear in the chat window now.. thx Thief
0.0.9.1
- Tweeting (and posting DMs?) now works (thanks Borkra!)
- Removed dependencies on WinInet, so this now an actual Release build. yay
- seem to have broken proxy support.. which is weird. working on it.
0.0.9.0
- OAuth used for authorisation now
- I have broken many things, and desecrated Dentist's once beautiful code. i think at one point i added a "2" to a variable name because i couldn't think of a better name. So sorry :(
Wish List
Here's all the things I want to add to the plugin, in no order:
- Use contact status better.. if someone hasn't tweeted in a few hours, they're not really online.
- New group chat session for mentions, lists
- Option to auto mark new DMs as read on connect
Credits:
- Brook Miles, without his OAuth C++ guide i wouldn't have anything
- Borkra, helped my fix a lot of my code and answered a lot of stupid questions
- SJE, helped me remember c++, and answered a lot of questions
- Thief, provided the SVN, helped with some code
- FREAK_THEMIGHTY - a bunch of 64bit help and other things

Reply With Quote

Bookmarks