tilda-api
Tilda::Api
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'tilda-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tilda-api
Usage
Configuration api:
Tilda::Api.configure do |config|
config.public_key = "your-public-key"
config.secret_key = "your-secret-key"
config.api_version = "v1"
end
tilda_api = Tilda::Api::Request.new
#tilda_api = Tilda::Api::Request.new(public_key: "your-public-key", secret_key: "your-secret-key")
tilda_api.get_projects_list
tilda_api.get_project(project_id)
tilda_api.get_project_export(project_id)
tilda_api.get_pages_list(project_id)
tilda_api.get_page(page_id)
tilda_api.get_page_full(page_id)
tilda_api.get_page_export(page_id)
tilda_api.get_page_full_export(page_id)
Contributing
- Fork it ( https://github.com/[my-github-username]/tilda-api/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request