Class: Tilda::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/tilda/client.rb

Instance Method Summary collapse

Instance Method Details

#get_page(id) ⇒ Object



31
32
33
# File 'lib/tilda/client.rb', line 31

def get_page(id)
  self.class.get '/getpage', query_params(pageid: id)
end

#get_page_export(id) ⇒ Object



39
40
41
# 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) ⇒ Object



35
36
37
# 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) ⇒ Object



43
44
45
# 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) ⇒ Object



27
28
29
# File 'lib/tilda/client.rb', line 27

def get_pages_list(id)
  self.class.get '/getpageslist', query_params(projectid: id)
end

#get_project(id) ⇒ Object



19
20
21
# File 'lib/tilda/client.rb', line 19

def get_project(id)
  self.class.get '/getproject', query_params(projectid: id)
end

#get_project_export(id) ⇒ Object



23
24
25
# File 'lib/tilda/client.rb', line 23

def get_project_export(id)
  self.class.get '/getprojectexport', query_params(projectid: id)
end

#get_projects_listObject



15
16
17
# File 'lib/tilda/client.rb', line 15

def get_projects_list
  self.class.get '/getprojectslist', query_params
end