tagalys 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tagalys.rb +11 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aca4f34518d061daf5b2df472ec717ca8a393e9fdff3a559893d645d27e9ce3a
|
4
|
+
data.tar.gz: 4a690435364ad892ebc8fe6e1858fc1639eafdbf660dd7ffa56e91875456fba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab9e31992a479a1ef6240efa92a41939b89d21b4ceb5787d8dbd9a7328f34395165c7cd86cf61d60e3c084c71400ce5ee13a4374beb8d17c4d5ab2b1d7f02777
|
7
|
+
data.tar.gz: 16308217a6afffae2106737fb73acf54c886ffc3ecd0eaddb5da871af8aa647701a5954ac2dd2cc2d76d4e99a617612ff0393e3a784a9a501d97cff870e18fa1
|
data/lib/tagalys.rb
CHANGED
@@ -34,25 +34,30 @@ module Tagalys
|
|
34
34
|
"results",
|
35
35
|
"details",
|
36
36
|
"sort_options",
|
37
|
-
"filters"
|
37
|
+
"filters",
|
38
|
+
"variables",
|
39
|
+
"banners"
|
38
40
|
]
|
39
41
|
}.compact
|
40
42
|
search_response = request_tagalys('/search', request_body)
|
41
43
|
end
|
42
44
|
|
43
|
-
def get_page_details(page_name, sort=nil, page=1, per_page=30)
|
45
|
+
def get_page_details(page_name, filters=nil, sort=nil, page=1, per_page=30)
|
44
46
|
request_body = {
|
45
47
|
identification: identification,
|
46
48
|
sort: sort,
|
49
|
+
qf: filters,
|
50
|
+
page: page,
|
51
|
+
per_page: per_page,
|
47
52
|
request: [
|
48
53
|
"total",
|
49
54
|
"results",
|
50
55
|
"details",
|
51
56
|
"sort_options",
|
52
|
-
"filters"
|
53
|
-
|
54
|
-
|
55
|
-
|
57
|
+
"filters",
|
58
|
+
"variables",
|
59
|
+
"banners"
|
60
|
+
]
|
56
61
|
}.compact
|
57
62
|
search_response = request_tagalys('/mpages/' + page_name, request_body)
|
58
63
|
end
|