k_sequencing 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 +4 -4
- data/README.md +5 -8
- data/docs/documentation.md +17 -30
- data/k_sequencing.gemspec +1 -1
- data/lib/k_sequencing/version.rb +1 -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: b20f45a086a84380c31617587d242641e383a87e
|
4
|
+
data.tar.gz: 06446bf4a6330b14c37ad26bf6ffee8414ff9459
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 166202a8c8e48ac76985347cac735c14bdd0254d0d7249b6e0556e54352d6237f219e36b7d1c4b548edca0dc7646fa529a964b1f12b493965d4de9187e3dfdea
|
7
|
+
data.tar.gz: b73b976f4e5d1c62fcf72e6071fdebf123d27c83623cee3b22fe226efd43ad20e2cd544702d2b3623db2d7de5c88efcaf9a6585756854db4e01448ae5eefa64e
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Image and content moderation services.
|
|
4
4
|
|
5
5
|
## Getting Started
|
6
6
|
|
7
|
-
KSequencing 0.0.
|
7
|
+
KSequencing 0.0.5 works with Rails 4.1 onwards. You can add it to your Gemfile with:
|
8
8
|
```ruby
|
9
9
|
gem 'k_sequencing'
|
10
10
|
```
|
@@ -22,7 +22,7 @@ KSequencing.client.create_image_closed_questions()
|
|
22
22
|
| ------------- |:-------------:| :-----:| :-----|
|
23
23
|
| token | string | Yes |User Authorization Token|
|
24
24
|
| data | string | Yes |Data for moderate|
|
25
|
-
| postback_url | string |
|
25
|
+
| postback_url | string | No | Image postback url|
|
26
26
|
| postback_method | string | No |Postback method|
|
27
27
|
| custom_id | string | No |Custom's id|
|
28
28
|
|
@@ -31,22 +31,19 @@ Sample request
|
|
31
31
|
```ruby
|
32
32
|
KSequencing.client.create_image_closed_questions(
|
33
33
|
token: "9UPmGGWEwBsJrVnw6844tfpd",
|
34
|
-
data: "image_url"
|
35
|
-
postback_url: "www.example.com"
|
34
|
+
data: "image_url"
|
36
35
|
)
|
37
36
|
```
|
38
37
|
|
39
38
|
```
|
40
|
-
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "data=image_url
|
39
|
+
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "data=image_url" "http://k-sequencing.datawow.io/api/images/closed_questions"
|
41
40
|
```
|
42
41
|
|
43
42
|
Sample results
|
44
43
|
```json
|
45
44
|
{
|
46
45
|
"data": {
|
47
|
-
"id":
|
48
|
-
"$oid": "58c7a9f412c09f1c0fa78390"
|
49
|
-
},
|
46
|
+
"id": "58c8c3ef12c09f1c0fa78392",
|
50
47
|
"answer": null,
|
51
48
|
"credit_charged": 0,
|
52
49
|
"custom_id": null,
|
data/docs/documentation.md
CHANGED
@@ -15,7 +15,7 @@ KSequencing.client.create_image_closed_questions()
|
|
15
15
|
| ------------- |:-------------:| :-----:| :-----|
|
16
16
|
| token | string | Yes |Project Authorization Token|
|
17
17
|
| data | string | Yes |Data for moderate|
|
18
|
-
| postback_url | string |
|
18
|
+
| postback_url | string | No | Image postback url|
|
19
19
|
| postback_method | string | No |Postback method|
|
20
20
|
| custom_id | string | No |Custom's id|
|
21
21
|
|
@@ -23,22 +23,19 @@ Sample request
|
|
23
23
|
```ruby
|
24
24
|
KSequencing.client.create_image_closed_questions(
|
25
25
|
token: "9UPmGGWEwBsJrVnw6844tfpd",
|
26
|
-
data: "image_url"
|
27
|
-
postback_url: "www.example.com"
|
26
|
+
data: "image_url"
|
28
27
|
)
|
29
28
|
```
|
30
29
|
|
31
30
|
```
|
32
|
-
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "data=image_url
|
31
|
+
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "data=image_url" "http://k-sequencing.datawow.io/api/images/closed_questions"
|
33
32
|
```
|
34
33
|
|
35
34
|
Sample results
|
36
35
|
```json
|
37
36
|
{
|
38
37
|
"data": {
|
39
|
-
"id":
|
40
|
-
"$oid": "58c7a9f412c09f1c0fa78390"
|
41
|
-
},
|
38
|
+
"id": "58c8c3ef12c09f1c0fa78392",
|
42
39
|
"answer": null,
|
43
40
|
"credit_charged": 0,
|
44
41
|
"custom_id": null,
|
@@ -70,7 +67,7 @@ KSequencing.client.create_choices()
|
|
70
67
|
| instruction | string | Yes | Image instruction|
|
71
68
|
|categories | Array[string] | Yes | Categories of answers |
|
72
69
|
| data | string | Yes |Data for attachment|
|
73
|
-
| postback_url | string |
|
70
|
+
| postback_url | string | No | Image instruction|
|
74
71
|
|multiple | boolean | No | true for multiple answer and false for one answer |
|
75
72
|
| postback_method | string | No |Postback method|
|
76
73
|
| custom_id | string | No |Custom's id|
|
@@ -85,8 +82,7 @@ KSequencing.client.create_choices(
|
|
85
82
|
token: "9UPmGGWEwBsJrVnw6844tfpd",
|
86
83
|
instruction: "question",
|
87
84
|
categories: ["options1", "options2", "options3"],
|
88
|
-
data: "image_url"
|
89
|
-
postback_url: "www.example.com"
|
85
|
+
data: "image_url"
|
90
86
|
)
|
91
87
|
```
|
92
88
|
For multiple answer
|
@@ -95,23 +91,20 @@ KSequencing.client.create_choices(
|
|
95
91
|
token: "9UPmGGWEwBsJrVnw6844tfpd",
|
96
92
|
instruction: "question",
|
97
93
|
categories: ["options1", "options2", "options3"],
|
98
|
-
data: "image_url"
|
99
|
-
postback_url: "www.example.com",
|
94
|
+
data: "image_url"
|
100
95
|
multiple: true
|
101
96
|
)
|
102
97
|
```
|
103
98
|
|
104
99
|
```
|
105
|
-
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "instruction=question&categories=option1%20options2%20options3&data=image_url
|
100
|
+
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "instruction=question&categories=option1%20options2%20options3&data=image_url" "http://k-sequencing.datawow.io/api/images/choices"
|
106
101
|
```
|
107
102
|
|
108
103
|
Sample results
|
109
104
|
```json
|
110
105
|
{
|
111
106
|
"data": {
|
112
|
-
"id":
|
113
|
-
"$oid": "58c8c39012c09f1c0fa78391"
|
114
|
-
},
|
107
|
+
"id": "58c8c3ef12c09f1c0fa78392",
|
115
108
|
"answer": null,
|
116
109
|
"credit_charged": 0,
|
117
110
|
"custom_id": null,
|
@@ -150,7 +143,7 @@ KSequencing.client.create_messages()
|
|
150
143
|
| token | string | Yes |Project Authorization Token|
|
151
144
|
| instruction | string | Yes | Image instruction|
|
152
145
|
| data | string | Yes |Data for attachment|
|
153
|
-
| postback_url | string |
|
146
|
+
| postback_url | string | No | Image postback url|
|
154
147
|
| postback_method | string | No |Postback method|
|
155
148
|
| custom_id | string | No |Custom's id|
|
156
149
|
|
@@ -159,22 +152,19 @@ Sample request
|
|
159
152
|
KSequencing.client.create_messages(
|
160
153
|
token: "9UPmGGWEwBsJrVnw6844tfpd",
|
161
154
|
instruction: "question",
|
162
|
-
data: "image_url"
|
163
|
-
postback_url: "www.example.com"
|
155
|
+
data: "image_url"
|
164
156
|
)
|
165
157
|
```
|
166
158
|
|
167
159
|
```
|
168
|
-
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "instruction=question&data=image_url
|
160
|
+
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" -H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "instruction=question&data=image_url" "http://k-sequencing.datawow.io/api/images/messages"
|
169
161
|
```
|
170
162
|
|
171
163
|
Sample results
|
172
164
|
```json
|
173
165
|
{
|
174
166
|
"data": {
|
175
|
-
"id":
|
176
|
-
"$oid": "58c8c3ef12c09f1c0fa78392"
|
177
|
-
},
|
167
|
+
"id": "58c8c3ef12c09f1c0fa78392",
|
178
168
|
"answer": null,
|
179
169
|
"credit_charged": 0,
|
180
170
|
"custom_id": null,
|
@@ -206,7 +196,7 @@ KSequencing.client.create_photo_tags()
|
|
206
196
|
| token | string | Yes |Project Authorization Token|
|
207
197
|
| instruction | string | Yes | Image instruction|
|
208
198
|
| data | string | Yes |Data for attachment|
|
209
|
-
| postback_url | string |
|
199
|
+
| postback_url | string | No | Image postback url|
|
210
200
|
| postback_method | string | No |Postback method|
|
211
201
|
| custom_id | string | No |Custom's id|
|
212
202
|
|
@@ -215,22 +205,19 @@ Sample request
|
|
215
205
|
KSequencing.client.create_photo_tags(
|
216
206
|
token: "9UPmGGWEwBsJrVnw6844tfpd",
|
217
207
|
instruction: "question",
|
218
|
-
data: "image_url"
|
219
|
-
postback_url: "www.example.com"
|
208
|
+
data: "image_url"
|
220
209
|
)
|
221
210
|
```
|
222
211
|
|
223
212
|
```
|
224
|
-
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" --H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "instruction=question&data=image_url
|
213
|
+
curl --request POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept: application/json" --H "Authorization: 9UPmGGWEwBsJrVnw6844tfpd" --data "instruction=question&data=image_url" "http://k-sequencing.datawow.io/api/images/photo_tags"
|
225
214
|
```
|
226
215
|
|
227
216
|
Sample results
|
228
217
|
```json
|
229
218
|
{
|
230
219
|
"data": {
|
231
|
-
"id":
|
232
|
-
"$oid": "58c8c45c12c09f1c0fa78394"
|
233
|
-
},
|
220
|
+
"id": "58c8c3ef12c09f1c0fa78392",
|
234
221
|
"answer": null,
|
235
222
|
"credit_charged": 0,
|
236
223
|
"custom_id": null,
|
data/k_sequencing.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = 'k_sequencing'
|
7
|
-
s.version = '0.0.
|
7
|
+
s.version = '0.0.5'
|
8
8
|
s.date = '2017-05-24'
|
9
9
|
s.summary = 'KSequencing is a moderator service for your online content'
|
10
10
|
s.description = 'Moderation suite'
|
data/lib/k_sequencing/version.rb
CHANGED