xplenty-api 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -3
- data/lib/xplenty/api/version.rb +1 -1
- data/xplenty.gemspec +2 -2
- metadata +3 -1
data/README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
## Xplenty Ruby Wrapper
|
2
2
|
|
3
|
+
[](http://badge.fury.io/rb/xplenty-api)
|
3
4
|
[](https://travis-ci.org/xplenty/xplenty.rb)
|
4
5
|
|
5
6
|
The Xplenty rb is a Ruby artifact that provides a simple wrapper for the [Xplenty REST Api](https://github.com/xplenty/xplenty-api-doc).
|
6
|
-
To use it, create an
|
7
|
+
To use it, create an Xplenty::API object and call its methods to access the Xplenty API.
|
7
8
|
This page describes the available XplentyAPI methods.
|
8
9
|
|
9
|
-
### Create an
|
10
|
+
### Create an Xplenty::API Object
|
10
11
|
|
11
12
|
Pass your account ID and API key to the XplentyAPI constructor.
|
12
13
|
```ruby
|
@@ -17,7 +18,7 @@ you can use Xplenty::API builder methods to customize these properties.
|
|
17
18
|
```ruby
|
18
19
|
@xplenty = Xplenty::API.new(:api_key => 'your_api_key', :account_id => 'your_account_id', :scheme => 'https', :host => 'api.xplenty.com')
|
19
20
|
@xplenty = Xplenty::API.new(:api_key => 'your_api_key', :account_id => 'your_account_id', :headers => { 'User-Agent' => 'your user agent' })
|
20
|
-
|
21
|
+
@xplenty = Xplenty::API.new(:api_key => 'your_api_key', :account_id => 'your_account_id', :version => 1)
|
21
22
|
```
|
22
23
|
### List the Cluster Plans
|
23
24
|
|
data/lib/xplenty/api/version.rb
CHANGED
data/xplenty.gemspec
CHANGED
@@ -5,8 +5,8 @@ require "xplenty/api/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "xplenty-api"
|
7
7
|
s.version = Xplenty::API::VERSION
|
8
|
-
s.authors = ["xmpolaris (Chen ZhongXue)"]
|
9
|
-
s.email = ["xmpolaris@gmail.com"]
|
8
|
+
s.authors = ["xmpolaris (Chen ZhongXue)", "motymichaely (Moty Michaely)"]
|
9
|
+
s.email = ["xmpolaris@gmail.com", "moty.mi@gmail.com"]
|
10
10
|
s.homepage = "http://github.com/xplenty/xplenty.rb"
|
11
11
|
s.summary = %q{Ruby Client for the Xplenty API}
|
12
12
|
s.description = %q{Ruby Client for the Xplenty API}
|
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xplenty-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- xmpolaris (Chen ZhongXue)
|
9
|
+
- motymichaely (Moty Michaely)
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
@@ -62,6 +63,7 @@ dependencies:
|
|
62
63
|
description: Ruby Client for the Xplenty API
|
63
64
|
email:
|
64
65
|
- xmpolaris@gmail.com
|
66
|
+
- moty.mi@gmail.com
|
65
67
|
executables: []
|
66
68
|
extensions: []
|
67
69
|
extra_rdoc_files: []
|