[pmwiki-users] flickr and keys
Jon Haupt
jhaupt at gmail.com
Mon Feb 6 17:19:57 CST 2006
Isarin,
That's very strange - there shouldn't be any problem with accessing ANY
user's images using ANY API - except if you are trying to access private
images. I haven't yet created a scheme for authenticating your site to
display private images, but that is possible using the phpFlickr class. If
you're just trying to access public images, ensure that you are using the
right syntax user=username. Which brings up another theoretical issue that
I haven't thought of - I don't suppose that your username is actually one of
flickr's funny account ids, like 9384813975N00 or whatever...? If that's
the case, then maybe there something funny going on when you try to put that
in the user= variable. If that's not the case, then make sure that you are
using the username, not the display name--in my case, while my name displays
as "josquin" in flickr, my username is actually josquin2000 (somebody had
taken josquin already). Does any of that ring a bell?
Jon
On 2/6/06, H S <haadyai at gmail.com> wrote:
>
> I think I am still missing something.
>
> I applied a new flickr-album.php.
>
> Then, I added
>
> a) in config.php in field A
> $FlickrAPIKey = 'flickr_key_user_a';
> include_once("$FarmD/cookbook/flickr-album.php");
>
> b) in config.php in field B
> $FlickrAPIKey = 'flickr_key_user_b';
> include_once("$FarmD/cookbook/flickr-album.php");
>
> my access to user-a in either field A or field B works. I can see my
> pictures on both fields. However, I can't access 'user-b' even on field B
> itself.
>
> Thanks,
> Isarin
>
>
> On 2/6/06, Jon Haupt <jhaupt at gmail.com> wrote:
> >
> >
> >
> > On 2/6/06, Dominique Faure < dominique.faure at gmail.com> wrote:
> > >
> > > 2006/2/6, Jon Haupt <jhaupt at gmail.com>:
> > > > On 2/5/06, H S < haadyai at gmail.com> wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > How should I setup more than one key in the flickr-album.php?
> > > > >
> > > > > Also if I have two different fields and have A key for a field
> > > and B/C
> > > > keys for another field, how do I set them up ?
> > > > >
> > > > >
> > > > Hmm, I'm assuming what you mean is the flickr API key; what needs to
> > > be done
> > > > is the key should be a global variable that can be set in config.phpbefore
> > > > including flickr-album.php . However, I'm a little confused as to
> > > how this
> > > > is done; when I initially tried setting the key as a variable and
> > > then using
> > > > the variable within the function, it didn't work. If someone else
> > > can
> > > > explain how to write that in the code, I'll be glad to fix it.
> > >
> > > Perhaps something like:
> > >
> > > SDV($FlickrAPIKey, "put_your_API_key_here");
> > >
> > > function FlickrAlbum($p) {
> > > global $FlickrAPIKey;
> > >
> > > require_once("phpFlickr/phpFlickr.php");
> > >
> > > // Create new phpFlickr object
> > > $f = new phpFlickr($FlickrAPIKey);
> > >
> > > ...
> > >
> > > Regards,
> > > Dom
> > >
> >
> > Thanks - I think I understand SDV and declarations better now. I've
> > updated flickr-album.php with this little insight and now you should be
> > able to simply set $FlickrAPIKey = "whatever"; in each field before
> > including flickr-album.php and it'll work.
> >
> > Jon
> >
> > --
> > Jon Haupt
> > Fine & Performing Arts Librarian
> > Iowa State University
> > 152 Parks Library
> > Ames, IA 50011
> > 515-294-0904
> > jhaupt at iastate.edu
> >
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
>
--
Jon Haupt
Fine & Performing Arts Librarian
Iowa State University
152 Parks Library
Ames, IA 50011
515-294-0904
jhaupt at iastate.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060206/cb6656ab/attachment.html
More information about the pmwiki-users
mailing list