class App42::ServiceAPI

Attributes

accept[RW]
api_key[RW]
base_url[RW]
content_type[RW]
secret_key[RW]

Public Class Methods

new(api_key, secret_key) click to toggle source
# File lib/App42_RUBY_SDK.rb, line 56
def initialize(api_key, secret_key)
  puts "Initializer Called "
  @api_key = api_key
  @secret_key = secret_key
  @base_url = "http://localhost:8082/App42_API_SERVER/cloud/"
  @content_type = "application/json"
  @accept = "application/json"
end

Public Instance Methods

buildAlbumService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 95
def buildAlbumService
  puts "Build Album service Called "
  album = App42::Gallery::AlbumService.new(api_key, secret_key, base_url)
  album
end
buildBillService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 191
def buildBillService
  puts "Build Bill service Called "
  bill = App42::AppTab::BillService.new(api_key, secret_key, base_url)
  bill
end
buildCartService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 143
def buildCartService
  puts "Build Cart Called "
  cart = App42::Shopping::CartService.new(api_key, secret_key, base_url)
  cart
end
buildCatalogueService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 167
def buildCatalogueService
  puts "Build Catalogue service Called "
  catalogue = App42::Shopping::CatalogueService.new(api_key, secret_key, base_url)
  catalogue
end
buildDiscountService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 227
def buildDiscountService
  puts "Build Discount service Called "
  discount = App42::AppTab::DiscountService.new(api_key, secret_key, base_url)
  discount
end
buildEmailService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 89
def buildEmailService
  puts "Build email service Called "
  email = App42::Email::EmailService.new(api_key, secret_key, base_url)
  email
end
buildGameService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 107
def buildGameService
  puts "Build Game service Called "
  game = App42::Game::GameService.new(api_key, secret_key, base_url)
  game
end
buildGeoService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 179
def buildGeoService
  puts "Build Geo service Called "
  geo = App42::Geo::GeoService.new(api_key, secret_key, base_url)
  geo
end
buildImageProcessorService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 161
def buildImageProcessorService
  puts "Build Image Processor service Called "
  image = App42::ImageProcessor::ImageProcessorService.new(api_key, secret_key, base_url)
  image
end
buildLicenseService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 197
def buildLicenseService
  puts "Build License service Called "
  license = App42::AppTab::LicenseService.new(api_key, secret_key, base_url)
  license
end
buildLogService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 173
def buildLogService
  puts "Build Log service Called "
  log = App42::Log::LogService.new(api_key, secret_key, base_url)
  log
end
buildPackageService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 221
def buildPackageService
  puts "Build Scheme service Called "
  package = App42::AppTab::PackageService.new(api_key, secret_key, base_url)
  package
end
buildPhotoService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 101
def buildPhotoService
  puts "Build Photo service Called "
  photo = App42::Gallery::PhotoService.new(api_key, secret_key, base_url)
  photo
end
buildPushNotificationService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 209
def buildPushNotificationService
  puts "Build Push Notification service Called "
  push = App42::Push::PushNotificationService.new(api_key, secret_key, base_url)
  push
end
buildQueueService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 131
def buildQueueService
  puts "Build Queue service Called "
  queue = App42::Message::QueueService.new(api_key, secret_key, base_url)
  queue
end
buildRecommendService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 185
def buildRecommendService
  puts "Build Recommender service Called "
  recommend = App42::Recommend::RecommenderService.new(api_key, secret_key, base_url)
  recommend
end
buildReviewService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 77
def buildReviewService
  puts "Build Review Called "
  review = App42::Review::ReviewService.new(api_key, secret_key, base_url)
  review
end
buildRewardService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 113
def buildRewardService
  puts "Build Reward service Called "
  reward = App42::Game::RewardService.new(api_key, secret_key, base_url)
  reward
end
buildSchemeService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 215
def buildSchemeService
  puts "Build Scheme service Called "
  scheme = App42::AppTab::SchemeService.new(api_key, secret_key, base_url)
  scheme
end
buildScoreBoardService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 119
def buildScoreBoardService
  puts "Build Score Board service Called "
  scoreboard = App42::Game::ScoreBoardService.new(api_key, secret_key, base_url)
  scoreboard
end
buildScoreService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 125
def buildScoreService
  puts "Build Score service Called "
  score = App42::Game::ScoreService.new(api_key, secret_key, base_url)
  score
end
buildSessionService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 71
def buildSessionService
  puts "Build Session Called "
  session = App42::Session::SessionService.new(api_key, secret_key, base_url)
  session
end
buildSocialService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 83
def buildSocialService
  puts "Build social Called "
  social = App42::Social::SocialService.new(api_key, secret_key, base_url)
  social
end
buildStorageService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 137
def buildStorageService
  puts "Build Storage service Called "
  storage = App42::Storage::StorageService.new(api_key, secret_key, base_url)
  storage
end
buildUploadService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 155
def buildUploadService
  puts "upload Storage service Called "
  upload = App42::Upload::UploadService.new(api_key, secret_key, base_url)
  upload
end
buildUsageService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 203
def buildUsageService
  puts "Build Usage service Called "
  usage = App42::AppTab::UsageService.new(api_key, secret_key, base_url)
  usage
end
buildUserService() click to toggle source
# File lib/App42_RUBY_SDK.rb, line 65
def buildUserService
  puts "Build User Called "
  user = App42::User::UserService.new(api_key, secret_key, base_url)
  user
end