android_market_api 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/COPYING CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011
1
+ Copyright (c) 2011 Bearstouch Software (mail@bearstouch.com)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to
data/README.md CHANGED
@@ -1,48 +1,156 @@
1
- Open Source Android Market Ruby Library for parsing Android Market.
1
+ # About Android Market API
2
+
3
+ ## What is Android Market API
4
+
5
+ Android Market API is an open source Android Market Ruby Library for parsing Android Market information.
2
6
 
3
7
  This project is under development.
4
8
 
5
9
  Fell free to clone it and submit your changes to us.
6
10
 
7
- INSTALL INSTRUCTIONS
11
+ ## Install the gem ##
12
+
13
+ Install it with [RubyGems](https://rubygems.org/)
14
+
15
+ gem install android_market_api
16
+
17
+ or add this to your Gemfile if you use [Bundler](http://gembundler.com/):
18
+
19
+ gem "android_market_api"
20
+
21
+ ## Getting started ##
22
+
23
+ ###For parsing an application on Android Market
24
+
25
+
26
+ require 'rubygems'
27
+ require 'android_market_api'
28
+
29
+ app=AndroidMarketApplication.new('com.zeptolab.ctr.paid')
30
+
31
+ # Getting Application Name
32
+ puts app.name
33
+
34
+ # Getting Application Current Version
35
+ puts app.current_version
36
+
37
+ # Getting Application Price
38
+ puts app.price
39
+
40
+ # Getting Ratting Value
41
+ puts app.ratting_value
42
+
43
+ # Getting Nr of Votes
44
+ puts app.ratting_count
8
45
 
9
- gem install android_market_api
46
+ # Getting Last Update datetime
47
+ puts app.updated
10
48
 
11
- For parsing an application on Android Market
49
+ # Getting SDK Required
50
+ puts app.sdk_required
12
51
 
13
- Ex:
52
+ # Getting Download category
53
+ puts app.downloads
14
54
 
15
- require 'rubygems'
16
- require 'android_market_api'
55
+ # Getting Application Size
56
+ puts app.size
17
57
 
18
- $app=AndroidMarketApplication.new('com.zeptolab.ctr.paid')
19
- $app.to_s
58
+ # Getting Content Ratting
59
+ puts app.contentRating
20
60
 
61
+ # Getting Application description
62
+ puts app.description
21
63
 
22
- For getting Top Selling Paid Apps for a category
64
+ # Getting Developer Name
65
+ puts app.developer_name
23
66
 
24
- Ex:
67
+ # Getting Icon URL
68
+ puts app.icon
25
69
 
26
- require 'rubygems'
27
- require 'android_market_api'
70
+ # Getting Screenshot URLs Array
71
+ puts app.screenshots
28
72
 
29
- app_arr=AndroidMarket.get_top_selling_paid_apps('CASUAL')
30
- app_arr[2].to_s
73
+ # Getting Last Updates Array
74
+ puts app.update_text
31
75
 
76
+ ### Get Top selling free app in position (Overall Ranking)
77
+
78
+ require 'rubygems'
79
+ require 'android_market_api'
80
+
81
+ #Overall Position 15 Free Apps
82
+ app=AndroidMarket.get_overall_top_selling_free_app(15)
83
+
84
+ ...
32
85
 
33
- For getting Top Selling Free Apps for a category
86
+ ### Get Top selling paid app in position (Overall Ranking)
87
+
88
+ require 'rubygems'
89
+ require 'android_market_api'
90
+
91
+ #Overall Position 20 Free Apps
92
+ app=AndroidMarket.get_overall_top_selling_paid_app(20)
93
+
94
+ ...
34
95
 
35
- Ex:
96
+ ### Get Top selling paid app in position (Category Ranking)
36
97
 
37
- require 'rubygems'
38
- require 'android_market_api'
98
+ require 'rubygems'
99
+ require 'android_market_api'
100
+
101
+ #Position 10 in Category 'BOOKS_AND_REFERENCE'
102
+ app=AndroidMarket.get_top_selling_paid_app_in_category('BOOKS_AND_REFERENCE',10)
103
+
104
+ ....
39
105
 
40
- app_arr=AndroidMarket.get_top_selling_free_apps('CASUAL')
41
- app_arr[1].to_s
106
+ ### Get Top selling free app in position (Category Ranking)
42
107
 
43
- SOON MORE DOCUMENTATION
108
+ require 'rubygems'
109
+ require 'android_market_api'
44
110
 
45
- How can i help ?
111
+ #Position 1 in Category COMMUNICATION
112
+ app=AndroidMarket.get_top_selling_free_app_in_category('COMMUNICATION',1)
113
+
114
+ ....
115
+
116
+ ### Get Game Categories
117
+
118
+ require 'rubygems'
119
+ require 'android_market_api'
120
+
121
+ game_categories_ar=AndroidMarket.get_game_categories
122
+
123
+ ...
124
+
125
+ ### Get App Categories
126
+
127
+ require 'rubygems'
128
+ require 'android_market_api'
129
+
130
+ app_categories_ar=AndroidMarket.get_application_categories
131
+
132
+ ...
133
+
134
+ ## License and copyright ##
135
+
136
+ Permission is hereby granted, free of charge, to any person obtaining a copy
137
+ of this software and associated documentation files (the "Software"), to
138
+ deal in the Software without restriction, including without limitation the
139
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
140
+ sell copies of the Software, and to permit persons to whom the Software is
141
+ furnished to do so, subject to the following conditions:
142
+
143
+ The above copyright notice and this permission notice shall be included in
144
+ all copies or substantial portions of the Software.
145
+
146
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
147
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
148
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
149
+ THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
150
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
151
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
152
+
153
+ ## How can i help ?
46
154
 
47
155
  Contributions are welcome ! The project is mainly missing documentation and examples...
48
156
 
@@ -1,3 +1,3 @@
1
1
  module AndroidMarketApi
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: android_market_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "H\xC3\xA9lder Vasconcelos"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-24 00:00:00 Z
18
+ date: 2011-11-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: hpricot