assistly 0.1.5 → 0.2.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/HISTORY.mkd +5 -0
- data/README.mkd +94 -2
- data/lib/assistly/client.rb +6 -0
- data/lib/assistly/client/article.rb +96 -0
- data/lib/assistly/client/macro.rb +142 -0
- data/lib/assistly/client/topic.rb +90 -0
- data/lib/assistly/version.rb +1 -1
- data/spec/assistly/client/article_spec.rb +134 -0
- data/spec/assistly/client/macro_spec.rb +204 -0
- data/spec/assistly/client/topic_spec.rb +135 -0
- data/spec/fixtures/article.json +50 -0
- data/spec/fixtures/article_create.json +54 -0
- data/spec/fixtures/article_destroy.json +3 -0
- data/spec/fixtures/article_update.json +54 -0
- data/spec/fixtures/articles.json +58 -0
- data/spec/fixtures/macro.json +8 -0
- data/spec/fixtures/macro_action.json +9 -0
- data/spec/fixtures/macro_action_update.json +12 -0
- data/spec/fixtures/macro_actions.json +69 -0
- data/spec/fixtures/macro_create.json +13 -0
- data/spec/fixtures/macro_destroy.json +3 -0
- data/spec/fixtures/macro_update.json +13 -0
- data/spec/fixtures/macros.json +24 -0
- data/spec/fixtures/topic.json +9 -0
- data/spec/fixtures/topic_create.json +14 -0
- data/spec/fixtures/topic_destroy.json +3 -0
- data/spec/fixtures/topic_update.json +14 -0
- data/spec/fixtures/topics.json +35 -0
- metadata +50 -5
@@ -0,0 +1,50 @@
|
|
1
|
+
{
|
2
|
+
"article":
|
3
|
+
{
|
4
|
+
"id":13,
|
5
|
+
"subject":"API Tips",
|
6
|
+
"show_in_portal":true,
|
7
|
+
"main_content":"Tips on using our API",
|
8
|
+
"agent_content":null,
|
9
|
+
"email":"Tips on using our API",
|
10
|
+
"chat":"Tips on using our API",
|
11
|
+
"twitter":"Tips on using our API",
|
12
|
+
"question_answer":"Tips on using our API",
|
13
|
+
"phone":"Tips on using our API",
|
14
|
+
"quickcode":null,
|
15
|
+
"created_by":
|
16
|
+
{
|
17
|
+
"user":
|
18
|
+
{
|
19
|
+
"id":1,
|
20
|
+
"name":"API User",
|
21
|
+
"name_public":"API User",
|
22
|
+
"email":"apiuser@yoursite.com",
|
23
|
+
"created_at":"2011-01-13T22:41:42Z",
|
24
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
25
|
+
"user_level":"admin",
|
26
|
+
"login_count":9,
|
27
|
+
"time_zone":"Pacific Time (US & Canada)",
|
28
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
29
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"updated_by":
|
33
|
+
{
|
34
|
+
"user":
|
35
|
+
{
|
36
|
+
"id":1,
|
37
|
+
"name":"API User",
|
38
|
+
"name_public":"API User",
|
39
|
+
"email":"apiuser@yoursite.com",
|
40
|
+
"created_at":"2011-01-13T22:41:42Z",
|
41
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
42
|
+
"user_level":"admin",
|
43
|
+
"login_count":9,
|
44
|
+
"time_zone":"Pacific Time (US & Canada)",
|
45
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
46
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
{
|
2
|
+
"success":true,
|
3
|
+
"results":
|
4
|
+
{
|
5
|
+
"article":
|
6
|
+
{
|
7
|
+
"id":13,
|
8
|
+
"subject":"API Tips",
|
9
|
+
"show_in_portal":true,
|
10
|
+
"main_content":"Tips on using our API",
|
11
|
+
"agent_content":null,
|
12
|
+
"email":"Tips on using our API",
|
13
|
+
"chat":"Tips on using our API",
|
14
|
+
"twitter":"Tips on using our API",
|
15
|
+
"question_answer":"Tips on using our API",
|
16
|
+
"phone":"Tips on using our API",
|
17
|
+
"quickcode":null,
|
18
|
+
"created_by":
|
19
|
+
{
|
20
|
+
"user":
|
21
|
+
{
|
22
|
+
"id":1,
|
23
|
+
"name":"API User",
|
24
|
+
"name_public":"API User",
|
25
|
+
"email":"apiuser@yoursite.com",
|
26
|
+
"created_at":"2011-01-13T22:41:42Z",
|
27
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
28
|
+
"user_level":"admin",
|
29
|
+
"login_count":9,
|
30
|
+
"time_zone":"Pacific Time (US & Canada)",
|
31
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
32
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"updated_by":
|
36
|
+
{
|
37
|
+
"user":
|
38
|
+
{
|
39
|
+
"id":1,
|
40
|
+
"name":"API User",
|
41
|
+
"name_public":"API User",
|
42
|
+
"email":"apiuser@yoursite.com",
|
43
|
+
"created_at":"2011-01-13T22:41:42Z",
|
44
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
45
|
+
"user_level":"admin",
|
46
|
+
"login_count":9,
|
47
|
+
"time_zone":"Pacific Time (US & Canada)",
|
48
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
49
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
{
|
2
|
+
"success":true,
|
3
|
+
"results":
|
4
|
+
{
|
5
|
+
"article":
|
6
|
+
{
|
7
|
+
"id":13,
|
8
|
+
"subject":"API Tips",
|
9
|
+
"show_in_portal":true,
|
10
|
+
"main_content":"Tips on using our API",
|
11
|
+
"agent_content":null,
|
12
|
+
"email":"Tips on using our API",
|
13
|
+
"chat":"Tips on using our API",
|
14
|
+
"twitter":"Tips on using our API",
|
15
|
+
"question_answer":"Tips on using our API",
|
16
|
+
"phone":"Tips on using our API",
|
17
|
+
"quickcode":null,
|
18
|
+
"created_by":
|
19
|
+
{
|
20
|
+
"user":
|
21
|
+
{
|
22
|
+
"id":1,
|
23
|
+
"name":"API User",
|
24
|
+
"name_public":"API User",
|
25
|
+
"email":"apiuser@yoursite.com",
|
26
|
+
"created_at":"2011-01-13T22:41:42Z",
|
27
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
28
|
+
"user_level":"admin",
|
29
|
+
"login_count":9,
|
30
|
+
"time_zone":"Pacific Time (US & Canada)",
|
31
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
32
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"updated_by":
|
36
|
+
{
|
37
|
+
"user":
|
38
|
+
{
|
39
|
+
"id":1,
|
40
|
+
"name":"API User",
|
41
|
+
"name_public":"API User",
|
42
|
+
"email":"apiuser@yoursite.com",
|
43
|
+
"created_at":"2011-01-13T22:41:42Z",
|
44
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
45
|
+
"user_level":"admin",
|
46
|
+
"login_count":9,
|
47
|
+
"time_zone":"Pacific Time (US & Canada)",
|
48
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
49
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"results":
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"article":
|
6
|
+
{
|
7
|
+
"id":13,
|
8
|
+
"subject":"API Tips",
|
9
|
+
"show_in_portal":true,
|
10
|
+
"main_content":"Tips on using our API",
|
11
|
+
"agent_content":null,
|
12
|
+
"email":"Tips on using our API",
|
13
|
+
"chat":"Tips on using our API",
|
14
|
+
"twitter":"Tips on using our API",
|
15
|
+
"question_answer":"Tips on using our API",
|
16
|
+
"phone":"Tips on using our API",
|
17
|
+
"quickcode":null,
|
18
|
+
"created_by":
|
19
|
+
{
|
20
|
+
"user":
|
21
|
+
{
|
22
|
+
"id":1,
|
23
|
+
"name":"API User",
|
24
|
+
"name_public":"API User",
|
25
|
+
"email":"apiuser@yoursite.com",
|
26
|
+
"created_at":"2011-01-13T22:41:42Z",
|
27
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
28
|
+
"user_level":"admin",
|
29
|
+
"login_count":9,
|
30
|
+
"time_zone":"Pacific Time (US & Canada)",
|
31
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
32
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
33
|
+
}
|
34
|
+
},
|
35
|
+
"updated_by":
|
36
|
+
{
|
37
|
+
"user":
|
38
|
+
{
|
39
|
+
"id":1,
|
40
|
+
"name":"API User",
|
41
|
+
"name_public":"API User",
|
42
|
+
"email":"apiuser@yoursite.com",
|
43
|
+
"created_at":"2011-01-13T22:41:42Z",
|
44
|
+
"updated_at":"2011-01-19T22:04:33Z",
|
45
|
+
"user_level":"admin",
|
46
|
+
"login_count":9,
|
47
|
+
"time_zone":"Pacific Time (US & Canada)",
|
48
|
+
"last_login_at":"2011-01-19T18:21:52Z",
|
49
|
+
"current_login_at":"2011-01-19T22:04:33Z"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"page":1,
|
56
|
+
"count":20,
|
57
|
+
"total":1
|
58
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
{
|
2
|
+
"results":
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"action":
|
6
|
+
{
|
7
|
+
"slug":"set-case-description",
|
8
|
+
"value":"Description to be applied",
|
9
|
+
"enabled":true
|
10
|
+
}
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"action":
|
14
|
+
{
|
15
|
+
"slug":"set-case-priority",
|
16
|
+
"value":"10",
|
17
|
+
"enabled":true
|
18
|
+
}
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"action":
|
22
|
+
{
|
23
|
+
"slug":"set-case-status",
|
24
|
+
"value":"",
|
25
|
+
"enabled":false
|
26
|
+
}
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"action":
|
30
|
+
{
|
31
|
+
"slug":"set-case-group",
|
32
|
+
"value":"",
|
33
|
+
"enabled":false
|
34
|
+
}
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"action":
|
38
|
+
{
|
39
|
+
"slug":"set-case-user",
|
40
|
+
"value":"",
|
41
|
+
"enabled":false
|
42
|
+
}
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"action":
|
46
|
+
{
|
47
|
+
"slug":"set-case-quick-reply",
|
48
|
+
"value":"",
|
49
|
+
"enabled":false
|
50
|
+
}
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"action":
|
54
|
+
{
|
55
|
+
"slug":"append-case-article",
|
56
|
+
"value":"",
|
57
|
+
"enabled":false
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"action":
|
62
|
+
{
|
63
|
+
"slug":"set-case-outbound-email-subject",
|
64
|
+
"value":"",
|
65
|
+
"enabled":false
|
66
|
+
}
|
67
|
+
}
|
68
|
+
]
|
69
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"results":
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"macro":
|
6
|
+
{
|
7
|
+
"id":11,
|
8
|
+
"name":"Test Macro",
|
9
|
+
"enabled":false
|
10
|
+
}
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"macro":
|
14
|
+
{
|
15
|
+
"id":12,
|
16
|
+
"name":"API Macro",
|
17
|
+
"enabled":true
|
18
|
+
}
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"page":1,
|
22
|
+
"count":20,
|
23
|
+
"total":2
|
24
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"results":
|
3
|
+
[
|
4
|
+
{
|
5
|
+
"topic":
|
6
|
+
{
|
7
|
+
"id":1,
|
8
|
+
"name":"Sample :: General",
|
9
|
+
"description":"Sample Topic Description :: Information about our company",
|
10
|
+
"show_in_portal":true
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"topic":
|
15
|
+
{
|
16
|
+
"id":2,
|
17
|
+
"name":"Canned Responses",
|
18
|
+
"description":"Internal responses to common questions",
|
19
|
+
"show_in_portal":false
|
20
|
+
}
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"topic":
|
24
|
+
{
|
25
|
+
"id":3,
|
26
|
+
"name":"Sample :: Products",
|
27
|
+
"description":"Sample Topic Description :: Information about our products",
|
28
|
+
"show_in_portal":true
|
29
|
+
}
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"page":1,
|
33
|
+
"count":20,
|
34
|
+
"total":3
|
35
|
+
}
|