clio_client 0.0.4 → 0.0.5
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.
- checksums.yaml +8 -8
- data/README.md +5 -0
- data/lib/clio_client/http.rb +2 -2
- data/lib/clio_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDBlZmYwNzdmM2I4MzQ4NzZlMzZhNjEwYWJiZTg0MzQzZTBkNWYzYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGE0NTk3ZTJlNTE4YjRkYzIwN2UxZmYyYzU1OTAyMzgwNGI4Y2Q2MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGI2N2UyM2UxODUxYjcxZTQ3M2ExNzE4YmExMDFhN2ZmOTk3ZTcwY2QxMDRl
|
10
|
+
MmRmZDcwMTliMTNjODU5YTdlYzM1MDY2ZjM1NGVhMDg4ZTVmZGIwNWUxNWIw
|
11
|
+
ZDU2Yjk3ZTc4NTZmMWEzYzg5YzYwNjM1ZjRhZDkxNGQ3OGRiMWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDJmOGMzYmU1Nzc1MjE0YTQwYTU5OGJiMmVkMjAwYjFlYTAyMjhlZWRjNWNj
|
14
|
+
MzA5NDg4MmE0ZjQwNzExNDM2Yjg5OTQ2OTA5N2UyZjEwMzMxOTRkMzBkMTY0
|
15
|
+
YTg2Mzc3YjMxZTczZjQ1NjFiMDg4Zjk3NGM4ZmQ5ZDMyMDc1NGQ=
|
data/README.md
CHANGED
@@ -32,6 +32,7 @@ Or install it yourself as:
|
|
32
32
|
|
33
33
|
You will need to do a few things before you can get started with Clio and the API. For convience, this information is pulled directly from Clio's API documentation at the top.
|
34
34
|
|
35
|
+
Sample application using the library: https://github.com/themis/clio-api-demos
|
35
36
|
|
36
37
|
### Create a Clio Account
|
37
38
|
|
@@ -65,6 +66,10 @@ client.authorized?
|
|
65
66
|
|
66
67
|
At this point the client is ready to use. You will need to save the `access_token` for future use.
|
67
68
|
|
69
|
+
```
|
70
|
+
client.access_token = access_token
|
71
|
+
````
|
72
|
+
|
68
73
|
There are many different end points you can now interact with. They all act mostly the same.
|
69
74
|
|
70
75
|
The end points available are on the ClioClient::Session
|
data/lib/clio_client/http.rb
CHANGED
@@ -15,7 +15,7 @@ module ClioClient
|
|
15
15
|
|
16
16
|
def get(path, params ={}, parse=true)
|
17
17
|
uri = base_uri("#{api_prefix}/#{path}", params)
|
18
|
-
req = Net::HTTP::Get.new(uri.
|
18
|
+
req = Net::HTTP::Get.new(uri.request_uri)
|
19
19
|
make_api_request(req, uri, parse)
|
20
20
|
end
|
21
21
|
|
@@ -56,7 +56,7 @@ module ClioClient
|
|
56
56
|
def make_request(req, uri, parse = true)
|
57
57
|
req.add_field("Accept", "text/json")
|
58
58
|
n = Net::HTTP.new(uri.host, uri.port)
|
59
|
-
n.use_ssl =
|
59
|
+
n.use_ssl = uri.scheme == 'https'
|
60
60
|
res = n.start do |http|
|
61
61
|
http.request(req)
|
62
62
|
end
|
data/lib/clio_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clio_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle d'Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.2.2
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: A simple ruby library to interact with Clio's Api
|