Get notes using json read in tumblr read - json

In tumblr,Is there any way to get the notes using below url with custom theme page, i have check lots of blog not able to get notes or notes count
http://{name}.tumblr.com/api/read/json
Thanks

It doesn't seem like version 1 of the Tumblr API supports notes. However version 2 does:
http://api.tumblr.com/v2/blog/{name}.tumblr.com/posts/text?notes_info=true
Reference
Tumblr API v1: http://www.tumblr.com/docs/en/api/v1
Tumblr API v2: http://www.tumblr.com/docs/en/api/v2#posts

Related

"Universal Android App" (template) news mobile app, list not working

sorry for bothering you. I need help with this template:
https://codecanyon.net/item/universal-full-multipurpose-android-app/6512720
I would like to insert my website (in Altervista, www.umbertoprimo.altervista.org) listing the news, but I have a problem.
What is written in the documentation:
If you would like to show the latest WordPress posts or a category in your app, you can add a WordPress item to the menu. We have installed our API plugin as documented earlier. Now follow the instructions depending on if you are using the JSON API or the JetPack / WordPress.com API.
JSON API You can use the following values for your configuration: The
first parameter is the url to your WordPress blog (starting with
http:// and not ending with a slash). The second parameter is a
category slug (which you can leave empty for all posts combined). The
last and third parameter is optional, and this is a Disqus formatted
string.
I installed the JSON API in the website with Wordpress but... this is what I came with.
[
{
"title":"Inter Nos",
"drawable":"",
"submenu":"",
"iap":false,
"tabs":[
{
"title":"Post Recenti",
"provider":"wordpress",
"arguments":[
"http://umbertoprimo.altervista.org"
]
},
{
"title":"Numeri Interi",
"provider":"wordpress",
"arguments":[
"org.altervista.umberto",
"numeri-interi"
]
},
{
"title":"Contatti",
"provider":"wordpress",
"arguments":[
"en.blog.wordpress.com",
"security"
]
}
]
},
(config.json, using Android Studio)
And the "Contatti" table works, showing all the news from the "blog.wordpress", but the recent posts and numeri-interi don't.
I tried using as provider "altervista", but nothing.
What can I do?
Thanks in advance, this is just a test as part of my app.
P.S. When I build the app, no problem, but when I open it... Image1
Image 2
You need to install Jetpack for you to use that option because the Api's are different. The "Post Recenti" works because you have the Json Api installed, the "Contatti" works beacause wordpress has the Jetpack plugin installed and its contains the wordpress resp api.

Get Theme and Wordpress version details via API

wordpress gives API for all plugins including change log , version , details, screenshots..etc in http://codex.wordpress.org/WordPress.org_API
For example
https://api.wordpress.org/plugins/info/1.0/BuddyPress
Same way themes and wordpress every version i need to get these details. i have tried with https://api.wordpress.org/themes/info/1.1/
and it shows nothing and i do not know where to modify this api url to get particular details of a theme.
Use the $request parameter to pass the arguments, for example to get infos on Twentyfifteen theme:
https://api.wordpress.org/themes/info/1.1/?action=theme_information&request[slug]=twentyfifteen
Or to get the first 3 themes by the author Wordpress.org:
https://api.wordpress.org/themes/info/1.1/?action=query_themes&request[author]=wordpressdotorg&request[per_page]=3

Wordpress json performance, iOS app (WP REST Api vs SMIO Wordpress API Complete Solution)

I am writing an app for wordpress for iOS (swift).
First of all I tried to use SMIO Wordpress API Complete Solution (wordpress json plugin codecanyon.net/item/smio-wordpress-api-complete-solution/6448487)
Works well, but have some bugs. Then I found Wp REST Api (wordpress.org/support/plugin/json-rest-api), which have more developer history. So, I decided to use to use the second plugin.
Problem:
SMIO Wordpress API Complete Solution load last 10 posts in 5 sec,
Wp REST Api - 20-30 sec.
Swift code: let data = NSData(contentsOfURL: self.url!)!
Why?
I use wp super cache (https://wordpress.org/plugins/wp-super-cache/). Default settings.

How to do Chart on Windows Phone Universal App

I'm new Windows Phone Universal App, I need to implement bar/pie chart.
Tried many dll, Metro UI, WinRtXamlToolKit and WinRtXamlToolKit.Controls.DataVisualization
These dll are not working.
Give me good idea to do this on Windows Phone Universal App. How to do chart programmatically.
Thanks
I believe the Telerik has some Chart libraries that cost money ( can't link though as stackoverflow only permits me to post 2 links ( less than 10 rep) ). I have not used it and it is in Beta version at the moment. Google "Rad Chart windows universal apps" and you can read about it.
When I have needed charts for universal apps i have used the Google Chart Tools. You can use https://developers.google.com/chart/image/ even though Google is not developing on it anymore. It is is freakingly easy to use if you do not want to spend time drawing your own Charts. With the API you can request a chart just through a http request. You can setup almost everything and it's really easy to use thanks to the well documented API.
Here is an example of a bar chart i made using the API.
http://chart.googleapis.com/chart?chtt=Karakterfordeling&cht=bvg&chof=png&chs=300x300&chxt=x,y&chco=0076A3&chf=bg,s,65432100&hxr=0,0,50&chxl=0:|2|4|7|10|12&chxr=1,0,20&chbh=40,0,10&chd=t:2,60,70,10,90
All the arguments are passed through the http request and you can set your Chart up using the Live Chart Playground:
These are the arguments for the http request posted above. You can use the Live Chart Playground to set up parameters like below.
chtt=Karakterfordeling
cht=bvg
chof=png
chs=300x300
chxt=x,y
chco=0076A3
chf=bg,s,65432100
hxr=0,0,50
chxl=0:
2
4
7
10
12
chxr=1,0,20
chbh=40,0,10
chd=t:2,60,70,10,90
In code you set the http string as your ImageSource. You can manipulate the http string in your code and adapt the chart parameters/data if needed. I would recommend using a Converter that you bind to from you XAML. Pass your data to the converter and let it return a ImageSource with the http request. If you are new to Converters you can probably find a few posts about it here on stackoverflow.
Don't use DLLs grab the files into your project.
Add WinRTXamlToolkit.Controls.DataVisualization.csproj to your solution and reference it in the main project and add this to your page.
xmlns:charting="using:WinRTXamlToolkit.Controls.DataVisualization.Charting"
xmlns:datavis="using:WinRTXamlToolkit.Controls.DataVisualization"
Look at the samples project http://winrtxamltoolkit.codeplex.com
Unfortunately, winrtxamltoolkit is only for WinRT; VS 2013 doesn't allow adding of project references of that kind to WinPhone projects.

Crawling and Scraping iTunes App Store

I noticed that iTunes preview allows you to crawl and scrape pages via the http:// protocol. However, many of the links are trying to be opened in iTunes rather than the browser. For example, when you go to the iBooks page, it immediately tries opening a url with an itms:// protocol.
Are there any other methods of crawling the App Store or is this the only way?
Can the itms:// protocol links themselves be crawled somehow?
I would have a decent look at the iTunes Search API and the iTunes Enterprise Partner API
Search API -
http://www.apple.com/itunes/affiliates/resources/blog/introduction---search-api.html
Enterprise Partner API -
http://www.apple.com/itunes/affiliates/resources/documentation/itunes-enterprise-partner-feed.html
You might get most/all of the information you need in a nice JSON file format.
If you can't get the information you need with the API, I would be interested what it is :)
As phillipp mentioned, the iTunes search API is an easy way to retrieve data about your App Store listings in JSON format.
Simply query for this with your app id (you can find the app id by viewing the web listing for your app at itunes.apple.com), ex:
http://itunes.apple.com/lookup?id=INSERT_YOUR_APP_ID_HERE
then, parse the resulting JSON to your heart's content.
The only difference between http:// links and itms:// links is that you need to set your User-Agent to an iTunes user-agent, and depending on the version you may also have to include a verification code based on some not-so-secret algorithm.
For example this is the code for iTunes 9:
# Some magic. Generates a seed we use for X-Apple-Validation. Adapted from LWP::UserAgent::iTMS_Client.
function comp_seed($url, $user_agent) {
$random = sprintf( "%04X%04X", rand(0,0x10000), rand(0,0x10000) );
$static = base64_decode("ROkjAaKid4EUF5kGtTNn3Q==");
$url_end = ( preg_match("|.*/.*/.*(/.+)$|",$url,$matches)) ? $matches[1] : '?';
$digest = md5(join("",array($url_end, $user_agent, $static, $random)) );
return $random . '-' . strtoupper($digest);
}
However if you are only scraping, iTunes preview should work for your purposes, the link you gave us to the iBooks page had more than enough information to scrape.
We tried scraping ourselves too about a year ago and it just became too much of a headache. Philipp's comment is a good one as the enterprise feed from apple (need to apply for it with a legitimate use) does have a good amount of useful info that you might be after in scraping.
There are a few companies that offer data as a service too - abto and AppMonsta are two I heard of when I was looking. I can't seem to find abto anymore but http://appmonsta.com seems to be. The search API looks ok (never experimented) but limited.
Good luck!