 [](https://badge.fury.io/rb/plate_api) [](https://travis-ci.com/platehub/plate_api) [](https://codeclimate.com/github/platehub/plate_api/maintainability) [](https://codeclimate.com/github/platehub/plate_api/test_coverage) # PlateApi Welcome to the PlateApi gem. This gem provides a wrapper to communicate with the Plate API, taking care of authentication. ## Installation Add this line to your application's Gemfile: ```ruby gem 'plate_api' ``` And then execute: $ bundle Or install it yourself as: $ gem install plate_api ## Getting started To get started with a simple connector: ``` # Initialze a connector con == PlateApi::Connector.new("{{public_key}}", "{{secret_key}}") # Find information of a specific site with id == 822 site = con.sites.find(822) # Find all posts in this site posts = site.posts # Find all elements in the first post of this site first_post = posts.first elements = first_post.elements # Update the content field 'body' of the first element element = elements.first element.update(body: "