suitecrm-ruby 1.0.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.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +94 -0
- data/README.md +144 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fixtures/vcr_cassettes/adds_relationship_to_module.yml +51 -0
- data/fixtures/vcr_cassettes/creates_a_module.yml +263 -0
- data/fixtures/vcr_cassettes/deletes_a_module.yml +512 -0
- data/fixtures/vcr_cassettes/deletes_module_relationship.yml +557 -0
- data/fixtures/vcr_cassettes/get_all_modules_of_type.yml +3789 -0
- data/fixtures/vcr_cassettes/gets_a_specific_module.yml +1353 -0
- data/fixtures/vcr_cassettes/gets_relationships_for_a_module.yml +879 -0
- data/fixtures/vcr_cassettes/updates_a_module.yml +440 -0
- data/lib/suitecrm-ruby.rb +23 -0
- data/lib/suitecrm/api_exception.rb +7 -0
- data/lib/suitecrm/configuration.rb +17 -0
- data/lib/suitecrm/connection.rb +109 -0
- data/lib/suitecrm/meta.rb +7 -0
- data/lib/suitecrm/module.rb +19 -0
- data/lib/suitecrm/modules.rb +7 -0
- data/lib/suitecrm/relationship.rb +15 -0
- data/lib/suitecrm/version.rb +3 -0
- data/suitecrm-ruby.gemspec +38 -0
- metadata +243 -0
@@ -0,0 +1,512 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: http://18.236.231.13/suite/Api/V8/module/Contacts/79a08232-6e62-dbaf-af6d-60f7146d1e87
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjI3OGQ0NjYyNmNiZTQ3OTg3NjNjY2QxYzk5MTRiYzcxZDkzMDRhNWM4ZTZkMWVmNzZlNDgyMDE2NmRlMmJhODI1YjI5YjhhODM3ODhkNDI2In0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiIyNzhkNDY2MjZjYmU0Nzk4NzYzY2NkMWM5OTE0YmM3MWQ5MzA0YTVjOGU2ZDFlZjc2ZTQ4MjAxNjZkZTJiYTgyNWIyOWI4YTgzNzg4ZDQyNiIsImlhdCI6MTYyNjgwNTQ2MiwibmJmIjoxNjI2ODA1NDYyLCJleHAiOjE2MjY4MDkwNjIsInN1YiI6IiIsInNjb3BlcyI6W119.rU7E_ZMDLwYvCdFGPMpoKoYJI9TiBz8Cwdj3e-Rb4aJl-5Ay3bzAGnn5_syWa0XARakPez3cR3lTS3kf3GnGMhdf_tuXG4i-NCQB-vzW8Ci-ITbSE4x99uR1_JY958mg-uYtxi6Vbrxa7X6c-Bs9UDL6XQKJrESNUC05yXtlYPVS0LS7hgwEUIzQ6FBsA3O1ZOEsKzigaoi5VxOs5ZdL8xn9fRtxs8iFnKlGFWDEA_isYS0LUFlNHANY-HnXBxzhKGlCWGTWW0Ja-jaw1LfC-FMEkg4PYUDf__Fbmf21cY429jrAyZVXEAosq6LSSB_WjwuU-RY5AVvi84dFuigBdw
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v1.5.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 400
|
23
|
+
message: Bad Request
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 20 Jul 2021 18:32:39 GMT
|
27
|
+
Server:
|
28
|
+
- Apache/2.4.41 (Ubuntu)
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
33
|
+
Access-Control-Allow-Headers:
|
34
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
35
|
+
Accept:
|
36
|
+
- application/vnd.api+json
|
37
|
+
Content-Length:
|
38
|
+
- '165'
|
39
|
+
Connection:
|
40
|
+
- close
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.api+json
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: |-
|
46
|
+
{
|
47
|
+
"errors": {
|
48
|
+
"status": 400,
|
49
|
+
"title": null,
|
50
|
+
"detail": "Contacts module with id 79a08232-6e62-dbaf-af6d-60f7146d1e87 is not found"
|
51
|
+
}
|
52
|
+
}
|
53
|
+
recorded_at: Tue, 20 Jul 2021 18:32:39 GMT
|
54
|
+
- request:
|
55
|
+
method: delete
|
56
|
+
uri: http://18.236.231.13/suite/Api/V8/module/Contacts/51f7baeb-fe82-d3c1-5ef9-60c0de2c67cf
|
57
|
+
body:
|
58
|
+
encoding: US-ASCII
|
59
|
+
string: ''
|
60
|
+
headers:
|
61
|
+
Authorization:
|
62
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjI3OGQ0NjYyNmNiZTQ3OTg3NjNjY2QxYzk5MTRiYzcxZDkzMDRhNWM4ZTZkMWVmNzZlNDgyMDE2NmRlMmJhODI1YjI5YjhhODM3ODhkNDI2In0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiIyNzhkNDY2MjZjYmU0Nzk4NzYzY2NkMWM5OTE0YmM3MWQ5MzA0YTVjOGU2ZDFlZjc2ZTQ4MjAxNjZkZTJiYTgyNWIyOWI4YTgzNzg4ZDQyNiIsImlhdCI6MTYyNjgwNTQ2MiwibmJmIjoxNjI2ODA1NDYyLCJleHAiOjE2MjY4MDkwNjIsInN1YiI6IiIsInNjb3BlcyI6W119.rU7E_ZMDLwYvCdFGPMpoKoYJI9TiBz8Cwdj3e-Rb4aJl-5Ay3bzAGnn5_syWa0XARakPez3cR3lTS3kf3GnGMhdf_tuXG4i-NCQB-vzW8Ci-ITbSE4x99uR1_JY958mg-uYtxi6Vbrxa7X6c-Bs9UDL6XQKJrESNUC05yXtlYPVS0LS7hgwEUIzQ6FBsA3O1ZOEsKzigaoi5VxOs5ZdL8xn9fRtxs8iFnKlGFWDEA_isYS0LUFlNHANY-HnXBxzhKGlCWGTWW0Ja-jaw1LfC-FMEkg4PYUDf__Fbmf21cY429jrAyZVXEAosq6LSSB_WjwuU-RY5AVvi84dFuigBdw
|
63
|
+
User-Agent:
|
64
|
+
- Faraday v1.5.1
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
Accept-Encoding:
|
68
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
69
|
+
Accept:
|
70
|
+
- "*/*"
|
71
|
+
response:
|
72
|
+
status:
|
73
|
+
code: 200
|
74
|
+
message: OK
|
75
|
+
headers:
|
76
|
+
Date:
|
77
|
+
- Tue, 20 Jul 2021 18:43:36 GMT
|
78
|
+
Server:
|
79
|
+
- Apache/2.4.41 (Ubuntu)
|
80
|
+
Access-Control-Allow-Origin:
|
81
|
+
- "*"
|
82
|
+
Access-Control-Allow-Methods:
|
83
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
84
|
+
Access-Control-Allow-Headers:
|
85
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
86
|
+
Accept:
|
87
|
+
- application/vnd.api+json
|
88
|
+
Content-Length:
|
89
|
+
- '123'
|
90
|
+
Content-Type:
|
91
|
+
- application/vnd.api+json
|
92
|
+
body:
|
93
|
+
encoding: UTF-8
|
94
|
+
string: |-
|
95
|
+
{
|
96
|
+
"meta": {
|
97
|
+
"message": "Record with id 51f7baeb-fe82-d3c1-5ef9-60c0de2c67cf is deleted"
|
98
|
+
},
|
99
|
+
"data": []
|
100
|
+
}
|
101
|
+
recorded_at: Tue, 20 Jul 2021 18:43:36 GMT
|
102
|
+
- request:
|
103
|
+
method: delete
|
104
|
+
uri: http://18.236.231.13/suite/Api/V8/module/Contacts/3569eb8a-3288-99c3-86c8-60f721244461
|
105
|
+
body:
|
106
|
+
encoding: US-ASCII
|
107
|
+
string: ''
|
108
|
+
headers:
|
109
|
+
Authorization:
|
110
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImM2ZWZlNjdiYWVjNzI2ZTIzOTBhODY0NzI5Zjg5ZGVmOGI1ZDU4ZDVmNjVlYWQ4ZDcxNGI2ODhhOTY4N2FmNjg0ZGIyNzljZWU4ZDhiM2M5In0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiJjNmVmZTY3YmFlYzcyNmUyMzkwYTg2NDcyOWY4OWRlZjhiNWQ1OGQ1ZjY1ZWFkOGQ3MTRiNjg4YTk2ODdhZjY4NGRiMjc5Y2VlOGQ4YjNjOSIsImlhdCI6MTYyNjgwODgyMCwibmJmIjoxNjI2ODA4ODIwLCJleHAiOjE2MjY4MTI0MjAsInN1YiI6IiIsInNjb3BlcyI6W119.lJgPU-fSKofGmG3LcGQQVWyt28tTcMpjN6cxxxBuWeuogidrchZn_X1Lev-r2Uh9-qCQhX2N-GEZcIX6fUb_58ndNyMyhAmczLwEpB-3P7dYGLc9cByN1mcoRbKNiur5bF_qNm2H-1O2T3VL6LJCfTOOVW-m7R0aFKByMtMKV5tnMmslIKzZEmREGvZnq73npO35V9jQbSbW2iD8UEUhdfeI7OLX3M0lQIeEi1ERTSeOrTRybAyydpqIJ88SPsc5VsUyPaJ3N9eup4uCnXiFGRR0THTiUPUSXwt19i0nuZETTNs2_IT-MK7xFnb64_NylyqUOw5rVVAuhoJjM9yPuQ
|
111
|
+
User-Agent:
|
112
|
+
- Faraday v1.5.1
|
113
|
+
Content-Type:
|
114
|
+
- application/json
|
115
|
+
Accept-Encoding:
|
116
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
117
|
+
Accept:
|
118
|
+
- "*/*"
|
119
|
+
response:
|
120
|
+
status:
|
121
|
+
code: 200
|
122
|
+
message: OK
|
123
|
+
headers:
|
124
|
+
Date:
|
125
|
+
- Tue, 20 Jul 2021 19:20:22 GMT
|
126
|
+
Server:
|
127
|
+
- Apache/2.4.41 (Ubuntu)
|
128
|
+
Access-Control-Allow-Origin:
|
129
|
+
- "*"
|
130
|
+
Access-Control-Allow-Methods:
|
131
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
132
|
+
Access-Control-Allow-Headers:
|
133
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
134
|
+
Accept:
|
135
|
+
- application/vnd.api+json
|
136
|
+
Content-Length:
|
137
|
+
- '123'
|
138
|
+
Content-Type:
|
139
|
+
- application/vnd.api+json
|
140
|
+
body:
|
141
|
+
encoding: UTF-8
|
142
|
+
string: |-
|
143
|
+
{
|
144
|
+
"meta": {
|
145
|
+
"message": "Record with id 3569eb8a-3288-99c3-86c8-60f721244461 is deleted"
|
146
|
+
},
|
147
|
+
"data": []
|
148
|
+
}
|
149
|
+
recorded_at: Tue, 20 Jul 2021 19:20:22 GMT
|
150
|
+
- request:
|
151
|
+
method: delete
|
152
|
+
uri: http://18.236.231.13/suite/Api/V8/module/Contacts/6f0ede41-a514-1f40-d444-60f722965d92
|
153
|
+
body:
|
154
|
+
encoding: US-ASCII
|
155
|
+
string: ''
|
156
|
+
headers:
|
157
|
+
Authorization:
|
158
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6Ijg1ZTk5NWZmN2IxZTgyNGVhNGJlYjg5NjYxYWE5Mjc3OTkzYjhmOGIxNWVhNWYyODdlNjUyNDkwOTdhZGQ3ZmI5YjVjZWM2YmQ5YzIxY2RmIn0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiI4NWU5OTVmZjdiMWU4MjRlYTRiZWI4OTY2MWFhOTI3Nzk5M2I4ZjhiMTVlYTVmMjg3ZTY1MjQ5MDk3YWRkN2ZiOWI1Y2VjNmJkOWMyMWNkZiIsImlhdCI6MTYyNjgwODg2NywibmJmIjoxNjI2ODA4ODY3LCJleHAiOjE2MjY4MTI0NjcsInN1YiI6IiIsInNjb3BlcyI6W119.ND-ras3brY1XpuYLpJH_u5wQ86UD8SrOfRkdilb8xl4Te1GijM6nzbwkJghaRpkgVpOfzz_XWrbT5j1nyfjhaFw9OhgPcBtmkolrWt4t3iQ_0a_zuNOikfG-vz-6osnEFbIVJuFhFTlpXRPugr0kVymMvTTHINSR7JBPwF3eLy24JzCb5SPYhVGzqBr2HOhrkbWGOdJ-YcUOYxpw86GMttlaOAupgbTIP56_VJbWdt9v6SXt8gM6IfBuKIiObmlCiYu3R_F43ogsqrGvSw0MQm7UC-6kHgDq2f4bE6cmjm8By2Fgpf86hrh-Nd7LsvU79XdJ2XoToBlFDYXWg-_XBg
|
159
|
+
User-Agent:
|
160
|
+
- Faraday v1.5.1
|
161
|
+
Content-Type:
|
162
|
+
- application/json
|
163
|
+
Accept-Encoding:
|
164
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
165
|
+
Accept:
|
166
|
+
- "*/*"
|
167
|
+
response:
|
168
|
+
status:
|
169
|
+
code: 200
|
170
|
+
message: OK
|
171
|
+
headers:
|
172
|
+
Date:
|
173
|
+
- Tue, 20 Jul 2021 19:21:09 GMT
|
174
|
+
Server:
|
175
|
+
- Apache/2.4.41 (Ubuntu)
|
176
|
+
Access-Control-Allow-Origin:
|
177
|
+
- "*"
|
178
|
+
Access-Control-Allow-Methods:
|
179
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
180
|
+
Access-Control-Allow-Headers:
|
181
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
182
|
+
Accept:
|
183
|
+
- application/vnd.api+json
|
184
|
+
Content-Length:
|
185
|
+
- '123'
|
186
|
+
Content-Type:
|
187
|
+
- application/vnd.api+json
|
188
|
+
body:
|
189
|
+
encoding: UTF-8
|
190
|
+
string: |-
|
191
|
+
{
|
192
|
+
"meta": {
|
193
|
+
"message": "Record with id 6f0ede41-a514-1f40-d444-60f722965d92 is deleted"
|
194
|
+
},
|
195
|
+
"data": []
|
196
|
+
}
|
197
|
+
recorded_at: Tue, 20 Jul 2021 19:21:09 GMT
|
198
|
+
- request:
|
199
|
+
method: delete
|
200
|
+
uri: http://18.236.231.13/suite/Api/V8/module/Contacts/9d40947e-6def-c134-1220-60f834d5bf7a
|
201
|
+
body:
|
202
|
+
encoding: US-ASCII
|
203
|
+
string: ''
|
204
|
+
headers:
|
205
|
+
Authorization:
|
206
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImUxMGFmYWY5MzJhZDU5NzU0NzA3MzZjNzBkY2I0YTIxZWRjNGQ1NWE1NzEzMjU2YmRiOTIzMjM5MDk3NWY1ZjcyM2VmYjBkMzgxMDU2NGQzIn0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiJlMTBhZmFmOTMyYWQ1OTc1NDcwNzM2YzcwZGNiNGEyMWVkYzRkNTVhNTcxMzI1NmJkYjkyMzIzOTA5NzVmNWY3MjNlZmIwZDM4MTA1NjRkMyIsImlhdCI6MTYyNjg3OTAyNywibmJmIjoxNjI2ODc5MDI3LCJleHAiOjE2MjY4ODI2MjcsInN1YiI6IiIsInNjb3BlcyI6W119.LHBpzguP9CQSbGENlhUJR4TeY8mw9aN-T1usv3m6vjohEunK7KYEpOzgRFrRpQsg3jipnLGEJoZy8YI__hLmxIxEl5YTrQWk5_-ISbDr9tEerk_u58oukF3r0TTETa87A_-J7OTu8tTMOdzxXBNE_V3lTHrWer3yTpTzQKi9SGSPIDZWoEWJY08zJxJQikseVqgGsF0VyVmK7tSE7_v8aTzOTwuJrmrkA9RPznq22kogQKSnFC4c-BtLyVVh_Yq_brgMjzJWrmjckmvt3RRk_bxmkie5e97ZX0_BUd9KjhQ0l4JpEnmDfTJtCEqxRFEeyJj1p5oMVO2ionRVlNgGjw
|
207
|
+
User-Agent:
|
208
|
+
- Faraday v1.5.1
|
209
|
+
Content-Type:
|
210
|
+
- application/json
|
211
|
+
Accept-Encoding:
|
212
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
213
|
+
Accept:
|
214
|
+
- "*/*"
|
215
|
+
response:
|
216
|
+
status:
|
217
|
+
code: 200
|
218
|
+
message: OK
|
219
|
+
headers:
|
220
|
+
Date:
|
221
|
+
- Wed, 21 Jul 2021 14:50:28 GMT
|
222
|
+
Server:
|
223
|
+
- Apache/2.4.41 (Ubuntu)
|
224
|
+
Access-Control-Allow-Origin:
|
225
|
+
- "*"
|
226
|
+
Access-Control-Allow-Methods:
|
227
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
228
|
+
Access-Control-Allow-Headers:
|
229
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
230
|
+
Accept:
|
231
|
+
- application/vnd.api+json
|
232
|
+
Content-Length:
|
233
|
+
- '123'
|
234
|
+
Content-Type:
|
235
|
+
- application/vnd.api+json
|
236
|
+
body:
|
237
|
+
encoding: UTF-8
|
238
|
+
string: |-
|
239
|
+
{
|
240
|
+
"meta": {
|
241
|
+
"message": "Record with id 9d40947e-6def-c134-1220-60f834d5bf7a is deleted"
|
242
|
+
},
|
243
|
+
"data": []
|
244
|
+
}
|
245
|
+
recorded_at: Wed, 21 Jul 2021 14:50:28 GMT
|
246
|
+
- request:
|
247
|
+
method: post
|
248
|
+
uri: http://18.236.231.13/suite/Api/V8/module
|
249
|
+
body:
|
250
|
+
encoding: UTF-8
|
251
|
+
string: '{"data":{"type":"Contacts","attributes":{"last_name":"API Tester"}}}'
|
252
|
+
headers:
|
253
|
+
Authorization:
|
254
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjM2NjVmOWYzN2UxMjRjNDg3ODZlNjVhMWZkZjBiYmQ5Y2UxZDhmMjFjZjUxZDRlYTA3NWM3Y2U0YzJmMzEwNmRiYWExMjZlOTlkOWQyOWYzIn0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiIzNjY1ZjlmMzdlMTI0YzQ4Nzg2ZTY1YTFmZGYwYmJkOWNlMWQ4ZjIxY2Y1MWQ0ZWEwNzVjN2NlNGMyZjMxMDZkYmFhMTI2ZTk5ZDlkMjlmMyIsImlhdCI6MTYyNjg4MzI5MywibmJmIjoxNjI2ODgzMjkzLCJleHAiOjE2MjY4ODY4OTMsInN1YiI6IiIsInNjb3BlcyI6W119.JYOlhp9Jn2DHJJpIXAC-2w4bX3MMaglDpsNhMGIeQihOgGmj5YNAuzZ8dkfbPu6NMsx_bHZOz6qXst8Je4PF4k4smnBDvFvNHx18gvs6po_8_q_TW8Io3sJfeQaZAjiTWLODPe-tsHrJPKFkX0b0birzFWrHo4nvny7V4KW6FI059eQTpoo76KtL579AN2mm14YelQGcLzwRp5IUoFccWIgS6prPGJYcgJR_Aihyo50NmvELcAoU3ZlzsMdLnFBcA18rD2uikDkfGOqShQBYIUNiQlHxcZmSOfptekDuElBCRtnJXkyToi95hL-Pgg5VCdFx2fEuIcjeoZTwmOZYWQ
|
255
|
+
User-Agent:
|
256
|
+
- Faraday v1.5.1
|
257
|
+
Content-Type:
|
258
|
+
- application/json
|
259
|
+
Accept-Encoding:
|
260
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
261
|
+
Accept:
|
262
|
+
- "*/*"
|
263
|
+
response:
|
264
|
+
status:
|
265
|
+
code: 201
|
266
|
+
message: Created
|
267
|
+
headers:
|
268
|
+
Date:
|
269
|
+
- Wed, 21 Jul 2021 16:01:35 GMT
|
270
|
+
Server:
|
271
|
+
- Apache/2.4.41 (Ubuntu)
|
272
|
+
Access-Control-Allow-Origin:
|
273
|
+
- "*"
|
274
|
+
Access-Control-Allow-Methods:
|
275
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
276
|
+
Access-Control-Allow-Headers:
|
277
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
278
|
+
Accept:
|
279
|
+
- application/vnd.api+json
|
280
|
+
Content-Length:
|
281
|
+
- '6283'
|
282
|
+
Content-Type:
|
283
|
+
- application/vnd.api+json
|
284
|
+
body:
|
285
|
+
encoding: UTF-8
|
286
|
+
string: |-
|
287
|
+
{
|
288
|
+
"data": {
|
289
|
+
"type": "Contact",
|
290
|
+
"id": "1cfbe8c6-31c2-075f-889e-60f8446a0e41",
|
291
|
+
"attributes": {
|
292
|
+
"name": "API Tester",
|
293
|
+
"date_entered": "2021-07-21T16:01:00+00:00",
|
294
|
+
"date_modified": "2021-07-21T16:01:00+00:00",
|
295
|
+
"modified_user_id": "1",
|
296
|
+
"modified_by_name": "Dino Simone",
|
297
|
+
"created_by": "1",
|
298
|
+
"created_by_name": "Dino Simone",
|
299
|
+
"description": "",
|
300
|
+
"deleted": "0",
|
301
|
+
"created_by_link": "",
|
302
|
+
"modified_user_link": "",
|
303
|
+
"assigned_user_id": "",
|
304
|
+
"assigned_user_name": "",
|
305
|
+
"assigned_user_link": "",
|
306
|
+
"SecurityGroups": "",
|
307
|
+
"salutation": "",
|
308
|
+
"first_name": "",
|
309
|
+
"last_name": "API Tester",
|
310
|
+
"full_name": "API Tester",
|
311
|
+
"title": "",
|
312
|
+
"photo": "",
|
313
|
+
"department": "",
|
314
|
+
"do_not_call": "0",
|
315
|
+
"phone_home": "",
|
316
|
+
"email": "",
|
317
|
+
"phone_mobile": "",
|
318
|
+
"phone_work": "",
|
319
|
+
"phone_other": "",
|
320
|
+
"phone_fax": "",
|
321
|
+
"email1": "",
|
322
|
+
"email2": "",
|
323
|
+
"invalid_email": "",
|
324
|
+
"email_opt_out": "",
|
325
|
+
"lawful_basis": "",
|
326
|
+
"date_reviewed": "",
|
327
|
+
"lawful_basis_source": "",
|
328
|
+
"primary_address_street": "",
|
329
|
+
"primary_address_street_2": "",
|
330
|
+
"primary_address_street_3": "",
|
331
|
+
"primary_address_city": "",
|
332
|
+
"primary_address_state": "",
|
333
|
+
"primary_address_postalcode": "",
|
334
|
+
"primary_address_country": "",
|
335
|
+
"alt_address_street": "",
|
336
|
+
"alt_address_street_2": "",
|
337
|
+
"alt_address_street_3": "",
|
338
|
+
"alt_address_city": "",
|
339
|
+
"alt_address_state": "",
|
340
|
+
"alt_address_postalcode": "",
|
341
|
+
"alt_address_country": "",
|
342
|
+
"assistant": "",
|
343
|
+
"assistant_phone": "",
|
344
|
+
"email_addresses_primary": "",
|
345
|
+
"email_addresses": "",
|
346
|
+
"email_addresses_non_primary": "",
|
347
|
+
"email_and_name1": "",
|
348
|
+
"lead_source": "",
|
349
|
+
"account_name": "",
|
350
|
+
"account_id": "",
|
351
|
+
"opportunity_role_fields": "",
|
352
|
+
"opportunity_role_id": "",
|
353
|
+
"opportunity_role": "",
|
354
|
+
"reports_to_id": "",
|
355
|
+
"report_to_name": "",
|
356
|
+
"birthdate": "",
|
357
|
+
"accounts": "",
|
358
|
+
"reports_to_link": {},
|
359
|
+
"opportunities": "",
|
360
|
+
"bugs": "",
|
361
|
+
"calls": "",
|
362
|
+
"cases": "",
|
363
|
+
"direct_reports": "",
|
364
|
+
"emails": "",
|
365
|
+
"documents": "",
|
366
|
+
"leads": "",
|
367
|
+
"meetings": "",
|
368
|
+
"notes": "",
|
369
|
+
"project": "",
|
370
|
+
"project_resource": "",
|
371
|
+
"am_projecttemplates_resources": "",
|
372
|
+
"am_projecttemplates_contacts_1": "",
|
373
|
+
"tasks": "",
|
374
|
+
"tasks_parent": "",
|
375
|
+
"notes_parent": "",
|
376
|
+
"user_sync": {},
|
377
|
+
"campaign_id": "",
|
378
|
+
"campaign_name": "",
|
379
|
+
"campaigns": "",
|
380
|
+
"campaign_contacts": {},
|
381
|
+
"c_accept_status_fields": "",
|
382
|
+
"m_accept_status_fields": "",
|
383
|
+
"accept_status_id": "",
|
384
|
+
"accept_status_name": "",
|
385
|
+
"prospect_lists": "",
|
386
|
+
"sync_contact": "",
|
387
|
+
"fp_events_contacts": "",
|
388
|
+
"aos_quotes": "",
|
389
|
+
"aos_invoices": "",
|
390
|
+
"aos_contracts": "",
|
391
|
+
"e_invite_status_fields": "",
|
392
|
+
"event_status_name": "",
|
393
|
+
"event_invite_id": "",
|
394
|
+
"e_accept_status_fields": "",
|
395
|
+
"event_accept_status": "",
|
396
|
+
"event_status_id": "",
|
397
|
+
"project_contacts_1": "",
|
398
|
+
"aop_case_updates": "",
|
399
|
+
"joomla_account_id": "",
|
400
|
+
"portal_account_disabled": false,
|
401
|
+
"joomla_account_access": "",
|
402
|
+
"portal_user_type": "Single"
|
403
|
+
},
|
404
|
+
"relationships": {
|
405
|
+
"AM_ProjectTemplates": {
|
406
|
+
"links": {
|
407
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/am_projecttemplates_contacts_1"
|
408
|
+
}
|
409
|
+
},
|
410
|
+
"AOS_Contracts": {
|
411
|
+
"links": {
|
412
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/aos_contracts"
|
413
|
+
}
|
414
|
+
},
|
415
|
+
"AOS_Invoices": {
|
416
|
+
"links": {
|
417
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/aos_invoices"
|
418
|
+
}
|
419
|
+
},
|
420
|
+
"AOS_Quotes": {
|
421
|
+
"links": {
|
422
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/aos_quotes"
|
423
|
+
}
|
424
|
+
},
|
425
|
+
"CampaignLog": {
|
426
|
+
"links": {
|
427
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/campaigns"
|
428
|
+
}
|
429
|
+
},
|
430
|
+
"EmailAddress": {
|
431
|
+
"links": {
|
432
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/email_addresses"
|
433
|
+
}
|
434
|
+
},
|
435
|
+
"Opportunities": {
|
436
|
+
"links": {
|
437
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/opportunities"
|
438
|
+
}
|
439
|
+
},
|
440
|
+
"Project": {
|
441
|
+
"links": {
|
442
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/project_contacts_1"
|
443
|
+
}
|
444
|
+
},
|
445
|
+
"ProspectLists": {
|
446
|
+
"links": {
|
447
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/prospect_lists"
|
448
|
+
}
|
449
|
+
},
|
450
|
+
"SecurityGroups": {
|
451
|
+
"links": {
|
452
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/SecurityGroups"
|
453
|
+
}
|
454
|
+
},
|
455
|
+
"Users": {
|
456
|
+
"links": {
|
457
|
+
"related": "V8/module/1cfbe8c6-31c2-075f-889e-60f8446a0e41/relationships/created_by_link"
|
458
|
+
}
|
459
|
+
}
|
460
|
+
}
|
461
|
+
}
|
462
|
+
}
|
463
|
+
recorded_at: Wed, 21 Jul 2021 16:01:35 GMT
|
464
|
+
- request:
|
465
|
+
method: delete
|
466
|
+
uri: http://18.236.231.13/suite/Api/V8/module/Contacts/1cfbe8c6-31c2-075f-889e-60f8446a0e41
|
467
|
+
body:
|
468
|
+
encoding: US-ASCII
|
469
|
+
string: ''
|
470
|
+
headers:
|
471
|
+
Authorization:
|
472
|
+
- Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjM2NjVmOWYzN2UxMjRjNDg3ODZlNjVhMWZkZjBiYmQ5Y2UxZDhmMjFjZjUxZDRlYTA3NWM3Y2U0YzJmMzEwNmRiYWExMjZlOTlkOWQyOWYzIn0.eyJhdWQiOiI0MWZkZmY0Ni0wNDk5LWFkZTgtZjRkNS02MGVlZmNkMmQ1ZDYiLCJqdGkiOiIzNjY1ZjlmMzdlMTI0YzQ4Nzg2ZTY1YTFmZGYwYmJkOWNlMWQ4ZjIxY2Y1MWQ0ZWEwNzVjN2NlNGMyZjMxMDZkYmFhMTI2ZTk5ZDlkMjlmMyIsImlhdCI6MTYyNjg4MzI5MywibmJmIjoxNjI2ODgzMjkzLCJleHAiOjE2MjY4ODY4OTMsInN1YiI6IiIsInNjb3BlcyI6W119.JYOlhp9Jn2DHJJpIXAC-2w4bX3MMaglDpsNhMGIeQihOgGmj5YNAuzZ8dkfbPu6NMsx_bHZOz6qXst8Je4PF4k4smnBDvFvNHx18gvs6po_8_q_TW8Io3sJfeQaZAjiTWLODPe-tsHrJPKFkX0b0birzFWrHo4nvny7V4KW6FI059eQTpoo76KtL579AN2mm14YelQGcLzwRp5IUoFccWIgS6prPGJYcgJR_Aihyo50NmvELcAoU3ZlzsMdLnFBcA18rD2uikDkfGOqShQBYIUNiQlHxcZmSOfptekDuElBCRtnJXkyToi95hL-Pgg5VCdFx2fEuIcjeoZTwmOZYWQ
|
473
|
+
User-Agent:
|
474
|
+
- Faraday v1.5.1
|
475
|
+
Content-Type:
|
476
|
+
- application/json
|
477
|
+
Accept-Encoding:
|
478
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
479
|
+
Accept:
|
480
|
+
- "*/*"
|
481
|
+
response:
|
482
|
+
status:
|
483
|
+
code: 200
|
484
|
+
message: OK
|
485
|
+
headers:
|
486
|
+
Date:
|
487
|
+
- Wed, 21 Jul 2021 16:01:35 GMT
|
488
|
+
Server:
|
489
|
+
- Apache/2.4.41 (Ubuntu)
|
490
|
+
Access-Control-Allow-Origin:
|
491
|
+
- "*"
|
492
|
+
Access-Control-Allow-Methods:
|
493
|
+
- POST, GET, OPTIONS, PUT, DELETE
|
494
|
+
Access-Control-Allow-Headers:
|
495
|
+
- Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
|
496
|
+
Accept:
|
497
|
+
- application/vnd.api+json
|
498
|
+
Content-Length:
|
499
|
+
- '123'
|
500
|
+
Content-Type:
|
501
|
+
- application/vnd.api+json
|
502
|
+
body:
|
503
|
+
encoding: UTF-8
|
504
|
+
string: |-
|
505
|
+
{
|
506
|
+
"meta": {
|
507
|
+
"message": "Record with id 1cfbe8c6-31c2-075f-889e-60f8446a0e41 is deleted"
|
508
|
+
},
|
509
|
+
"data": []
|
510
|
+
}
|
511
|
+
recorded_at: Wed, 21 Jul 2021 16:01:35 GMT
|
512
|
+
recorded_with: VCR 6.0.0
|