Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2009 06:56:15 GMT
From:      Venky Shankar <venkyshankar@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/138299: Apache module for accessing Flickr API
Message-ID:  <200908290656.n7T6uFpx084943@www.freebsd.org>
Resent-Message-ID: <200908290700.n7T709s8052177@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         138299
>Category:       ports
>Synopsis:       Apache module for accessing Flickr API
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 29 07:00:08 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Venky Shankar
>Release:        FeeeBSD 7.2
>Organization:
>Environment:
FreeBSD bsd.home.mill 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 08:49:13 UTC 2009     root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
New port: www/mod_flickr

mod_flickr is a apache module (for apache 2.0 and above) that makes call to
flickr via flickr API's to get a users (configured in httpd.conf) public photo
sets, photos in sets and recent photos uploaded in flickr etc...

Currently only 4 api calls have been implmeneted (all are GET calls). These
API's return data in XML format although work is in progress to return the data as JSON and/or as a HTML markup (which can be called from a iframe tag in frontend code)

Users (for whome flickr data has to be accesses) can be configured in apache's configuration file. Configuration involves setting the Flickr API key, secret and auth token which can be obtained from: http://www.flickr.com/services/api/

Sample API calls: (assuming SetHandler has been set to flickr-handler for Location /flickr)

* http://<hostname>/flickr/vshankar/getMyPhotos/<page_no>/<number_of_pics>;
  eg: http://www.whatsoever.com/flickr/vshankar/getMyPhotos/1/10

* http://<hostname>/flickr/vshankar/getMySets/

* http://<hostname>/flickr/vshankar/getPhotosInSet/<set_no>/<Page_no>/<no_of_pics>;
  eg: http://www.whatsoever.com/flickr/vshankar/getPhotosInSet/123456/1/20

* http://<hostname>/flickr/vshankar/getRecentPhotos/<page_no>/<no_of_pics>;
  eg: http://www.whatsoever.com/flickr/vshankar/getRecentPhotos/1/50

Code repository: http://github.com/vshankar/mod_flickr/
Homepage: http://www.vshank.com/code/mod_flickr/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	www/mod_flickr
#	www/mod_flickr/Makefile
#	www/mod_flickr/pkg-descr
#	www/mod_flickr/distinfo
#
echo c - www/mod_flickr
mkdir -p www/mod_flickr > /dev/null 2>&1
echo x - www/mod_flickr/Makefile
sed 's/^X//' >www/mod_flickr/Makefile << 'f9d6e42f39fa1ae50f9e09e5aa576603'
X# New ports collection makefile for:	mod_flickr
X# Date created:				2009-08-24
X# Whom:						vshankar
X#
X# $FreeBSD$
X#
X
XPORTNAME=		mod_flickr
XPORTVERSION=	1.0
XCATEGORIES=		www
XMASTER_SITES=	http://www.vshank.com/modcode/
X
XMAINTAINER=		venkyshankar@yahoo.com
XCOMMENT=		Apache module for Flickr API access
X
XLIB_DEPENDS=	curl.5:${PORTSDIR}/ftp/curl
X
XXTRA_FLAGS=		-lcurl
X
XAP_INC=			${LOCALBASE}/include
XAP_LIB=			${LOCALBASE}/lib
X
X.if defined(WITH_DEBUG)
XXTRA_FLAGS+=	-DDEBUG
X.endif
X
XAP_EXTRAS=		${XTRA_FLAGS}
XUSE_LDCONFIG=	yes
X
XUSE_APACHE=	2.0+
XAP_FAST_BUILD=	yes
XAP_GENPLIST=	yes
X
X.include <bsd.port.mk>
f9d6e42f39fa1ae50f9e09e5aa576603
echo x - www/mod_flickr/pkg-descr
sed 's/^X//' >www/mod_flickr/pkg-descr << '9721c716d059faa9cc52551b85b42591'
Xmod_flickr is a apache module (for apache 2.0 and above) that makes call to 
Xflickr via flickr API's to get a users (configured in httpd.conf) public photo 
Xsets, photos in sets and recent photos uploaded in flickr etc... 
X
XCurrently only 4 api calls have been implmeneted (all are GET calls). These
XAPI's return data in XML format. The XML can then be parsed by the calling code
X(e.g. front end Javascript/php) to display thumbnails of the images say in a
Xscrollbar. (Code for front end is not distributed as yet)
X
XThis module can be used by web developers who want to show their photos/albums
Xuploaded in flickr on their website and/or access to metadata of their photos
Xfor their own needs/purposes.
X
XWWW: http://www.vshank.com/code/mod_flickr
9721c716d059faa9cc52551b85b42591
echo x - www/mod_flickr/distinfo
sed 's/^X//' >www/mod_flickr/distinfo << 'a129ff9d5d1a7d79f3bd9668769c7b44'
XMD5 (mod_flickr-1.0.tar.gz) = 029e7263043de04252d683a91185ff79
XSHA256 (mod_flickr-1.0.tar.gz) = b43ab4cc9332462e6d4c37dbe3aa8ed0d9d9e3fb87a405d8d9c264c2b039aab6
XSIZE (mod_flickr-1.0.tar.gz) = 10634
a129ff9d5d1a7d79f3bd9668769c7b44
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908290656.n7T6uFpx084943>