App42_RUBY_SDK 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/App42_RUBY_SDK.gemspec +31 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +25 -0
- data/Rakefile +1 -0
- data/lib/App42BadParameterException.rb +31 -0
- data/lib/App42Exception.rb +39 -0
- data/lib/App42LimitException.rb +15 -0
- data/lib/App42NotFoundException.rb +15 -0
- data/lib/App42Response.rb +13 -0
- data/lib/App42ResponseBuilder.rb +64 -0
- data/lib/App42SecurityException.rb +15 -0
- data/lib/App42_RUBY_SDK.rb +236 -0
- data/lib/App42_RUBY_SDK/version.rb +3 -0
- data/lib/ServiceAPI.rb +246 -0
- data/lib/appTab/App.rb +105 -0
- data/lib/appTab/BandwidthUnit.rb +57 -0
- data/lib/appTab/Bill.rb +182 -0
- data/lib/appTab/BillMonth.rb +94 -0
- data/lib/appTab/BillResponseBuilder.rb +242 -0
- data/lib/appTab/BillService.rb +457 -0
- data/lib/appTab/Currency.rb +79 -0
- data/lib/appTab/DiscountResponseBuilder.rb +71 -0
- data/lib/appTab/DiscountService.rb +240 -0
- data/lib/appTab/DiscountType.rb +54 -0
- data/lib/appTab/License.rb +25 -0
- data/lib/appTab/LicenseResponseBuilder.rb +88 -0
- data/lib/appTab/LicenseService.rb +399 -0
- data/lib/appTab/PackageData.rb +83 -0
- data/lib/appTab/PackageResponseBuilder.rb +114 -0
- data/lib/appTab/PackageService.rb +506 -0
- data/lib/appTab/SchemeData.rb +11 -0
- data/lib/appTab/SchemeResponseBuilder.rb +70 -0
- data/lib/appTab/SchemeService.rb +151 -0
- data/lib/appTab/StorageUnit.rb +54 -0
- data/lib/appTab/SubscribeService.rb +180 -0
- data/lib/appTab/Test.rb +41 -0
- data/lib/appTab/TimeUnit.rb +49 -0
- data/lib/appTab/Usage.rb +206 -0
- data/lib/appTab/UsageResponseBuilder.rb +152 -0
- data/lib/appTab/UsageService.rb +1799 -0
- data/lib/connection/RESTConnection.rb +711 -0
- data/lib/email/Email.rb +51 -0
- data/lib/email/EmailMIME.rb +51 -0
- data/lib/email/EmailResponseBuilder.rb +76 -0
- data/lib/email/EmailService.rb +244 -0
- data/lib/gallery/Album.rb +56 -0
- data/lib/gallery/AlbumResponseBuilder.rb +168 -0
- data/lib/gallery/AlbumService.rb +337 -0
- data/lib/gallery/PhotoService.rb +591 -0
- data/lib/game/Game.rb +39 -0
- data/lib/game/GameResponseBuilder.rb +106 -0
- data/lib/game/GameService.rb +268 -0
- data/lib/game/Reward.rb +24 -0
- data/lib/game/RewardResponseBuilder.rb +85 -0
- data/lib/game/RewardService.rb +440 -0
- data/lib/game/ScoreBoardService.rb +433 -0
- data/lib/game/ScoreService.rb +157 -0
- data/lib/geo/Geo.rb +51 -0
- data/lib/geo/GeoPoint.rb +43 -0
- data/lib/geo/GeoResponseBuilder.rb +145 -0
- data/lib/geo/GeoService.rb +506 -0
- data/lib/imageProcessor/Image.rb +42 -0
- data/lib/imageProcessor/ImageProcessorResponseBuilder.rb +40 -0
- data/lib/imageProcessor/ImageProcessorService.rb +1054 -0
- data/lib/log/Log.rb +49 -0
- data/lib/log/LogResponseBuilder.rb +61 -0
- data/lib/log/LogService.rb +920 -0
- data/lib/message/Queue.rb +50 -0
- data/lib/message/QueueResponseBuilder.rb +64 -0
- data/lib/message/QueueService.rb +469 -0
- data/lib/push/DeviceType.rb +56 -0
- data/lib/push/PushNotification.rb +38 -0
- data/lib/push/PushNotificationResposneBuilder.rb +74 -0
- data/lib/push/PushNotificationService.rb +458 -0
- data/lib/recommend/PreferenceData.rb +25 -0
- data/lib/recommend/Recommender.rb +48 -0
- data/lib/recommend/RecommenderResponseBuilder.rb +70 -0
- data/lib/recommend/RecommenderService.rb +1092 -0
- data/lib/recommend/RecommenderSimilarity.rb +52 -0
- data/lib/review/Review.rb +38 -0
- data/lib/review/ReviewResponseBuilder.rb +76 -0
- data/lib/review/ReviewService.rb +590 -0
- data/lib/session/Session.rb +43 -0
- data/lib/session/SessionResponseBuilder.rb +70 -0
- data/lib/session/SessionService.rb +427 -0
- data/lib/shopping/Cart.rb +77 -0
- data/lib/shopping/CartResponseBuilder.rb +118 -0
- data/lib/shopping/CartService.rb +902 -0
- data/lib/shopping/Catalogue.rb +79 -0
- data/lib/shopping/CatalogueResponseBuilder.rb +170 -0
- data/lib/shopping/CatalogueService.rb +649 -0
- data/lib/shopping/ItemData.rb +29 -0
- data/lib/shopping/PaymentStatus.rb +60 -0
- data/lib/social/Social.rb +35 -0
- data/lib/social/SocialResponseBuilder.rb +38 -0
- data/lib/social/SocialService.rb +585 -0
- data/lib/storage/OrderByType.rb +29 -0
- data/lib/storage/Query.rb +39 -0
- data/lib/storage/QueryBuilder.rb +118 -0
- data/lib/storage/Storage.rb +45 -0
- data/lib/storage/StorageResponseBuilder.rb +86 -0
- data/lib/storage/StorageService.rb +775 -0
- data/lib/upload/Upload.rb +40 -0
- data/lib/upload/UploadFileType.rb +83 -0
- data/lib/upload/UploadResponseBuilder.rb +58 -0
- data/lib/upload/UploadService.rb +960 -0
- data/lib/user/User.rb +102 -0
- data/lib/user/UserResponseBuilder.rb +105 -0
- data/lib/user/UserService.rb +1253 -0
- data/lib/util/util.rb +250 -0
- metadata +134 -9
- checksums.yaml +0 -7
data/.gitignore
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'App42_RUBY_SDK/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "App42_RUBY_SDK"
|
8
|
+
spec.version = App42RUBYSDK::VERSION
|
9
|
+
spec.platform = Gem::Platform::RUBY
|
10
|
+
spec.date = %q{2012-08-16}
|
11
|
+
spec.authors = ["ShepHertz Technologies Pvt. Ltd."]
|
12
|
+
spec.email = ["http://apps.shephertz.com/"]
|
13
|
+
spec.homepage = "http://www.shephertz.com"
|
14
|
+
spec.summary = "App42 Ruby APIs"
|
15
|
+
spec.description = "gem containing all the sdk"
|
16
|
+
spec.summary = %q{App42_RUBY_API is a gem containing all the api's that will be used to create an app}
|
17
|
+
spec.license = "MIT"
|
18
|
+
|
19
|
+
spec.files = `git ls-files`.split($/)
|
20
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_dependency "rest-client", "= 1.6.7"
|
25
|
+
spec.add_dependency "ruby-hmac", "= 0.4.0"
|
26
|
+
spec.add_dependency "json_pure", "= 1.6.6"
|
27
|
+
spec.required_rubygems_version = ">= 1.3.6"
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
30
|
+
spec.add_development_dependency "rake"
|
31
|
+
end
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 PravinKShepHertz
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# App42RUBYSDK
|
2
|
+
|
3
|
+
App42 Cloud API Client SDK files for Ruby
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'App42_RUBY_SDK'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install App42_RUBY_SDK
|
18
|
+
|
19
|
+
## Contributing
|
20
|
+
|
21
|
+
1. Fork it
|
22
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
23
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
24
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
25
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# -----------------------------------------------------------------------
|
3
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
4
|
+
# -----------------------------------------------------------------------
|
5
|
+
|
6
|
+
require 'App42Exception.rb'
|
7
|
+
|
8
|
+
class App42BadParameterException < App42Exception
|
9
|
+
|
10
|
+
attr_accessor :http_error_code, :app_error_code, :detailMessage
|
11
|
+
def initialize(*args)
|
12
|
+
if args.size == 1
|
13
|
+
super(args[0])
|
14
|
+
self::initialize1(args[0])
|
15
|
+
elsif args.size == 3
|
16
|
+
super(args[0])
|
17
|
+
self::initialize3(args[0], args[1], args[2])
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
def initialize1(detailMessage)
|
23
|
+
# super(detailMessage)
|
24
|
+
end
|
25
|
+
|
26
|
+
def initialize3(detailMessage, http_error_code, app_error_code)
|
27
|
+
super(detailMessage,http_error_code,app_error_code)
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
#
|
2
|
+
# -----------------------------------------------------------------------
|
3
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
4
|
+
# -----------------------------------------------------------------------
|
5
|
+
|
6
|
+
class App42Exception < Exception
|
7
|
+
|
8
|
+
attr_accessor :http_error_code, :app_error_code, :detailMessage
|
9
|
+
def initialize(*args)
|
10
|
+
|
11
|
+
if args.size == 1
|
12
|
+
super(args[0])
|
13
|
+
self::initialize1(args[0])
|
14
|
+
elsif args.size == 2
|
15
|
+
super(args[0])
|
16
|
+
self::initialize2(args[0], args[1])
|
17
|
+
elsif args.size == 3
|
18
|
+
super(args[0])
|
19
|
+
self::initialize3(args[0], args[1], args[2])
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
def initialize1(detailMessage)
|
25
|
+
@detailMessage = detailMessage
|
26
|
+
end
|
27
|
+
|
28
|
+
def initialize2(http_error_code,app_error_code)
|
29
|
+
@http_error_code = http_error_code
|
30
|
+
@pp_error_code = app_error_code
|
31
|
+
end
|
32
|
+
|
33
|
+
def initialize3(detailMessage, http_error_code, app_error_code)
|
34
|
+
@http_error_code = http_error_code
|
35
|
+
@app_error_code = app_error_code
|
36
|
+
@detailMessage = detailMessage
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#
|
2
|
+
# -----------------------------------------------------------------------
|
3
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
4
|
+
# -----------------------------------------------------------------------
|
5
|
+
|
6
|
+
require 'App42Exception.rb'
|
7
|
+
|
8
|
+
class App42LimitException < App42Exception
|
9
|
+
|
10
|
+
attr_accessor :http_error_code, :app_error_code, :detailMessage
|
11
|
+
def initialize(detailMessage, http_error_code, app_error_code)
|
12
|
+
super(detailMessage,http_error_code,app_error_code)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#
|
2
|
+
# -----------------------------------------------------------------------
|
3
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
4
|
+
# -----------------------------------------------------------------------
|
5
|
+
|
6
|
+
require 'App42Exception.rb'
|
7
|
+
|
8
|
+
class App42NotFoundException < App42Exception
|
9
|
+
|
10
|
+
attr_accessor :http_error_code, :app_error_code, :detailMessage
|
11
|
+
def initialize(detailMessage, http_error_code, app_error_code)
|
12
|
+
super(detailMessage,http_error_code,app_error_code)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
#
|
2
|
+
# -----------------------------------------------------------------------
|
3
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
4
|
+
# -----------------------------------------------------------------------
|
5
|
+
|
6
|
+
class App42Response
|
7
|
+
attr_accessor :isResponseSuccess, :strResponse, :totalRecords
|
8
|
+
|
9
|
+
@isResponseSuccess
|
10
|
+
@strResponse
|
11
|
+
@totalRecords = -1
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# -----------------------------------------------------------------------
|
2
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
3
|
+
# -----------------------------------------------------------------------
|
4
|
+
|
5
|
+
require 'json'
|
6
|
+
|
7
|
+
class App42ResponseBuilder
|
8
|
+
# @param obj
|
9
|
+
# @param jsonObj
|
10
|
+
# @raise Exception
|
11
|
+
def buildObjectFromJSONTree(obj,jsonObj)
|
12
|
+
names = getNames(jsonObj)
|
13
|
+
for name in names
|
14
|
+
value = jsonObj[name]
|
15
|
+
fieldName = "@"+name
|
16
|
+
obj.instance_variable_set(:"#{fieldName}", value)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
# @param serviceName
|
21
|
+
# @param json
|
22
|
+
# @return
|
23
|
+
# @raise Exception
|
24
|
+
|
25
|
+
def getServiceJSONObject(serviceName,json)
|
26
|
+
jsonObj = JSON.parse(json) rescue nil
|
27
|
+
jsonObjApp42 = jsonObj["app42"]
|
28
|
+
jsonObjResponse = jsonObjApp42["response"]
|
29
|
+
jsonObjService = jsonObjResponse["#{serviceName}"]
|
30
|
+
return jsonObjService;
|
31
|
+
end
|
32
|
+
|
33
|
+
# @param json
|
34
|
+
# @return
|
35
|
+
# @raise Exception
|
36
|
+
|
37
|
+
def isResponseSuccess(json)
|
38
|
+
jsonObj = JSON.parse(json) rescue nil
|
39
|
+
jsonObjApp42 = jsonObj["app42"]
|
40
|
+
jsonObjResponse = jsonObjApp42["response"]
|
41
|
+
return jsonObjResponse["success"]
|
42
|
+
end
|
43
|
+
|
44
|
+
def getNames(obj)
|
45
|
+
names = []
|
46
|
+
obj.each do |key, value|
|
47
|
+
# puts"key is #{key}" # key holds the key, value holds the value
|
48
|
+
names.push(key)
|
49
|
+
end
|
50
|
+
return names
|
51
|
+
end
|
52
|
+
|
53
|
+
def getTotalRecords(json)
|
54
|
+
totalRecords = -1;
|
55
|
+
jsonObj = JSON.parse(json) rescue nil
|
56
|
+
jsonObjApp42 = jsonObj["app42"]
|
57
|
+
jsonObjResponse = jsonObjApp42["response"]
|
58
|
+
if jsonObjResponse != nil && jsonObjResponse.key?("totalRecords")
|
59
|
+
totalRecords = jsonObjResponse.fetch("totalRecords");
|
60
|
+
end
|
61
|
+
return totalRecords
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#
|
2
|
+
# -----------------------------------------------------------------------
|
3
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
4
|
+
# -----------------------------------------------------------------------
|
5
|
+
|
6
|
+
require 'App42Exception.rb'
|
7
|
+
|
8
|
+
class App42SecurityException < App42Exception
|
9
|
+
|
10
|
+
attr_accessor :http_error_code, :app_error_code, :detailMessage
|
11
|
+
def initialize(detailMessage, http_error_code, app_error_code)
|
12
|
+
super(detailMessage,http_error_code,app_error_code)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,236 @@
|
|
1
|
+
$: << File.dirname(__FILE__)
|
2
|
+
|
3
|
+
require "App42_RUBY_SDK/version"
|
4
|
+
|
5
|
+
# module App42RUBYSDK
|
6
|
+
# puts VERSION
|
7
|
+
# end
|
8
|
+
|
9
|
+
# -----------------------------------------------------------------------
|
10
|
+
# Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
|
11
|
+
# -----------------------------------------------------------------------
|
12
|
+
|
13
|
+
#!/usr/bin/env ruby
|
14
|
+
|
15
|
+
require 'user/UserService'
|
16
|
+
require 'storage/Query'
|
17
|
+
require 'storage/QueryBuilder'
|
18
|
+
require 'storage/OrderByType'
|
19
|
+
require 'storage/StorageService'
|
20
|
+
require 'push/DeviceType'
|
21
|
+
require 'push/PushNotification'
|
22
|
+
require 'push/PushNotificationService'
|
23
|
+
require 'upload/UploadService'
|
24
|
+
require 'upload/UploadFileType'
|
25
|
+
require 'session/SessionService'
|
26
|
+
require 'geo/GeoService'
|
27
|
+
require 'geo/GeoPoint'
|
28
|
+
require 'gallery/AlbumService'
|
29
|
+
require 'gallery/PhotoService'
|
30
|
+
require 'log/LogService'
|
31
|
+
require 'recommend/RecommenderService'
|
32
|
+
require 'recommend/RecommenderSimilarity'
|
33
|
+
require 'game/GameService'
|
34
|
+
require 'game/RewardService'
|
35
|
+
require 'game/ScoreBoardService'
|
36
|
+
require 'game/ScoreService'
|
37
|
+
require 'review/ReviewService'
|
38
|
+
require 'social/SocialService'
|
39
|
+
require 'email/EmailService'
|
40
|
+
require 'email/EmailMIME'
|
41
|
+
require 'message/QueueService'
|
42
|
+
require 'storage/StorageService'
|
43
|
+
require 'shopping/CartService'
|
44
|
+
require 'shopping/PaymentStatus'
|
45
|
+
require 'shopping/CatalogueService'
|
46
|
+
require 'imageProcessor/ImageProcessorService'
|
47
|
+
|
48
|
+
require 'time'
|
49
|
+
|
50
|
+
module App42
|
51
|
+
class ServiceAPI
|
52
|
+
attr_accessor :api_key, :secret_key, :base_url, :content_type, :accept
|
53
|
+
|
54
|
+
@@JSON_MIME_TYPE = "application/json"
|
55
|
+
@@XML_MIME_TYPE = "application/xml"
|
56
|
+
def initialize(api_key, secret_key)
|
57
|
+
puts "Initializer Called "
|
58
|
+
@api_key = api_key
|
59
|
+
@secret_key = secret_key
|
60
|
+
@base_url = "http://localhost:8082/App42_API_SERVER/cloud/"
|
61
|
+
@content_type = "application/json"
|
62
|
+
@accept = "application/json"
|
63
|
+
end
|
64
|
+
|
65
|
+
def buildUserService
|
66
|
+
puts "Build User Called "
|
67
|
+
user = App42::User::UserService.new(api_key, secret_key, base_url)
|
68
|
+
user
|
69
|
+
end
|
70
|
+
|
71
|
+
def buildSessionService
|
72
|
+
puts "Build Session Called "
|
73
|
+
session = App42::Session::SessionService.new(api_key, secret_key, base_url)
|
74
|
+
session
|
75
|
+
end
|
76
|
+
|
77
|
+
def buildReviewService
|
78
|
+
puts "Build Review Called "
|
79
|
+
review = App42::Review::ReviewService.new(api_key, secret_key, base_url)
|
80
|
+
review
|
81
|
+
end
|
82
|
+
|
83
|
+
def buildSocialService
|
84
|
+
puts "Build social Called "
|
85
|
+
social = App42::Social::SocialService.new(api_key, secret_key, base_url)
|
86
|
+
social
|
87
|
+
end
|
88
|
+
|
89
|
+
def buildEmailService
|
90
|
+
puts "Build email service Called "
|
91
|
+
email = App42::Email::EmailService.new(api_key, secret_key, base_url)
|
92
|
+
email
|
93
|
+
end
|
94
|
+
|
95
|
+
def buildAlbumService
|
96
|
+
puts "Build Album service Called "
|
97
|
+
album = App42::Gallery::AlbumService.new(api_key, secret_key, base_url)
|
98
|
+
album
|
99
|
+
end
|
100
|
+
|
101
|
+
def buildPhotoService
|
102
|
+
puts "Build Photo service Called "
|
103
|
+
photo = App42::Gallery::PhotoService.new(api_key, secret_key, base_url)
|
104
|
+
photo
|
105
|
+
end
|
106
|
+
|
107
|
+
def buildGameService
|
108
|
+
puts "Build Game service Called "
|
109
|
+
game = App42::Game::GameService.new(api_key, secret_key, base_url)
|
110
|
+
game
|
111
|
+
end
|
112
|
+
|
113
|
+
def buildRewardService
|
114
|
+
puts "Build Reward service Called "
|
115
|
+
reward = App42::Game::RewardService.new(api_key, secret_key, base_url)
|
116
|
+
reward
|
117
|
+
end
|
118
|
+
|
119
|
+
def buildScoreBoardService
|
120
|
+
puts "Build Score Board service Called "
|
121
|
+
scoreboard = App42::Game::ScoreBoardService.new(api_key, secret_key, base_url)
|
122
|
+
scoreboard
|
123
|
+
end
|
124
|
+
|
125
|
+
def buildScoreService
|
126
|
+
puts "Build Score service Called "
|
127
|
+
score = App42::Game::ScoreService.new(api_key, secret_key, base_url)
|
128
|
+
score
|
129
|
+
end
|
130
|
+
|
131
|
+
def buildQueueService
|
132
|
+
puts "Build Queue service Called "
|
133
|
+
queue = App42::Message::QueueService.new(api_key, secret_key, base_url)
|
134
|
+
queue
|
135
|
+
end
|
136
|
+
|
137
|
+
def buildStorageService
|
138
|
+
puts "Build Storage service Called "
|
139
|
+
storage = App42::Storage::StorageService.new(api_key, secret_key, base_url)
|
140
|
+
storage
|
141
|
+
end
|
142
|
+
|
143
|
+
def buildCartService
|
144
|
+
puts "Build Cart Called "
|
145
|
+
cart = App42::Shopping::CartService.new(api_key, secret_key, base_url)
|
146
|
+
cart
|
147
|
+
end
|
148
|
+
|
149
|
+
def buildStorageService
|
150
|
+
puts "build Storage service Called "
|
151
|
+
storage = App42::Storage::StorageService.new(api_key, secret_key, base_url)
|
152
|
+
storage
|
153
|
+
end
|
154
|
+
|
155
|
+
def buildUploadService
|
156
|
+
puts "upload Storage service Called "
|
157
|
+
upload = App42::Upload::UploadService.new(api_key, secret_key, base_url)
|
158
|
+
upload
|
159
|
+
end
|
160
|
+
|
161
|
+
def buildImageProcessorService
|
162
|
+
puts "Build Image Processor service Called "
|
163
|
+
image = App42::ImageProcessor::ImageProcessorService.new(api_key, secret_key, base_url)
|
164
|
+
image
|
165
|
+
end
|
166
|
+
|
167
|
+
def buildCatalogueService
|
168
|
+
puts "Build Catalogue service Called "
|
169
|
+
catalogue = App42::Shopping::CatalogueService.new(api_key, secret_key, base_url)
|
170
|
+
catalogue
|
171
|
+
end
|
172
|
+
|
173
|
+
def buildLogService
|
174
|
+
puts "Build Log service Called "
|
175
|
+
log = App42::Log::LogService.new(api_key, secret_key, base_url)
|
176
|
+
log
|
177
|
+
end
|
178
|
+
|
179
|
+
def buildGeoService
|
180
|
+
puts "Build Geo service Called "
|
181
|
+
geo = App42::Geo::GeoService.new(api_key, secret_key, base_url)
|
182
|
+
geo
|
183
|
+
end
|
184
|
+
|
185
|
+
def buildRecommendService
|
186
|
+
puts "Build Recommender service Called "
|
187
|
+
recommend = App42::Recommend::RecommenderService.new(api_key, secret_key, base_url)
|
188
|
+
recommend
|
189
|
+
end
|
190
|
+
|
191
|
+
def buildBillService
|
192
|
+
puts "Build Bill service Called "
|
193
|
+
bill = App42::AppTab::BillService.new(api_key, secret_key, base_url)
|
194
|
+
bill
|
195
|
+
end
|
196
|
+
|
197
|
+
def buildLicenseService
|
198
|
+
puts "Build License service Called "
|
199
|
+
license = App42::AppTab::LicenseService.new(api_key, secret_key, base_url)
|
200
|
+
license
|
201
|
+
end
|
202
|
+
|
203
|
+
def buildUsageService
|
204
|
+
puts "Build Usage service Called "
|
205
|
+
usage = App42::AppTab::UsageService.new(api_key, secret_key, base_url)
|
206
|
+
usage
|
207
|
+
end
|
208
|
+
|
209
|
+
def buildPushNotificationService
|
210
|
+
puts "Build Push Notification service Called "
|
211
|
+
push = App42::Push::PushNotificationService.new(api_key, secret_key, base_url)
|
212
|
+
push
|
213
|
+
end
|
214
|
+
|
215
|
+
def buildSchemeService
|
216
|
+
puts "Build Scheme service Called "
|
217
|
+
scheme = App42::AppTab::SchemeService.new(api_key, secret_key, base_url)
|
218
|
+
scheme
|
219
|
+
end
|
220
|
+
|
221
|
+
def buildPackageService
|
222
|
+
puts "Build Scheme service Called "
|
223
|
+
package = App42::AppTab::PackageService.new(api_key, secret_key, base_url)
|
224
|
+
package
|
225
|
+
end
|
226
|
+
|
227
|
+
def buildDiscountService
|
228
|
+
puts "Build Discount service Called "
|
229
|
+
discount = App42::AppTab::DiscountService.new(api_key, secret_key, base_url)
|
230
|
+
discount
|
231
|
+
end
|
232
|
+
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
|