Re: Problem to get the nextPageToken and the prevPage Token in API Blogger (v3)

Juan Castela Martínez <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hi again,

   anyone can help me with it?. In the previous API version (v2) the 
webservice returned the prevPageToken but in the new API version(V3), I 
can't get this value.

El domingo, 10 de mayo de 2015, 5:06:11 (UTC+2), Juan Castela Martínez 
escribió:
>
> Hi again gys!,
>
>
>    I've the problem indicated in the subject. When try get those values 
> the webservice to me returned undefined. I'm using jQuery to send the 
> information through ajax. The code is the next:
>
> function(numPost, label, token){
>   var strUrl;
>   if(token.isEmpty()){
>      strUrl=';
> https://www.googleapis.com/blogger/v3/blogs/';+blogid+'/posts?labels='+encodeURI(label)+'&orderBy=updated&pageToken='+token+'&maxResults='+numPost+'&key='+apikey
>    }else{
>      strUrl='
> https://www.googleapis.com/blogger/v3/blogs/'+blogid+'/posts?labels='+encodeURI(label)+'&orderBy=updated&maxResults='+numPost+'&key='+apikey
>    }
>   $.ajax({
>      cache:false,
>      dataType:'jsonp',
>      url:strUrl,
>      success:function(data, textStatus, jqXHR){
>               var items=[];
>               nextToken=data.nextPageToken;
>               prevToken=data.prevPageToken;
>               $.each(data.items, function(index, value){
>                 items.push(value.title);
>               });
>      },
>      error:function(jqXHR, textStatus, errorThrown){
>          alert(&quot;Error JSON:\n\nXMLHttpRequest object: 
> &quot;+jqXHR+&quot;\n\nError type: &quot;+textStatus+&quot;\n\nHTTP: 
> &quot;+errorThrown);
>      }
>    });
> }
>
> If I put an alert to show nextToken and prevToken values, those values 
> return undefined.
>
> Thanks for your help and patience.
>

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.