BatchlyApi

This API SDK can be used to connect to the Batchly rest endpoint. To generate the access key and secret key for authentication, please use the batchly web console.

How To Configure:

The generated code might need to be configured with your API credentials. To do that, provide the credentials and configuration values as a constructor parameters for the controllers

How To Build:

The generated code uses a Ruby gem namely 'unirest'. The reference to this gem is already added in the gemspec. Therefore, you will need internet access to resolve this dependency.

How To Use:

The generated code can be used to build gem, which can then be distributed online. Otherwise, you can include the generated code in your project to use directly.

Use the following steps to build a gem and use locally

1. Run the build command
    ```
    gem build batchly_api.gemspec
    ```

2. Run the install command  
    ```
    gem install ./batchly_api-1.0.1.gem
    ```

3. In your Gemfile add this line
    ```
    gem 'batchly_api', '~> 1.0.1'
    ```

4. Now create an instance and use the instance methods, like following.

    ```
    ctl = BatchlyApi::AccountsController.new params
    ctl.get_list_projects params
    ```