Can I get over 20 heading names on Tumblr? (via JSON)

I made a script to retrieve the rows of all the post headers of one of my blogs. The problem is that I cannot get more than 20 titles.

Theoretically, http://www.tumblr.com/docs/en/api/v1 says: "The last 20 messages are enabled by default. You can pass these optional parameters to GET: .... num is the number of messages to return. The default value - 20, and the maximum value is 50 ...... "

so should i get a maximum of 50?

My GET code looks like this:

$.ajax({
    url: "http://api.tumblr.com/v2/blog/var-lak.tumblr.com/posts?api_key=(my-api-key)text?limit=50&format=text",
    dataType: 'jsonp',
    success: function(results){
    //.....

Thanks in advance Attila

+4
source share
1 answer

URL-. GET, , , :

http://api.tumblr.com/v2/blog/var-lak.tumblr.com/posts?api_key=(my-api-key)text?limit=50&format=text

GET:

api_key = (my-api-key)text?limit=50
format = text

API- docs to v2 , :

api_key = (my-api-key)
limit = 50
format = text

, URL- :

http://api.tumblr.com/v2/blog/var-lak.tumblr.com/posts?api_key=(my-api-key)&limit=50&format=text

.

+4

Source: https://habr.com/ru/post/1524280/


All Articles