Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-21-2008, 05:34 PM
Moderator
 
Posts: 75
Default [SOLVED] How to configure Flickr Zimlet?

Has anyone managed to get the Flickr Zimlet working? I've enabled it, but it needs an API key which gets embedded into the JS file. The problem is, to sign up for an API key with Flickr, you need to provide a callback URL that your application uses to collect the authentication token from the end-user. There's no documentation anywhere in the zimlet on what that is, and from reading the code, I can't figure out how the Zimlet is able to get that info back..

So if anyone has done this already, I'd appreciate knowing how -- I'm giving a demo of Zimbra tomorrow and the Flickr zimlet looks really cool - I'd like to be able to show it off.

Steve Hillman
Simon Fraser University
Reply With Quote
  #2 (permalink)  
Old 05-21-2008, 09:03 PM
Moderator
 
Posts: 6,237
Default

Hey hillman, for your demo tomorrow right click the Flickr Zimlet > authorize:



Then you can do things like upload received attachments or attach files from Flickr:



That should let you show it off
If you're trying to enhance it so authorization isn't needed on every browser reload you might start by understanding how all these parts work:
Quote:
http:// api.flickr.com/services/upload/ + "?api_k ey=" + api_key + "&auth_token=" + auth_token + "&api_sig=" + api_sig + "&user_id=" + user_id;

Last edited by mmorse; 05-21-2008 at 09:13 PM..
Reply With Quote
  #3 (permalink)  
Old 05-21-2008, 09:46 PM
Moderator
 
Posts: 75
Default

Quote:
Originally Posted by mmorse View Post
Hey hillman, for your demo tomorrow right click the Flickr Zimlet > authorize:
Actually, that doesn't work - it returns a "Flickr API/Secret key is invalid" error. My guess is that the API/secret keys that are hard-coded into the JS file are associated with whatever domain they were registered with - e.g. zimbra.com, and any attempt to use them from somewhere else fails.

So I need to create my own API key on the Flickr site (which I've done), but as part of the registration process, it asks for a callback URL, which is the URL the user gets kicked back to after they successfully authenticate to Flickr. As part of the pass-back, Flickr passes back a "?frob=<token>", which the zimlet (and maybe the JSP?) needs for further communication with Flickr. So the question is, what's the callback URL that magically gets that 'frob' value passed back to the Zimlet?

(PS: I wasn't sure whether it would require the user to reauthenticate every time they login to Zimbra - that would definitely limit its attractiveness. I'll have to give that one some thought )
Reply With Quote
  #4 (permalink)  
Old 05-21-2008, 10:13 PM
Moderator
 
Posts: 6,237
Default

Hm, now I'll have do do some digging.
It works on both a personal 5.0.5 Ubuntu 6.06 setup & our own dogfood 5.0.6 candidate just fine...you on 5.0.2_GA_1975 NE RHEL5-64 from profile?
Reply With Quote
  #5 (permalink)  
Old 05-21-2008, 10:18 PM
Former Zimbran
 
Posts: 5,606
Default

Quote:
Originally Posted by mmorse View Post
Hm, now I'll have do do some digging.
It works on both a personal 5.0.5 Ubuntu 6.06 setup & our own dogfood 5.0.6 candidate just fine...you on 5.0.2_GA_1975 NE RHEL5-64 from profile?
The API key is assigned to us, and distributed by us. Users shouldn't change it unless they have their own.

We had a bad key earlier in 5.0, so you likely have that zimlet. So, upgrading will fix it, or download a copy, and grab the zimlet out of it, or have Mike send you the latest. That should fix it.
Reply With Quote
  #6 (permalink)  
Old 05-21-2008, 10:32 PM
Moderator
 
Posts: 6,237
Default

Incase you're not running 5.0.5 and/or don't have time to upgrade your demo/production box - sent you a copy of the 5.0.5 com_zimbra_yflickr.zip via email.
Reply With Quote
  #7 (permalink)  
Old 05-21-2008, 11:10 PM
Moderator
 
Posts: 75
Default

You pointed me in the right direction when you said it worked from your personal machine. As it turns out, the "Invalid key" error is just a generic "Could not talk to flickr.com" error. I'm not in the default COS and my ZimbraProxyAllowedDomains did not include the flickr.com domain. Once I added that in, it all started working.

Thanks guys!
Reply With Quote
  #8 (permalink)  
Old 06-04-2008, 03:20 PM
Trained Alumni
 
Posts: 108
Default

Quote:
Originally Posted by mmorse View Post
Incase you're not running 5.0.5 and/or don't have time to upgrade your demo/production box - sent you a copy of the 5.0.5 com_zimbra_yflickr.zip via email.
I have the same problem using this zimlet running 5.0.6. I even verified the local /opt/zimbra/zimlets-extra/com_zimbra_yflickr.zip md5 sum's the exact same as the inside zimbra-store-5.0.6_GA_2313.RHEL5_64-20080522130456.x86_64.rpm

Please advise.

-Jessie
Reply With Quote
  #9 (permalink)  
Old 08-07-2009, 09:49 AM
Partner (VAR/HSP)
 
Posts: 425
Default

Yes, still on 5.0.18: Flickr secret key is invalid.
Reply With Quote
  #10 (permalink)  
Old 08-08-2009, 03:27 AM
Partner (VAR/HSP)
 
Posts: 425
Default

OK, got it partly working with this: zmprov mc mycos +zimbraProxyAllowedDomains "*.flickr.com"
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.