Sha256: e1b47086b2272cf558e529fb79aa4b2846b770fbf012aedc1222fb3b81f4df80

Contents?: true

Size: 1.96 KB

Versions: 2

Compression:

Stored size: 1.96 KB

Contents

# Ivapi

Gem which helps to communicate with Interneto vizija [http://iv.lt][iv.lt] ([http://dedikuoti.lt][dedikuoti.lt]) API.

[![Gem Version](https://badge.fury.io/rb/ivapi.svg)][rubygems]
[![Build Status](https://secure.travis-ci.org/jpalumickas/ivapi.svg?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/jpalumickas/ivapi.png?travis)][gemnasium]
[![Coverage Status](http://img.shields.io/coveralls/jpalumickas/ivapi/master.svg)][coveralls]
[![Code Climate](http://img.shields.io/codeclimate/github/jpalumickas/ivapi.svg)][codeclimate]

## Installation

Add this line to your application's Gemfile:

    gem 'ivapi'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ivapi

## Usage

> The Ivapi Wiki has lots of additional information about this gem including many examples. Please browse the Wiki at:
https://github.com/jpalumickas/ivapi/wiki

Create a new account at https://klientams.iv.lt/users.php with description "API".

### Authentication
```rb
Ivapi::Client.new(username: 'foo', password: 'bar')
```

Or create file under `config/initializers/ivapi.rb`

```rb
Ivapi.configure do |config|
  config.username = 'foo'
  config.password = 'bar'
end
```

### Account information

Basic information
```rb
Ivapi.account.information
```

Orders
```
Ivapi.account.orders
```

### Server information

Basic information
```rb
Ivapi.server.information
```


## Supported Ruby Versions

This library aims to support and is [tested against][travis] the following Ruby
implementations:

* Ruby 1.9.3
* Ruby 2.0.0
* Ruby 2.1.0

## Copyright
Copyright (c) 2012-2014 Justas Palumickas.
See [LICENSE][] for details.

[rubygems]: https://rubygems.org/gems/ivapi
[travis]: http://travis-ci.org/jpalumickas/ivapi
[gemnasium]: https://gemnasium.com/jpalumickas/ivapi
[coveralls]: https://coveralls.io/r/jpalumickas/ivapi
[codeclimate]: https://codeclimate.com/github/jpalumickas/ivapi

[iv.lt]: http://www.iv.lt
[dedikuoti.lt]: http://www.dedikuoti.lt
[license]: LICENSE.md

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ivapi-1.1.1 README.md
ivapi-1.1.0 README.md