Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
page parameter not reflected in results
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
nodejs  
View profile  
 More options May 3 2012, 12:49 am
From: nodejs <mranandgeo...@gmail.com>
Date: Wed, 2 May 2012 21:49:59 -0700 (PDT)
Local: Thurs, May 3 2012 12:49 am
Subject: page parameter not reflected in results
Hi!

Have been using the excellent php api (https://github.com/vdemay/
Scoopit-PHP) and it works fine.

Only problem I find is that changes in the "page" parameter are not
reflected in the results. The results always begin from page 0.

Modified the parameters first in the call to the function as:

$topic = $scoop->topic(438305,50,0,5,0);

Also tried modifying the function itself as:

public function topic($id, $curated=50, $curable=0, $page=5, $since =
0);

Is scoop.it api defaulting to page=0.

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Demay  
View profile  
 More options May 3 2012, 1:09 pm
From: Vincent Demay <vde...@scoop.it>
Date: Thu, 3 May 2012 10:09:38 -0700 (PDT)
Local: Thurs, May 3 2012 1:09 pm
Subject: Re: page parameter not reflected in results
Hi!

You're right! There is a bug in the PHP API. I've just commited a fix
to set the default value of $since parameter to -1. if $since
parameter is différent from -1 it will override the $page parameter.

Here a working sample ($since set to -1):
$scoop->topic(438305,50,0,0,-1)->curatedPosts[0]->title
$scoop->topic(438305,50,0,1,-1)->curatedPosts[0]->title

Sorry for this issue and thanks for your feedback.

Best,

--
Vincent Demay

On May 3, 6:49 am, nodejs <mranandgeo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anand George  
View profile  
 More options May 3 2012, 11:18 pm
From: Anand George <mranandgeo...@gmail.com>
Date: Fri, 4 May 2012 08:48:17 +0530
Local: Thurs, May 3 2012 11:18 pm
Subject: Re: [Scoop.it API Talk] Re: page parameter not reflected in results

Thanks. That works. Am considering making a Node.js API. Look forward to
your support.

Anand


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »