Skip to content

Nitr/tilda-api

Repository files navigation

tilda-api

  • Code Climate
  • Test Coverage
  • Dependency Status
  • Gem Version
  • Releases
  • Tags
  • Downloads
  • security
  • Build
  • License
  • Version

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

  1. Fork it ( https://github.com/[my-github-username]/tilda-api/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request