class Tilda::Client

Public Instance Methods

get_page(id) click to toggle source
# File lib/tilda/client.rb, line 31
def get_page(id)
  self.class.get '/getpage', query_params(pageid: id)
end
get_page_export(id) click to toggle source
# File lib/tilda/client.rb, line 39
def get_page_export(id)
  self.class.get '/getpageexport', query_params(pageid: id)
end
get_page_full(id) click to toggle source
# File lib/tilda/client.rb, line 35
def get_page_full(id)
  self.class.get '/getpagefull', query_params(pageid: id)
end
get_page_full_export(id) click to toggle source
# File lib/tilda/client.rb, line 43
def get_page_full_export(id)
  self.class.get '/getpagefullexport', query_params(pageid: id)
end
get_pages_list(id) click to toggle source
# File lib/tilda/client.rb, line 27
def get_pages_list(id)
  self.class.get '/getpageslist', query_params(projectid: id)
end
get_project(id) click to toggle source
# File lib/tilda/client.rb, line 19
def get_project(id)
  self.class.get '/getproject', query_params(projectid: id)
end
get_project_export(id) click to toggle source
# File lib/tilda/client.rb, line 23
def get_project_export(id)
  self.class.get '/getprojectexport', query_params(projectid: id)
end
get_projects_list() click to toggle source
# File lib/tilda/client.rb, line 15
def get_projects_list
  self.class.get '/getprojectslist', query_params
end

Private Instance Methods

auth_keys() click to toggle source
# File lib/tilda/client.rb, line 53
def auth_keys
  { publickey: Config.config.public_key, secretkey: Config.config.private_key }
end
query_params(params = {}) click to toggle source
# File lib/tilda/client.rb, line 49
def query_params(params = {})
  { query: params.merge(auth_keys) }
end