groupdocs 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/groupdocs/datasource.rb +66 -1
- data/lib/groupdocs/document.rb +21 -31
- data/lib/groupdocs/document/annotation.rb +8 -5
- data/lib/groupdocs/job.rb +4 -3
- data/lib/groupdocs/post.rb +4 -12
- data/lib/groupdocs/questionnaire.rb +40 -44
- data/lib/groupdocs/signature.rb +47 -30
- data/lib/groupdocs/signature/envelope.rb +35 -7
- data/lib/groupdocs/signature/field.rb +1 -0
- data/lib/groupdocs/signature/field/location.rb +6 -0
- data/lib/groupdocs/signature/form.rb +33 -1
- data/lib/groupdocs/signature/shared/document_methods.rb +1 -0
- data/lib/groupdocs/storage/file.rb +19 -10
- data/lib/groupdocs/subscription.rb +3 -10
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/datasource_spec.rb +41 -0
- data/spec/groupdocs/document/annotation_spec.rb +38 -6
- data/spec/groupdocs/document_spec.rb +258 -25
- data/spec/groupdocs/job_spec.rb +52 -0
- data/spec/groupdocs/questionnaire_spec.rb +45 -9
- data/spec/groupdocs/signature_spec.rb +13 -0
- data/spec/groupdocs/storage/file_spec.rb +68 -0
- data/spec/groupdocs/subscription_spec.rb +119 -0
- data/spec/groupdocs/user_spec.rb +75 -3
- data/spec/support/json/annotation_collaborators_add.json +31 -0
- data/spec/support/json/annotation_collaborators_clear.json +22 -0
- data/spec/support/json/document_html_urls.json +12 -0
- data/spec/support/json/document_shared_documents_get.json +2 -1
- data/spec/support/json/job_resources_get.json +16 -0
- data/spec/support/json/jobs_documents.json +49 -30
- data/spec/support/json/subscription_billing_set.json +21 -0
- data/spec/support/json/subscription_countries_get.json +93 -0
- data/spec/support/json/subscription_get.json +23 -0
- data/spec/support/json/subscription_get_plan.json +48 -0
- data/spec/support/json/subscription_invoices_get.json +18 -0
- data/spec/support/json/subscription_states_get.json +93 -0
- data/spec/support/json/subscription_wizard_get.json +8 -0
- metadata +13 -2
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"documentGuid": "68e0fcd3ebec695b20a147984dc551c71486f6095c9659ad252fd61b713846b9",
|
4
|
+
"sessionGuid": "3330443814a69bfc",
|
5
|
+
"owner": {
|
6
|
+
"id": 3320,
|
7
|
+
"guid": "b912b34d1621a895",
|
8
|
+
"primary_email": "another19@aretaicturn.com",
|
9
|
+
"firstName": "another19",
|
10
|
+
"lastName": "another19",
|
11
|
+
"access_rights": null,
|
12
|
+
"color": 14724333,
|
13
|
+
"customEmailMessage": null
|
14
|
+
},
|
15
|
+
"collaborators": [
|
16
|
+
{
|
17
|
+
"id": 29276,
|
18
|
+
"guid": "b912b34d1621a895",
|
19
|
+
"primary_email": "another19@aretaicturn.com",
|
20
|
+
"firstName": "another19",
|
21
|
+
"lastName": "another19",
|
22
|
+
"access_rights": 1,
|
23
|
+
"color": 14724333,
|
24
|
+
"customEmailMessage": null
|
25
|
+
}
|
26
|
+
]
|
27
|
+
},
|
28
|
+
"status": "Ok",
|
29
|
+
"error_message": null,
|
30
|
+
"composedOn": 1381925965056
|
31
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"documentGuid": "68e0fcd3ebec695b20a147984dc551c71486f6095c9659ad252fd61b713846b9",
|
4
|
+
"sessionGuid": "3330443814a69bfc",
|
5
|
+
"owner": {
|
6
|
+
"id": 3320,
|
7
|
+
"guid": "b912b34d1621a895",
|
8
|
+
"primary_email": "another19@aretaicturn.com",
|
9
|
+
"firstName": "another19",
|
10
|
+
"lastName": "another19",
|
11
|
+
"access_rights": null,
|
12
|
+
"color": 14724333,
|
13
|
+
"customEmailMessage": null
|
14
|
+
},
|
15
|
+
"collaborators": [
|
16
|
+
|
17
|
+
]
|
18
|
+
},
|
19
|
+
"status": "Ok",
|
20
|
+
"error_message": null,
|
21
|
+
"composedOn": 1381925965056
|
22
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"url": [
|
4
|
+
"https://api.groupdocs.com/v2.0/doc/b912b34d1621a895/files/68e0fcd3ebec695b20a147984dc551c71486f6095c9659ad252fd61b713846b9/pages/0/htmlRepresentations?expires=1381926040475.48&signature=oJqg5%2FU4DR47fg2N4VC4xonEUCo",
|
5
|
+
"https://api.groupdocs.com/v2.0/doc/b912b34d1621a895/files/68e0fcd3ebec695b20a147984dc551c71486f6095c9659ad252fd61b713846b9/pages/1/htmlRepresentations?expires=1381926040475.48&signature=loehNJyS3VeLfgYdq47CahEh2QU",
|
6
|
+
"https://api.groupdocs.com/v2.0/doc/b912b34d1621a895/files/68e0fcd3ebec695b20a147984dc551c71486f6095c9659ad252fd61b713846b9/pages/2/htmlRepresentations?expires=1381926040475.48&signature=lb8OXoewDP9oQv2i4l3qqzX3UNc"
|
7
|
+
]
|
8
|
+
},
|
9
|
+
"status": "Ok",
|
10
|
+
"error_message": null,
|
11
|
+
"composedOn": 1381925140445
|
12
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"dates": [
|
4
|
+
"2013-10-17T00:00:00.0000000",
|
5
|
+
"2013-10-16T00:00:00.0000000",
|
6
|
+
"2013-10-14T00:00:00.0000000",
|
7
|
+
"2013-10-11T00:00:00.0000000",
|
8
|
+
"2013-10-10T00:00:00.0000000",
|
9
|
+
"2013-10-09T00:00:00.0000000",
|
10
|
+
"2013-04-24T00:00:00.0000000"
|
11
|
+
]
|
12
|
+
},
|
13
|
+
"status": "Ok",
|
14
|
+
"error_message": null,
|
15
|
+
"composedOn": 1381989346432
|
16
|
+
}
|
@@ -1,40 +1,59 @@
|
|
1
1
|
{
|
2
|
-
"result":
|
3
|
-
|
4
|
-
"
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
[
|
2
|
+
"result": {
|
3
|
+
"count": 883,
|
4
|
+
"entries": [
|
5
|
+
{
|
6
|
+
"inputs": [
|
7
|
+
{
|
8
|
+
"status": "Processed",
|
9
|
+
"proc_date": 1364972104097,
|
10
|
+
"output_formats": "jpg",
|
11
|
+
"outputs": [
|
12
12
|
{
|
13
|
-
"ftype": 19,
|
14
13
|
"error": null,
|
15
|
-
"
|
16
|
-
"
|
14
|
+
"name": null,
|
15
|
+
"version": null,
|
16
|
+
"size": 0,
|
17
|
+
"type": "Cells",
|
18
|
+
"type_str": "Cells",
|
19
|
+
"file_type_str": "Jpg",
|
20
|
+
"document_path": null,
|
21
|
+
"access": "Private",
|
22
|
+
"url": null,
|
23
|
+
"file_type": "Jpg",
|
24
|
+
"id": 0,
|
25
|
+
"guid": null
|
17
26
|
}
|
18
27
|
],
|
19
|
-
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"status": "Scheduled",
|
23
|
-
"output_formats": "tiff",
|
24
|
-
"outputs":
|
25
|
-
[
|
28
|
+
"job_errors": [
|
26
29
|
{
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
30
|
+
"job_id": 17188,
|
31
|
+
"original_document_id": 60804,
|
32
|
+
"error_code": -1,
|
33
|
+
"expected_format": "xml"
|
31
34
|
}
|
32
35
|
],
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
"actions": "View",
|
37
|
+
"supported_output_file_types": null,
|
38
|
+
"name": "GroupDocs_Signature_Demo.pdf",
|
39
|
+
"version": 9,
|
40
|
+
"size": 1132663,
|
41
|
+
"type": "Pdf",
|
42
|
+
"type_str": "Pdf",
|
43
|
+
"file_type_str": "Pdf",
|
44
|
+
"document_path": "samples/signature\\GroupDocs_Signature_Demo.pdf",
|
45
|
+
"access": "Private",
|
46
|
+
"url": "https://api.groupdocs.com/v2.0/shared/files/7bddf6878cde223426abf285c7d7d320bbcb476d3fcc9778049daea044322038",
|
47
|
+
"file_type": "Pdf",
|
48
|
+
"id": 60804,
|
49
|
+
"guid": "7bddf6878cde223426abf285c7d7d320bbcb476d3fcc9778049daea044322038"
|
50
|
+
}
|
51
|
+
],
|
52
|
+
"outputs": null
|
53
|
+
}
|
54
|
+
]
|
37
55
|
},
|
38
56
|
"status": "Ok",
|
39
|
-
"error_message": null
|
40
|
-
|
57
|
+
"error_message": null,
|
58
|
+
"composedOn": 1381993707507
|
59
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"billing_address": {
|
4
|
+
"address1": null,
|
5
|
+
"address2": null,
|
6
|
+
"city": null,
|
7
|
+
"company": null,
|
8
|
+
"country": null,
|
9
|
+
"email": null,
|
10
|
+
"fax": null,
|
11
|
+
"firstName": null,
|
12
|
+
"lastName": null,
|
13
|
+
"phone": null,
|
14
|
+
"state": null,
|
15
|
+
"zip": null
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"status": "Ok",
|
19
|
+
"error_message": null,
|
20
|
+
"composedOn": 1382098743770
|
21
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"states": [
|
4
|
+
{
|
5
|
+
"Name": "Ukraine (general)"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"Name": "Cherkas'ka"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"Name": "Chernihivs'ka"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"Name": "Chernivets'ka"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"Name": "Dnipropetrovska"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"Name": "Donets'ka"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"Name": "Ivano-Frankivs'ka"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"Name": "Kharkivs'ka"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"Name": "Kherson"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"Name": "Khmel'nyts'ka"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"Name": "Kirovohrads'ka"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"Name": "Avtonomna Respublika Krym"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"Name": "Misto Kyyiv"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"Name": "Kiev"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"Name": "Luhans'ka"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"Name": "L'vivs'ka"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"Name": "Mykolayivs'ka"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"Name": "Odessa"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"Name": "Poltava"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"Name": "Rivnens'ka"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"Name": "Misto Sevastopol"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"Name": "Sumy"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"Name": "Ternopil's'ka"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"Name": "Vinnyts'ka"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"Name": "Volyns'ka"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"Name": "Zakarpats'ka"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"Name": "Zaporiz'ka"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"Name": "Zhytomyrs'ka"
|
87
|
+
}
|
88
|
+
]
|
89
|
+
},
|
90
|
+
"status": "Ok",
|
91
|
+
"error_message": null,
|
92
|
+
"composedOn": 1382097333636
|
93
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"id": 43989,
|
4
|
+
"name": "Gold",
|
5
|
+
"billing_address": {
|
6
|
+
"address1": "8 Craike House",
|
7
|
+
"address2": "Francis Street",
|
8
|
+
"city": "Dublin City",
|
9
|
+
"company": "NA",
|
10
|
+
"country": "Ireland",
|
11
|
+
"email": null,
|
12
|
+
"fax": null,
|
13
|
+
"firstName": "Derek",
|
14
|
+
"lastName": "Hyland",
|
15
|
+
"phone": null,
|
16
|
+
"state": "Dublin",
|
17
|
+
"zip": "D8"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"status": "Ok",
|
21
|
+
"error_message": null,
|
22
|
+
"composedOn": 1382096375370
|
23
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"subscription_plan": {
|
4
|
+
"users": 1,
|
5
|
+
"document_count": null,
|
6
|
+
"viewer": 0,
|
7
|
+
"signature": 0,
|
8
|
+
"assembly": 0,
|
9
|
+
"comparison": 0,
|
10
|
+
"conversion": null,
|
11
|
+
"sharing": null,
|
12
|
+
"api": null,
|
13
|
+
"branding": true,
|
14
|
+
"max_document_size": null,
|
15
|
+
"annotation": 0,
|
16
|
+
"storage_space": null,
|
17
|
+
"document_tokens": null,
|
18
|
+
"watermarking": false,
|
19
|
+
"storage_providers": false,
|
20
|
+
"private_storage": false,
|
21
|
+
"embeddings": 0
|
22
|
+
},
|
23
|
+
"usage": {
|
24
|
+
"users": 1,
|
25
|
+
"document_count": 37638,
|
26
|
+
"viewer": 0,
|
27
|
+
"signature": 0,
|
28
|
+
"assembly": 0,
|
29
|
+
"comparison": 0,
|
30
|
+
"conversion": 53,
|
31
|
+
"sharing": 499,
|
32
|
+
"api": 9987,
|
33
|
+
"branding": null,
|
34
|
+
"max_document_size": null,
|
35
|
+
"annotation": 0,
|
36
|
+
"storage_space": 1255236939,
|
37
|
+
"document_tokens": 1168,
|
38
|
+
"watermarking": null,
|
39
|
+
"storage_providers": false,
|
40
|
+
"private_storage": null,
|
41
|
+
"embeddings": 0
|
42
|
+
},
|
43
|
+
"last_reset_date": "2013-09-18T13:18:55.1030000Z"
|
44
|
+
},
|
45
|
+
"status": "Ok",
|
46
|
+
"error_message": null,
|
47
|
+
"composedOn": 1382099043807
|
48
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"invoices": [
|
4
|
+
{
|
5
|
+
"Charged": 0,
|
6
|
+
"Paid": 0,
|
7
|
+
"Discount": 0,
|
8
|
+
"CurrencyCode": "USD",
|
9
|
+
"StatementDate": "2012-11-08T08:50:30.0000000Z",
|
10
|
+
"BillingStartDate": "2012-11-08T08:50:28.0000000Z",
|
11
|
+
"Status": "Trial"
|
12
|
+
}
|
13
|
+
]
|
14
|
+
},
|
15
|
+
"status": "Ok",
|
16
|
+
"error_message": null,
|
17
|
+
"composedOn": 1382089288138
|
18
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
{
|
2
|
+
"result": {
|
3
|
+
"states": [
|
4
|
+
{
|
5
|
+
"Name": "Ukraine (general)"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"Name": "Cherkas'ka"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"Name": "Chernihivs'ka"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"Name": "Chernivets'ka"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"Name": "Dnipropetrovska"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"Name": "Donets'ka"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"Name": "Ivano-Frankivs'ka"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"Name": "Kharkivs'ka"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"Name": "Kherson"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"Name": "Khmel'nyts'ka"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"Name": "Kirovohrads'ka"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"Name": "Avtonomna Respublika Krym"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"Name": "Misto Kyyiv"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"Name": "Kiev"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"Name": "Luhans'ka"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"Name": "L'vivs'ka"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"Name": "Mykolayivs'ka"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"Name": "Odessa"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"Name": "Poltava"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"Name": "Rivnens'ka"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"Name": "Misto Sevastopol"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"Name": "Sumy"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"Name": "Ternopil's'ka"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"Name": "Vinnyts'ka"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"Name": "Volyns'ka"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"Name": "Zakarpats'ka"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"Name": "Zaporiz'ka"
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"Name": "Zhytomyrs'ka"
|
87
|
+
}
|
88
|
+
]
|
89
|
+
},
|
90
|
+
"status": "Ok",
|
91
|
+
"error_message": null,
|
92
|
+
"composedOn": 1382097333636
|
93
|
+
}
|