Twitter API Upgrade

176 views
Skip to first unread message

Sachin Shende

unread,
Jun 7, 2013, 4:10:30 PM6/7/13
to mezzani...@googlegroups.com
Steve et al,

We were hit by Twitter API upgrade blackout yesterday - https://dev.twitter.com/blog/api-v1-retirement-final-dates

Lot of code in Mezzanine Twitter app will have to be re-written due to this upgrade. I feel the new API has a lot of baggage. I have worked on search API using Twython but need to refine the code. Will be happy to re-write this and commit. Please let me know if you have any other ideas. 

Thanks,
Sachin

Stephen McDonald

unread,
Jun 7, 2013, 8:15:51 PM6/7/13
to mezzani...@googlegroups.com
Well that's disappointing.

I assume the Twython lib requires oauth keys and secrets defined? If so then we might as well use requests-oauthlib (http://docs.python-requests.org/en/latest/user/authentication/#oauth-1-authentication) which would mean the least code changes in Mezzanine, and would be more broadly useful in terms of new dependencies. 

With that in places, I imagine all we'll need to do is define new setting for the oauth keys/secrets, and update the api urls as well as the code that calls them. 

Does that actual data returned change?




--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Stephen McDonald
http://jupo.org

Stephen McDonald

unread,
Jun 7, 2013, 8:17:08 PM6/7/13
to mezzani...@googlegroups.com
Also worth mentioning the mezzanine.twitter app almost seems redundant now given Twitter's own support for client-side widgets:


I guess the only case to be made for keeping mezzanine.twitter is that it gives you greater access to styling the feed. 

Sachin Shende

unread,
Jun 8, 2013, 8:43:15 AM6/8/13
to mezzani...@googlegroups.com, st...@jupo.org
Thanks Steve. Yes, the actual data returned has changed too. Those changes are manageable though. 

Do you want me to change this and send it for your review?

Thanks

Stephen McDonald

unread,
Jun 8, 2013, 10:35:21 AM6/8/13
to Sachin Shende, mezzani...@googlegroups.com
That'd be awesome, thanks a lot for your help.

Stephen McDonald

unread,
Jun 17, 2013, 7:38:09 PM6/17/13
to mezzani...@googlegroups.com
Hi all,

Big thanks to Sachin who has done all the work in upgrading the mezzanine.twitter app to use their new API version which is now required. This has been merged in, so if this affects your project, please give it a test as soon as possible before the next release is made available which should be soon.

Please note that integration with Twitter's API now requires authentication, which means setting up a Twitter app with keys/secrets configured in Mezzanine settings via the admin interface for settings.

On Sat, Jun 8, 2013 at 10:43 PM, Sachin Shende <sachin...@gmail.com> wrote:

Matt Mansour

unread,
Jun 21, 2013, 8:09:13 PM6/21/13
to mezzani...@googlegroups.com
Just wanted to give a big thanks to Sachin as well. Your changes made my upgrade to the new Twitter API very easy. Much appreciated.

Richard Ersek

unread,
Jun 28, 2013, 6:51:22 PM6/28/13
to mezzani...@googlegroups.com, st...@jupo.org
I'll second that - thanks Sachin!   I installed 1.4.8 and it looks like I need to get OAuth keys.   Is there anything specific needed for the callback URL or does that not matter in this case?
 
-Rich
 

Richard Ersek

unread,
Jun 28, 2013, 7:06:15 PM6/28/13
to mezzani...@googlegroups.com, st...@jupo.org
Figured it out - I just used my own domain.
Reply all
Reply to author
Forward
0 new messages