Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 470371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:52:42+00:00 2026-05-12T23:52:42+00:00

I am reading this page about Zend_Service_Flickr . However it does not say how

  • 0

I am reading this page about Zend_Service_Flickr. However it does not say how to set up the number of photos showing.

The following code returns 10 images.

Zend_Loader::loadClass('Zend_Service_Flickr');
$flickr = new Zend_Service_Flickr($this->flickrapikey);
$results = $flickr->userSearch($this->flickemail);

Could anyone tell me how to set it up please?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:52:42+00:00Added an answer on May 12, 2026 at 11:52 pm

    If you take a look at the code source of Zend_Service_Flickr::userSearch (see here for instance), you’ll notice it starts with this piece of code :

    /**
     * Finds photos by a user's username or email.
     *
     * Additional query options include:
     *
     *  # per_page:        how many results to return per query
     *  # page:            the starting page offset.  first result will be (page - 1) * per_page + 1
     *  # min_upload_date: Minimum upload date to search on.  Date should be a unix timestamp.
     *  # max_upload_date: Maximum upload date to search on.  Date should be a unix timestamp.
     *  # min_taken_date:  Minimum upload date to search on.  Date should be a MySQL datetime.
     *  # max_taken_date:  Maximum upload date to search on.  Date should be a MySQL datetime.
     *
     * @param  string $query   username or email
     * @param  array  $options Additional parameters to refine your query.
     * @return Zend_Service_Flickr_ResultSet
     * @throws Zend_Service_Exception
     */
    public function userSearch($query, array $options = null)
    {
        static $method = 'flickr.people.getPublicPhotos';
        static $defaultOptions = array('per_page' => 10,
                                       'page'     => 1,
                                       'extras'   => 'license, date_upload, date_taken, owner_name, icon_server');
        ...
        ...
    

    This should be enough to help you understand how to specify how many photos you’d like to get : you probably just have to pass an array as second parameter, containing an entry with the key “per_page“, and the value you want.

    Somethong like this, I suppose (not tried, though) :

    Zend_Loader::loadClass('Zend_Service_Flickr');
    $flickr = new Zend_Service_Flickr($this->flickrapikey);
    $results = $flickr->userSearch($this->flickemail, array(
        'per_page' => 20
      ));
    

    When the documentation is not good enough, don’t hesitate to take a look at the code 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 282k
  • Answers 282k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer No, it is not possible. The assemblies need to have… May 13, 2026 at 4:04 pm
  • Editorial Team
    Editorial Team added an answer So,finally we use autoprops(mime-type set to application/octet-stream) on all clients… May 13, 2026 at 4:04 pm
  • Editorial Team
    Editorial Team added an answer My experience with Scala is that there is more than… May 13, 2026 at 4:04 pm

Related Questions

Please pardon my C#.Net newbie status. If this is obvious and I missed it
I have a question with fluent interfaces. We have some objects that are used
One of the pages in our web application polls the server approximately every 10
I am currently reading Albahari's C# 3.0 in a Nutshell book and on page

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.