Reporter.AppStore
SourceSummary↑
all_json(json) | Return full JSON map |
all_xml(xml) | Return full XML via Quinn.parse(xml) |
author(json) | Returns collection of reviews |
entry(json) | Returns collection of entry |
icon(json) | Returns icon |
id(json) | Returns id |
link(json) | Returns collection of link |
reviews(json) | Returns collection of reviews |
rights(json) | Returns rights |
rss_json(app_id, locale \\ "en") | Return URLs with JSON |
rss_xml(app_id, locale \\ "en") | Return URLs with XML |
title(json) | Returns collection of title |
updated(json) | Returns time of updated |
Functions
Return full JSON map.
Return full XML via Quinn.parse(xml).
Returns collection of reviews.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.author %{“name” => %{“label” => “iTunes Store”},
"uri" => %{"label" => "http://www.apple.com/jp/itunes/"}}
iex> File.read!("./test/data/ios_review_empty.json") |> Poison.decode! |> Reporter.AppStore.author
%{"name" => %{"label" => "iTunes Store"},
"uri" => %{"label" => "http://www.apple.com/itunes/"}}
Returns collection of entry.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.entry %{“category” => %{“attributes” => %{“im:id” => “6012”,
"label" => "ライフスタイル",
"scheme" => "https://itunes.apple.com/jp/genre/ios-raifusutairu/id6012?mt=8&uo=2",
"term" => "Lifestyle"}},
"id" => %{"attributes" => %{"im:bundleId" => "com.apple.store.Jolly",
"im:id" => "375380948"},
"label" => "https://itunes.apple.com/jp/app/apple-store/id375380948?mt=8&uo=2"},
"im:artist" => %{"attributes" => %{"href" => "https://itunes.apple.com/jp/artist/apple/id284417353?mt=8&uo=2"},
"label" => "Apple"},
"im:contentType" => %{"attributes" => %{"label" => "アプリケーション",
"term" => "Application"}},
"im:image" => [%{"attributes" => %{"height" => "53"},
"label" => "http://is5.mzstatic.com/image/pf/us/r30/Purple1/v4/82/bd/90/82bd90c7-f673-718c-7c32-ad9db7591ea6/mzl.hfuxogmw.53x53-50.png"},
%{"attributes" => %{"height" => "75"},
"label" => "http://is1.mzstatic.com/image/pf/us/r30/Purple1/v4/82/bd/90/82bd90c7-f673-718c-7c32-ad9db7591ea6/mzl.hfuxogmw.75x75-65.png"},
%{"attributes" => %{"height" => "100"},
"label" => "http://is3.mzstatic.com/image/pf/us/r30/Purple1/v4/82/bd/90/82bd90c7-f673-718c-7c32-ad9db7591ea6/mzl.hfuxogmw.100x100-75.png"}],
"im:name" => %{"label" => "Apple Store"},
"im:price" => %{"attributes" => %{"amount" => "0.00000", "currency" => "JPY"},
"label" => "入手"},
"im:releaseDate" => %{"attributes" => %{"label" => "2011年9月21日"},
"label" => "2011-09-21T10:10:33-07:00"},
"link" => %{"attributes" => %{"href" => "https://itunes.apple.com/jp/app/apple-store/id375380948?mt=8&uo=2",
"rel" => "alternate", "type" => "text/html"}},
"rights" => %{"label" => "© 2015 Apple Inc."},
"title" => %{"label" => "Apple Store - Apple"}}
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.entry %{}
Returns icon.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.icon %{“label” => “http://itunes.apple.com/favicon.ico"}
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.icon %{“label” => “http://itunes.apple.com/favicon.ico"}
Returns id.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.id %{“label” => “https://itunes.apple.com/jp/rss/customerreviews/id%3d375380948/sortby%3dmostrecent/json"}
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.id %{“label” => “https://itunes.apple.com/en/rss/customerreviews/id%3d375380948/sortby%3dmostrecent/json"}
Returns collection of link.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.link [%{“attributes” => %{“href” => “https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewGrouping?cc=jp&id=26105“,
"rel" => "alternate", "type" => "text/html"}},
%{"attributes" => %{"href" => "https://itunes.apple.com/jp/rss/customerreviews/id=375380948/sortby=mostrecent/json",
"rel" => "self"}},
%{"attributes" => %{"href" => "https://itunes.apple.com/jp/rss/customerreviews/page=1/id=375380948/sortby=mostrecent/xml?urlDesc=/customerreviews/id=375380948/sortby=mostrecent/json",
"rel" => "first"}},
%{"attributes" => %{"href" => "https://itunes.apple.com/jp/rss/customerreviews/page=8/id=375380948/sortby=mostrecent/xml?urlDesc=/customerreviews/id=375380948/sortby=mostrecent/json",
"rel" => "last"}},
%{"attributes" => %{"href" => "https://itunes.apple.com/jp/rss/customerreviews/page=1/id=375380948/sortby=mostrecent/xml?urlDesc=/customerreviews/id=375380948/sortby=mostrecent/json",
"rel" => "previous"}},
%{"attributes" => %{"href" => "https://itunes.apple.com/jp/rss/customerreviews/page=2/id=375380948/sortby=mostrecent/xml?urlDesc=/customerreviews/id=375380948/sortby=mostrecent/json",
"rel" => "next"}}]
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.link [%{“attributes” => %{“href” => “https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewGrouping?cc=us&id=38“,
"rel" => "alternate", "type" => "text/html"}},
%{"attributes" => %{"href" => "https://itunes.apple.com/en/rss/customerreviews/id%3d375380948/sortby%3dmostrecent/json",
"rel" => "self"}},
%{"attributes" => %{"href" => "", "rel" => "first"}},
%{"attributes" => %{"href" => "", "rel" => "last"}},
%{"attributes" => %{"href" => "", "rel" => "previous"}},
%{"attributes" => %{"href" => "", "rel" => "next"}}]
Returns collection of reviews.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.reviews |> Enum.at(0) %{“author” => %{“label” => “”, “name” => %{“label” => “m.aaa…”},
"uri" => %{"label" => "https://itunes.apple.com/jp/reviews/id451145371"}},
"content" => %{"attributes" => %{"type" => "text"},
"label" => "利便性がわかりずらい"},
"id" => %{"label" => "1205430410"},
"im:contentType" => %{"attributes" => %{"label" => "アプリケーション",
"term" => "Application"}}, "im:rating" => %{"label" => "4"},
"im:version" => %{"label" => "3.3"}, "im:voteCount" => %{"label" => "0"},
"im:voteSum" => %{"label" => "0"},
"link" => %{"attributes" => %{"href" => "https://itunes.apple.com/jp/review?id=375380948&type=Purple%20Software",
"rel" => "related"}}, "title" => %{"label" => "あまり"}}
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.reviews %{}
Returns rights.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.rights %{“label” => “Copyright 2008 Apple Inc.”}
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.rights %{“label” => “Copyright 2008 Apple Inc.”}
Specs:
Return URLs with JSON.
Examples
iex> Reporter.AppStore.rss_json(“375380948”) “https://itunes.apple.com/en/rss/customerreviews/id=375380948/sortby=mostrecent/json“
iex> Reporter.AppStore.rss_json(“375380948”, “jp”) “https://itunes.apple.com/jp/rss/customerreviews/id=375380948/sortby=mostrecent/json“
Specs:
Return URLs with XML.
Examples
iex> Reporter.AppStore.rss_xml(“375380948”) “https://itunes.apple.com/en/rss/customerreviews/id=375380948/sortby=mostrecent/xml“
iex> Reporter.AppStore.rss_xml(“375380948”, “jp”) “https://itunes.apple.com/jp/rss/customerreviews/id=375380948/sortby=mostrecent/xml“
Returns collection of title.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.title %{“label” => “iTunes Store: カスタマーレビュー”}
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.title %{“label” => “iTunes Store: Customer Reviews”}
Returns time of updated.
Examples
iex> File.read!(“./test/data/ios_review.json”) |> Poison.decode! |> Reporter.AppStore.updated %{“label” => “2015-06-18T07:17:49-07:00”}
iex> File.read!(“./test/data/ios_review_empty.json”) |> Poison.decode! |> Reporter.AppStore.updated %{“label” => “2015-06-21T06:52:45-07:00”}