boxview 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/boxview.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 751d4034dff48e9d1d2c846f4b377822f9564ae6
|
4
|
+
data.tar.gz: e9e524fb127d328b7d3f3edcc0789fa922bff73d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd783daecfc309be4a4b56ad2530d35cf722b8f0d273b0bb0d16b9b1998ba008ebb6dc7e2d442cf8e50c445851004cbaf1b29c37398303d671823a3cf49dbf0e
|
7
|
+
data.tar.gz: 191f0bc30f4265c903399369a8437494d162d78741316a70131277e43e41af5b8faa4058b4a455a751dff61399d6c841bae2a764df9171aa8cbe0f96e9ecd6a1
|
data/lib/boxview.rb
CHANGED
@@ -11,7 +11,6 @@ module BoxView
|
|
11
11
|
|
12
12
|
def self.connection
|
13
13
|
connection = Faraday.new(:url => BoxView.api_url) do |conn|
|
14
|
-
#conn.request :url_encoded # convert request params as "www-form-urlencoded"
|
15
14
|
conn.response :json, :content_type => /\bjson$/
|
16
15
|
conn.adapter Faraday.default_adapter
|
17
16
|
end
|
@@ -23,6 +22,7 @@ module BoxView
|
|
23
22
|
module Documents
|
24
23
|
@@endpoint = "documents"
|
25
24
|
|
25
|
+
# takes the url of where the document is in the cloud
|
26
26
|
def self.create url
|
27
27
|
BoxView.connection.post do |request|
|
28
28
|
request.url @@endpoint
|
@@ -30,5 +30,9 @@ module BoxView
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
def self.get_zip box_id
|
34
|
+
BoxView.connection.get "documents/#{box_id}/content.zip"
|
35
|
+
end
|
36
|
+
|
33
37
|
end
|
34
38
|
end
|