Wiki source code of ONEcount API Documentation

Version 9.1 by Rayaan Ahmed on 2024/02/26 11:24

Show last authors
1 (% class="western" %)
2 **Introduction**
3
4 (% class="western" %)
5 ONEcount REST API is designed to allow you to directly manipulate the underlying data within the ONEcount application. This API can be used to lookup, create and update different ONEcount data components which are listed below.
6
7 (% class="western" %)
8 REST takes advantage of the HTTP request methods to layer itself into the existing HTTP architecture. These operations consist of the following:
9
10 (% class="western" %)
11 **GET** - Used for lookup of resources
12
13 1. (((
14 (% class="western" %)
15 **PUT** - Used to update a resource
16 )))
17 1. (((
18 (% class="western" %)
19 **POST** - Used to create a new resource
20 )))
21
22 (% class="western" %)
23 Specifically, the ONEcount API provides to the following components:
24
25 1. User data
26 11. List users
27 11. Lookup users
28 11. Create users
29 11. Update users
30 1. Questions
31 11. Lookup questions
32 11. List questions
33 11. Create questions
34 1. Product data
35 11. Lookup products
36 11. Create products
37 11. Update products
38 1. Term Data
39 11. Lookup terms
40 11. Create terms
41 11. Update terms
42 1. Resource Data
43 11. Lookup resources
44 11. Create resources
45 11. Update resources
46 1. Transaction data
47 11. Lookup transactions
48 11. Create transactions
49 1. Source Codes
50 11. Lookup source code
51 11. Create source codes
52 11. Update source codes
53 1. Attach a resource to a product
54 1. Leads
55 11. Create a lead
56 1. Engagements
57 11. Get all Engagements
58 11. Get specific engagement by engagement id
59 11. Create Engagements
60 11. Update Engagements
61 11. Add users data to Engagement
62 1. Segments
63 11. Get all Segments
64 11. Get specific segment by segment id
65 11. Add users to segment
66 11. Get all segment ids for a user
67
68
69 (% class="western" %)
70 **Accessing API**
71
72 (% class="western" %)
73 **REST API URL: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/||rel="nofollow" shape="rect" class="external-link"]]**
74
75 (% class="western" %)
76 **Appkey**: THIS WILL BE PROVIDED TO YOU
77
78
79 (% class="western" %)
80 Your HTTP requests to a REST API resource should contain the following information:
81
82 * (((
83 (% class="western" %)
84 An HTTP method GET, POST, PUT.
85 )))
86 * (((
87 (% class="western" %)
88 An Appkey sent as Appkey header in the http request to authenticate the request.
89 )))
90 * (((
91 (% class="western" %)
92 Resource name in the url (/resourcename)
93 )))
94 * (((
95 (% class="western" %)
96 Any JSON data or JSON files containing information needed for requests, such as updating a record with new information.
97 )))
98
99
100 (% class="western" %)
101 **General API Usage**
102
103 (% class="western" %)
104 The request data in POST (for create and update) will consist of request parameters required by each method in JSON format. Value of resource will determine which resource is being requested and the access method will determine whether you are trying to create, update or lookup that resource.
105
106 (% class="western" %)
107 For lookup, the parameter list will be part of the request url.
108
109
110 (% class="western" %)
111 **Response**
112
113 (% class="western" %)
114 API will output the response in a JSON format discussed below.
115
116 {{code language="yml" theme="RDark" title="Response"}}
117 {
118 "result": {
119 "success": "1",
120 "error": {
121 "code": "0",
122 "message": ""
123 }
124 },
125 "Users": {
126 "Id": "12562",
127 "PartnerId": "5467",
128 "Demo": {
129 "6": "Rayaan",
130 "7": "Ahmed"
131 }
132 }
133 }
134 {{/code}}
135
136
137 (% class="western" %)
138 The result of the api request will be determined by the value of the success property of result object. Here the value of success will either be 1 (true) or 0 (false) depending on whether the requested action succeed.
139
140
141 (% class="western" %)
142 If value of success is 0 then an error will be generated inside the result object. Code property will have an error code. message property will have the details about the error. This value might be used to display the error in the client application. The response will always have a result object in it plus the individual response listed for each method.
143
144 If the value of success is 1 then the response parameters of the called method will also be output.
145
146 (% class="western" %)
147 For (% class="StyledLeaf___StyledSpan-sc-129cvv1-0 hSAwv slate-bold" %)**GET **requests we can pass** limit **as parameter in URL.
148
149 === **COMPONENT: Users** ===
150
151 (% class="western" %)
152 Users means the customers of your system. Users can be added, updated and searched for using the users resource from the api. For lookup, If a return parameter is specified Users object will have those fields. If nothing is specified by default only UserId is returned.
153
154 (% class="western" %)
155 Additionally (Array of) transaction object specifying parts of the transaction to be added to the new user can be specified. UserId, TransactionId and SubscriptionType will be ignored if specified for this case. As this is new user and new transaction is being added.
156
157 (% class="western" %)
158 In this case the provided demographic information in users object will be used to create a new user in ONEcount and then a response will be generated. Before creating a new user, a check for duplicate will be performed based on Dedupe columns and if found, and error code will be generated.
159
160 (% class="western" %)
161 If username and password is not one of the parameters being passed, then a random username and password will be generated for the user while creating his user account in ONEcount.
162
163 (% class="western" %)
164 Return parameter will have the comma separated list of question Ids that is requested back from the API.
165
166 (% class="western" %)
167 Return is an optional parameter in request. If return is not requested then by default, only UserId (which is ONEcount ID) will be returned in the Users object.
168
169
170 (% class="wrapped" %)
171 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
172 (((
173 (% class="western" %)
174 **Method**
175 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
176 (((
177 (% class="western" %)
178 **Url**
179 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
180 (((
181 (% class="western" %)
182 **Action**
183 )))
184 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
185 (((
186 (% class="western" %)
187 GET
188 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
189 (((
190 (% class="western" %)
191 /users
192 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
193 (((
194 (% class="western" %)
195 Get users data limiting 25.
196 )))
197 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
198 (((
199 (% class="western" %)
200 GET
201 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
202 (((
203 (% class="western" %)
204 /users/<ocid or ocid_hash>
205 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
206 (((
207 (% class="western" %)
208 Get data for user id 1. The user id can be a numeric value or a hash
209 )))
210 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
211 (((
212 (% class="western" %)
213 GET
214 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
215 (((
216 (% class="western" %)
217 /users/lookup?1=user1@email.com&return=1,2
218 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
219 (((
220 (% class="western" %)
221 Lookup for user whose question id (1) is equal to supplied value. The users object returned will have value of questions 1 & 2. Here for example assumed to be firstname and last name.
222
223 (% class="western" %)
224 Return parameter defines a CSV of question id that are requested back in response.
225 )))
226 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
227 (((
228 (% class="western" %)
229 POST
230 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
231 (((
232 (% class="western" %)
233 /users
234 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
235 (((
236 (% class="western" %)
237 Create a new users
238
239 (% class="western" %)
240 Parameters required to create the user needs to be sent as post data in JSON format.
241 )))
242 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
243 (((
244 (% class="western" %)
245 PUT
246 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
247 (((
248 (% class="western" %)
249 /users/1
250 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
251 (((
252 (% class="western" %)
253 Update user id 1. The user id can be a numeric value or a hash
254
255 (% class="western" %)
256 Parameters required to update the user needs to be sent as post data in JSON format.
257 )))
258 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
259 (((
260 (% class="western" %)
261 GET
262 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
263 (((
264 (% class="western" %)
265 /users/1/partners/2
266 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
267 (((
268 (% class="western" %)
269 Get user id 1 and partner id 2's ONEcount hash. The user id can be a numeric value or a hash.
270 )))
271 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
272 (((
273 (% class="western" %)
274 POST
275 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
276 (((
277 (% class="western" %)
278 /users/login
279 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
280 (((
281 (% class="western" %)
282 Check to see user exist with username/email and password.
283
284 (% class="western" %)
285 Parameters required to create JSON object with **u** as username, **e** as email and **p** as password and sent is as POST param.
286
287 (% class="western" %)
288 Example:
289
290 (% class="western" %)
291 {"u":"abc@one-count.com","e":"abc@one-count.com","p":"1234"}
292
293 (% class="western" %)
294 OR
295
296 (% class="western" %)
297 {"u":"abc@one-count.com","p":"1234"}
298
299 (% class="western" %)
300 OR
301
302 (% class="western" %)
303 {"e":"abc@one-count.com","p":"1234"}
304
305 (% class="western" %)
306 **OUTPUT** : Should get OCID of the user if it finds it otherwise get and error with msg user not found.
307 )))
308
309 (% id="HGETAllUsers" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
310 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Users(%%) ==
311
312 ----
313
314 ----
315
316 {{panel bgColor="#D3D3D3" width="100%"}}
317 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users
318 {{/panel}}
319
320 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
321
322 ----
323
324 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
325
326 ==== Example ====
327
328 ----
329
330 (% style="color:#6b6b6b" %)Request
331
332 {{code language="php" theme="RDark" title="Get All Users Request"}}
333 <?php
334
335 $curl = curl_init();
336
337 curl_setopt_array($curl, array(
338 CURLOPT_URL => 'https://api.onecount.net/v2/users',
339 CURLOPT_RETURNTRANSFER => true,
340 CURLOPT_ENCODING => '',
341 CURLOPT_MAXREDIRS => 10,
342 CURLOPT_TIMEOUT => 0,
343 CURLOPT_FOLLOWLOCATION => true,
344 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
345 CURLOPT_CUSTOMREQUEST => 'GET',
346 CURLOPT_HTTPHEADER => array(
347 'Appkey: {{ONECOUNT API KEY}}'
348 ),
349 ));
350
351 $response = curl_exec($curl);
352
353 curl_close($curl);
354 echo $response;
355
356
357 {{/code}}
358
359
360 (% style="color:#6b6b6b" %)Response  200 OK
361
362 {{code language="yml" theme="RDark" collapse="true" title="Get All Users Response"}}
363 {
364 "result": {
365 "success": "1",
366 "error": {
367 "code": "",
368 "message": ""
369 }
370 },
371 "Users": [
372 {
373 "Id": 10,
374 "OCID_HASH": "309d0ba643ac9cf164fa7089db622444fb82bf031c79ebb97c8566d0b91a224c",
375 "Demo": {
376 "1": "ORISH+IMNG12373@gcnmedia.com",
377 "2": "user_26_2",
378 "3": "pass_262",
379 "4": "orish123"
380 }
381 },
382 {
383 "Id": 26,
384 "OCID_HASH": "362b0815ab579017802c0539fa30d45c46f2e357025756e3a998225aa2c3f123",
385 "Demo": {
386 "1": "ORISH+IMNG12374@gcnmedia.com",
387 "2": "user_82_2",
388 "3": "pass_822",
389 "4": "orish111"
390 }
391 },
392 {
393 "Id": 34,
394 "OCID_HASH": "508ae86cfa9185a59a855b6f0aaf1ef52e1895c7a7bd1ee01d1f7be82ea233d2",
395 "Demo": {
396 "1": "",
397 "2": "user_1405614567717",
398 "3": "",
399 "4": "sonish",
400 "5": "shrestha",
401 "6": "Test",
402 "7": "GCN",
403 "8": "Sterling",
404 "9": "Norwalk",
405 "10": "",
406 "11": "",
407 "12": "",
408 "13": "Nepa",
409 "14": "",
410 "15": ""
411 }
412 },
413 {
414 "Id": 42,
415 "OCID_HASH": "3fd11fb98076330290d14edd70265c273eaf5ad72e498fc9ac4f2b580a2f36cc",
416 "Demo": {
417 "1": "orish@gcnpublishing.com",
418 "2": "user_106_42",
419 "3": "f5a622347842b9384cae63bb998f2aa19aea2ebc43fa2f00800e9accd85a8dd1",
420 "4": "Orish",
421 "5": "Shrestha",
422 "6": "Director of Engineering",
423 "7": "ONEcount",
424 "8": "194 Main Street",
425 "9": "Suite 2NW",
426 "10": "Norwalk",
427 "11": "CT",
428 "12": "06851",
429 "13": "",
430 "15": "",
431 "106": "",
432 "114": "",
433 "130": "",
434 "138": "",
435 "146": "",
436 "234": "",
437 "242": "",
438 "250": ""
439 }
440 },
441 {
442 "Id": 50,
443 "OCID_HASH": "88d721f543c79f8ea718d9020897c9036d1d303099a649585f6d4c37e354c5d3",
444 "Demo": {
445 "1": "sundeep@gcnpublishing.com",
446 "2": "",
447 "3": "",
448 "4": "Sundeep",
449 "5": "Dangol",
450 "6": "Director of Integrations",
451 "7": "ONEcount",
452 "8": "194 Main Street",
453 "9": "Suite 2NW",
454 "10": "Norwalk",
455 "11": "CT",
456 "12": "06851",
457 "13": "",
458 "15": "",
459 "106": "",
460 "114": "",
461 "130": "",
462 "138": "",
463 "146": "",
464 "234": "",
465 "242": ""
466 }
467 },
468 {
469 "Id": 58,
470 "OCID_HASH": "c45f5d1d27364ee19973148d6c02999cbfbc8b2ca80f7655dd6a873b864eb211",
471 "Demo": {
472 "1": "sean@gcnpublishing.com",
473 "2": "user_106_34",
474 "3": "pass_10634",
475 "4": "Sean",
476 "5": "Fulton",
477 "6": "Vice President",
478 "7": "ONEcount",
479 "8": "194 Main Street",
480 "9": "Suite 2NW",
481 "10": "Norwalk",
482 "11": "CT",
483 "12": "06851",
484 "13": "UNITED STATES"
485 }
486 },
487 {
488 "Id": 66,
489 "OCID_HASH": "f037520f7af46301532a95b39d8fd8e607988afe3c7b67f086740e6676775bee",
490 "Demo": {
491 "1": "joanne@gcnpublishing.com",
492 "2": "user_106_2",
493 "3": "c55b18c5a4e475034ccc8cd14e132e1fd7e2aadcd8dcc625996ba51d145f160e",
494 "4": "Joanne",
495 "5": "Persico",
496 "6": "President",
497 "7": "ONEcount",
498 "8": "194 Main Street",
499 "9": "Suite 2NW",
500 "10": "Norwalk",
501 "11": "CT",
502 "12": "06851",
503 "13": "UNITED STATES",
504 "234": "",
505 "242": "",
506 "250": ""
507 }
508 },
509 {
510 "Id": 74,
511 "OCID_HASH": "abb8adfb275030ad96808967edea5003e3ed9da5965b6d8f4537597dff17af4f",
512 "Demo": {
513 "1": "melanie@gcnpublishing.com",
514 "2": "user_106_18",
515 "3": "pass_10618",
516 "4": "Melanie",
517 "5": "Mason",
518 "6": "Director of Customer Experience",
519 "7": "ONEcount",
520 "8": "194 Main Street",
521 "9": "Suite 2NW",
522 "10": "Norwalk",
523 "11": "CT",
524 "12": "06851",
525 "13": "UNITED STATES",
526 "14": "",
527 "15": "",
528 "106": "",
529 "114": "",
530 "130": "",
531 "138": "",
532 "146": "",
533 "154": "",
534 "162": "",
535 "170": "",
536 "178": "",
537 "186": "",
538 "202": "",
539 "218": "",
540 "226": "",
541 "234": "",
542 "242": "",
543 "250": ""
544 }
545 },
546 {
547 "Id": 82,
548 "OCID_HASH": "6b2635a195d46e9df53ec6069d198fa0fe26d26111c0b71b9bc39652935f6034",
549 "Demo": {
550 "1": "doug@gcnpublishing.com",
551 "2": "user_106_58",
552 "3": "pass_10658",
553 "4": "Doug",
554 "5": "LaFarge",
555 "7": "ONEcount",
556 "8": "194 Main Street",
557 "9": "Suite 2NW",
558 "10": "Norwalk",
559 "11": "CT",
560 "12": "06851",
561 "13": "UNITED STATES"
562 }
563 },
564 {
565 "Id": 90,
566 "OCID_HASH": "869434d36ef71f8244c5eacaac35cb87d9ee16f3c8bbeddaddb87869588deb52",
567 "Demo": {
568 "1": "subash@gcnpublishing.com",
569 "2": "user_106_50",
570 "3": "pass_10650",
571 "4": "Subash",
572 "5": "Tamang",
573 "7": "ONEcount",
574 "8": "194 Main Street",
575 "9": "Suite 2NW",
576 "10": "Norwalk",
577 "11": "CT",
578 "12": "06851",
579 "13": "UNITED STATES"
580 }
581 },
582 {
583 "Id": 98,
584 "OCID_HASH": "f46e4d07d8c2aede8e3f0b4d30cf984f9ce507147b75cff17315642d456d7cca",
585 "Demo": {
586 "1": "sonish@gcnpublishing.com",
587 "2": "user_106_10",
588 "3": "pass_10610",
589 "4": "Sonishs",
590 "5": "Shrestha",
591 "8": "334 Street",
592 "10": "Ashburn",
593 "11": "VA",
594 "12": "11118",
595 "13": "United States"
596 }
597 },
598 {
599 "Id": 162,
600 "OCID_HASH": "86616a428abeabe722079cb29ffd3b76341aa7895b2bd3579dfd89e01a737f0c",
601 "Demo": {
602 "1": "orish+1@gcnpublishing.com",
603 "2": "user_130_42",
604 "3": "pass_13042",
605 "4": "OrishGCN",
606 "5": "Shrestha",
607 "8": "123 street",
608 "10": "New Rochelle",
609 "11": "NY",
610 "12": "11111",
611 "13": "United States"
612 }
613 },
614 {
615 "Id": 170,
616 "OCID_HASH": "3fb40dbcd3c0ca47fd3a80f5a34290c68a2e7ff79d4d8f28b388677bea2df2ac",
617 "Demo": {
618 "1": "sundeep+1@gcnpublishing.com",
619 "2": "user_130_26",
620 "3": "pass_13026",
621 "4": "SundeepGCN",
622 "5": "Dangol",
623 "8": "456 Street",
624 "10": "Bridgeport",
625 "11": "CT",
626 "12": "11112",
627 "13": "United States"
628 }
629 },
630 {
631 "Id": 178,
632 "OCID_HASH": "ca72068a59896a3cec1faf52a4701d13b539039467cbe9d5d9b60b54e263040f",
633 "Demo": {
634 "1": "sean+1@gcnpublishing.com",
635 "2": "user_130_34",
636 "3": "pass_13034",
637 "4": "SeanGCN",
638 "5": "Fulton",
639 "8": "222 Street",
640 "10": "Norwalk",
641 "11": "CT",
642 "12": "11113",
643 "13": "United States"
644 }
645 },
646 {
647 "Id": 186,
648 "OCID_HASH": "4b643f02f3d30d0b6ae465b4d758a721574e798712c3d42bd5458a1fd5634243",
649 "Demo": {
650 "1": "joanne+1@gcnpublishing.com",
651 "2": "user_130_2",
652 "3": "pass_1302",
653 "4": "JoanneGCN",
654 "5": "Persico",
655 "8": "222 Street",
656 "10": "Norwalk",
657 "11": "CT",
658 "12": "11114",
659 "13": "United States"
660 }
661 },
662 {
663 "Id": 194,
664 "OCID_HASH": "d3200217585d2d954e0b55ee9ff1c939f265067420ff82c6e924dcdd71ccc960",
665 "Demo": {
666 "1": "melanie+1@gcnpublishing.com",
667 "2": "user_130_18",
668 "3": "pass_13018",
669 "4": "MelanieGCN",
670 "5": "Mason",
671 "6": "",
672 "7": "",
673 "8": "345 Street",
674 "9": "",
675 "10": "Norwalk",
676 "11": "CT",
677 "12": "11115",
678 "13": "United States",
679 "14": "",
680 "15": "",
681 "106": "",
682 "114": "",
683 "130": "",
684 "138": "",
685 "146": "",
686 "154": "",
687 "162": "",
688 "170": "",
689 "178": "",
690 "186": "",
691 "202": "",
692 "218": "",
693 "226": "",
694 "234": "",
695 "242": "",
696 "250": "",
697 "266": "01"
698 }
699 },
700 {
701 "Id": 202,
702 "OCID_HASH": "a7c7d5016322340c4394538d68f601a0720e70850091387114963aba0f1bae09",
703 "Demo": {
704 "1": "doug+1@gcnpublishing.com",
705 "2": "user_130_58",
706 "3": "pass_13058",
707 "4": "DougGCN",
708 "5": "La Farge",
709 "8": "849 Street",
710 "10": "Tuson",
711 "11": "AZ",
712 "12": "11116",
713 "13": "United States"
714 }
715 },
716 {
717 "Id": 210,
718 "OCID_HASH": "f0f0d59478e9a4aa9b0fad6ae5bfc4292a169f899135e8c4d16cada9e9dc267d",
719 "Demo": {
720 "1": "subash+1@gcnpublishing.com",
721 "2": "user_130_50",
722 "3": "pass_13050",
723 "4": "SubashGCN",
724 "5": "Tamang",
725 "8": "112 Street",
726 "10": "Herndon",
727 "11": "VA",
728 "12": "11117",
729 "13": "United States"
730 }
731 },
732 {
733 "Id": 218,
734 "OCID_HASH": "4939a3be6dfd79c715a1144d82815f2abe8e413d04e4311284a05610589ad87b",
735 "Demo": {
736 "1": "sonish+1@gcnpublishing.com",
737 "2": "user_130_10",
738 "3": "pass_13010",
739 "4": "SonishGCN",
740 "5": "Shrestha",
741 "8": "334 Street",
742 "10": "Reston",
743 "11": "VA",
744 "12": "11118",
745 "13": "United States"
746 }
747 },
748 {
749 "Id": 282,
750 "OCID_HASH": "44421a4b109b0f5eb412b29e0037df61aae9ea95003d73f0175e5d6db8c0f928",
751 "Demo": {
752 "1": "orish+11@gcnpublishing.com",
753 "2": "user_138_42",
754 "3": "pass_13842",
755 "4": "OrishGCN",
756 "5": "Shrestha",
757 "8": "123 street",
758 "10": "New Rochelle",
759 "11": "NY",
760 "12": "11111",
761 "13": "United States"
762 }
763 },
764 {
765 "Id": 290,
766 "OCID_HASH": "971c357d4808224595f83a30bba9f05d1118bd7fd4f1d51160cad57dfd6b2137",
767 "Demo": {
768 "1": "sundeep+11@gcnpublishing.com",
769 "2": "user_138_26",
770 "3": "pass_13826",
771 "4": "SundeepGCN",
772 "5": "Dangol",
773 "8": "456 Street",
774 "10": "Bridgeport",
775 "11": "CT",
776 "12": "11112",
777 "13": "United States"
778 }
779 },
780 {
781 "Id": 298,
782 "OCID_HASH": "4fa0426afe48ee79602e9c47dda1987797b1983ecaa5975a09885ac4480f5033",
783 "Demo": {
784 "1": "sean+11@gcnpublishing.com",
785 "2": "user_138_34",
786 "3": "pass_13834",
787 "4": "SeanGCN",
788 "5": "Fulton",
789 "8": "222 Street",
790 "10": "Norwalk",
791 "11": "CT",
792 "12": "11113",
793 "13": "United States"
794 }
795 },
796 {
797 "Id": 306,
798 "OCID_HASH": "67037db60fea235ebcb48fae4eeef08a4b33c2f8860944925b615e602ba7a6e1",
799 "Demo": {
800 "1": "joanne+11@gcnpublishing.com",
801 "2": "user_138_2",
802 "3": "pass_1382",
803 "4": "JoanneGCN",
804 "5": "Persico",
805 "8": "222 Street",
806 "10": "Norwalk",
807 "11": "CT",
808 "12": "11114",
809 "13": "United States"
810 }
811 },
812 {
813 "Id": 314,
814 "OCID_HASH": "6421cab33907111f038ead8fc0aeafed785642e9b92cda544b2048f90ada259f",
815 "Demo": {
816 "1": "melanie+11@gcnpublishing.com",
817 "2": "user_138_18",
818 "3": "pass_13818",
819 "4": "MelanieGCN",
820 "5": "Mason",
821 "8": "345 Street",
822 "10": "Norwalk",
823 "11": "CT",
824 "12": "11115",
825 "13": "United States"
826 }
827 },
828 {
829 "Id": 322,
830 "OCID_HASH": "334b6f64d387b9a45b8ac7e0901d438cace133899b608c03a0f8c1f706882958",
831 "Demo": {
832 "1": "doug+11@gcnpublishing.com",
833 "2": "user_138_58",
834 "3": "pass_13858",
835 "4": "DougGCN",
836 "5": "La Farge",
837 "8": "849 Street",
838 "10": "Tuson",
839 "11": "AZ",
840 "12": "11116",
841 "13": "United States"
842 }
843 }
844 ]
845 }
846 {{/code}}
847
848
849 (% id="HGETspecificUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
850 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific User(%%) ==
851
852 ----
853
854 {{panel bgColor="#D3D3D3" width="100%"}}
855 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color:#212121" %)~{~{OCID}}
856 {{/panel}}
857
858 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
859
860 ----
861
862 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
863
864 ==== Example ====
865
866 ----
867
868 (% style="color:#6b6b6b" %)Request
869
870 {{code language="php" theme="RDark" title="Get specific User Request"}}
871 <?php
872
873 $curl = curl_init();
874
875 curl_setopt_array($curl, array(
876 CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}',
877 CURLOPT_RETURNTRANSFER => true,
878 CURLOPT_ENCODING => '',
879 CURLOPT_MAXREDIRS => 10,
880 CURLOPT_TIMEOUT => 0,
881 CURLOPT_FOLLOWLOCATION => true,
882 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
883 CURLOPT_CUSTOMREQUEST => 'GET',
884 CURLOPT_HTTPHEADER => array(
885 'Appkey: {{ONECOUNT API KEY}}'
886 ),
887 ));
888
889 $response = curl_exec($curl);
890
891 curl_close($curl);
892 echo $response;
893 {{/code}}
894
895
896 (% style="color:#6b6b6b" %)Response  200 OK
897
898 {{code language="yml" theme="RDark" collapse="true" title="Get specific user Response"}}
899 {
900 "result": {
901 "success": "1",
902 "error": {
903 "code": "",
904 "message": ""
905 }
906 },
907 "Users": [
908 {
909 "Id": 8418,
910 "PartnerId": null,
911 "OCID_HASH": "7eedae58c56e97e79a9d42e85e7ef6e252563e60e92bd6d9ac7b7be748ffa823",
912 "Demo": {
913 "1": "",
914 "2": "user_242_5634",
915 "3": "pass_2425634",
916 "4": "Stuart",
917 "5": "Allen",
918 "6": "Pub",
919 "7": "Latinfinance",
920 "9": "2121 Ponce de Leon Blvd",
921 "10": "Coral Gables",
922 "11": "Fl",
923 "12": "33134",
924 "13": "",
925 "15": "",
926 "106": "",
927 "114": "",
928 "122": "305-448-6593",
929 "130": "",
930 "138": "",
931 "146": "5434982f-a05b-5f1e-2176-4809012686bb"
932 },
933 "Products": [
934 34
935 ],
936 "Resources": [
937 114,
938 98
939 ],
940 "Segments": []
941 }
942 ]
943 }
944 {{/code}}
945
946
947 (% id="HPOSTUserLogin" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
948 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) User Login(%%) ==
949
950 ----
951
952 {{panel bgColor="#D3D3D3" width="100%"}}
953 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/login
954 {{/panel}}
955
956 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
957
958 ----
959
960 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
961
962 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
963
964 ----
965
966 {{code language="yml" theme="RDark" title="Body"}}
967 {"e":"rayaan@one-count.com","p":"12345"}
968 {{/code}}
969
970 ==== Example ====
971
972 ----
973
974 (% style="color:#6b6b6b" %)Request
975
976 {{code language="php" theme="RDark" title="User login Request"}}
977 <?php
978
979 $curl = curl_init();
980
981 curl_setopt_array($curl, array(
982 CURLOPT_URL => 'https://api.onecount.net/v2/users/login',
983 CURLOPT_RETURNTRANSFER => true,
984 CURLOPT_ENCODING => '',
985 CURLOPT_MAXREDIRS => 10,
986 CURLOPT_TIMEOUT => 0,
987 CURLOPT_FOLLOWLOCATION => true,
988 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
989 CURLOPT_CUSTOMREQUEST => 'POST',
990 CURLOPT_POSTFIELDS =>'{"e":"rayaan@one-count.com","p":"12345"}',
991 CURLOPT_HTTPHEADER => array(
992 'Appkey: {{ONECOUNT API KEY}}'
993 ),
994 ));
995
996 $response = curl_exec($curl);
997
998 curl_close($curl);
999 echo $response;
1000 {{/code}}
1001
1002
1003 (% style="color:#6b6b6b" %)Response  200 OK
1004
1005 {{code language="yml" theme="RDark" collapse="true" title="Login user Response"}}
1006 {
1007 "result": {
1008 "success": "1",
1009 "error": {
1010 "code": "",
1011 "message": ""
1012 }
1013 },
1014 "Users": [
1015 "1845775"
1016 ]
1017 }
1018 {{/code}}
1019
1020
1021 (% id="HGETlookupUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1022 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup User(%%) ==
1023
1024 ----
1025
1026 {{panel bgColor="#D3D3D3" width="100%"}}
1027 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/lookup?2=user_242_6298&return=1,2,3,4
1028 {{/panel}}
1029
1030 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1031
1032 ----
1033
1034 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
1035
1036 === (% style="color:#212121" %)Query Params(%%) ===
1037
1038 ----
1039
1040 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)2                                                                                                           (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)user_242_6298(%%)
1041 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)return                                                                                                   (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)1,2,3,4
1042
1043 ==== Example ====
1044
1045 ----
1046
1047 (% style="color:#6b6b6b" %)Request
1048
1049 {{code language="php" theme="RDark" title="Lookup user Request"}}
1050 <?php
1051
1052 $curl = curl_init();
1053
1054 curl_setopt_array($curl, array(
1055 CURLOPT_URL => 'https://api.onecount.net/v2/users/lookup?2=user_242_6298&return=1,2,3,4',
1056 CURLOPT_RETURNTRANSFER => true,
1057 CURLOPT_ENCODING => '',
1058 CURLOPT_MAXREDIRS => 10,
1059 CURLOPT_TIMEOUT => 0,
1060 CURLOPT_FOLLOWLOCATION => true,
1061 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1062 CURLOPT_CUSTOMREQUEST => 'GET',
1063 CURLOPT_HTTPHEADER => array(
1064 'Appkey: {{ONECOUNT API KEY}}'
1065 ),
1066 ));
1067
1068 $response = curl_exec($curl);
1069
1070 curl_close($curl);
1071 echo $response;
1072 {{/code}}
1073
1074
1075 (% style="color:#6b6b6b" %)Response  200 OK
1076
1077 {{code language="yml" theme="RDark" collapse="true" title="Lookup user Response"}}
1078 {
1079 "result": {
1080 "success": "1",
1081 "error": {
1082 "code": "",
1083 "message": ""
1084 }
1085 },
1086 "Users": [
1087 {
1088 "Id": 9082,
1089 "PartnerId": null,
1090 "OCID_HASH": "c91c697bc764c64a78bb0bbc9a848ace303169fb17da177a06264d4ede2ca659",
1091 "Demo": {
1092 "2": "user_242_6298",
1093 "3": "pass_2426298"
1094 }
1095 }
1096 ]
1097 }
1098 {{/code}}
1099
1100
1101 (% id="HGETPartners" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1102 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Partners(%%) ==
1103
1104 ----
1105
1106 {{panel bgColor="#D3D3D3" width="100%"}}
1107 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/users/~{~{OCID}}/partners/~{~{Partner id}}
1108 {{/panel}}
1109
1110 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1111
1112 ----
1113
1114 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
1115
1116 (% id="HPOSTCreateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1117 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create user(%%) ==
1118
1119 ----
1120
1121 {{panel bgColor="#D3D3D3" width="100%"}}
1122 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users
1123 {{/panel}}
1124
1125
1126 (% class="western" %)
1127 **POST method should be used to create users.**
1128
1129 (% class="wrapped" %)
1130 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1131 (((
1132 (% class="western" %)
1133 **Request**
1134 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1135 (((
1136 (% class="western" %)
1137 **Type**
1138 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1139 (((
1140 (% class="western" %)
1141 **Description**
1142 )))
1143 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1144 (((
1145 (% class="western" %)
1146 Users
1147 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1148 (((
1149 (% class="western" %)
1150 Users
1151 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1152 (((
1153 (% class="western" %)
1154 Users object that contains information about user to create. PartnerId Needs to be specified.
1155 )))
1156 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1157 (((
1158 (% class="western" %)
1159 Transactions
1160 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1161 (((
1162 (% class="western" %)
1163 Transactions
1164 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1165 (((
1166 (% class="western" %)
1167 (Array of) transaction object specifying parts of the transaction to be added to the new user. UserId and TransactionId, SubscriptionType will be ignored if specified. As this is new user and new transaction is being added.
1168 )))
1169 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1170 (((
1171 (% class="western" %)
1172 DedupeColumns
1173 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1174 (((
1175 (% class="western" %)
1176 String
1177 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1178 (((
1179 (% class="western" %)
1180 CSV of question id's that should be considered to find duplicate.
1181 )))
1182 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1183 (((
1184 (% class="western" %)
1185 Return
1186 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1187 (((
1188 (% class="western" %)
1189 String
1190 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1191 (((
1192 (% class="western" %)
1193 CSV of ONEcount QuestionId's requested back in Users object in response.
1194 )))
1195
1196 (% class="wrapped" %)
1197 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1198 (((
1199 (% class="western" %)
1200 **Response**
1201 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1202 (((
1203 (% class="western" %)
1204 **Type**
1205 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1206 (((
1207 (% class="western" %)
1208 **Description**
1209 )))
1210 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1211 (((
1212 (% class="western" %)
1213 Users
1214 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
1215 (((
1216 (% class="western" style="text-align:left" %)
1217 Users
1218 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1219 (((
1220 (% class="western" %)
1221 Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned.
1222 )))
1223
1224 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1225
1226 ----
1227
1228 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
1229
1230 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
1231
1232 ----
1233
1234 {{code language="yml" theme="RDark" title="Body"}}
1235 {"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}
1236 {{/code}}
1237
1238 ==== Example ====
1239
1240 ----
1241
1242 (% style="color:#6b6b6b" %)Request
1243
1244 {{code language="php" theme="RDark" title="Create User Request"}}
1245 <?php
1246
1247 $curl = curl_init();
1248
1249 curl_setopt_array($curl, array(
1250 CURLOPT_URL => 'https://api.onecount.net/v2/users',
1251 CURLOPT_RETURNTRANSFER => true,
1252 CURLOPT_ENCODING => '',
1253 CURLOPT_MAXREDIRS => 10,
1254 CURLOPT_TIMEOUT => 0,
1255 CURLOPT_FOLLOWLOCATION => true,
1256 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1257 CURLOPT_CUSTOMREQUEST => 'POST',
1258 CURLOPT_POSTFIELDS =>'{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan6@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}',
1259 CURLOPT_HTTPHEADER => array(
1260 'Appkey: {{ONECOUNT API KEY}}'
1261 ),
1262 ));
1263
1264 $response = curl_exec($curl);
1265
1266 curl_close($curl);
1267 echo $response;
1268 {{/code}}
1269
1270
1271 (% style="color:#6b6b6b" %)Response  200 OK
1272
1273 {{code language="yml" theme="RDark" collapse="true" title="Create user Response"}}
1274 {
1275 "result": {
1276 "success": "1",
1277 "error": {
1278 "code": "",
1279 "message": ""
1280 }
1281 },
1282 "Users": {
1283 "Id": 1845831
1284 }
1285 }
1286 {{/code}}
1287
1288
1289 (% id="HPUTUpdateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1290 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update user(%%) ==
1291
1292 ----
1293
1294 {{panel bgColor="#D3D3D3" width="100%"}}
1295 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/~{~{OCID(% class="nolink" %)}}
1296 {{/panel}}
1297
1298
1299 (% class="western" %)
1300 **PUT method should be used to update users.**
1301
1302 (% class="wrapped" %)
1303 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1304 (((
1305 (% class="western" %)
1306 **Request**
1307 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1308 (((
1309 (% class="western" %)
1310 **Type**
1311 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1312 (((
1313 (% class="western" %)
1314 **Description**
1315 )))
1316 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1317 (((
1318 (% class="western" %)
1319 Users
1320 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1321 (((
1322 (% class="western" %)
1323 Users
1324 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1325 (((
1326 (% class="western" %)
1327 Users object with update fields. Return property has CSV of questions id requested back in Users object.
1328 )))
1329 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1330 (((
1331 (% class="western" %)
1332 Return
1333 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1334 (((
1335 (% class="western" %)
1336 String
1337 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1338 (((
1339 (% class="western" %)
1340 CSV of ONEcount QuestionId's requested back in Users object in response
1341 )))
1342 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1343 (((
1344 (% class="western" %)
1345 RequestDate
1346 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1347 (((
1348 (% class="western" %)
1349 Date
1350 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1351 (((
1352 (% class="western" %)
1353 RequestDate to use for the demo update. If not provided current date will be used.
1354 )))
1355
1356 (% class="wrapped" %)
1357 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1358 (((
1359 (% class="western" %)
1360 **Response**
1361 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1362 (((
1363 (% class="western" %)
1364 **Type**
1365 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1366 (((
1367 (% class="western" %)
1368 **Description**
1369 )))
1370 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1371 (((
1372 (% class="western" %)
1373 Users
1374 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
1375 (((
1376 (% class="western" style="text-align:left" %)
1377 Users
1378 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1379 (((
1380 (% class="western" %)
1381 Updated user returned with the demo field requested in return parameter in json format.
1382 )))
1383
1384 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1385
1386 ----
1387
1388 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
1389
1390 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
1391
1392 ----
1393
1394 {{code language="yml" theme="RDark" title="Body"}}
1395 {"Users":{"Demo":{"6":"title1"}}}
1396 {{/code}}
1397
1398 ==== Example ====
1399
1400 ----
1401
1402 (% style="color:#6b6b6b" %)Request
1403
1404 {{code language="php" theme="RDark" title="Update User Request"}}
1405 <?php
1406
1407 $curl = curl_init();
1408
1409 curl_setopt_array($curl, array(
1410 CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}',
1411 CURLOPT_RETURNTRANSFER => true,
1412 CURLOPT_ENCODING => '',
1413 CURLOPT_MAXREDIRS => 10,
1414 CURLOPT_TIMEOUT => 0,
1415 CURLOPT_FOLLOWLOCATION => true,
1416 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1417 CURLOPT_CUSTOMREQUEST => 'PUT',
1418 CURLOPT_POSTFIELDS =>'{"Users":{"Demo":{"6":"title"}}}',
1419 CURLOPT_HTTPHEADER => array(
1420 'Appkey: {{ONECOUNT API KEY}}'
1421 ),
1422 ));
1423
1424 $response = curl_exec($curl);
1425
1426 curl_close($curl);
1427 echo $response;
1428
1429
1430 {{/code}}
1431
1432
1433 (% style="color:#6b6b6b" %)Response  200 OK
1434
1435 {{code language="yml" theme="RDark" collapse="true" title="Update user Response"}}
1436 {
1437 "result": {
1438 "success": "1",
1439 "error": {
1440 "code": "",
1441 "message": ""
1442 }
1443 },
1444 "Users": [
1445 {
1446 "Id": 1845823,
1447 "OCID_HASH": "fccaa8dc7afadccc5882528d47b27c2bb53e2788dd0ac1fe170abef77a9c4d5b"
1448 }
1449 ]
1450 }
1451 {{/code}}
1452
1453
1454 (% id="HCOMPONENT:Questions" class="western" %)
1455 === **COMPONENT: Questions** ===
1456
1457 (% class="western" %)
1458 All data fields in ONEcount are made up of questions. Questions are configurable on a per-client basis, and no two customer installations will have the same question (ie., field) layout. Therefore, before querying or updating any ONEcount installation, you'll need to get an understanding of the question layout of the installation. This API segment will allow you to query ONEcount to determine the question layout for the installation. It will also allow you to create new questions within the system. This resource does not allow you to update the data for a specific user (see User section).
1459
1460 (% class="western" %)
1461 This resource is for manipulating questions resource. Questions in ONEcount means any question that is asked to the subscriber. It could be any questions that appears on customer forms or print forms that gets answered by a subscriber. Questions api call will allow creation, update and search of question in ONEcount. To add a new questions to the system you'll make a POST api call to the questions resource.
1462
1463 (% class="western" %)
1464 The data that is sent should be in JSON format and of type questions as described in References section. The type property of questions object is described below. Questions object will only need a choices block if the question is a multiple choice question(type=4 or 5 or 6)
1465
1466 (% class="western" %)
1467 There can be 6 types of questions:
1468
1469 (% class="wrapped" %)
1470 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1471 (((
1472 (% class="western" style="text-align:center" %)
1473 **Type**
1474 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1475 (((
1476 (% class="western" %)
1477 **Description**
1478 )))
1479 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1480 (((
1481 (% class="western" style="text-align:center" %)
1482 0
1483 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1484 (((
1485 (% class="western" %)
1486 Text type questions or short response type question. The response length needs to be less than 255 characters.
1487 )))
1488 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1489 (((
1490 (% class="western" style="text-align:center" %)
1491 1
1492 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1493 (((
1494 (% class="western" %)
1495 Textarea type question or long response type question.
1496 )))
1497 |(% style="text-align:left; vertical-align:top" %)(((
1498 (% style="text-align: left;vertical-align: top;" %)
1499 (((
1500 (% class="western" style="text-align:center" %)
1501 2
1502 )))
1503
1504 (((
1505
1506 )))
1507 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1508 (((
1509 (% class="western" %)
1510 Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *.
1511 )))
1512 |(% style="text-align:left; vertical-align:top" %) 3|(% style="text-align:left; vertical-align:top" %)Numeric type question.
1513 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1514 (((
1515 (% class="western" style="text-align:center" %)
1516 4
1517 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1518 (((
1519 (% class="western" %)
1520 Select or dropdown type questions. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the select question.
1521 )))
1522 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1523 (((
1524 (% class="western" style="text-align:center" %)
1525 5
1526 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1527 (((
1528 (% class="western" %)
1529 Radio button type question. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the radio question.
1530 )))
1531 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1532 (((
1533 (% class="western" style="text-align:center" %)
1534 6
1535 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1536 (((
1537 (% class="western" %)
1538 Checkbox type question. This is a multiple choice, multi response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the checkbox question.
1539 )))
1540 |(% style="text-align:left; vertical-align:top" %) 7  |(% style="text-align:left; vertical-align:top" %)Date type question.
1541
1542 (% class="wrapped" %)
1543 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1544 (((
1545 (% class="western" %)
1546 **Method**
1547 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1548 (((
1549 (% class="western" %)
1550 **Url**
1551 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1552 (((
1553 (% class="western" %)
1554 **Action**
1555 )))
1556 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1557 (((
1558 (% class="western" %)
1559 GET
1560 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1561 (((
1562 (% class="western" %)
1563 /questions
1564 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1565 (((
1566 (% class="western" %)
1567 List all questions
1568 )))
1569 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1570 (((
1571 (% class="western" %)
1572 GET
1573 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1574 (((
1575 (% class="western" %)
1576 /questions/1
1577 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1578 (((
1579 (% class="western" %)
1580 Returns question id 1
1581 )))
1582 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1583 (((
1584 (% class="western" %)
1585 GET
1586 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1587 (((
1588 (% class="western" %)
1589 /questions/lookup?Text=Email
1590 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1591 (((
1592 (% class="western" %)
1593 Returns all questions with “Email" in question text
1594 )))
1595 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1596 (((
1597 (% class="western" %)
1598 POST
1599 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1600 (((
1601 (% class="western" %)
1602 /questions
1603 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1604 (((
1605 (% class="western" %)
1606 Create a new question
1607
1608 (% class="western" %)
1609 JSON of the Questions type object needs to be sent as post data. Id field should not be sent.
1610 )))
1611 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1612 (((
1613 (% class="western" %)
1614 PUT
1615 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1616 (((
1617 (% class="western" %)
1618 /questions
1619 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1620 (((
1621 (% class="western" %)
1622 Update a question
1623
1624 (% class="western" %)
1625 JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update.
1626 )))
1627
1628
1629 (% id="HGETAllQuestions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1630 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Questions(%%) ==
1631
1632 ----
1633
1634 ----
1635
1636 {{panel bgColor="#D3D3D3" width="100%"}}
1637 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/(% style="color:#212121" %)questions
1638 {{/panel}}
1639
1640 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1641
1642 ----
1643
1644 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
1645
1646 ==== Example ====
1647
1648 ----
1649
1650 (% style="color:#6b6b6b" %)Request
1651
1652 {{code language="php" theme="RDark" title="Get All Questions Request"}}
1653 <?php
1654
1655 $curl = curl_init();
1656
1657 curl_setopt_array($curl, array(
1658 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
1659 CURLOPT_RETURNTRANSFER => true,
1660 CURLOPT_ENCODING => '',
1661 CURLOPT_MAXREDIRS => 10,
1662 CURLOPT_TIMEOUT => 0,
1663 CURLOPT_FOLLOWLOCATION => true,
1664 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1665 CURLOPT_CUSTOMREQUEST => 'GET',
1666 CURLOPT_HTTPHEADER => array(
1667 'Appkey: 70856f83422599c8e36191098f1536ae06e7bbcd'
1668 ),
1669 ));
1670
1671 $response = curl_exec($curl);
1672
1673 curl_close($curl);
1674 echo $response;
1675
1676
1677
1678 {{/code}}
1679
1680
1681 (% style="color:#6b6b6b" %)Response  200 OK
1682
1683 {{code language="yml" theme="RDark" collapse="true" title="Get All Questions Response"}}
1684 {
1685 "result": {
1686 "success": "1",
1687 "error": {
1688 "code": "",
1689 "message": ""
1690 }
1691 },
1692 "Questions": [
1693 {
1694 "Id": 1,
1695 "Text": "Email",
1696 "Type": "0",
1697 "Alias": "Email"
1698 },
1699 {
1700 "Id": 2,
1701 "Text": "Username",
1702 "Type": "0",
1703 "Alias": "Username"
1704 },
1705 {
1706 "Id": 3,
1707 "Text": "Password",
1708 "Type": "2",
1709 "Alias": "Password"
1710 },
1711 {
1712 "Id": 4,
1713 "Text": "First Name",
1714 "Type": "0",
1715 "Alias": "First Name"
1716 },
1717 {
1718 "Id": 5,
1719 "Text": "Last Name",
1720 "Type": "0",
1721 "Alias": "Last Name"
1722 },
1723 {
1724 "Id": 6,
1725 "Text": "Title",
1726 "Type": "0",
1727 "Alias": "Title"
1728 },
1729 {
1730 "Id": 7,
1731 "Text": "Company Name",
1732 "Type": "0",
1733 "Alias": "Company Name"
1734 },
1735 {
1736 "Id": 8,
1737 "Text": "Company Address",
1738 "Type": "0",
1739 "Alias": "Company Address"
1740 },
1741 {
1742 "Id": 9,
1743 "Text": "Address2",
1744 "Type": "0",
1745 "Alias": "Address2"
1746 },
1747 {
1748 "Id": 10,
1749 "Text": "City",
1750 "Type": "0",
1751 "Alias": "City"
1752 },
1753 {
1754 "Id": 11,
1755 "Text": "State/Province",
1756 "Type": "4",
1757 "Alias": "State/Province",
1758 "Choices": [
1759 {
1760 "Id": 1554,
1761 "QuestionId": 11,
1762 "Text": "Select One",
1763 "Value": "",
1764 "Order": 1
1765 },
1766 {
1767 "Id": 1562,
1768 "QuestionId": 11,
1769 "Text": "Alabama",
1770 "Value": "AL",
1771 "Order": 2
1772 },
1773 {
1774 "Id": 1570,
1775 "QuestionId": 11,
1776 "Text": "Alaska",
1777 "Value": "AK",
1778 "Order": 3
1779 },
1780 {
1781 "Id": 1578,
1782 "QuestionId": 11,
1783 "Text": "Arizona",
1784 "Value": "AZ",
1785 "Order": 4
1786 },
1787 {
1788 "Id": 1586,
1789 "QuestionId": 11,
1790 "Text": "Arkansas",
1791 "Value": "AR",
1792 "Order": 5
1793 },
1794 {
1795 "Id": 1594,
1796 "QuestionId": 11,
1797 "Text": "California",
1798 "Value": "CA",
1799 "Order": 6
1800 },
1801 {
1802 "Id": 1602,
1803 "QuestionId": 11,
1804 "Text": "Colorado",
1805 "Value": "CO",
1806 "Order": 7
1807 },
1808 {
1809 "Id": 1610,
1810 "QuestionId": 11,
1811 "Text": "Connecticut",
1812 "Value": "CT",
1813 "Order": 8
1814 },
1815 {
1816 "Id": 1618,
1817 "QuestionId": 11,
1818 "Text": "Delaware",
1819 "Value": "DE",
1820 "Order": 9
1821 },
1822 {
1823 "Id": 1626,
1824 "QuestionId": 11,
1825 "Text": "District of Columbia",
1826 "Value": "DC",
1827 "Order": 10
1828 },
1829 {
1830 "Id": 1634,
1831 "QuestionId": 11,
1832 "Text": "Florida",
1833 "Value": "FL",
1834 "Order": 11
1835 },
1836 {
1837 "Id": 1642,
1838 "QuestionId": 11,
1839 "Text": "Georgia",
1840 "Value": "GA",
1841 "Order": 12
1842 },
1843 {
1844 "Id": 1650,
1845 "QuestionId": 11,
1846 "Text": "Hawaii",
1847 "Value": "HI",
1848 "Order": 13
1849 },
1850 {
1851 "Id": 1658,
1852 "QuestionId": 11,
1853 "Text": "Idaho",
1854 "Value": "ID",
1855 "Order": 14
1856 },
1857 {
1858 "Id": 1666,
1859 "QuestionId": 11,
1860 "Text": "Illinois",
1861 "Value": "IL",
1862 "Order": 15
1863 },
1864 {
1865 "Id": 1674,
1866 "QuestionId": 11,
1867 "Text": "Indiana",
1868 "Value": "IN",
1869 "Order": 16
1870 },
1871 {
1872 "Id": 1682,
1873 "QuestionId": 11,
1874 "Text": "Iowa",
1875 "Value": "IA",
1876 "Order": 17
1877 },
1878 {
1879 "Id": 1690,
1880 "QuestionId": 11,
1881 "Text": "Kansas",
1882 "Value": "KS",
1883 "Order": 18
1884 },
1885 {
1886 "Id": 1698,
1887 "QuestionId": 11,
1888 "Text": "Kentucky",
1889 "Value": "KY",
1890 "Order": 19
1891 },
1892 {
1893 "Id": 1706,
1894 "QuestionId": 11,
1895 "Text": "Louisiana",
1896 "Value": "LA",
1897 "Order": 20
1898 },
1899 {
1900 "Id": 1714,
1901 "QuestionId": 11,
1902 "Text": "Maine",
1903 "Value": "ME",
1904 "Order": 21
1905 },
1906 {
1907 "Id": 1722,
1908 "QuestionId": 11,
1909 "Text": "Maryland",
1910 "Value": "MD",
1911 "Order": 22
1912 },
1913 {
1914 "Id": 1730,
1915 "QuestionId": 11,
1916 "Text": "Massachusetts",
1917 "Value": "MA",
1918 "Order": 23
1919 },
1920 {
1921 "Id": 1738,
1922 "QuestionId": 11,
1923 "Text": "Michigan",
1924 "Value": "MI",
1925 "Order": 24
1926 },
1927 {
1928 "Id": 1746,
1929 "QuestionId": 11,
1930 "Text": "Minnesota",
1931 "Value": "MN",
1932 "Order": 25
1933 },
1934 {
1935 "Id": 1754,
1936 "QuestionId": 11,
1937 "Text": "Mississippi",
1938 "Value": "MS",
1939 "Order": 26
1940 },
1941 {
1942 "Id": 1762,
1943 "QuestionId": 11,
1944 "Text": "Missouri",
1945 "Value": "MO",
1946 "Order": 27
1947 },
1948 {
1949 "Id": 1770,
1950 "QuestionId": 11,
1951 "Text": "Montana",
1952 "Value": "MT",
1953 "Order": 28
1954 },
1955 {
1956 "Id": 1778,
1957 "QuestionId": 11,
1958 "Text": "Nebraska",
1959 "Value": "NE",
1960 "Order": 29
1961 },
1962 {
1963 "Id": 1786,
1964 "QuestionId": 11,
1965 "Text": "Nevada",
1966 "Value": "NV",
1967 "Order": 30
1968 },
1969 {
1970 "Id": 1794,
1971 "QuestionId": 11,
1972 "Text": "New Hampshire",
1973 "Value": "NH",
1974 "Order": 31
1975 },
1976 {
1977 "Id": 1802,
1978 "QuestionId": 11,
1979 "Text": "New Jersey",
1980 "Value": "NJ",
1981 "Order": 32
1982 },
1983 {
1984 "Id": 1810,
1985 "QuestionId": 11,
1986 "Text": "New Mexico",
1987 "Value": "NM",
1988 "Order": 33
1989 },
1990 {
1991 "Id": 1818,
1992 "QuestionId": 11,
1993 "Text": "New York",
1994 "Value": "NY",
1995 "Order": 34
1996 },
1997 {
1998 "Id": 1826,
1999 "QuestionId": 11,
2000 "Text": "North Carolina",
2001 "Value": "NC",
2002 "Order": 35
2003 },
2004 {
2005 "Id": 1834,
2006 "QuestionId": 11,
2007 "Text": "Ohio",
2008 "Value": "OH",
2009 "Order": 37
2010 },
2011 {
2012 "Id": 1842,
2013 "QuestionId": 11,
2014 "Text": "Oklahoma",
2015 "Value": "OK",
2016 "Order": 38
2017 },
2018 {
2019 "Id": 1850,
2020 "QuestionId": 11,
2021 "Text": "Oregon",
2022 "Value": "OR",
2023 "Order": 39
2024 },
2025 {
2026 "Id": 1858,
2027 "QuestionId": 11,
2028 "Text": "Pennsylvania",
2029 "Value": "PA",
2030 "Order": 40
2031 },
2032 {
2033 "Id": 1866,
2034 "QuestionId": 11,
2035 "Text": "Rhode Island",
2036 "Value": "RI",
2037 "Order": 41
2038 },
2039 {
2040 "Id": 1874,
2041 "QuestionId": 11,
2042 "Text": "South Carolina",
2043 "Value": "SC",
2044 "Order": 42
2045 },
2046 {
2047 "Id": 1882,
2048 "QuestionId": 11,
2049 "Text": "South Dakota",
2050 "Value": "SD",
2051 "Order": 43
2052 },
2053 {
2054 "Id": 1890,
2055 "QuestionId": 11,
2056 "Text": "Tennessee",
2057 "Value": "TN",
2058 "Order": 44
2059 },
2060 {
2061 "Id": 1898,
2062 "QuestionId": 11,
2063 "Text": "Texas",
2064 "Value": "TX",
2065 "Order": 45
2066 },
2067 {
2068 "Id": 1906,
2069 "QuestionId": 11,
2070 "Text": "Utah",
2071 "Value": "UT",
2072 "Order": 46
2073 },
2074 {
2075 "Id": 1914,
2076 "QuestionId": 11,
2077 "Text": "Vermont",
2078 "Value": "VT",
2079 "Order": 47
2080 },
2081 {
2082 "Id": 1922,
2083 "QuestionId": 11,
2084 "Text": "Virginia",
2085 "Value": "VA",
2086 "Order": 48
2087 },
2088 {
2089 "Id": 1930,
2090 "QuestionId": 11,
2091 "Text": "Washington",
2092 "Value": "WA",
2093 "Order": 49
2094 },
2095 {
2096 "Id": 1938,
2097 "QuestionId": 11,
2098 "Text": "West Virginia",
2099 "Value": "WV",
2100 "Order": 50
2101 },
2102 {
2103 "Id": 1946,
2104 "QuestionId": 11,
2105 "Text": "Wisconsin",
2106 "Value": "WI",
2107 "Order": 51
2108 },
2109 {
2110 "Id": 1954,
2111 "QuestionId": 11,
2112 "Text": "Wyoming",
2113 "Value": "WY",
2114 "Order": 52
2115 },
2116 {
2117 "Id": 1962,
2118 "QuestionId": 11,
2119 "Text": "American Samoa",
2120 "Value": "AS",
2121 "Order": 53
2122 },
2123 {
2124 "Id": 1970,
2125 "QuestionId": 11,
2126 "Text": "North Dakota",
2127 "Value": "ND",
2128 "Order": 36
2129 },
2130 {
2131 "Id": 1978,
2132 "QuestionId": 11,
2133 "Text": "Federated States of Micronesia",
2134 "Value": "FM",
2135 "Order": 54
2136 },
2137 {
2138 "Id": 1986,
2139 "QuestionId": 11,
2140 "Text": "Guam",
2141 "Value": "GU",
2142 "Order": 55
2143 },
2144 {
2145 "Id": 1994,
2146 "QuestionId": 11,
2147 "Text": "Marshall Islands",
2148 "Value": "MH",
2149 "Order": 56
2150 },
2151 {
2152 "Id": 2002,
2153 "QuestionId": 11,
2154 "Text": "Northern Mariana Islands",
2155 "Value": "MP",
2156 "Order": 57
2157 },
2158 {
2159 "Id": 2010,
2160 "QuestionId": 11,
2161 "Text": "Palau",
2162 "Value": "PW",
2163 "Order": 58
2164 },
2165 {
2166 "Id": 2018,
2167 "QuestionId": 11,
2168 "Text": "Puerto Rico",
2169 "Value": "PR",
2170 "Order": 59
2171 },
2172 {
2173 "Id": 2026,
2174 "QuestionId": 11,
2175 "Text": "U.S. Virgin Islands",
2176 "Value": "VI",
2177 "Order": 60
2178 },
2179 {
2180 "Id": 2034,
2181 "QuestionId": 11,
2182 "Text": "Armed Forces Africa",
2183 "Value": "AE",
2184 "Order": 61
2185 },
2186 {
2187 "Id": 2042,
2188 "QuestionId": 11,
2189 "Text": "Armed Forces Americas (except Canada)",
2190 "Value": "AA",
2191 "Order": 62
2192 },
2193 {
2194 "Id": 2050,
2195 "QuestionId": 11,
2196 "Text": "Armed Forces Canada",
2197 "Value": "AE",
2198 "Order": 63
2199 },
2200 {
2201 "Id": 2058,
2202 "QuestionId": 11,
2203 "Text": "Armed Forces Europe",
2204 "Value": "AE",
2205 "Order": 64
2206 },
2207 {
2208 "Id": 2066,
2209 "QuestionId": 11,
2210 "Text": "Armed Forces Middle East",
2211 "Value": "AE",
2212 "Order": 65
2213 },
2214 {
2215 "Id": 2074,
2216 "QuestionId": 11,
2217 "Text": "Armed Forces Pacific",
2218 "Value": "AP",
2219 "Order": 66
2220 },
2221 {
2222 "Id": 2082,
2223 "QuestionId": 11,
2224 "Text": "Non-US/Not Applicable",
2225 "Value": "Non-US/Not Applicable",
2226 "Order": 67
2227 },
2228 {
2229 "Id": 2090,
2230 "QuestionId": 11,
2231 "Text": "Ontario",
2232 "Value": "Ontario",
2233 "Order": 68
2234 },
2235 {
2236 "Id": 2098,
2237 "QuestionId": 11,
2238 "Text": "Quebec",
2239 "Value": "Quebec",
2240 "Order": 69
2241 },
2242 {
2243 "Id": 2106,
2244 "QuestionId": 11,
2245 "Text": "Nova Scotia",
2246 "Value": "Nova Scotia",
2247 "Order": 70
2248 },
2249 {
2250 "Id": 2114,
2251 "QuestionId": 11,
2252 "Text": "New Brunswick",
2253 "Value": "New Brunswick",
2254 "Order": 71
2255 },
2256 {
2257 "Id": 2122,
2258 "QuestionId": 11,
2259 "Text": "Manitoba",
2260 "Value": "Manitoba",
2261 "Order": 72
2262 },
2263 {
2264 "Id": 2130,
2265 "QuestionId": 11,
2266 "Text": "Brittish Columbia",
2267 "Value": "Brittish Columbia",
2268 "Order": 73
2269 },
2270 {
2271 "Id": 2138,
2272 "QuestionId": 11,
2273 "Text": "Prince Edward Island",
2274 "Value": "Prince Edward Island",
2275 "Order": 74
2276 },
2277 {
2278 "Id": 2146,
2279 "QuestionId": 11,
2280 "Text": "Saskatchewan",
2281 "Value": "Saskatchewan",
2282 "Order": 75
2283 },
2284 {
2285 "Id": 2154,
2286 "QuestionId": 11,
2287 "Text": "Alberta",
2288 "Value": "Alberta",
2289 "Order": 76
2290 },
2291 {
2292 "Id": 2162,
2293 "QuestionId": 11,
2294 "Text": "Newfoundland and Labrador",
2295 "Value": "Newfoundland and Labrador",
2296 "Order": 77
2297 },
2298 {
2299 "Id": 2170,
2300 "QuestionId": 11,
2301 "Text": "British Columbia",
2302 "Value": "British Columbia",
2303 "Order": 78
2304 },
2305 {
2306 "Id": 2178,
2307 "QuestionId": 11,
2308 "Text": "Ontario",
2309 "Value": "ON",
2310 "Order": 79
2311 }
2312 ]
2313 },
2314 {
2315 "Id": 12,
2316 "Text": "Zip/Postal Code",
2317 "Type": "0",
2318 "Alias": "Zip/Postal Code"
2319 },
2320 {
2321 "Id": 13,
2322 "Text": "Country",
2323 "Type": "4",
2324 "Alias": "Country",
2325 "Choices": [
2326 {
2327 "Id": 2,
2328 "QuestionId": 13,
2329 "Text": "Select One",
2330 "Value": "",
2331 "Order": 1
2332 },
2333 {
2334 "Id": 10,
2335 "QuestionId": 13,
2336 "Text": "Afghanistan",
2337 "Value": "Afghanistan",
2338 "Order": 3
2339 },
2340 {
2341 "Id": 18,
2342 "QuestionId": 13,
2343 "Text": "Albania",
2344 "Value": "Albania",
2345 "Order": 4
2346 },
2347 {
2348 "Id": 26,
2349 "QuestionId": 13,
2350 "Text": "Algeria",
2351 "Value": "Algeria",
2352 "Order": 5
2353 },
2354 {
2355 "Id": 34,
2356 "QuestionId": 13,
2357 "Text": "Andorra",
2358 "Value": "Andorra",
2359 "Order": 6
2360 },
2361 {
2362 "Id": 42,
2363 "QuestionId": 13,
2364 "Text": "Angola",
2365 "Value": "Angola",
2366 "Order": 7
2367 },
2368 {
2369 "Id": 50,
2370 "QuestionId": 13,
2371 "Text": "Antigua and Barbuda",
2372 "Value": "Antigua and Barbuda",
2373 "Order": 8
2374 },
2375 {
2376 "Id": 58,
2377 "QuestionId": 13,
2378 "Text": "Argentina",
2379 "Value": "Argentina",
2380 "Order": 9
2381 },
2382 {
2383 "Id": 66,
2384 "QuestionId": 13,
2385 "Text": "Armenia",
2386 "Value": "Armenia",
2387 "Order": 10
2388 },
2389 {
2390 "Id": 74,
2391 "QuestionId": 13,
2392 "Text": "Australia",
2393 "Value": "Australia",
2394 "Order": 11
2395 },
2396 {
2397 "Id": 82,
2398 "QuestionId": 13,
2399 "Text": "Austria",
2400 "Value": "Austria",
2401 "Order": 12
2402 },
2403 {
2404 "Id": 90,
2405 "QuestionId": 13,
2406 "Text": "Azerbaijan",
2407 "Value": "Azerbaijan",
2408 "Order": 13
2409 },
2410 {
2411 "Id": 98,
2412 "QuestionId": 13,
2413 "Text": "Bahamas",
2414 "Value": "Bahamas",
2415 "Order": 14
2416 },
2417 {
2418 "Id": 106,
2419 "QuestionId": 13,
2420 "Text": "Bahrain",
2421 "Value": "Bahrain",
2422 "Order": 15
2423 },
2424 {
2425 "Id": 114,
2426 "QuestionId": 13,
2427 "Text": "Bangladesh",
2428 "Value": "Bangladesh",
2429 "Order": 16
2430 },
2431 {
2432 "Id": 122,
2433 "QuestionId": 13,
2434 "Text": "Barbados",
2435 "Value": "Barbados",
2436 "Order": 17
2437 },
2438 {
2439 "Id": 130,
2440 "QuestionId": 13,
2441 "Text": "Belarus",
2442 "Value": "Belarus",
2443 "Order": 18
2444 },
2445 {
2446 "Id": 138,
2447 "QuestionId": 13,
2448 "Text": "Belgium",
2449 "Value": "Belgium",
2450 "Order": 19
2451 },
2452 {
2453 "Id": 146,
2454 "QuestionId": 13,
2455 "Text": "Belize",
2456 "Value": "Belize",
2457 "Order": 20
2458 },
2459 {
2460 "Id": 154,
2461 "QuestionId": 13,
2462 "Text": "Benin",
2463 "Value": "Benin",
2464 "Order": 21
2465 },
2466 {
2467 "Id": 162,
2468 "QuestionId": 13,
2469 "Text": "Bhutan",
2470 "Value": "Bhutan",
2471 "Order": 22
2472 },
2473 {
2474 "Id": 170,
2475 "QuestionId": 13,
2476 "Text": "Bolivia",
2477 "Value": "Bolivia",
2478 "Order": 23
2479 },
2480 {
2481 "Id": 178,
2482 "QuestionId": 13,
2483 "Text": "Bosnia and Herzegovina",
2484 "Value": "Bosnia and Herzegovina",
2485 "Order": 24
2486 },
2487 {
2488 "Id": 186,
2489 "QuestionId": 13,
2490 "Text": "Botswana",
2491 "Value": "Botswana",
2492 "Order": 25
2493 },
2494 {
2495 "Id": 194,
2496 "QuestionId": 13,
2497 "Text": "Brazil",
2498 "Value": "Brazil",
2499 "Order": 26
2500 },
2501 {
2502 "Id": 202,
2503 "QuestionId": 13,
2504 "Text": "Brunei",
2505 "Value": "Brunei",
2506 "Order": 27
2507 },
2508 {
2509 "Id": 210,
2510 "QuestionId": 13,
2511 "Text": "Bulgaria",
2512 "Value": "Bulgaria",
2513 "Order": 28
2514 },
2515 {
2516 "Id": 218,
2517 "QuestionId": 13,
2518 "Text": "Burkina Faso",
2519 "Value": "Burkina Faso",
2520 "Order": 29
2521 },
2522 {
2523 "Id": 226,
2524 "QuestionId": 13,
2525 "Text": "Burundi",
2526 "Value": "Burundi",
2527 "Order": 30
2528 },
2529 {
2530 "Id": 234,
2531 "QuestionId": 13,
2532 "Text": "Cambodia",
2533 "Value": "Cambodia",
2534 "Order": 31
2535 },
2536 {
2537 "Id": 242,
2538 "QuestionId": 13,
2539 "Text": "Cameroon",
2540 "Value": "Cameroon",
2541 "Order": 32
2542 },
2543 {
2544 "Id": 250,
2545 "QuestionId": 13,
2546 "Text": "Canada",
2547 "Value": "Canada",
2548 "Order": 33
2549 },
2550 {
2551 "Id": 258,
2552 "QuestionId": 13,
2553 "Text": "Cape Verde",
2554 "Value": "Cape Verde",
2555 "Order": 34
2556 },
2557 {
2558 "Id": 266,
2559 "QuestionId": 13,
2560 "Text": "Central African Republic",
2561 "Value": "Central African Republic",
2562 "Order": 35
2563 },
2564 {
2565 "Id": 274,
2566 "QuestionId": 13,
2567 "Text": "Chad",
2568 "Value": "Chad",
2569 "Order": 36
2570 },
2571 {
2572 "Id": 282,
2573 "QuestionId": 13,
2574 "Text": "Chile",
2575 "Value": "Chile",
2576 "Order": 37
2577 },
2578 {
2579 "Id": 290,
2580 "QuestionId": 13,
2581 "Text": "China",
2582 "Value": "China",
2583 "Order": 38
2584 },
2585 {
2586 "Id": 298,
2587 "QuestionId": 13,
2588 "Text": "Colombia",
2589 "Value": "Colombia",
2590 "Order": 39
2591 },
2592 {
2593 "Id": 306,
2594 "QuestionId": 13,
2595 "Text": "Comoros",
2596 "Value": "Comoros",
2597 "Order": 40
2598 },
2599 {
2600 "Id": 314,
2601 "QuestionId": 13,
2602 "Text": "Congo (Brazzaville)",
2603 "Value": "Congo (Brazzaville)",
2604 "Order": 41
2605 },
2606 {
2607 "Id": 322,
2608 "QuestionId": 13,
2609 "Text": "Congo",
2610 "Value": "Congo",
2611 "Order": 42
2612 },
2613 {
2614 "Id": 330,
2615 "QuestionId": 13,
2616 "Text": "Costa Rica",
2617 "Value": "Costa Rica",
2618 "Order": 43
2619 },
2620 {
2621 "Id": 338,
2622 "QuestionId": 13,
2623 "Text": "Cote d'Ivoire",
2624 "Value": "Cote d'Ivoire",
2625 "Order": 44
2626 },
2627 {
2628 "Id": 346,
2629 "QuestionId": 13,
2630 "Text": "Croatia",
2631 "Value": "Croatia",
2632 "Order": 45
2633 },
2634 {
2635 "Id": 354,
2636 "QuestionId": 13,
2637 "Text": "Cuba",
2638 "Value": "Cuba",
2639 "Order": 46
2640 },
2641 {
2642 "Id": 362,
2643 "QuestionId": 13,
2644 "Text": "Cyprus",
2645 "Value": "Cyprus",
2646 "Order": 47
2647 },
2648 {
2649 "Id": 370,
2650 "QuestionId": 13,
2651 "Text": "Czech Republic",
2652 "Value": "Czech Republic",
2653 "Order": 48
2654 },
2655 {
2656 "Id": 378,
2657 "QuestionId": 13,
2658 "Text": "Denmark",
2659 "Value": "Denmark",
2660 "Order": 49
2661 },
2662 {
2663 "Id": 386,
2664 "QuestionId": 13,
2665 "Text": "Djibouti",
2666 "Value": "Djibouti",
2667 "Order": 50
2668 },
2669 {
2670 "Id": 394,
2671 "QuestionId": 13,
2672 "Text": "Dominica",
2673 "Value": "Dominica",
2674 "Order": 51
2675 },
2676 {
2677 "Id": 402,
2678 "QuestionId": 13,
2679 "Text": "Dominican Republic",
2680 "Value": "Dominican Republic",
2681 "Order": 52
2682 },
2683 {
2684 "Id": 410,
2685 "QuestionId": 13,
2686 "Text": "East Timor",
2687 "Value": "East Timor",
2688 "Order": 53
2689 },
2690 {
2691 "Id": 418,
2692 "QuestionId": 13,
2693 "Text": "Ecuador",
2694 "Value": "Ecuador",
2695 "Order": 54
2696 },
2697 {
2698 "Id": 426,
2699 "QuestionId": 13,
2700 "Text": "Egypt",
2701 "Value": "Egypt",
2702 "Order": 55
2703 },
2704 {
2705 "Id": 434,
2706 "QuestionId": 13,
2707 "Text": "El Salvador",
2708 "Value": "El Salvador",
2709 "Order": 56
2710 },
2711 {
2712 "Id": 442,
2713 "QuestionId": 13,
2714 "Text": "Equatorial Guinea",
2715 "Value": "Equatorial Guinea",
2716 "Order": 57
2717 },
2718 {
2719 "Id": 450,
2720 "QuestionId": 13,
2721 "Text": "Eritrea",
2722 "Value": "Eritrea",
2723 "Order": 58
2724 },
2725 {
2726 "Id": 458,
2727 "QuestionId": 13,
2728 "Text": "Estonia",
2729 "Value": "Estonia",
2730 "Order": 59
2731 },
2732 {
2733 "Id": 466,
2734 "QuestionId": 13,
2735 "Text": "Ethiopia",
2736 "Value": "Ethiopia",
2737 "Order": 60
2738 },
2739 {
2740 "Id": 474,
2741 "QuestionId": 13,
2742 "Text": "Fiji",
2743 "Value": "Fiji",
2744 "Order": 61
2745 },
2746 {
2747 "Id": 482,
2748 "QuestionId": 13,
2749 "Text": "Finland",
2750 "Value": "Finland",
2751 "Order": 62
2752 },
2753 {
2754 "Id": 490,
2755 "QuestionId": 13,
2756 "Text": "France",
2757 "Value": "France",
2758 "Order": 63
2759 },
2760 {
2761 "Id": 498,
2762 "QuestionId": 13,
2763 "Text": "Gabon",
2764 "Value": "Gabon",
2765 "Order": 64
2766 },
2767 {
2768 "Id": 506,
2769 "QuestionId": 13,
2770 "Text": "Gambia, The",
2771 "Value": "Gambia, The",
2772 "Order": 65
2773 },
2774 {
2775 "Id": 514,
2776 "QuestionId": 13,
2777 "Text": "Georgia",
2778 "Value": "Georgia",
2779 "Order": 66
2780 },
2781 {
2782 "Id": 522,
2783 "QuestionId": 13,
2784 "Text": "Germany",
2785 "Value": "Germany",
2786 "Order": 67
2787 },
2788 {
2789 "Id": 530,
2790 "QuestionId": 13,
2791 "Text": "Ghana",
2792 "Value": "Ghana",
2793 "Order": 68
2794 },
2795 {
2796 "Id": 538,
2797 "QuestionId": 13,
2798 "Text": "Greece",
2799 "Value": "Greece",
2800 "Order": 69
2801 },
2802 {
2803 "Id": 546,
2804 "QuestionId": 13,
2805 "Text": "Grenada",
2806 "Value": "Grenada",
2807 "Order": 70
2808 },
2809 {
2810 "Id": 554,
2811 "QuestionId": 13,
2812 "Text": "Guatemala",
2813 "Value": "Guatemala",
2814 "Order": 71
2815 },
2816 {
2817 "Id": 562,
2818 "QuestionId": 13,
2819 "Text": "Guinea",
2820 "Value": "Guinea",
2821 "Order": 72
2822 },
2823 {
2824 "Id": 570,
2825 "QuestionId": 13,
2826 "Text": "Guinea-Bissau",
2827 "Value": "Guinea-Bissau",
2828 "Order": 73
2829 },
2830 {
2831 "Id": 578,
2832 "QuestionId": 13,
2833 "Text": "Guyana",
2834 "Value": "Guyana",
2835 "Order": 74
2836 },
2837 {
2838 "Id": 586,
2839 "QuestionId": 13,
2840 "Text": "Haiti",
2841 "Value": "Haiti",
2842 "Order": 75
2843 },
2844 {
2845 "Id": 594,
2846 "QuestionId": 13,
2847 "Text": "Honduras",
2848 "Value": "Honduras",
2849 "Order": 76
2850 },
2851 {
2852 "Id": 602,
2853 "QuestionId": 13,
2854 "Text": "Hungary",
2855 "Value": "Hungary",
2856 "Order": 77
2857 },
2858 {
2859 "Id": 610,
2860 "QuestionId": 13,
2861 "Text": "Iceland",
2862 "Value": "Iceland",
2863 "Order": 78
2864 },
2865 {
2866 "Id": 618,
2867 "QuestionId": 13,
2868 "Text": "India",
2869 "Value": "India",
2870 "Order": 79
2871 },
2872 {
2873 "Id": 626,
2874 "QuestionId": 13,
2875 "Text": "Indonesia",
2876 "Value": "Indonesia",
2877 "Order": 80
2878 },
2879 {
2880 "Id": 634,
2881 "QuestionId": 13,
2882 "Text": "Iran",
2883 "Value": "Iran",
2884 "Order": 81
2885 },
2886 {
2887 "Id": 642,
2888 "QuestionId": 13,
2889 "Text": "Iraq",
2890 "Value": "Iraq",
2891 "Order": 82
2892 },
2893 {
2894 "Id": 650,
2895 "QuestionId": 13,
2896 "Text": "Ireland",
2897 "Value": "Ireland",
2898 "Order": 83
2899 },
2900 {
2901 "Id": 658,
2902 "QuestionId": 13,
2903 "Text": "Israel",
2904 "Value": "Israel",
2905 "Order": 84
2906 },
2907 {
2908 "Id": 666,
2909 "QuestionId": 13,
2910 "Text": "Italy",
2911 "Value": "Italy",
2912 "Order": 85
2913 },
2914 {
2915 "Id": 674,
2916 "QuestionId": 13,
2917 "Text": "Jamaica",
2918 "Value": "Jamaica",
2919 "Order": 86
2920 },
2921 {
2922 "Id": 682,
2923 "QuestionId": 13,
2924 "Text": "Japan",
2925 "Value": "Japan",
2926 "Order": 87
2927 },
2928 {
2929 "Id": 690,
2930 "QuestionId": 13,
2931 "Text": "Jordan",
2932 "Value": "Jordan",
2933 "Order": 88
2934 },
2935 {
2936 "Id": 698,
2937 "QuestionId": 13,
2938 "Text": "Kazakhstan",
2939 "Value": "Kazakhstan",
2940 "Order": 89
2941 },
2942 {
2943 "Id": 706,
2944 "QuestionId": 13,
2945 "Text": "Kenya",
2946 "Value": "Kenya",
2947 "Order": 90
2948 },
2949 {
2950 "Id": 714,
2951 "QuestionId": 13,
2952 "Text": "Kiribati",
2953 "Value": "Kiribati",
2954 "Order": 91
2955 },
2956 {
2957 "Id": 722,
2958 "QuestionId": 13,
2959 "Text": "Korea, North",
2960 "Value": "Korea, North",
2961 "Order": 92
2962 },
2963 {
2964 "Id": 730,
2965 "QuestionId": 13,
2966 "Text": "Korea, South",
2967 "Value": "Korea, South",
2968 "Order": 93
2969 },
2970 {
2971 "Id": 738,
2972 "QuestionId": 13,
2973 "Text": "Kuwait",
2974 "Value": "Kuwait",
2975 "Order": 94
2976 },
2977 {
2978 "Id": 746,
2979 "QuestionId": 13,
2980 "Text": "Kyrgyzstan",
2981 "Value": "Kyrgyzstan",
2982 "Order": 95
2983 },
2984 {
2985 "Id": 754,
2986 "QuestionId": 13,
2987 "Text": "Laos",
2988 "Value": "Laos",
2989 "Order": 96
2990 },
2991 {
2992 "Id": 762,
2993 "QuestionId": 13,
2994 "Text": "Latvia",
2995 "Value": "Latvia",
2996 "Order": 97
2997 },
2998 {
2999 "Id": 770,
3000 "QuestionId": 13,
3001 "Text": "Lebanon",
3002 "Value": "Lebanon",
3003 "Order": 98
3004 },
3005 {
3006 "Id": 778,
3007 "QuestionId": 13,
3008 "Text": "Lesotho",
3009 "Value": "Lesotho",
3010 "Order": 99
3011 },
3012 {
3013 "Id": 786,
3014 "QuestionId": 13,
3015 "Text": "Liberia",
3016 "Value": "Liberia",
3017 "Order": 100
3018 },
3019 {
3020 "Id": 794,
3021 "QuestionId": 13,
3022 "Text": "Libya",
3023 "Value": "Libya",
3024 "Order": 101
3025 },
3026 {
3027 "Id": 802,
3028 "QuestionId": 13,
3029 "Text": "Liechtenstein",
3030 "Value": "Liechtenstein",
3031 "Order": 102
3032 },
3033 {
3034 "Id": 810,
3035 "QuestionId": 13,
3036 "Text": "Lithuania",
3037 "Value": "Lithuania",
3038 "Order": 103
3039 },
3040 {
3041 "Id": 818,
3042 "QuestionId": 13,
3043 "Text": "Luxembourg",
3044 "Value": "Luxembourg",
3045 "Order": 104
3046 },
3047 {
3048 "Id": 826,
3049 "QuestionId": 13,
3050 "Text": "Macedonia",
3051 "Value": "Macedonia",
3052 "Order": 105
3053 },
3054 {
3055 "Id": 834,
3056 "QuestionId": 13,
3057 "Text": "Madagascar",
3058 "Value": "Madagascar",
3059 "Order": 106
3060 },
3061 {
3062 "Id": 842,
3063 "QuestionId": 13,
3064 "Text": "Malawi",
3065 "Value": "Malawi",
3066 "Order": 107
3067 },
3068 {
3069 "Id": 850,
3070 "QuestionId": 13,
3071 "Text": "Malaysia",
3072 "Value": "Malaysia",
3073 "Order": 108
3074 },
3075 {
3076 "Id": 858,
3077 "QuestionId": 13,
3078 "Text": "Maldives",
3079 "Value": "Maldives",
3080 "Order": 109
3081 },
3082 {
3083 "Id": 866,
3084 "QuestionId": 13,
3085 "Text": "Mali",
3086 "Value": "Mali",
3087 "Order": 110
3088 },
3089 {
3090 "Id": 874,
3091 "QuestionId": 13,
3092 "Text": "Malta",
3093 "Value": "Malta",
3094 "Order": 111
3095 },
3096 {
3097 "Id": 882,
3098 "QuestionId": 13,
3099 "Text": "Marshall Islands",
3100 "Value": "Marshall Islands",
3101 "Order": 112
3102 },
3103 {
3104 "Id": 890,
3105 "QuestionId": 13,
3106 "Text": "Mauritania",
3107 "Value": "Mauritania",
3108 "Order": 113
3109 },
3110 {
3111 "Id": 898,
3112 "QuestionId": 13,
3113 "Text": "Mauritius",
3114 "Value": "Mauritius",
3115 "Order": 114
3116 },
3117 {
3118 "Id": 906,
3119 "QuestionId": 13,
3120 "Text": "Mexico",
3121 "Value": "Mexico",
3122 "Order": 115
3123 },
3124 {
3125 "Id": 914,
3126 "QuestionId": 13,
3127 "Text": "Micronesia",
3128 "Value": "Micronesia",
3129 "Order": 116
3130 },
3131 {
3132 "Id": 922,
3133 "QuestionId": 13,
3134 "Text": "Moldova",
3135 "Value": "Moldova",
3136 "Order": 117
3137 },
3138 {
3139 "Id": 930,
3140 "QuestionId": 13,
3141 "Text": "Monaco",
3142 "Value": "Monaco",
3143 "Order": 118
3144 },
3145 {
3146 "Id": 938,
3147 "QuestionId": 13,
3148 "Text": "Mongolia",
3149 "Value": "Mongolia",
3150 "Order": 119
3151 },
3152 {
3153 "Id": 946,
3154 "QuestionId": 13,
3155 "Text": "Morocco",
3156 "Value": "Morocco",
3157 "Order": 120
3158 },
3159 {
3160 "Id": 954,
3161 "QuestionId": 13,
3162 "Text": "Mozambique",
3163 "Value": "Mozambique",
3164 "Order": 121
3165 },
3166 {
3167 "Id": 962,
3168 "QuestionId": 13,
3169 "Text": "Myanmar",
3170 "Value": "Myanmar",
3171 "Order": 122
3172 },
3173 {
3174 "Id": 970,
3175 "QuestionId": 13,
3176 "Text": "Namibia",
3177 "Value": "Namibia",
3178 "Order": 123
3179 },
3180 {
3181 "Id": 978,
3182 "QuestionId": 13,
3183 "Text": "Nauru",
3184 "Value": "Nauru",
3185 "Order": 124
3186 },
3187 {
3188 "Id": 986,
3189 "QuestionId": 13,
3190 "Text": "Nepa",
3191 "Value": "Nepa",
3192 "Order": 125
3193 },
3194 {
3195 "Id": 994,
3196 "QuestionId": 13,
3197 "Text": "Netherlands",
3198 "Value": "Netherlands",
3199 "Order": 126
3200 },
3201 {
3202 "Id": 1002,
3203 "QuestionId": 13,
3204 "Text": "New Zealand",
3205 "Value": "New Zealand",
3206 "Order": 127
3207 },
3208 {
3209 "Id": 1010,
3210 "QuestionId": 13,
3211 "Text": "Nicaragua",
3212 "Value": "Nicaragua",
3213 "Order": 128
3214 },
3215 {
3216 "Id": 1018,
3217 "QuestionId": 13,
3218 "Text": "Niger",
3219 "Value": "Niger",
3220 "Order": 129
3221 },
3222 {
3223 "Id": 1026,
3224 "QuestionId": 13,
3225 "Text": "Nigeria",
3226 "Value": "Nigeria",
3227 "Order": 130
3228 },
3229 {
3230 "Id": 1034,
3231 "QuestionId": 13,
3232 "Text": "Norway",
3233 "Value": "Norway",
3234 "Order": 131
3235 },
3236 {
3237 "Id": 1042,
3238 "QuestionId": 13,
3239 "Text": "Oman",
3240 "Value": "Oman",
3241 "Order": 132
3242 },
3243 {
3244 "Id": 1050,
3245 "QuestionId": 13,
3246 "Text": "Pakistan",
3247 "Value": "Pakistan",
3248 "Order": 133
3249 },
3250 {
3251 "Id": 1058,
3252 "QuestionId": 13,
3253 "Text": "Palau",
3254 "Value": "Palau",
3255 "Order": 134
3256 },
3257 {
3258 "Id": 1066,
3259 "QuestionId": 13,
3260 "Text": "Panama",
3261 "Value": "Panama",
3262 "Order": 135
3263 },
3264 {
3265 "Id": 1074,
3266 "QuestionId": 13,
3267 "Text": "Papua New Guinea",
3268 "Value": "Papua New Guinea",
3269 "Order": 136
3270 },
3271 {
3272 "Id": 1082,
3273 "QuestionId": 13,
3274 "Text": "Paraguay",
3275 "Value": "Paraguay",
3276 "Order": 137
3277 },
3278 {
3279 "Id": 1090,
3280 "QuestionId": 13,
3281 "Text": "Peru",
3282 "Value": "Peru",
3283 "Order": 138
3284 },
3285 {
3286 "Id": 1098,
3287 "QuestionId": 13,
3288 "Text": "Philippines",
3289 "Value": "Philippines",
3290 "Order": 139
3291 },
3292 {
3293 "Id": 1106,
3294 "QuestionId": 13,
3295 "Text": "Poland",
3296 "Value": "Poland",
3297 "Order": 140
3298 },
3299 {
3300 "Id": 1114,
3301 "QuestionId": 13,
3302 "Text": "Portugal",
3303 "Value": "Portugal",
3304 "Order": 141
3305 },
3306 {
3307 "Id": 1122,
3308 "QuestionId": 13,
3309 "Text": "Qatar",
3310 "Value": "Qatar",
3311 "Order": 142
3312 },
3313 {
3314 "Id": 1130,
3315 "QuestionId": 13,
3316 "Text": "Romania",
3317 "Value": "Romania",
3318 "Order": 143
3319 },
3320 {
3321 "Id": 1138,
3322 "QuestionId": 13,
3323 "Text": "Russia",
3324 "Value": "Russia",
3325 "Order": 144
3326 },
3327 {
3328 "Id": 1146,
3329 "QuestionId": 13,
3330 "Text": "Rwanda",
3331 "Value": "Rwanda",
3332 "Order": 145
3333 },
3334 {
3335 "Id": 1154,
3336 "QuestionId": 13,
3337 "Text": "Saint Kitts and Nevis",
3338 "Value": "Saint Kitts and Nevis",
3339 "Order": 146
3340 },
3341 {
3342 "Id": 1162,
3343 "QuestionId": 13,
3344 "Text": "Saint Lucia",
3345 "Value": "Saint Lucia",
3346 "Order": 147
3347 },
3348 {
3349 "Id": 1170,
3350 "QuestionId": 13,
3351 "Text": "Saint Vincent",
3352 "Value": "Saint Vincent",
3353 "Order": 148
3354 },
3355 {
3356 "Id": 1178,
3357 "QuestionId": 13,
3358 "Text": "Samoa",
3359 "Value": "Samoa",
3360 "Order": 149
3361 },
3362 {
3363 "Id": 1186,
3364 "QuestionId": 13,
3365 "Text": "San Marino",
3366 "Value": "San Marino",
3367 "Order": 150
3368 },
3369 {
3370 "Id": 1194,
3371 "QuestionId": 13,
3372 "Text": "Sao Tome and Principe",
3373 "Value": "Sao Tome and Principe",
3374 "Order": 151
3375 },
3376 {
3377 "Id": 1202,
3378 "QuestionId": 13,
3379 "Text": "Saudi Arabia",
3380 "Value": "Saudi Arabia",
3381 "Order": 152
3382 },
3383 {
3384 "Id": 1210,
3385 "QuestionId": 13,
3386 "Text": "Senegal",
3387 "Value": "Senegal",
3388 "Order": 153
3389 },
3390 {
3391 "Id": 1218,
3392 "QuestionId": 13,
3393 "Text": "Serbia and Montenegro",
3394 "Value": "Serbia and Montenegro",
3395 "Order": 154
3396 },
3397 {
3398 "Id": 1226,
3399 "QuestionId": 13,
3400 "Text": "Seychelles",
3401 "Value": "Seychelles",
3402 "Order": 155
3403 },
3404 {
3405 "Id": 1234,
3406 "QuestionId": 13,
3407 "Text": "Sierra Leone",
3408 "Value": "Sierra Leone",
3409 "Order": 156
3410 },
3411 {
3412 "Id": 1242,
3413 "QuestionId": 13,
3414 "Text": "Singapore",
3415 "Value": "Singapore",
3416 "Order": 157
3417 },
3418 {
3419 "Id": 1250,
3420 "QuestionId": 13,
3421 "Text": "Slovakia",
3422 "Value": "Slovakia",
3423 "Order": 158
3424 },
3425 {
3426 "Id": 1258,
3427 "QuestionId": 13,
3428 "Text": "Slovenia",
3429 "Value": "Slovenia",
3430 "Order": 159
3431 },
3432 {
3433 "Id": 1266,
3434 "QuestionId": 13,
3435 "Text": "Solomon Islands",
3436 "Value": "Solomon Islands",
3437 "Order": 160
3438 },
3439 {
3440 "Id": 1274,
3441 "QuestionId": 13,
3442 "Text": "Somalia",
3443 "Value": "Somalia",
3444 "Order": 161
3445 },
3446 {
3447 "Id": 1282,
3448 "QuestionId": 13,
3449 "Text": "South Africa",
3450 "Value": "South Africa",
3451 "Order": 162
3452 },
3453 {
3454 "Id": 1290,
3455 "QuestionId": 13,
3456 "Text": "Spain",
3457 "Value": "Spain",
3458 "Order": 163
3459 },
3460 {
3461 "Id": 1298,
3462 "QuestionId": 13,
3463 "Text": "Sri Lanka",
3464 "Value": "Sri Lanka",
3465 "Order": 164
3466 },
3467 {
3468 "Id": 1306,
3469 "QuestionId": 13,
3470 "Text": "Sudan",
3471 "Value": "Sudan",
3472 "Order": 165
3473 },
3474 {
3475 "Id": 1314,
3476 "QuestionId": 13,
3477 "Text": "Suriname",
3478 "Value": "Suriname",
3479 "Order": 166
3480 },
3481 {
3482 "Id": 1322,
3483 "QuestionId": 13,
3484 "Text": "Swaziland",
3485 "Value": "Swaziland",
3486 "Order": 167
3487 },
3488 {
3489 "Id": 1330,
3490 "QuestionId": 13,
3491 "Text": "Sweden",
3492 "Value": "Sweden",
3493 "Order": 168
3494 },
3495 {
3496 "Id": 1338,
3497 "QuestionId": 13,
3498 "Text": "Switzerland",
3499 "Value": "Switzerland",
3500 "Order": 169
3501 },
3502 {
3503 "Id": 1346,
3504 "QuestionId": 13,
3505 "Text": "Syria",
3506 "Value": "Syria",
3507 "Order": 170
3508 },
3509 {
3510 "Id": 1354,
3511 "QuestionId": 13,
3512 "Text": "Taiwan",
3513 "Value": "Taiwan",
3514 "Order": 171
3515 },
3516 {
3517 "Id": 1362,
3518 "QuestionId": 13,
3519 "Text": "Tajikistan",
3520 "Value": "Tajikistan",
3521 "Order": 172
3522 },
3523 {
3524 "Id": 1370,
3525 "QuestionId": 13,
3526 "Text": "Tanzania",
3527 "Value": "Tanzania",
3528 "Order": 173
3529 },
3530 {
3531 "Id": 1378,
3532 "QuestionId": 13,
3533 "Text": "Thailand",
3534 "Value": "Thailand",
3535 "Order": 174
3536 },
3537 {
3538 "Id": 1386,
3539 "QuestionId": 13,
3540 "Text": "Togo",
3541 "Value": "Togo",
3542 "Order": 175
3543 },
3544 {
3545 "Id": 1394,
3546 "QuestionId": 13,
3547 "Text": "Tonga",
3548 "Value": "Tonga",
3549 "Order": 176
3550 },
3551 {
3552 "Id": 1402,
3553 "QuestionId": 13,
3554 "Text": "Trinidad and Tobago",
3555 "Value": "Trinidad and Tobago",
3556 "Order": 177
3557 },
3558 {
3559 "Id": 1410,
3560 "QuestionId": 13,
3561 "Text": "Tunisia",
3562 "Value": "Tunisia",
3563 "Order": 178
3564 },
3565 {
3566 "Id": 1418,
3567 "QuestionId": 13,
3568 "Text": "Turkey",
3569 "Value": "Turkey",
3570 "Order": 179
3571 },
3572 {
3573 "Id": 1426,
3574 "QuestionId": 13,
3575 "Text": "Turkmenistan",
3576 "Value": "Turkmenistan",
3577 "Order": 180
3578 },
3579 {
3580 "Id": 1434,
3581 "QuestionId": 13,
3582 "Text": "Tuvalu",
3583 "Value": "Tuvalu",
3584 "Order": 181
3585 },
3586 {
3587 "Id": 1442,
3588 "QuestionId": 13,
3589 "Text": "Uganda",
3590 "Value": "Uganda",
3591 "Order": 182
3592 },
3593 {
3594 "Id": 1450,
3595 "QuestionId": 13,
3596 "Text": "Ukraine",
3597 "Value": "Ukraine",
3598 "Order": 183
3599 },
3600 {
3601 "Id": 1458,
3602 "QuestionId": 13,
3603 "Text": "United Arab Emirates",
3604 "Value": "United Arab Emirates",
3605 "Order": 184
3606 },
3607 {
3608 "Id": 1466,
3609 "QuestionId": 13,
3610 "Text": "United Kingdom",
3611 "Value": "United Kingdom",
3612 "Order": 185
3613 },
3614 {
3615 "Id": 1474,
3616 "QuestionId": 13,
3617 "Text": "United States",
3618 "Value": "United States",
3619 "Order": 2
3620 },
3621 {
3622 "Id": 1482,
3623 "QuestionId": 13,
3624 "Text": "Uruguay",
3625 "Value": "Uruguay",
3626 "Order": 186
3627 },
3628 {
3629 "Id": 1490,
3630 "QuestionId": 13,
3631 "Text": "Uzbekistan",
3632 "Value": "Uzbekistan",
3633 "Order": 187
3634 },
3635 {
3636 "Id": 1498,
3637 "QuestionId": 13,
3638 "Text": "Vanuatu",
3639 "Value": "Vanuatu",
3640 "Order": 188
3641 },
3642 {
3643 "Id": 1506,
3644 "QuestionId": 13,
3645 "Text": "Vatican City",
3646 "Value": "Vatican City",
3647 "Order": 189
3648 },
3649 {
3650 "Id": 1514,
3651 "QuestionId": 13,
3652 "Text": "Venezuela",
3653 "Value": "Venezuela",
3654 "Order": 190
3655 },
3656 {
3657 "Id": 1522,
3658 "QuestionId": 13,
3659 "Text": "Vietnam",
3660 "Value": "Vietnam",
3661 "Order": 191
3662 },
3663 {
3664 "Id": 1530,
3665 "QuestionId": 13,
3666 "Text": "Yemen",
3667 "Value": "Yemen",
3668 "Order": 192
3669 },
3670 {
3671 "Id": 1538,
3672 "QuestionId": 13,
3673 "Text": "Zambia",
3674 "Value": "Zambia",
3675 "Order": 193
3676 },
3677 {
3678 "Id": 1546,
3679 "QuestionId": 13,
3680 "Text": "Zimbabwe",
3681 "Value": "Zimbabwe",
3682 "Order": 194
3683 },
3684 {
3685 "Id": 2186,
3686 "QuestionId": 13,
3687 "Text": "British Columbia",
3688 "Value": "British Columbia",
3689 "Order": 195
3690 }
3691 ]
3692 },
3693 {
3694 "Id": 14,
3695 "Text": "Phone",
3696 "Type": "0",
3697 "Alias": "Phone"
3698 },
3699 {
3700 "Id": 15,
3701 "Text": "Fax",
3702 "Type": "0",
3703 "Alias": "Fax"
3704 },
3705 {
3706 "Id": 18,
3707 "Text": " NEW QUESTION",
3708 "Type": "0",
3709 "Alias": ""
3710 },
3711 {
3712 "Id": 26,
3713 "Text": " NEW QUESTION",
3714 "Type": "0",
3715 "Alias": ""
3716 },
3717 {
3718 "Id": 34,
3719 "Text": " NEW QUESTION",
3720 "Type": "0",
3721 "Alias": ""
3722 },
3723 {
3724 "Id": 42,
3725 "Text": " NEW QUESTION",
3726 "Type": "0",
3727 "Alias": ""
3728 },
3729 {
3730 "Id": 50,
3731 "Text": " NEW QUESTION",
3732 "Type": "0",
3733 "Alias": ""
3734 },
3735 {
3736 "Id": 58,
3737 "Text": " NEW QUESTION",
3738 "Type": "0",
3739 "Alias": ""
3740 },
3741 {
3742 "Id": 66,
3743 "Text": " NEW QUESTION",
3744 "Type": "0",
3745 "Alias": ""
3746 },
3747 {
3748 "Id": 74,
3749 "Text": " NEW QUESTION",
3750 "Type": "0",
3751 "Alias": ""
3752 },
3753 {
3754 "Id": 82,
3755 "Text": " NEW QUESTION",
3756 "Type": "0",
3757 "Alias": ""
3758 },
3759 {
3760 "Id": 90,
3761 "Text": " NEW QUESTION",
3762 "Type": "0",
3763 "Alias": ""
3764 }
3765 ]
3766 }
3767 {{/code}}
3768
3769
3770 (% id="HGETspecificQuestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
3771 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Question(%%) ==
3772
3773 ----
3774
3775 {{panel bgColor="#D3D3D3" width="100%"}}
3776 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}}
3777 {{/panel}}
3778
3779 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
3780
3781 ----
3782
3783 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
3784
3785 ==== Example ====
3786
3787 ----
3788
3789 (% style="color:#6b6b6b" %)Request
3790
3791 {{code language="php" theme="RDark" title="Get specific Question Request"}}
3792 <?php
3793
3794 $curl = curl_init();
3795
3796 curl_setopt_array($curl, array(
3797 CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}',
3798 CURLOPT_RETURNTRANSFER => true,
3799 CURLOPT_ENCODING => '',
3800 CURLOPT_MAXREDIRS => 10,
3801 CURLOPT_TIMEOUT => 0,
3802 CURLOPT_FOLLOWLOCATION => true,
3803 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
3804 CURLOPT_CUSTOMREQUEST => 'GET',
3805 CURLOPT_HTTPHEADER => array(
3806 'Appkey: {{ONECOUNT API KEY}}'
3807 ),
3808 ));
3809
3810 $response = curl_exec($curl);
3811
3812 curl_close($curl);
3813 echo $response;
3814 {{/code}}
3815
3816
3817 (% style="color:#6b6b6b" %)Response  200 OK
3818
3819 {{code language="yml" theme="RDark" collapse="true" title="Get specific question Response"}}
3820 {
3821 "result": {
3822 "success": "1",
3823 "error": {
3824 "code": "",
3825 "message": ""
3826 }
3827 },
3828 "Questions": [
3829 {
3830 "Id": 3,
3831 "Text": "Password",
3832 "Type": "2",
3833 "Alias": "Password"
3834 }
3835 ]
3836 }
3837 {{/code}}
3838
3839
3840 (% id="HGETlookupquestionbytext" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
3841 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by text(%%) ==
3842
3843 ----
3844
3845 {{panel bgColor="#D3D3D3" width="100%"}}
3846 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Text=COUNTRY
3847 {{/panel}}
3848
3849 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
3850
3851 ----
3852
3853 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
3854
3855 === (% style="color:#212121" %)Query Params(%%) ===
3856
3857 ----
3858
3859 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Text  COUNTRY(%%)
3860
3861
3862 ==== Example ====
3863
3864 ----
3865
3866 (% style="color:#6b6b6b" %)Request
3867
3868 {{code language="php" theme="RDark" title="Lookup question by text Request"}}
3869 <?php
3870
3871 $curl = curl_init();
3872
3873 curl_setopt_array($curl, array(
3874 CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Text=COUNTRY',
3875 CURLOPT_RETURNTRANSFER => true,
3876 CURLOPT_ENCODING => '',
3877 CURLOPT_MAXREDIRS => 10,
3878 CURLOPT_TIMEOUT => 0,
3879 CURLOPT_FOLLOWLOCATION => true,
3880 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
3881 CURLOPT_CUSTOMREQUEST => 'GET',
3882 CURLOPT_HTTPHEADER => array(
3883 'Appkey: {{ONECOUNT API KEY}}'
3884 ),
3885 ));
3886
3887 $response = curl_exec($curl);
3888
3889 curl_close($curl);
3890 echo $response;
3891 {{/code}}
3892
3893
3894 (% style="color:#6b6b6b" %)Response  200 OK
3895
3896 {{code language="yml" theme="RDark" collapse="true" title="Lookup question by title Response"}}
3897 {
3898 "result": {
3899 "success": "1",
3900 "error": {
3901 "code": "",
3902 "message": ""
3903 }
3904 },
3905 "Questions": [
3906 {
3907 "Id": 13,
3908 "Text": "Country",
3909 "Type": "4",
3910 "Alias": "Country",
3911 "Choices": [
3912 {
3913 "Id": 2,
3914 "QuestionId": 13,
3915 "Text": "Select One",
3916 "Value": "",
3917 "Order": 1
3918 },
3919 {
3920 "Id": 10,
3921 "QuestionId": 13,
3922 "Text": "Afghanistan",
3923 "Value": "Afghanistan",
3924 "Order": 3
3925 },
3926 {
3927 "Id": 18,
3928 "QuestionId": 13,
3929 "Text": "Albania",
3930 "Value": "Albania",
3931 "Order": 4
3932 },
3933 {
3934 "Id": 26,
3935 "QuestionId": 13,
3936 "Text": "Algeria",
3937 "Value": "Algeria",
3938 "Order": 5
3939 },
3940 {
3941 "Id": 34,
3942 "QuestionId": 13,
3943 "Text": "Andorra",
3944 "Value": "Andorra",
3945 "Order": 6
3946 },
3947 {
3948 "Id": 42,
3949 "QuestionId": 13,
3950 "Text": "Angola",
3951 "Value": "Angola",
3952 "Order": 7
3953 },
3954 {
3955 "Id": 50,
3956 "QuestionId": 13,
3957 "Text": "Antigua and Barbuda",
3958 "Value": "Antigua and Barbuda",
3959 "Order": 8
3960 },
3961 {
3962 "Id": 58,
3963 "QuestionId": 13,
3964 "Text": "Argentina",
3965 "Value": "Argentina",
3966 "Order": 9
3967 },
3968 {
3969 "Id": 66,
3970 "QuestionId": 13,
3971 "Text": "Armenia",
3972 "Value": "Armenia",
3973 "Order": 10
3974 },
3975 {
3976 "Id": 74,
3977 "QuestionId": 13,
3978 "Text": "Australia",
3979 "Value": "Australia",
3980 "Order": 11
3981 },
3982 {
3983 "Id": 82,
3984 "QuestionId": 13,
3985 "Text": "Austria",
3986 "Value": "Austria",
3987 "Order": 12
3988 },
3989 {
3990 "Id": 90,
3991 "QuestionId": 13,
3992 "Text": "Azerbaijan",
3993 "Value": "Azerbaijan",
3994 "Order": 13
3995 },
3996 {
3997 "Id": 98,
3998 "QuestionId": 13,
3999 "Text": "Bahamas",
4000 "Value": "Bahamas",
4001 "Order": 14
4002 },
4003 {
4004 "Id": 106,
4005 "QuestionId": 13,
4006 "Text": "Bahrain",
4007 "Value": "Bahrain",
4008 "Order": 15
4009 },
4010 {
4011 "Id": 114,
4012 "QuestionId": 13,
4013 "Text": "Bangladesh",
4014 "Value": "Bangladesh",
4015 "Order": 16
4016 },
4017 {
4018 "Id": 122,
4019 "QuestionId": 13,
4020 "Text": "Barbados",
4021 "Value": "Barbados",
4022 "Order": 17
4023 },
4024 {
4025 "Id": 130,
4026 "QuestionId": 13,
4027 "Text": "Belarus",
4028 "Value": "Belarus",
4029 "Order": 18
4030 },
4031 {
4032 "Id": 138,
4033 "QuestionId": 13,
4034 "Text": "Belgium",
4035 "Value": "Belgium",
4036 "Order": 19
4037 },
4038 {
4039 "Id": 146,
4040 "QuestionId": 13,
4041 "Text": "Belize",
4042 "Value": "Belize",
4043 "Order": 20
4044 },
4045 {
4046 "Id": 154,
4047 "QuestionId": 13,
4048 "Text": "Benin",
4049 "Value": "Benin",
4050 "Order": 21
4051 },
4052 {
4053 "Id": 162,
4054 "QuestionId": 13,
4055 "Text": "Bhutan",
4056 "Value": "Bhutan",
4057 "Order": 22
4058 },
4059 {
4060 "Id": 170,
4061 "QuestionId": 13,
4062 "Text": "Bolivia",
4063 "Value": "Bolivia",
4064 "Order": 23
4065 },
4066 {
4067 "Id": 178,
4068 "QuestionId": 13,
4069 "Text": "Bosnia and Herzegovina",
4070 "Value": "Bosnia and Herzegovina",
4071 "Order": 24
4072 },
4073 {
4074 "Id": 186,
4075 "QuestionId": 13,
4076 "Text": "Botswana",
4077 "Value": "Botswana",
4078 "Order": 25
4079 },
4080 {
4081 "Id": 194,
4082 "QuestionId": 13,
4083 "Text": "Brazil",
4084 "Value": "Brazil",
4085 "Order": 26
4086 },
4087 {
4088 "Id": 202,
4089 "QuestionId": 13,
4090 "Text": "Brunei",
4091 "Value": "Brunei",
4092 "Order": 27
4093 },
4094 {
4095 "Id": 210,
4096 "QuestionId": 13,
4097 "Text": "Bulgaria",
4098 "Value": "Bulgaria",
4099 "Order": 28
4100 },
4101 {
4102 "Id": 218,
4103 "QuestionId": 13,
4104 "Text": "Burkina Faso",
4105 "Value": "Burkina Faso",
4106 "Order": 29
4107 },
4108 {
4109 "Id": 226,
4110 "QuestionId": 13,
4111 "Text": "Burundi",
4112 "Value": "Burundi",
4113 "Order": 30
4114 },
4115 {
4116 "Id": 234,
4117 "QuestionId": 13,
4118 "Text": "Cambodia",
4119 "Value": "Cambodia",
4120 "Order": 31
4121 },
4122 {
4123 "Id": 242,
4124 "QuestionId": 13,
4125 "Text": "Cameroon",
4126 "Value": "Cameroon",
4127 "Order": 32
4128 },
4129 {
4130 "Id": 250,
4131 "QuestionId": 13,
4132 "Text": "Canada",
4133 "Value": "Canada",
4134 "Order": 33
4135 },
4136 {
4137 "Id": 258,
4138 "QuestionId": 13,
4139 "Text": "Cape Verde",
4140 "Value": "Cape Verde",
4141 "Order": 34
4142 },
4143 {
4144 "Id": 266,
4145 "QuestionId": 13,
4146 "Text": "Central African Republic",
4147 "Value": "Central African Republic",
4148 "Order": 35
4149 },
4150 {
4151 "Id": 274,
4152 "QuestionId": 13,
4153 "Text": "Chad",
4154 "Value": "Chad",
4155 "Order": 36
4156 },
4157 {
4158 "Id": 282,
4159 "QuestionId": 13,
4160 "Text": "Chile",
4161 "Value": "Chile",
4162 "Order": 37
4163 },
4164 {
4165 "Id": 290,
4166 "QuestionId": 13,
4167 "Text": "China",
4168 "Value": "China",
4169 "Order": 38
4170 },
4171 {
4172 "Id": 298,
4173 "QuestionId": 13,
4174 "Text": "Colombia",
4175 "Value": "Colombia",
4176 "Order": 39
4177 },
4178 {
4179 "Id": 306,
4180 "QuestionId": 13,
4181 "Text": "Comoros",
4182 "Value": "Comoros",
4183 "Order": 40
4184 },
4185 {
4186 "Id": 314,
4187 "QuestionId": 13,
4188 "Text": "Congo (Brazzaville)",
4189 "Value": "Congo (Brazzaville)",
4190 "Order": 41
4191 },
4192 {
4193 "Id": 322,
4194 "QuestionId": 13,
4195 "Text": "Congo",
4196 "Value": "Congo",
4197 "Order": 42
4198 },
4199 {
4200 "Id": 330,
4201 "QuestionId": 13,
4202 "Text": "Costa Rica",
4203 "Value": "Costa Rica",
4204 "Order": 43
4205 },
4206 {
4207 "Id": 338,
4208 "QuestionId": 13,
4209 "Text": "Cote d'Ivoire",
4210 "Value": "Cote d'Ivoire",
4211 "Order": 44
4212 },
4213 {
4214 "Id": 346,
4215 "QuestionId": 13,
4216 "Text": "Croatia",
4217 "Value": "Croatia",
4218 "Order": 45
4219 },
4220 {
4221 "Id": 354,
4222 "QuestionId": 13,
4223 "Text": "Cuba",
4224 "Value": "Cuba",
4225 "Order": 46
4226 },
4227 {
4228 "Id": 362,
4229 "QuestionId": 13,
4230 "Text": "Cyprus",
4231 "Value": "Cyprus",
4232 "Order": 47
4233 },
4234 {
4235 "Id": 370,
4236 "QuestionId": 13,
4237 "Text": "Czech Republic",
4238 "Value": "Czech Republic",
4239 "Order": 48
4240 },
4241 {
4242 "Id": 378,
4243 "QuestionId": 13,
4244 "Text": "Denmark",
4245 "Value": "Denmark",
4246 "Order": 49
4247 },
4248 {
4249 "Id": 386,
4250 "QuestionId": 13,
4251 "Text": "Djibouti",
4252 "Value": "Djibouti",
4253 "Order": 50
4254 },
4255 {
4256 "Id": 394,
4257 "QuestionId": 13,
4258 "Text": "Dominica",
4259 "Value": "Dominica",
4260 "Order": 51
4261 },
4262 {
4263 "Id": 402,
4264 "QuestionId": 13,
4265 "Text": "Dominican Republic",
4266 "Value": "Dominican Republic",
4267 "Order": 52
4268 },
4269 {
4270 "Id": 410,
4271 "QuestionId": 13,
4272 "Text": "East Timor",
4273 "Value": "East Timor",
4274 "Order": 53
4275 },
4276 {
4277 "Id": 418,
4278 "QuestionId": 13,
4279 "Text": "Ecuador",
4280 "Value": "Ecuador",
4281 "Order": 54
4282 },
4283 {
4284 "Id": 426,
4285 "QuestionId": 13,
4286 "Text": "Egypt",
4287 "Value": "Egypt",
4288 "Order": 55
4289 },
4290 {
4291 "Id": 434,
4292 "QuestionId": 13,
4293 "Text": "El Salvador",
4294 "Value": "El Salvador",
4295 "Order": 56
4296 },
4297 {
4298 "Id": 442,
4299 "QuestionId": 13,
4300 "Text": "Equatorial Guinea",
4301 "Value": "Equatorial Guinea",
4302 "Order": 57
4303 },
4304 {
4305 "Id": 450,
4306 "QuestionId": 13,
4307 "Text": "Eritrea",
4308 "Value": "Eritrea",
4309 "Order": 58
4310 },
4311 {
4312 "Id": 458,
4313 "QuestionId": 13,
4314 "Text": "Estonia",
4315 "Value": "Estonia",
4316 "Order": 59
4317 },
4318 {
4319 "Id": 466,
4320 "QuestionId": 13,
4321 "Text": "Ethiopia",
4322 "Value": "Ethiopia",
4323 "Order": 60
4324 },
4325 {
4326 "Id": 474,
4327 "QuestionId": 13,
4328 "Text": "Fiji",
4329 "Value": "Fiji",
4330 "Order": 61
4331 },
4332 {
4333 "Id": 482,
4334 "QuestionId": 13,
4335 "Text": "Finland",
4336 "Value": "Finland",
4337 "Order": 62
4338 },
4339 {
4340 "Id": 490,
4341 "QuestionId": 13,
4342 "Text": "France",
4343 "Value": "France",
4344 "Order": 63
4345 },
4346 {
4347 "Id": 498,
4348 "QuestionId": 13,
4349 "Text": "Gabon",
4350 "Value": "Gabon",
4351 "Order": 64
4352 },
4353 {
4354 "Id": 506,
4355 "QuestionId": 13,
4356 "Text": "Gambia, The",
4357 "Value": "Gambia, The",
4358 "Order": 65
4359 },
4360 {
4361 "Id": 514,
4362 "QuestionId": 13,
4363 "Text": "Georgia",
4364 "Value": "Georgia",
4365 "Order": 66
4366 },
4367 {
4368 "Id": 522,
4369 "QuestionId": 13,
4370 "Text": "Germany",
4371 "Value": "Germany",
4372 "Order": 67
4373 },
4374 {
4375 "Id": 530,
4376 "QuestionId": 13,
4377 "Text": "Ghana",
4378 "Value": "Ghana",
4379 "Order": 68
4380 },
4381 {
4382 "Id": 538,
4383 "QuestionId": 13,
4384 "Text": "Greece",
4385 "Value": "Greece",
4386 "Order": 69
4387 },
4388 {
4389 "Id": 546,
4390 "QuestionId": 13,
4391 "Text": "Grenada",
4392 "Value": "Grenada",
4393 "Order": 70
4394 },
4395 {
4396 "Id": 554,
4397 "QuestionId": 13,
4398 "Text": "Guatemala",
4399 "Value": "Guatemala",
4400 "Order": 71
4401 },
4402 {
4403 "Id": 562,
4404 "QuestionId": 13,
4405 "Text": "Guinea",
4406 "Value": "Guinea",
4407 "Order": 72
4408 },
4409 {
4410 "Id": 570,
4411 "QuestionId": 13,
4412 "Text": "Guinea-Bissau",
4413 "Value": "Guinea-Bissau",
4414 "Order": 73
4415 },
4416 {
4417 "Id": 578,
4418 "QuestionId": 13,
4419 "Text": "Guyana",
4420 "Value": "Guyana",
4421 "Order": 74
4422 },
4423 {
4424 "Id": 586,
4425 "QuestionId": 13,
4426 "Text": "Haiti",
4427 "Value": "Haiti",
4428 "Order": 75
4429 },
4430 {
4431 "Id": 594,
4432 "QuestionId": 13,
4433 "Text": "Honduras",
4434 "Value": "Honduras",
4435 "Order": 76
4436 },
4437 {
4438 "Id": 602,
4439 "QuestionId": 13,
4440 "Text": "Hungary",
4441 "Value": "Hungary",
4442 "Order": 77
4443 },
4444 {
4445 "Id": 610,
4446 "QuestionId": 13,
4447 "Text": "Iceland",
4448 "Value": "Iceland",
4449 "Order": 78
4450 },
4451 {
4452 "Id": 618,
4453 "QuestionId": 13,
4454 "Text": "India",
4455 "Value": "India",
4456 "Order": 79
4457 },
4458 {
4459 "Id": 626,
4460 "QuestionId": 13,
4461 "Text": "Indonesia",
4462 "Value": "Indonesia",
4463 "Order": 80
4464 },
4465 {
4466 "Id": 634,
4467 "QuestionId": 13,
4468 "Text": "Iran",
4469 "Value": "Iran",
4470 "Order": 81
4471 },
4472 {
4473 "Id": 642,
4474 "QuestionId": 13,
4475 "Text": "Iraq",
4476 "Value": "Iraq",
4477 "Order": 82
4478 },
4479 {
4480 "Id": 650,
4481 "QuestionId": 13,
4482 "Text": "Ireland",
4483 "Value": "Ireland",
4484 "Order": 83
4485 },
4486 {
4487 "Id": 658,
4488 "QuestionId": 13,
4489 "Text": "Israel",
4490 "Value": "Israel",
4491 "Order": 84
4492 },
4493 {
4494 "Id": 666,
4495 "QuestionId": 13,
4496 "Text": "Italy",
4497 "Value": "Italy",
4498 "Order": 85
4499 },
4500 {
4501 "Id": 674,
4502 "QuestionId": 13,
4503 "Text": "Jamaica",
4504 "Value": "Jamaica",
4505 "Order": 86
4506 },
4507 {
4508 "Id": 682,
4509 "QuestionId": 13,
4510 "Text": "Japan",
4511 "Value": "Japan",
4512 "Order": 87
4513 },
4514 {
4515 "Id": 690,
4516 "QuestionId": 13,
4517 "Text": "Jordan",
4518 "Value": "Jordan",
4519 "Order": 88
4520 },
4521 {
4522 "Id": 698,
4523 "QuestionId": 13,
4524 "Text": "Kazakhstan",
4525 "Value": "Kazakhstan",
4526 "Order": 89
4527 },
4528 {
4529 "Id": 706,
4530 "QuestionId": 13,
4531 "Text": "Kenya",
4532 "Value": "Kenya",
4533 "Order": 90
4534 },
4535 {
4536 "Id": 714,
4537 "QuestionId": 13,
4538 "Text": "Kiribati",
4539 "Value": "Kiribati",
4540 "Order": 91
4541 },
4542 {
4543 "Id": 722,
4544 "QuestionId": 13,
4545 "Text": "Korea, North",
4546 "Value": "Korea, North",
4547 "Order": 92
4548 },
4549 {
4550 "Id": 730,
4551 "QuestionId": 13,
4552 "Text": "Korea, South",
4553 "Value": "Korea, South",
4554 "Order": 93
4555 },
4556 {
4557 "Id": 738,
4558 "QuestionId": 13,
4559 "Text": "Kuwait",
4560 "Value": "Kuwait",
4561 "Order": 94
4562 },
4563 {
4564 "Id": 746,
4565 "QuestionId": 13,
4566 "Text": "Kyrgyzstan",
4567 "Value": "Kyrgyzstan",
4568 "Order": 95
4569 },
4570 {
4571 "Id": 754,
4572 "QuestionId": 13,
4573 "Text": "Laos",
4574 "Value": "Laos",
4575 "Order": 96
4576 },
4577 {
4578 "Id": 762,
4579 "QuestionId": 13,
4580 "Text": "Latvia",
4581 "Value": "Latvia",
4582 "Order": 97
4583 },
4584 {
4585 "Id": 770,
4586 "QuestionId": 13,
4587 "Text": "Lebanon",
4588 "Value": "Lebanon",
4589 "Order": 98
4590 },
4591 {
4592 "Id": 778,
4593 "QuestionId": 13,
4594 "Text": "Lesotho",
4595 "Value": "Lesotho",
4596 "Order": 99
4597 },
4598 {
4599 "Id": 786,
4600 "QuestionId": 13,
4601 "Text": "Liberia",
4602 "Value": "Liberia",
4603 "Order": 100
4604 },
4605 {
4606 "Id": 794,
4607 "QuestionId": 13,
4608 "Text": "Libya",
4609 "Value": "Libya",
4610 "Order": 101
4611 },
4612 {
4613 "Id": 802,
4614 "QuestionId": 13,
4615 "Text": "Liechtenstein",
4616 "Value": "Liechtenstein",
4617 "Order": 102
4618 },
4619 {
4620 "Id": 810,
4621 "QuestionId": 13,
4622 "Text": "Lithuania",
4623 "Value": "Lithuania",
4624 "Order": 103
4625 },
4626 {
4627 "Id": 818,
4628 "QuestionId": 13,
4629 "Text": "Luxembourg",
4630 "Value": "Luxembourg",
4631 "Order": 104
4632 },
4633 {
4634 "Id": 826,
4635 "QuestionId": 13,
4636 "Text": "Macedonia",
4637 "Value": "Macedonia",
4638 "Order": 105
4639 },
4640 {
4641 "Id": 834,
4642 "QuestionId": 13,
4643 "Text": "Madagascar",
4644 "Value": "Madagascar",
4645 "Order": 106
4646 },
4647 {
4648 "Id": 842,
4649 "QuestionId": 13,
4650 "Text": "Malawi",
4651 "Value": "Malawi",
4652 "Order": 107
4653 },
4654 {
4655 "Id": 850,
4656 "QuestionId": 13,
4657 "Text": "Malaysia",
4658 "Value": "Malaysia",
4659 "Order": 108
4660 },
4661 {
4662 "Id": 858,
4663 "QuestionId": 13,
4664 "Text": "Maldives",
4665 "Value": "Maldives",
4666 "Order": 109
4667 },
4668 {
4669 "Id": 866,
4670 "QuestionId": 13,
4671 "Text": "Mali",
4672 "Value": "Mali",
4673 "Order": 110
4674 },
4675 {
4676 "Id": 874,
4677 "QuestionId": 13,
4678 "Text": "Malta",
4679 "Value": "Malta",
4680 "Order": 111
4681 },
4682 {
4683 "Id": 882,
4684 "QuestionId": 13,
4685 "Text": "Marshall Islands",
4686 "Value": "Marshall Islands",
4687 "Order": 112
4688 },
4689 {
4690 "Id": 890,
4691 "QuestionId": 13,
4692 "Text": "Mauritania",
4693 "Value": "Mauritania",
4694 "Order": 113
4695 },
4696 {
4697 "Id": 898,
4698 "QuestionId": 13,
4699 "Text": "Mauritius",
4700 "Value": "Mauritius",
4701 "Order": 114
4702 },
4703 {
4704 "Id": 906,
4705 "QuestionId": 13,
4706 "Text": "Mexico",
4707 "Value": "Mexico",
4708 "Order": 115
4709 },
4710 {
4711 "Id": 914,
4712 "QuestionId": 13,
4713 "Text": "Micronesia",
4714 "Value": "Micronesia",
4715 "Order": 116
4716 },
4717 {
4718 "Id": 922,
4719 "QuestionId": 13,
4720 "Text": "Moldova",
4721 "Value": "Moldova",
4722 "Order": 117
4723 },
4724 {
4725 "Id": 930,
4726 "QuestionId": 13,
4727 "Text": "Monaco",
4728 "Value": "Monaco",
4729 "Order": 118
4730 },
4731 {
4732 "Id": 938,
4733 "QuestionId": 13,
4734 "Text": "Mongolia",
4735 "Value": "Mongolia",
4736 "Order": 119
4737 },
4738 {
4739 "Id": 946,
4740 "QuestionId": 13,
4741 "Text": "Morocco",
4742 "Value": "Morocco",
4743 "Order": 120
4744 },
4745 {
4746 "Id": 954,
4747 "QuestionId": 13,
4748 "Text": "Mozambique",
4749 "Value": "Mozambique",
4750 "Order": 121
4751 },
4752 {
4753 "Id": 962,
4754 "QuestionId": 13,
4755 "Text": "Myanmar",
4756 "Value": "Myanmar",
4757 "Order": 122
4758 },
4759 {
4760 "Id": 970,
4761 "QuestionId": 13,
4762 "Text": "Namibia",
4763 "Value": "Namibia",
4764 "Order": 123
4765 },
4766 {
4767 "Id": 978,
4768 "QuestionId": 13,
4769 "Text": "Nauru",
4770 "Value": "Nauru",
4771 "Order": 124
4772 },
4773 {
4774 "Id": 986,
4775 "QuestionId": 13,
4776 "Text": "Nepa",
4777 "Value": "Nepa",
4778 "Order": 125
4779 },
4780 {
4781 "Id": 994,
4782 "QuestionId": 13,
4783 "Text": "Netherlands",
4784 "Value": "Netherlands",
4785 "Order": 126
4786 },
4787 {
4788 "Id": 1002,
4789 "QuestionId": 13,
4790 "Text": "New Zealand",
4791 "Value": "New Zealand",
4792 "Order": 127
4793 },
4794 {
4795 "Id": 1010,
4796 "QuestionId": 13,
4797 "Text": "Nicaragua",
4798 "Value": "Nicaragua",
4799 "Order": 128
4800 },
4801 {
4802 "Id": 1018,
4803 "QuestionId": 13,
4804 "Text": "Niger",
4805 "Value": "Niger",
4806 "Order": 129
4807 },
4808 {
4809 "Id": 1026,
4810 "QuestionId": 13,
4811 "Text": "Nigeria",
4812 "Value": "Nigeria",
4813 "Order": 130
4814 },
4815 {
4816 "Id": 1034,
4817 "QuestionId": 13,
4818 "Text": "Norway",
4819 "Value": "Norway",
4820 "Order": 131
4821 },
4822 {
4823 "Id": 1042,
4824 "QuestionId": 13,
4825 "Text": "Oman",
4826 "Value": "Oman",
4827 "Order": 132
4828 },
4829 {
4830 "Id": 1050,
4831 "QuestionId": 13,
4832 "Text": "Pakistan",
4833 "Value": "Pakistan",
4834 "Order": 133
4835 },
4836 {
4837 "Id": 1058,
4838 "QuestionId": 13,
4839 "Text": "Palau",
4840 "Value": "Palau",
4841 "Order": 134
4842 },
4843 {
4844 "Id": 1066,
4845 "QuestionId": 13,
4846 "Text": "Panama",
4847 "Value": "Panama",
4848 "Order": 135
4849 },
4850 {
4851 "Id": 1074,
4852 "QuestionId": 13,
4853 "Text": "Papua New Guinea",
4854 "Value": "Papua New Guinea",
4855 "Order": 136
4856 },
4857 {
4858 "Id": 1082,
4859 "QuestionId": 13,
4860 "Text": "Paraguay",
4861 "Value": "Paraguay",
4862 "Order": 137
4863 },
4864 {
4865 "Id": 1090,
4866 "QuestionId": 13,
4867 "Text": "Peru",
4868 "Value": "Peru",
4869 "Order": 138
4870 },
4871 {
4872 "Id": 1098,
4873 "QuestionId": 13,
4874 "Text": "Philippines",
4875 "Value": "Philippines",
4876 "Order": 139
4877 },
4878 {
4879 "Id": 1106,
4880 "QuestionId": 13,
4881 "Text": "Poland",
4882 "Value": "Poland",
4883 "Order": 140
4884 },
4885 {
4886 "Id": 1114,
4887 "QuestionId": 13,
4888 "Text": "Portugal",
4889 "Value": "Portugal",
4890 "Order": 141
4891 },
4892 {
4893 "Id": 1122,
4894 "QuestionId": 13,
4895 "Text": "Qatar",
4896 "Value": "Qatar",
4897 "Order": 142
4898 },
4899 {
4900 "Id": 1130,
4901 "QuestionId": 13,
4902 "Text": "Romania",
4903 "Value": "Romania",
4904 "Order": 143
4905 },
4906 {
4907 "Id": 1138,
4908 "QuestionId": 13,
4909 "Text": "Russia",
4910 "Value": "Russia",
4911 "Order": 144
4912 },
4913 {
4914 "Id": 1146,
4915 "QuestionId": 13,
4916 "Text": "Rwanda",
4917 "Value": "Rwanda",
4918 "Order": 145
4919 },
4920 {
4921 "Id": 1154,
4922 "QuestionId": 13,
4923 "Text": "Saint Kitts and Nevis",
4924 "Value": "Saint Kitts and Nevis",
4925 "Order": 146
4926 },
4927 {
4928 "Id": 1162,
4929 "QuestionId": 13,
4930 "Text": "Saint Lucia",
4931 "Value": "Saint Lucia",
4932 "Order": 147
4933 },
4934 {
4935 "Id": 1170,
4936 "QuestionId": 13,
4937 "Text": "Saint Vincent",
4938 "Value": "Saint Vincent",
4939 "Order": 148
4940 },
4941 {
4942 "Id": 1178,
4943 "QuestionId": 13,
4944 "Text": "Samoa",
4945 "Value": "Samoa",
4946 "Order": 149
4947 },
4948 {
4949 "Id": 1186,
4950 "QuestionId": 13,
4951 "Text": "San Marino",
4952 "Value": "San Marino",
4953 "Order": 150
4954 },
4955 {
4956 "Id": 1194,
4957 "QuestionId": 13,
4958 "Text": "Sao Tome and Principe",
4959 "Value": "Sao Tome and Principe",
4960 "Order": 151
4961 },
4962 {
4963 "Id": 1202,
4964 "QuestionId": 13,
4965 "Text": "Saudi Arabia",
4966 "Value": "Saudi Arabia",
4967 "Order": 152
4968 },
4969 {
4970 "Id": 1210,
4971 "QuestionId": 13,
4972 "Text": "Senegal",
4973 "Value": "Senegal",
4974 "Order": 153
4975 },
4976 {
4977 "Id": 1218,
4978 "QuestionId": 13,
4979 "Text": "Serbia and Montenegro",
4980 "Value": "Serbia and Montenegro",
4981 "Order": 154
4982 },
4983 {
4984 "Id": 1226,
4985 "QuestionId": 13,
4986 "Text": "Seychelles",
4987 "Value": "Seychelles",
4988 "Order": 155
4989 },
4990 {
4991 "Id": 1234,
4992 "QuestionId": 13,
4993 "Text": "Sierra Leone",
4994 "Value": "Sierra Leone",
4995 "Order": 156
4996 },
4997 {
4998 "Id": 1242,
4999 "QuestionId": 13,
5000 "Text": "Singapore",
5001 "Value": "Singapore",
5002 "Order": 157
5003 },
5004 {
5005 "Id": 1250,
5006 "QuestionId": 13,
5007 "Text": "Slovakia",
5008 "Value": "Slovakia",
5009 "Order": 158
5010 },
5011 {
5012 "Id": 1258,
5013 "QuestionId": 13,
5014 "Text": "Slovenia",
5015 "Value": "Slovenia",
5016 "Order": 159
5017 },
5018 {
5019 "Id": 1266,
5020 "QuestionId": 13,
5021 "Text": "Solomon Islands",
5022 "Value": "Solomon Islands",
5023 "Order": 160
5024 },
5025 {
5026 "Id": 1274,
5027 "QuestionId": 13,
5028 "Text": "Somalia",
5029 "Value": "Somalia",
5030 "Order": 161
5031 },
5032 {
5033 "Id": 1282,
5034 "QuestionId": 13,
5035 "Text": "South Africa",
5036 "Value": "South Africa",
5037 "Order": 162
5038 },
5039 {
5040 "Id": 1290,
5041 "QuestionId": 13,
5042 "Text": "Spain",
5043 "Value": "Spain",
5044 "Order": 163
5045 },
5046 {
5047 "Id": 1298,
5048 "QuestionId": 13,
5049 "Text": "Sri Lanka",
5050 "Value": "Sri Lanka",
5051 "Order": 164
5052 },
5053 {
5054 "Id": 1306,
5055 "QuestionId": 13,
5056 "Text": "Sudan",
5057 "Value": "Sudan",
5058 "Order": 165
5059 },
5060 {
5061 "Id": 1314,
5062 "QuestionId": 13,
5063 "Text": "Suriname",
5064 "Value": "Suriname",
5065 "Order": 166
5066 },
5067 {
5068 "Id": 1322,
5069 "QuestionId": 13,
5070 "Text": "Swaziland",
5071 "Value": "Swaziland",
5072 "Order": 167
5073 },
5074 {
5075 "Id": 1330,
5076 "QuestionId": 13,
5077 "Text": "Sweden",
5078 "Value": "Sweden",
5079 "Order": 168
5080 },
5081 {
5082 "Id": 1338,
5083 "QuestionId": 13,
5084 "Text": "Switzerland",
5085 "Value": "Switzerland",
5086 "Order": 169
5087 },
5088 {
5089 "Id": 1346,
5090 "QuestionId": 13,
5091 "Text": "Syria",
5092 "Value": "Syria",
5093 "Order": 170
5094 },
5095 {
5096 "Id": 1354,
5097 "QuestionId": 13,
5098 "Text": "Taiwan",
5099 "Value": "Taiwan",
5100 "Order": 171
5101 },
5102 {
5103 "Id": 1362,
5104 "QuestionId": 13,
5105 "Text": "Tajikistan",
5106 "Value": "Tajikistan",
5107 "Order": 172
5108 },
5109 {
5110 "Id": 1370,
5111 "QuestionId": 13,
5112 "Text": "Tanzania",
5113 "Value": "Tanzania",
5114 "Order": 173
5115 },
5116 {
5117 "Id": 1378,
5118 "QuestionId": 13,
5119 "Text": "Thailand",
5120 "Value": "Thailand",
5121 "Order": 174
5122 },
5123 {
5124 "Id": 1386,
5125 "QuestionId": 13,
5126 "Text": "Togo",
5127 "Value": "Togo",
5128 "Order": 175
5129 },
5130 {
5131 "Id": 1394,
5132 "QuestionId": 13,
5133 "Text": "Tonga",
5134 "Value": "Tonga",
5135 "Order": 176
5136 },
5137 {
5138 "Id": 1402,
5139 "QuestionId": 13,
5140 "Text": "Trinidad and Tobago",
5141 "Value": "Trinidad and Tobago",
5142 "Order": 177
5143 },
5144 {
5145 "Id": 1410,
5146 "QuestionId": 13,
5147 "Text": "Tunisia",
5148 "Value": "Tunisia",
5149 "Order": 178
5150 },
5151 {
5152 "Id": 1418,
5153 "QuestionId": 13,
5154 "Text": "Turkey",
5155 "Value": "Turkey",
5156 "Order": 179
5157 },
5158 {
5159 "Id": 1426,
5160 "QuestionId": 13,
5161 "Text": "Turkmenistan",
5162 "Value": "Turkmenistan",
5163 "Order": 180
5164 },
5165 {
5166 "Id": 1434,
5167 "QuestionId": 13,
5168 "Text": "Tuvalu",
5169 "Value": "Tuvalu",
5170 "Order": 181
5171 },
5172 {
5173 "Id": 1442,
5174 "QuestionId": 13,
5175 "Text": "Uganda",
5176 "Value": "Uganda",
5177 "Order": 182
5178 },
5179 {
5180 "Id": 1450,
5181 "QuestionId": 13,
5182 "Text": "Ukraine",
5183 "Value": "Ukraine",
5184 "Order": 183
5185 },
5186 {
5187 "Id": 1458,
5188 "QuestionId": 13,
5189 "Text": "United Arab Emirates",
5190 "Value": "United Arab Emirates",
5191 "Order": 184
5192 },
5193 {
5194 "Id": 1466,
5195 "QuestionId": 13,
5196 "Text": "United Kingdom",
5197 "Value": "United Kingdom",
5198 "Order": 185
5199 },
5200 {
5201 "Id": 1474,
5202 "QuestionId": 13,
5203 "Text": "United States",
5204 "Value": "United States",
5205 "Order": 2
5206 },
5207 {
5208 "Id": 1482,
5209 "QuestionId": 13,
5210 "Text": "Uruguay",
5211 "Value": "Uruguay",
5212 "Order": 186
5213 },
5214 {
5215 "Id": 1490,
5216 "QuestionId": 13,
5217 "Text": "Uzbekistan",
5218 "Value": "Uzbekistan",
5219 "Order": 187
5220 },
5221 {
5222 "Id": 1498,
5223 "QuestionId": 13,
5224 "Text": "Vanuatu",
5225 "Value": "Vanuatu",
5226 "Order": 188
5227 },
5228 {
5229 "Id": 1506,
5230 "QuestionId": 13,
5231 "Text": "Vatican City",
5232 "Value": "Vatican City",
5233 "Order": 189
5234 },
5235 {
5236 "Id": 1514,
5237 "QuestionId": 13,
5238 "Text": "Venezuela",
5239 "Value": "Venezuela",
5240 "Order": 190
5241 },
5242 {
5243 "Id": 1522,
5244 "QuestionId": 13,
5245 "Text": "Vietnam",
5246 "Value": "Vietnam",
5247 "Order": 191
5248 },
5249 {
5250 "Id": 1530,
5251 "QuestionId": 13,
5252 "Text": "Yemen",
5253 "Value": "Yemen",
5254 "Order": 192
5255 },
5256 {
5257 "Id": 1538,
5258 "QuestionId": 13,
5259 "Text": "Zambia",
5260 "Value": "Zambia",
5261 "Order": 193
5262 },
5263 {
5264 "Id": 1546,
5265 "QuestionId": 13,
5266 "Text": "Zimbabwe",
5267 "Value": "Zimbabwe",
5268 "Order": 194
5269 },
5270 {
5271 "Id": 2186,
5272 "QuestionId": 13,
5273 "Text": "British Columbia",
5274 "Value": "British Columbia",
5275 "Order": 195
5276 }
5277 ]
5278 }
5279 ]
5280 }
5281 {{/code}}
5282
5283
5284 (% id="HGETlookupquestionbyType" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
5285 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by Type(%%) ==
5286
5287 ----
5288
5289 {{panel bgColor="#D3D3D3" width="100%"}}
5290 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Type=4
5291 {{/panel}}
5292
5293 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
5294
5295 ----
5296
5297 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
5298
5299 === (% style="color:#212121" %)Query Params(%%) ===
5300
5301 ----
5302
5303 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Type  4(%%)
5304
5305
5306 ==== Example ====
5307
5308 ----
5309
5310 (% style="color:#6b6b6b" %)Request
5311
5312 {{code language="php" theme="RDark" title="Lookup question by Type Request"}}
5313 <?php
5314
5315 $curl = curl_init();
5316
5317 curl_setopt_array($curl, array(
5318 CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Type=4',
5319 CURLOPT_RETURNTRANSFER => true,
5320 CURLOPT_ENCODING => '',
5321 CURLOPT_MAXREDIRS => 10,
5322 CURLOPT_TIMEOUT => 0,
5323 CURLOPT_FOLLOWLOCATION => true,
5324 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
5325 CURLOPT_CUSTOMREQUEST => 'GET',
5326 CURLOPT_HTTPHEADER => array(
5327 'Appkey: {{ONECOUNT API KEY}}'
5328 ),
5329 ));
5330
5331 $response = curl_exec($curl);
5332
5333 curl_close($curl);
5334 echo $response;
5335 {{/code}}
5336
5337
5338 (% style="color:#6b6b6b" %)Response  200 OK
5339
5340 {{code language="yml" theme="RDark" collapse="true" title="Lookup question by type Response"}}
5341 {
5342 "result": {
5343 "success": "1",
5344 "error": {
5345 "code": "",
5346 "message": ""
5347 }
5348 },
5349 "Questions": [
5350 {
5351 "Id": 11,
5352 "Text": "State/Province",
5353 "Type": "4",
5354 "Alias": "State/Province",
5355 "Choices": [
5356 {
5357 "Id": 1554,
5358 "QuestionId": 11,
5359 "Text": "Select One",
5360 "Value": "",
5361 "Order": 1
5362 },
5363 {
5364 "Id": 1562,
5365 "QuestionId": 11,
5366 "Text": "Alabama",
5367 "Value": "AL",
5368 "Order": 2
5369 },
5370 {
5371 "Id": 1570,
5372 "QuestionId": 11,
5373 "Text": "Alaska",
5374 "Value": "AK",
5375 "Order": 3
5376 },
5377 {
5378 "Id": 1578,
5379 "QuestionId": 11,
5380 "Text": "Arizona",
5381 "Value": "AZ",
5382 "Order": 4
5383 },
5384 {
5385 "Id": 1586,
5386 "QuestionId": 11,
5387 "Text": "Arkansas",
5388 "Value": "AR",
5389 "Order": 5
5390 },
5391 {
5392 "Id": 1594,
5393 "QuestionId": 11,
5394 "Text": "California",
5395 "Value": "CA",
5396 "Order": 6
5397 },
5398 {
5399 "Id": 1602,
5400 "QuestionId": 11,
5401 "Text": "Colorado",
5402 "Value": "CO",
5403 "Order": 7
5404 },
5405 {
5406 "Id": 1610,
5407 "QuestionId": 11,
5408 "Text": "Connecticut",
5409 "Value": "CT",
5410 "Order": 8
5411 },
5412 {
5413 "Id": 1618,
5414 "QuestionId": 11,
5415 "Text": "Delaware",
5416 "Value": "DE",
5417 "Order": 9
5418 },
5419 {
5420 "Id": 1626,
5421 "QuestionId": 11,
5422 "Text": "District of Columbia",
5423 "Value": "DC",
5424 "Order": 10
5425 },
5426 {
5427 "Id": 1634,
5428 "QuestionId": 11,
5429 "Text": "Florida",
5430 "Value": "FL",
5431 "Order": 11
5432 },
5433 {
5434 "Id": 1642,
5435 "QuestionId": 11,
5436 "Text": "Georgia",
5437 "Value": "GA",
5438 "Order": 12
5439 },
5440 {
5441 "Id": 1650,
5442 "QuestionId": 11,
5443 "Text": "Hawaii",
5444 "Value": "HI",
5445 "Order": 13
5446 },
5447 {
5448 "Id": 1658,
5449 "QuestionId": 11,
5450 "Text": "Idaho",
5451 "Value": "ID",
5452 "Order": 14
5453 },
5454 {
5455 "Id": 1666,
5456 "QuestionId": 11,
5457 "Text": "Illinois",
5458 "Value": "IL",
5459 "Order": 15
5460 },
5461 {
5462 "Id": 1674,
5463 "QuestionId": 11,
5464 "Text": "Indiana",
5465 "Value": "IN",
5466 "Order": 16
5467 },
5468 {
5469 "Id": 1682,
5470 "QuestionId": 11,
5471 "Text": "Iowa",
5472 "Value": "IA",
5473 "Order": 17
5474 },
5475 {
5476 "Id": 1690,
5477 "QuestionId": 11,
5478 "Text": "Kansas",
5479 "Value": "KS",
5480 "Order": 18
5481 },
5482 {
5483 "Id": 1698,
5484 "QuestionId": 11,
5485 "Text": "Kentucky",
5486 "Value": "KY",
5487 "Order": 19
5488 },
5489 {
5490 "Id": 1706,
5491 "QuestionId": 11,
5492 "Text": "Louisiana",
5493 "Value": "LA",
5494 "Order": 20
5495 },
5496 {
5497 "Id": 1714,
5498 "QuestionId": 11,
5499 "Text": "Maine",
5500 "Value": "ME",
5501 "Order": 21
5502 },
5503 {
5504 "Id": 1722,
5505 "QuestionId": 11,
5506 "Text": "Maryland",
5507 "Value": "MD",
5508 "Order": 22
5509 },
5510 {
5511 "Id": 1730,
5512 "QuestionId": 11,
5513 "Text": "Massachusetts",
5514 "Value": "MA",
5515 "Order": 23
5516 },
5517 {
5518 "Id": 1738,
5519 "QuestionId": 11,
5520 "Text": "Michigan",
5521 "Value": "MI",
5522 "Order": 24
5523 },
5524 {
5525 "Id": 1746,
5526 "QuestionId": 11,
5527 "Text": "Minnesota",
5528 "Value": "MN",
5529 "Order": 25
5530 },
5531 {
5532 "Id": 1754,
5533 "QuestionId": 11,
5534 "Text": "Mississippi",
5535 "Value": "MS",
5536 "Order": 26
5537 },
5538 {
5539 "Id": 1762,
5540 "QuestionId": 11,
5541 "Text": "Missouri",
5542 "Value": "MO",
5543 "Order": 27
5544 },
5545 {
5546 "Id": 1770,
5547 "QuestionId": 11,
5548 "Text": "Montana",
5549 "Value": "MT",
5550 "Order": 28
5551 },
5552 {
5553 "Id": 1778,
5554 "QuestionId": 11,
5555 "Text": "Nebraska",
5556 "Value": "NE",
5557 "Order": 29
5558 },
5559 {
5560 "Id": 1786,
5561 "QuestionId": 11,
5562 "Text": "Nevada",
5563 "Value": "NV",
5564 "Order": 30
5565 },
5566 {
5567 "Id": 1794,
5568 "QuestionId": 11,
5569 "Text": "New Hampshire",
5570 "Value": "NH",
5571 "Order": 31
5572 },
5573 {
5574 "Id": 1802,
5575 "QuestionId": 11,
5576 "Text": "New Jersey",
5577 "Value": "NJ",
5578 "Order": 32
5579 },
5580 {
5581 "Id": 1810,
5582 "QuestionId": 11,
5583 "Text": "New Mexico",
5584 "Value": "NM",
5585 "Order": 33
5586 },
5587 {
5588 "Id": 1818,
5589 "QuestionId": 11,
5590 "Text": "New York",
5591 "Value": "NY",
5592 "Order": 34
5593 },
5594 {
5595 "Id": 1826,
5596 "QuestionId": 11,
5597 "Text": "North Carolina",
5598 "Value": "NC",
5599 "Order": 35
5600 },
5601 {
5602 "Id": 1834,
5603 "QuestionId": 11,
5604 "Text": "Ohio",
5605 "Value": "OH",
5606 "Order": 37
5607 },
5608 {
5609 "Id": 1842,
5610 "QuestionId": 11,
5611 "Text": "Oklahoma",
5612 "Value": "OK",
5613 "Order": 38
5614 },
5615 {
5616 "Id": 1850,
5617 "QuestionId": 11,
5618 "Text": "Oregon",
5619 "Value": "OR",
5620 "Order": 39
5621 },
5622 {
5623 "Id": 1858,
5624 "QuestionId": 11,
5625 "Text": "Pennsylvania",
5626 "Value": "PA",
5627 "Order": 40
5628 },
5629 {
5630 "Id": 1866,
5631 "QuestionId": 11,
5632 "Text": "Rhode Island",
5633 "Value": "RI",
5634 "Order": 41
5635 },
5636 {
5637 "Id": 1874,
5638 "QuestionId": 11,
5639 "Text": "South Carolina",
5640 "Value": "SC",
5641 "Order": 42
5642 },
5643 {
5644 "Id": 1882,
5645 "QuestionId": 11,
5646 "Text": "South Dakota",
5647 "Value": "SD",
5648 "Order": 43
5649 },
5650 {
5651 "Id": 1890,
5652 "QuestionId": 11,
5653 "Text": "Tennessee",
5654 "Value": "TN",
5655 "Order": 44
5656 },
5657 {
5658 "Id": 1898,
5659 "QuestionId": 11,
5660 "Text": "Texas",
5661 "Value": "TX",
5662 "Order": 45
5663 },
5664 {
5665 "Id": 1906,
5666 "QuestionId": 11,
5667 "Text": "Utah",
5668 "Value": "UT",
5669 "Order": 46
5670 },
5671 {
5672 "Id": 1914,
5673 "QuestionId": 11,
5674 "Text": "Vermont",
5675 "Value": "VT",
5676 "Order": 47
5677 },
5678 {
5679 "Id": 1922,
5680 "QuestionId": 11,
5681 "Text": "Virginia",
5682 "Value": "VA",
5683 "Order": 48
5684 },
5685 {
5686 "Id": 1930,
5687 "QuestionId": 11,
5688 "Text": "Washington",
5689 "Value": "WA",
5690 "Order": 49
5691 },
5692 {
5693 "Id": 1938,
5694 "QuestionId": 11,
5695 "Text": "West Virginia",
5696 "Value": "WV",
5697 "Order": 50
5698 },
5699 {
5700 "Id": 1946,
5701 "QuestionId": 11,
5702 "Text": "Wisconsin",
5703 "Value": "WI",
5704 "Order": 51
5705 },
5706 {
5707 "Id": 1954,
5708 "QuestionId": 11,
5709 "Text": "Wyoming",
5710 "Value": "WY",
5711 "Order": 52
5712 },
5713 {
5714 "Id": 1962,
5715 "QuestionId": 11,
5716 "Text": "American Samoa",
5717 "Value": "AS",
5718 "Order": 53
5719 },
5720 {
5721 "Id": 1970,
5722 "QuestionId": 11,
5723 "Text": "North Dakota",
5724 "Value": "ND",
5725 "Order": 36
5726 },
5727 {
5728 "Id": 1978,
5729 "QuestionId": 11,
5730 "Text": "Federated States of Micronesia",
5731 "Value": "FM",
5732 "Order": 54
5733 },
5734 {
5735 "Id": 1986,
5736 "QuestionId": 11,
5737 "Text": "Guam",
5738 "Value": "GU",
5739 "Order": 55
5740 },
5741 {
5742 "Id": 1994,
5743 "QuestionId": 11,
5744 "Text": "Marshall Islands",
5745 "Value": "MH",
5746 "Order": 56
5747 },
5748 {
5749 "Id": 2002,
5750 "QuestionId": 11,
5751 "Text": "Northern Mariana Islands",
5752 "Value": "MP",
5753 "Order": 57
5754 },
5755 {
5756 "Id": 2010,
5757 "QuestionId": 11,
5758 "Text": "Palau",
5759 "Value": "PW",
5760 "Order": 58
5761 },
5762 {
5763 "Id": 2018,
5764 "QuestionId": 11,
5765 "Text": "Puerto Rico",
5766 "Value": "PR",
5767 "Order": 59
5768 },
5769 {
5770 "Id": 2026,
5771 "QuestionId": 11,
5772 "Text": "U.S. Virgin Islands",
5773 "Value": "VI",
5774 "Order": 60
5775 },
5776 {
5777 "Id": 2034,
5778 "QuestionId": 11,
5779 "Text": "Armed Forces Africa",
5780 "Value": "AE",
5781 "Order": 61
5782 },
5783 {
5784 "Id": 2042,
5785 "QuestionId": 11,
5786 "Text": "Armed Forces Americas (except Canada)",
5787 "Value": "AA",
5788 "Order": 62
5789 },
5790 {
5791 "Id": 2050,
5792 "QuestionId": 11,
5793 "Text": "Armed Forces Canada",
5794 "Value": "AE",
5795 "Order": 63
5796 },
5797 {
5798 "Id": 2058,
5799 "QuestionId": 11,
5800 "Text": "Armed Forces Europe",
5801 "Value": "AE",
5802 "Order": 64
5803 },
5804 {
5805 "Id": 2066,
5806 "QuestionId": 11,
5807 "Text": "Armed Forces Middle East",
5808 "Value": "AE",
5809 "Order": 65
5810 },
5811 {
5812 "Id": 2074,
5813 "QuestionId": 11,
5814 "Text": "Armed Forces Pacific",
5815 "Value": "AP",
5816 "Order": 66
5817 },
5818 {
5819 "Id": 2082,
5820 "QuestionId": 11,
5821 "Text": "Non-US/Not Applicable",
5822 "Value": "Non-US/Not Applicable",
5823 "Order": 67
5824 },
5825 {
5826 "Id": 2090,
5827 "QuestionId": 11,
5828 "Text": "Ontario",
5829 "Value": "Ontario",
5830 "Order": 68
5831 },
5832 {
5833 "Id": 2098,
5834 "QuestionId": 11,
5835 "Text": "Quebec",
5836 "Value": "Quebec",
5837 "Order": 69
5838 },
5839 {
5840 "Id": 2106,
5841 "QuestionId": 11,
5842 "Text": "Nova Scotia",
5843 "Value": "Nova Scotia",
5844 "Order": 70
5845 },
5846 {
5847 "Id": 2114,
5848 "QuestionId": 11,
5849 "Text": "New Brunswick",
5850 "Value": "New Brunswick",
5851 "Order": 71
5852 },
5853 {
5854 "Id": 2122,
5855 "QuestionId": 11,
5856 "Text": "Manitoba",
5857 "Value": "Manitoba",
5858 "Order": 72
5859 },
5860 {
5861 "Id": 2130,
5862 "QuestionId": 11,
5863 "Text": "Brittish Columbia",
5864 "Value": "Brittish Columbia",
5865 "Order": 73
5866 },
5867 {
5868 "Id": 2138,
5869 "QuestionId": 11,
5870 "Text": "Prince Edward Island",
5871 "Value": "Prince Edward Island",
5872 "Order": 74
5873 },
5874 {
5875 "Id": 2146,
5876 "QuestionId": 11,
5877 "Text": "Saskatchewan",
5878 "Value": "Saskatchewan",
5879 "Order": 75
5880 },
5881 {
5882 "Id": 2154,
5883 "QuestionId": 11,
5884 "Text": "Alberta",
5885 "Value": "Alberta",
5886 "Order": 76
5887 },
5888 {
5889 "Id": 2162,
5890 "QuestionId": 11,
5891 "Text": "Newfoundland and Labrador",
5892 "Value": "Newfoundland and Labrador",
5893 "Order": 77
5894 },
5895 {
5896 "Id": 2170,
5897 "QuestionId": 11,
5898 "Text": "British Columbia",
5899 "Value": "British Columbia",
5900 "Order": 78
5901 },
5902 {
5903 "Id": 2178,
5904 "QuestionId": 11,
5905 "Text": "Ontario",
5906 "Value": "ON",
5907 "Order": 79
5908 }
5909 ]
5910 },
5911 {
5912 "Id": 13,
5913 "Text": "Country",
5914 "Type": "4",
5915 "Alias": "Country",
5916 "Choices": [
5917 {
5918 "Id": 2,
5919 "QuestionId": 13,
5920 "Text": "Select One",
5921 "Value": "",
5922 "Order": 1
5923 },
5924 {
5925 "Id": 10,
5926 "QuestionId": 13,
5927 "Text": "Afghanistan",
5928 "Value": "Afghanistan",
5929 "Order": 3
5930 },
5931 {
5932 "Id": 18,
5933 "QuestionId": 13,
5934 "Text": "Albania",
5935 "Value": "Albania",
5936 "Order": 4
5937 },
5938 {
5939 "Id": 26,
5940 "QuestionId": 13,
5941 "Text": "Algeria",
5942 "Value": "Algeria",
5943 "Order": 5
5944 },
5945 {
5946 "Id": 34,
5947 "QuestionId": 13,
5948 "Text": "Andorra",
5949 "Value": "Andorra",
5950 "Order": 6
5951 },
5952 {
5953 "Id": 42,
5954 "QuestionId": 13,
5955 "Text": "Angola",
5956 "Value": "Angola",
5957 "Order": 7
5958 },
5959 {
5960 "Id": 50,
5961 "QuestionId": 13,
5962 "Text": "Antigua and Barbuda",
5963 "Value": "Antigua and Barbuda",
5964 "Order": 8
5965 },
5966 {
5967 "Id": 58,
5968 "QuestionId": 13,
5969 "Text": "Argentina",
5970 "Value": "Argentina",
5971 "Order": 9
5972 },
5973 {
5974 "Id": 66,
5975 "QuestionId": 13,
5976 "Text": "Armenia",
5977 "Value": "Armenia",
5978 "Order": 10
5979 },
5980 {
5981 "Id": 74,
5982 "QuestionId": 13,
5983 "Text": "Australia",
5984 "Value": "Australia",
5985 "Order": 11
5986 },
5987 {
5988 "Id": 82,
5989 "QuestionId": 13,
5990 "Text": "Austria",
5991 "Value": "Austria",
5992 "Order": 12
5993 },
5994 {
5995 "Id": 90,
5996 "QuestionId": 13,
5997 "Text": "Azerbaijan",
5998 "Value": "Azerbaijan",
5999 "Order": 13
6000 },
6001 {
6002 "Id": 98,
6003 "QuestionId": 13,
6004 "Text": "Bahamas",
6005 "Value": "Bahamas",
6006 "Order": 14
6007 },
6008 {
6009 "Id": 106,
6010 "QuestionId": 13,
6011 "Text": "Bahrain",
6012 "Value": "Bahrain",
6013 "Order": 15
6014 },
6015 {
6016 "Id": 114,
6017 "QuestionId": 13,
6018 "Text": "Bangladesh",
6019 "Value": "Bangladesh",
6020 "Order": 16
6021 },
6022 {
6023 "Id": 122,
6024 "QuestionId": 13,
6025 "Text": "Barbados",
6026 "Value": "Barbados",
6027 "Order": 17
6028 },
6029 {
6030 "Id": 130,
6031 "QuestionId": 13,
6032 "Text": "Belarus",
6033 "Value": "Belarus",
6034 "Order": 18
6035 },
6036 {
6037 "Id": 138,
6038 "QuestionId": 13,
6039 "Text": "Belgium",
6040 "Value": "Belgium",
6041 "Order": 19
6042 },
6043 {
6044 "Id": 146,
6045 "QuestionId": 13,
6046 "Text": "Belize",
6047 "Value": "Belize",
6048 "Order": 20
6049 },
6050 {
6051 "Id": 154,
6052 "QuestionId": 13,
6053 "Text": "Benin",
6054 "Value": "Benin",
6055 "Order": 21
6056 },
6057 {
6058 "Id": 162,
6059 "QuestionId": 13,
6060 "Text": "Bhutan",
6061 "Value": "Bhutan",
6062 "Order": 22
6063 },
6064 {
6065 "Id": 170,
6066 "QuestionId": 13,
6067 "Text": "Bolivia",
6068 "Value": "Bolivia",
6069 "Order": 23
6070 },
6071 {
6072 "Id": 178,
6073 "QuestionId": 13,
6074 "Text": "Bosnia and Herzegovina",
6075 "Value": "Bosnia and Herzegovina",
6076 "Order": 24
6077 },
6078 {
6079 "Id": 186,
6080 "QuestionId": 13,
6081 "Text": "Botswana",
6082 "Value": "Botswana",
6083 "Order": 25
6084 },
6085 {
6086 "Id": 194,
6087 "QuestionId": 13,
6088 "Text": "Brazil",
6089 "Value": "Brazil",
6090 "Order": 26
6091 },
6092 {
6093 "Id": 202,
6094 "QuestionId": 13,
6095 "Text": "Brunei",
6096 "Value": "Brunei",
6097 "Order": 27
6098 },
6099 {
6100 "Id": 210,
6101 "QuestionId": 13,
6102 "Text": "Bulgaria",
6103 "Value": "Bulgaria",
6104 "Order": 28
6105 },
6106 {
6107 "Id": 218,
6108 "QuestionId": 13,
6109 "Text": "Burkina Faso",
6110 "Value": "Burkina Faso",
6111 "Order": 29
6112 },
6113 {
6114 "Id": 226,
6115 "QuestionId": 13,
6116 "Text": "Burundi",
6117 "Value": "Burundi",
6118 "Order": 30
6119 },
6120 {
6121 "Id": 234,
6122 "QuestionId": 13,
6123 "Text": "Cambodia",
6124 "Value": "Cambodia",
6125 "Order": 31
6126 },
6127 {
6128 "Id": 242,
6129 "QuestionId": 13,
6130 "Text": "Cameroon",
6131 "Value": "Cameroon",
6132 "Order": 32
6133 },
6134 {
6135 "Id": 250,
6136 "QuestionId": 13,
6137 "Text": "Canada",
6138 "Value": "Canada",
6139 "Order": 33
6140 },
6141 {
6142 "Id": 258,
6143 "QuestionId": 13,
6144 "Text": "Cape Verde",
6145 "Value": "Cape Verde",
6146 "Order": 34
6147 },
6148 {
6149 "Id": 266,
6150 "QuestionId": 13,
6151 "Text": "Central African Republic",
6152 "Value": "Central African Republic",
6153 "Order": 35
6154 },
6155 {
6156 "Id": 274,
6157 "QuestionId": 13,
6158 "Text": "Chad",
6159 "Value": "Chad",
6160 "Order": 36
6161 },
6162 {
6163 "Id": 282,
6164 "QuestionId": 13,
6165 "Text": "Chile",
6166 "Value": "Chile",
6167 "Order": 37
6168 },
6169 {
6170 "Id": 290,
6171 "QuestionId": 13,
6172 "Text": "China",
6173 "Value": "China",
6174 "Order": 38
6175 },
6176 {
6177 "Id": 298,
6178 "QuestionId": 13,
6179 "Text": "Colombia",
6180 "Value": "Colombia",
6181 "Order": 39
6182 },
6183 {
6184 "Id": 306,
6185 "QuestionId": 13,
6186 "Text": "Comoros",
6187 "Value": "Comoros",
6188 "Order": 40
6189 },
6190 {
6191 "Id": 314,
6192 "QuestionId": 13,
6193 "Text": "Congo (Brazzaville)",
6194 "Value": "Congo (Brazzaville)",
6195 "Order": 41
6196 },
6197 {
6198 "Id": 322,
6199 "QuestionId": 13,
6200 "Text": "Congo",
6201 "Value": "Congo",
6202 "Order": 42
6203 },
6204 {
6205 "Id": 330,
6206 "QuestionId": 13,
6207 "Text": "Costa Rica",
6208 "Value": "Costa Rica",
6209 "Order": 43
6210 },
6211 {
6212 "Id": 338,
6213 "QuestionId": 13,
6214 "Text": "Cote d'Ivoire",
6215 "Value": "Cote d'Ivoire",
6216 "Order": 44
6217 },
6218 {
6219 "Id": 346,
6220 "QuestionId": 13,
6221 "Text": "Croatia",
6222 "Value": "Croatia",
6223 "Order": 45
6224 },
6225 {
6226 "Id": 354,
6227 "QuestionId": 13,
6228 "Text": "Cuba",
6229 "Value": "Cuba",
6230 "Order": 46
6231 },
6232 {
6233 "Id": 362,
6234 "QuestionId": 13,
6235 "Text": "Cyprus",
6236 "Value": "Cyprus",
6237 "Order": 47
6238 },
6239 {
6240 "Id": 370,
6241 "QuestionId": 13,
6242 "Text": "Czech Republic",
6243 "Value": "Czech Republic",
6244 "Order": 48
6245 },
6246 {
6247 "Id": 378,
6248 "QuestionId": 13,
6249 "Text": "Denmark",
6250 "Value": "Denmark",
6251 "Order": 49
6252 },
6253 {
6254 "Id": 386,
6255 "QuestionId": 13,
6256 "Text": "Djibouti",
6257 "Value": "Djibouti",
6258 "Order": 50
6259 },
6260 {
6261 "Id": 394,
6262 "QuestionId": 13,
6263 "Text": "Dominica",
6264 "Value": "Dominica",
6265 "Order": 51
6266 },
6267 {
6268 "Id": 402,
6269 "QuestionId": 13,
6270 "Text": "Dominican Republic",
6271 "Value": "Dominican Republic",
6272 "Order": 52
6273 },
6274 {
6275 "Id": 410,
6276 "QuestionId": 13,
6277 "Text": "East Timor",
6278 "Value": "East Timor",
6279 "Order": 53
6280 },
6281 {
6282 "Id": 418,
6283 "QuestionId": 13,
6284 "Text": "Ecuador",
6285 "Value": "Ecuador",
6286 "Order": 54
6287 },
6288 {
6289 "Id": 426,
6290 "QuestionId": 13,
6291 "Text": "Egypt",
6292 "Value": "Egypt",
6293 "Order": 55
6294 },
6295 {
6296 "Id": 434,
6297 "QuestionId": 13,
6298 "Text": "El Salvador",
6299 "Value": "El Salvador",
6300 "Order": 56
6301 },
6302 {
6303 "Id": 442,
6304 "QuestionId": 13,
6305 "Text": "Equatorial Guinea",
6306 "Value": "Equatorial Guinea",
6307 "Order": 57
6308 },
6309 {
6310 "Id": 450,
6311 "QuestionId": 13,
6312 "Text": "Eritrea",
6313 "Value": "Eritrea",
6314 "Order": 58
6315 },
6316 {
6317 "Id": 458,
6318 "QuestionId": 13,
6319 "Text": "Estonia",
6320 "Value": "Estonia",
6321 "Order": 59
6322 },
6323 {
6324 "Id": 466,
6325 "QuestionId": 13,
6326 "Text": "Ethiopia",
6327 "Value": "Ethiopia",
6328 "Order": 60
6329 },
6330 {
6331 "Id": 474,
6332 "QuestionId": 13,
6333 "Text": "Fiji",
6334 "Value": "Fiji",
6335 "Order": 61
6336 },
6337 {
6338 "Id": 482,
6339 "QuestionId": 13,
6340 "Text": "Finland",
6341 "Value": "Finland",
6342 "Order": 62
6343 },
6344 {
6345 "Id": 490,
6346 "QuestionId": 13,
6347 "Text": "France",
6348 "Value": "France",
6349 "Order": 63
6350 },
6351 {
6352 "Id": 498,
6353 "QuestionId": 13,
6354 "Text": "Gabon",
6355 "Value": "Gabon",
6356 "Order": 64
6357 },
6358 {
6359 "Id": 506,
6360 "QuestionId": 13,
6361 "Text": "Gambia, The",
6362 "Value": "Gambia, The",
6363 "Order": 65
6364 },
6365 {
6366 "Id": 514,
6367 "QuestionId": 13,
6368 "Text": "Georgia",
6369 "Value": "Georgia",
6370 "Order": 66
6371 },
6372 {
6373 "Id": 522,
6374 "QuestionId": 13,
6375 "Text": "Germany",
6376 "Value": "Germany",
6377 "Order": 67
6378 },
6379 {
6380 "Id": 530,
6381 "QuestionId": 13,
6382 "Text": "Ghana",
6383 "Value": "Ghana",
6384 "Order": 68
6385 },
6386 {
6387 "Id": 538,
6388 "QuestionId": 13,
6389 "Text": "Greece",
6390 "Value": "Greece",
6391 "Order": 69
6392 },
6393 {
6394 "Id": 546,
6395 "QuestionId": 13,
6396 "Text": "Grenada",
6397 "Value": "Grenada",
6398 "Order": 70
6399 },
6400 {
6401 "Id": 554,
6402 "QuestionId": 13,
6403 "Text": "Guatemala",
6404 "Value": "Guatemala",
6405 "Order": 71
6406 },
6407 {
6408 "Id": 562,
6409 "QuestionId": 13,
6410 "Text": "Guinea",
6411 "Value": "Guinea",
6412 "Order": 72
6413 },
6414 {
6415 "Id": 570,
6416 "QuestionId": 13,
6417 "Text": "Guinea-Bissau",
6418 "Value": "Guinea-Bissau",
6419 "Order": 73
6420 },
6421 {
6422 "Id": 578,
6423 "QuestionId": 13,
6424 "Text": "Guyana",
6425 "Value": "Guyana",
6426 "Order": 74
6427 },
6428 {
6429 "Id": 586,
6430 "QuestionId": 13,
6431 "Text": "Haiti",
6432 "Value": "Haiti",
6433 "Order": 75
6434 },
6435 {
6436 "Id": 594,
6437 "QuestionId": 13,
6438 "Text": "Honduras",
6439 "Value": "Honduras",
6440 "Order": 76
6441 },
6442 {
6443 "Id": 602,
6444 "QuestionId": 13,
6445 "Text": "Hungary",
6446 "Value": "Hungary",
6447 "Order": 77
6448 },
6449 {
6450 "Id": 610,
6451 "QuestionId": 13,
6452 "Text": "Iceland",
6453 "Value": "Iceland",
6454 "Order": 78
6455 },
6456 {
6457 "Id": 618,
6458 "QuestionId": 13,
6459 "Text": "India",
6460 "Value": "India",
6461 "Order": 79
6462 },
6463 {
6464 "Id": 626,
6465 "QuestionId": 13,
6466 "Text": "Indonesia",
6467 "Value": "Indonesia",
6468 "Order": 80
6469 },
6470 {
6471 "Id": 634,
6472 "QuestionId": 13,
6473 "Text": "Iran",
6474 "Value": "Iran",
6475 "Order": 81
6476 },
6477 {
6478 "Id": 642,
6479 "QuestionId": 13,
6480 "Text": "Iraq",
6481 "Value": "Iraq",
6482 "Order": 82
6483 },
6484 {
6485 "Id": 650,
6486 "QuestionId": 13,
6487 "Text": "Ireland",
6488 "Value": "Ireland",
6489 "Order": 83
6490 },
6491 {
6492 "Id": 658,
6493 "QuestionId": 13,
6494 "Text": "Israel",
6495 "Value": "Israel",
6496 "Order": 84
6497 },
6498 {
6499 "Id": 666,
6500 "QuestionId": 13,
6501 "Text": "Italy",
6502 "Value": "Italy",
6503 "Order": 85
6504 },
6505 {
6506 "Id": 674,
6507 "QuestionId": 13,
6508 "Text": "Jamaica",
6509 "Value": "Jamaica",
6510 "Order": 86
6511 },
6512 {
6513 "Id": 682,
6514 "QuestionId": 13,
6515 "Text": "Japan",
6516 "Value": "Japan",
6517 "Order": 87
6518 },
6519 {
6520 "Id": 690,
6521 "QuestionId": 13,
6522 "Text": "Jordan",
6523 "Value": "Jordan",
6524 "Order": 88
6525 },
6526 {
6527 "Id": 698,
6528 "QuestionId": 13,
6529 "Text": "Kazakhstan",
6530 "Value": "Kazakhstan",
6531 "Order": 89
6532 },
6533 {
6534 "Id": 706,
6535 "QuestionId": 13,
6536 "Text": "Kenya",
6537 "Value": "Kenya",
6538 "Order": 90
6539 },
6540 {
6541 "Id": 714,
6542 "QuestionId": 13,
6543 "Text": "Kiribati",
6544 "Value": "Kiribati",
6545 "Order": 91
6546 },
6547 {
6548 "Id": 722,
6549 "QuestionId": 13,
6550 "Text": "Korea, North",
6551 "Value": "Korea, North",
6552 "Order": 92
6553 },
6554 {
6555 "Id": 730,
6556 "QuestionId": 13,
6557 "Text": "Korea, South",
6558 "Value": "Korea, South",
6559 "Order": 93
6560 },
6561 {
6562 "Id": 738,
6563 "QuestionId": 13,
6564 "Text": "Kuwait",
6565 "Value": "Kuwait",
6566 "Order": 94
6567 },
6568 {
6569 "Id": 746,
6570 "QuestionId": 13,
6571 "Text": "Kyrgyzstan",
6572 "Value": "Kyrgyzstan",
6573 "Order": 95
6574 },
6575 {
6576 "Id": 754,
6577 "QuestionId": 13,
6578 "Text": "Laos",
6579 "Value": "Laos",
6580 "Order": 96
6581 },
6582 {
6583 "Id": 762,
6584 "QuestionId": 13,
6585 "Text": "Latvia",
6586 "Value": "Latvia",
6587 "Order": 97
6588 },
6589 {
6590 "Id": 770,
6591 "QuestionId": 13,
6592 "Text": "Lebanon",
6593 "Value": "Lebanon",
6594 "Order": 98
6595 },
6596 {
6597 "Id": 778,
6598 "QuestionId": 13,
6599 "Text": "Lesotho",
6600 "Value": "Lesotho",
6601 "Order": 99
6602 },
6603 {
6604 "Id": 786,
6605 "QuestionId": 13,
6606 "Text": "Liberia",
6607 "Value": "Liberia",
6608 "Order": 100
6609 },
6610 {
6611 "Id": 794,
6612 "QuestionId": 13,
6613 "Text": "Libya",
6614 "Value": "Libya",
6615 "Order": 101
6616 },
6617 {
6618 "Id": 802,
6619 "QuestionId": 13,
6620 "Text": "Liechtenstein",
6621 "Value": "Liechtenstein",
6622 "Order": 102
6623 },
6624 {
6625 "Id": 810,
6626 "QuestionId": 13,
6627 "Text": "Lithuania",
6628 "Value": "Lithuania",
6629 "Order": 103
6630 },
6631 {
6632 "Id": 818,
6633 "QuestionId": 13,
6634 "Text": "Luxembourg",
6635 "Value": "Luxembourg",
6636 "Order": 104
6637 },
6638 {
6639 "Id": 826,
6640 "QuestionId": 13,
6641 "Text": "Macedonia",
6642 "Value": "Macedonia",
6643 "Order": 105
6644 },
6645 {
6646 "Id": 834,
6647 "QuestionId": 13,
6648 "Text": "Madagascar",
6649 "Value": "Madagascar",
6650 "Order": 106
6651 },
6652 {
6653 "Id": 842,
6654 "QuestionId": 13,
6655 "Text": "Malawi",
6656 "Value": "Malawi",
6657 "Order": 107
6658 },
6659 {
6660 "Id": 850,
6661 "QuestionId": 13,
6662 "Text": "Malaysia",
6663 "Value": "Malaysia",
6664 "Order": 108
6665 },
6666 {
6667 "Id": 858,
6668 "QuestionId": 13,
6669 "Text": "Maldives",
6670 "Value": "Maldives",
6671 "Order": 109
6672 },
6673 {
6674 "Id": 866,
6675 "QuestionId": 13,
6676 "Text": "Mali",
6677 "Value": "Mali",
6678 "Order": 110
6679 },
6680 {
6681 "Id": 874,
6682 "QuestionId": 13,
6683 "Text": "Malta",
6684 "Value": "Malta",
6685 "Order": 111
6686 },
6687 {
6688 "Id": 882,
6689 "QuestionId": 13,
6690 "Text": "Marshall Islands",
6691 "Value": "Marshall Islands",
6692 "Order": 112
6693 },
6694 {
6695 "Id": 890,
6696 "QuestionId": 13,
6697 "Text": "Mauritania",
6698 "Value": "Mauritania",
6699 "Order": 113
6700 },
6701 {
6702 "Id": 898,
6703 "QuestionId": 13,
6704 "Text": "Mauritius",
6705 "Value": "Mauritius",
6706 "Order": 114
6707 },
6708 {
6709 "Id": 906,
6710 "QuestionId": 13,
6711 "Text": "Mexico",
6712 "Value": "Mexico",
6713 "Order": 115
6714 },
6715 {
6716 "Id": 914,
6717 "QuestionId": 13,
6718 "Text": "Micronesia",
6719 "Value": "Micronesia",
6720 "Order": 116
6721 },
6722 {
6723 "Id": 922,
6724 "QuestionId": 13,
6725 "Text": "Moldova",
6726 "Value": "Moldova",
6727 "Order": 117
6728 },
6729 {
6730 "Id": 930,
6731 "QuestionId": 13,
6732 "Text": "Monaco",
6733 "Value": "Monaco",
6734 "Order": 118
6735 },
6736 {
6737 "Id": 938,
6738 "QuestionId": 13,
6739 "Text": "Mongolia",
6740 "Value": "Mongolia",
6741 "Order": 119
6742 },
6743 {
6744 "Id": 946,
6745 "QuestionId": 13,
6746 "Text": "Morocco",
6747 "Value": "Morocco",
6748 "Order": 120
6749 },
6750 {
6751 "Id": 954,
6752 "QuestionId": 13,
6753 "Text": "Mozambique",
6754 "Value": "Mozambique",
6755 "Order": 121
6756 },
6757 {
6758 "Id": 962,
6759 "QuestionId": 13,
6760 "Text": "Myanmar",
6761 "Value": "Myanmar",
6762 "Order": 122
6763 },
6764 {
6765 "Id": 970,
6766 "QuestionId": 13,
6767 "Text": "Namibia",
6768 "Value": "Namibia",
6769 "Order": 123
6770 },
6771 {
6772 "Id": 978,
6773 "QuestionId": 13,
6774 "Text": "Nauru",
6775 "Value": "Nauru",
6776 "Order": 124
6777 },
6778 {
6779 "Id": 986,
6780 "QuestionId": 13,
6781 "Text": "Nepa",
6782 "Value": "Nepa",
6783 "Order": 125
6784 },
6785 {
6786 "Id": 994,
6787 "QuestionId": 13,
6788 "Text": "Netherlands",
6789 "Value": "Netherlands",
6790 "Order": 126
6791 },
6792 {
6793 "Id": 1002,
6794 "QuestionId": 13,
6795 "Text": "New Zealand",
6796 "Value": "New Zealand",
6797 "Order": 127
6798 },
6799 {
6800 "Id": 1010,
6801 "QuestionId": 13,
6802 "Text": "Nicaragua",
6803 "Value": "Nicaragua",
6804 "Order": 128
6805 },
6806 {
6807 "Id": 1018,
6808 "QuestionId": 13,
6809 "Text": "Niger",
6810 "Value": "Niger",
6811 "Order": 129
6812 },
6813 {
6814 "Id": 1026,
6815 "QuestionId": 13,
6816 "Text": "Nigeria",
6817 "Value": "Nigeria",
6818 "Order": 130
6819 },
6820 {
6821 "Id": 1034,
6822 "QuestionId": 13,
6823 "Text": "Norway",
6824 "Value": "Norway",
6825 "Order": 131
6826 },
6827 {
6828 "Id": 1042,
6829 "QuestionId": 13,
6830 "Text": "Oman",
6831 "Value": "Oman",
6832 "Order": 132
6833 },
6834 {
6835 "Id": 1050,
6836 "QuestionId": 13,
6837 "Text": "Pakistan",
6838 "Value": "Pakistan",
6839 "Order": 133
6840 },
6841 {
6842 "Id": 1058,
6843 "QuestionId": 13,
6844 "Text": "Palau",
6845 "Value": "Palau",
6846 "Order": 134
6847 },
6848 {
6849 "Id": 1066,
6850 "QuestionId": 13,
6851 "Text": "Panama",
6852 "Value": "Panama",
6853 "Order": 135
6854 },
6855 {
6856 "Id": 1074,
6857 "QuestionId": 13,
6858 "Text": "Papua New Guinea",
6859 "Value": "Papua New Guinea",
6860 "Order": 136
6861 },
6862 {
6863 "Id": 1082,
6864 "QuestionId": 13,
6865 "Text": "Paraguay",
6866 "Value": "Paraguay",
6867 "Order": 137
6868 },
6869 {
6870 "Id": 1090,
6871 "QuestionId": 13,
6872 "Text": "Peru",
6873 "Value": "Peru",
6874 "Order": 138
6875 },
6876 {
6877 "Id": 1098,
6878 "QuestionId": 13,
6879 "Text": "Philippines",
6880 "Value": "Philippines",
6881 "Order": 139
6882 },
6883 {
6884 "Id": 1106,
6885 "QuestionId": 13,
6886 "Text": "Poland",
6887 "Value": "Poland",
6888 "Order": 140
6889 },
6890 {
6891 "Id": 1114,
6892 "QuestionId": 13,
6893 "Text": "Portugal",
6894 "Value": "Portugal",
6895 "Order": 141
6896 },
6897 {
6898 "Id": 1122,
6899 "QuestionId": 13,
6900 "Text": "Qatar",
6901 "Value": "Qatar",
6902 "Order": 142
6903 },
6904 {
6905 "Id": 1130,
6906 "QuestionId": 13,
6907 "Text": "Romania",
6908 "Value": "Romania",
6909 "Order": 143
6910 },
6911 {
6912 "Id": 1138,
6913 "QuestionId": 13,
6914 "Text": "Russia",
6915 "Value": "Russia",
6916 "Order": 144
6917 },
6918 {
6919 "Id": 1146,
6920 "QuestionId": 13,
6921 "Text": "Rwanda",
6922 "Value": "Rwanda",
6923 "Order": 145
6924 },
6925 {
6926 "Id": 1154,
6927 "QuestionId": 13,
6928 "Text": "Saint Kitts and Nevis",
6929 "Value": "Saint Kitts and Nevis",
6930 "Order": 146
6931 },
6932 {
6933 "Id": 1162,
6934 "QuestionId": 13,
6935 "Text": "Saint Lucia",
6936 "Value": "Saint Lucia",
6937 "Order": 147
6938 },
6939 {
6940 "Id": 1170,
6941 "QuestionId": 13,
6942 "Text": "Saint Vincent",
6943 "Value": "Saint Vincent",
6944 "Order": 148
6945 },
6946 {
6947 "Id": 1178,
6948 "QuestionId": 13,
6949 "Text": "Samoa",
6950 "Value": "Samoa",
6951 "Order": 149
6952 },
6953 {
6954 "Id": 1186,
6955 "QuestionId": 13,
6956 "Text": "San Marino",
6957 "Value": "San Marino",
6958 "Order": 150
6959 },
6960 {
6961 "Id": 1194,
6962 "QuestionId": 13,
6963 "Text": "Sao Tome and Principe",
6964 "Value": "Sao Tome and Principe",
6965 "Order": 151
6966 },
6967 {
6968 "Id": 1202,
6969 "QuestionId": 13,
6970 "Text": "Saudi Arabia",
6971 "Value": "Saudi Arabia",
6972 "Order": 152
6973 },
6974 {
6975 "Id": 1210,
6976 "QuestionId": 13,
6977 "Text": "Senegal",
6978 "Value": "Senegal",
6979 "Order": 153
6980 },
6981 {
6982 "Id": 1218,
6983 "QuestionId": 13,
6984 "Text": "Serbia and Montenegro",
6985 "Value": "Serbia and Montenegro",
6986 "Order": 154
6987 },
6988 {
6989 "Id": 1226,
6990 "QuestionId": 13,
6991 "Text": "Seychelles",
6992 "Value": "Seychelles",
6993 "Order": 155
6994 },
6995 {
6996 "Id": 1234,
6997 "QuestionId": 13,
6998 "Text": "Sierra Leone",
6999 "Value": "Sierra Leone",
7000 "Order": 156
7001 },
7002 {
7003 "Id": 1242,
7004 "QuestionId": 13,
7005 "Text": "Singapore",
7006 "Value": "Singapore",
7007 "Order": 157
7008 },
7009 {
7010 "Id": 1250,
7011 "QuestionId": 13,
7012 "Text": "Slovakia",
7013 "Value": "Slovakia",
7014 "Order": 158
7015 },
7016 {
7017 "Id": 1258,
7018 "QuestionId": 13,
7019 "Text": "Slovenia",
7020 "Value": "Slovenia",
7021 "Order": 159
7022 },
7023 {
7024 "Id": 1266,
7025 "QuestionId": 13,
7026 "Text": "Solomon Islands",
7027 "Value": "Solomon Islands",
7028 "Order": 160
7029 },
7030 {
7031 "Id": 1274,
7032 "QuestionId": 13,
7033 "Text": "Somalia",
7034 "Value": "Somalia",
7035 "Order": 161
7036 },
7037 {
7038 "Id": 1282,
7039 "QuestionId": 13,
7040 "Text": "South Africa",
7041 "Value": "South Africa",
7042 "Order": 162
7043 },
7044 {
7045 "Id": 1290,
7046 "QuestionId": 13,
7047 "Text": "Spain",
7048 "Value": "Spain",
7049 "Order": 163
7050 },
7051 {
7052 "Id": 1298,
7053 "QuestionId": 13,
7054 "Text": "Sri Lanka",
7055 "Value": "Sri Lanka",
7056 "Order": 164
7057 },
7058 {
7059 "Id": 1306,
7060 "QuestionId": 13,
7061 "Text": "Sudan",
7062 "Value": "Sudan",
7063 "Order": 165
7064 },
7065 {
7066 "Id": 1314,
7067 "QuestionId": 13,
7068 "Text": "Suriname",
7069 "Value": "Suriname",
7070 "Order": 166
7071 },
7072 {
7073 "Id": 1322,
7074 "QuestionId": 13,
7075 "Text": "Swaziland",
7076 "Value": "Swaziland",
7077 "Order": 167
7078 },
7079 {
7080 "Id": 1330,
7081 "QuestionId": 13,
7082 "Text": "Sweden",
7083 "Value": "Sweden",
7084 "Order": 168
7085 },
7086 {
7087 "Id": 1338,
7088 "QuestionId": 13,
7089 "Text": "Switzerland",
7090 "Value": "Switzerland",
7091 "Order": 169
7092 },
7093 {
7094 "Id": 1346,
7095 "QuestionId": 13,
7096 "Text": "Syria",
7097 "Value": "Syria",
7098 "Order": 170
7099 },
7100 {
7101 "Id": 1354,
7102 "QuestionId": 13,
7103 "Text": "Taiwan",
7104 "Value": "Taiwan",
7105 "Order": 171
7106 },
7107 {
7108 "Id": 1362,
7109 "QuestionId": 13,
7110 "Text": "Tajikistan",
7111 "Value": "Tajikistan",
7112 "Order": 172
7113 },
7114 {
7115 "Id": 1370,
7116 "QuestionId": 13,
7117 "Text": "Tanzania",
7118 "Value": "Tanzania",
7119 "Order": 173
7120 },
7121 {
7122 "Id": 1378,
7123 "QuestionId": 13,
7124 "Text": "Thailand",
7125 "Value": "Thailand",
7126 "Order": 174
7127 },
7128 {
7129 "Id": 1386,
7130 "QuestionId": 13,
7131 "Text": "Togo",
7132 "Value": "Togo",
7133 "Order": 175
7134 },
7135 {
7136 "Id": 1394,
7137 "QuestionId": 13,
7138 "Text": "Tonga",
7139 "Value": "Tonga",
7140 "Order": 176
7141 },
7142 {
7143 "Id": 1402,
7144 "QuestionId": 13,
7145 "Text": "Trinidad and Tobago",
7146 "Value": "Trinidad and Tobago",
7147 "Order": 177
7148 },
7149 {
7150 "Id": 1410,
7151 "QuestionId": 13,
7152 "Text": "Tunisia",
7153 "Value": "Tunisia",
7154 "Order": 178
7155 },
7156 {
7157 "Id": 1418,
7158 "QuestionId": 13,
7159 "Text": "Turkey",
7160 "Value": "Turkey",
7161 "Order": 179
7162 },
7163 {
7164 "Id": 1426,
7165 "QuestionId": 13,
7166 "Text": "Turkmenistan",
7167 "Value": "Turkmenistan",
7168 "Order": 180
7169 },
7170 {
7171 "Id": 1434,
7172 "QuestionId": 13,
7173 "Text": "Tuvalu",
7174 "Value": "Tuvalu",
7175 "Order": 181
7176 },
7177 {
7178 "Id": 1442,
7179 "QuestionId": 13,
7180 "Text": "Uganda",
7181 "Value": "Uganda",
7182 "Order": 182
7183 },
7184 {
7185 "Id": 1450,
7186 "QuestionId": 13,
7187 "Text": "Ukraine",
7188 "Value": "Ukraine",
7189 "Order": 183
7190 },
7191 {
7192 "Id": 1458,
7193 "QuestionId": 13,
7194 "Text": "United Arab Emirates",
7195 "Value": "United Arab Emirates",
7196 "Order": 184
7197 },
7198 {
7199 "Id": 1466,
7200 "QuestionId": 13,
7201 "Text": "United Kingdom",
7202 "Value": "United Kingdom",
7203 "Order": 185
7204 },
7205 {
7206 "Id": 1474,
7207 "QuestionId": 13,
7208 "Text": "United States",
7209 "Value": "United States",
7210 "Order": 2
7211 },
7212 {
7213 "Id": 1482,
7214 "QuestionId": 13,
7215 "Text": "Uruguay",
7216 "Value": "Uruguay",
7217 "Order": 186
7218 },
7219 {
7220 "Id": 1490,
7221 "QuestionId": 13,
7222 "Text": "Uzbekistan",
7223 "Value": "Uzbekistan",
7224 "Order": 187
7225 },
7226 {
7227 "Id": 1498,
7228 "QuestionId": 13,
7229 "Text": "Vanuatu",
7230 "Value": "Vanuatu",
7231 "Order": 188
7232 },
7233 {
7234 "Id": 1506,
7235 "QuestionId": 13,
7236 "Text": "Vatican City",
7237 "Value": "Vatican City",
7238 "Order": 189
7239 },
7240 {
7241 "Id": 1514,
7242 "QuestionId": 13,
7243 "Text": "Venezuela",
7244 "Value": "Venezuela",
7245 "Order": 190
7246 },
7247 {
7248 "Id": 1522,
7249 "QuestionId": 13,
7250 "Text": "Vietnam",
7251 "Value": "Vietnam",
7252 "Order": 191
7253 },
7254 {
7255 "Id": 1530,
7256 "QuestionId": 13,
7257 "Text": "Yemen",
7258 "Value": "Yemen",
7259 "Order": 192
7260 },
7261 {
7262 "Id": 1538,
7263 "QuestionId": 13,
7264 "Text": "Zambia",
7265 "Value": "Zambia",
7266 "Order": 193
7267 },
7268 {
7269 "Id": 1546,
7270 "QuestionId": 13,
7271 "Text": "Zimbabwe",
7272 "Value": "Zimbabwe",
7273 "Order": 194
7274 },
7275 {
7276 "Id": 2186,
7277 "QuestionId": 13,
7278 "Text": "British Columbia",
7279 "Value": "British Columbia",
7280 "Order": 195
7281 }
7282 ]
7283 },
7284 {
7285 "Id": 178,
7286 "Text": "Job Function",
7287 "Type": "4",
7288 "Alias": "Job Function",
7289 "Choices": [
7290 {
7291 "Id": 2266,
7292 "QuestionId": 178,
7293 "Text": "Select One",
7294 "Value": "",
7295 "Order": 1
7296 },
7297 {
7298 "Id": 2274,
7299 "QuestionId": 178,
7300 "Text": "Sales",
7301 "Value": "Sales",
7302 "Order": 2
7303 },
7304 {
7305 "Id": 2282,
7306 "QuestionId": 178,
7307 "Text": "Marketing",
7308 "Value": "Marketing",
7309 "Order": 3
7310 },
7311 {
7312 "Id": 2290,
7313 "QuestionId": 178,
7314 "Text": "New Media",
7315 "Value": "New Media",
7316 "Order": 4
7317 },
7318 {
7319 "Id": 2298,
7320 "QuestionId": 178,
7321 "Text": "Audience Development",
7322 "Value": "Audience Development",
7323 "Order": 5
7324 },
7325 {
7326 "Id": 2306,
7327 "QuestionId": 178,
7328 "Text": "Editorial",
7329 "Value": "Editorial",
7330 "Order": 6
7331 },
7332 {
7333 "Id": 2314,
7334 "QuestionId": 178,
7335 "Text": "Information Technology",
7336 "Value": "IT",
7337 "Order": 7
7338 },
7339 {
7340 "Id": 2322,
7341 "QuestionId": 178,
7342 "Text": "Corporate",
7343 "Value": "Corporate",
7344 "Order": 8
7345 },
7346 {
7347 "Id": 2418,
7348 "QuestionId": 178,
7349 "Text": "Other",
7350 "Value": "Other",
7351 "Order": 9
7352 }
7353 ]
7354 },
7355 {
7356 "Id": 202,
7357 "Text": "Type of Publication",
7358 "Type": "4",
7359 "Alias": "Type of Publication",
7360 "Choices": [
7361 {
7362 "Id": 2330,
7363 "QuestionId": 202,
7364 "Text": "Select One",
7365 "Value": "",
7366 "Order": 1
7367 },
7368 {
7369 "Id": 2338,
7370 "QuestionId": 202,
7371 "Text": "Magazine",
7372 "Value": "Magazine",
7373 "Order": 2
7374 },
7375 {
7376 "Id": 2346,
7377 "QuestionId": 202,
7378 "Text": "Newspaper",
7379 "Value": "Newspaper",
7380 "Order": 3
7381 },
7382 {
7383 "Id": 2354,
7384 "QuestionId": 202,
7385 "Text": "Digital Publisher",
7386 "Value": "Digital Publisher",
7387 "Order": 4
7388 },
7389 {
7390 "Id": 2362,
7391 "QuestionId": 202,
7392 "Text": "Book Publisher",
7393 "Value": "Book Publisher",
7394 "Order": 5
7395 },
7396 {
7397 "Id": 2370,
7398 "QuestionId": 202,
7399 "Text": "Newsletter/Email",
7400 "Value": "Newsletter/Email",
7401 "Order": 6
7402 }
7403 ]
7404 },
7405 {
7406 "Id": 226,
7407 "Text": "What is your time frame for deployment?",
7408 "Type": "4",
7409 "Alias": "What is your time frame for deployment?",
7410 "Choices": [
7411 {
7412 "Id": 2378,
7413 "QuestionId": 226,
7414 "Text": "Select One",
7415 "Value": "",
7416 "Order": 1
7417 },
7418 {
7419 "Id": 2386,
7420 "QuestionId": 226,
7421 "Text": "0-3 months",
7422 "Value": "0-3",
7423 "Order": 2
7424 },
7425 {
7426 "Id": 2394,
7427 "QuestionId": 226,
7428 "Text": "3-6 months",
7429 "Value": "3-6",
7430 "Order": 3
7431 },
7432 {
7433 "Id": 2402,
7434 "QuestionId": 226,
7435 "Text": "6-12 months",
7436 "Value": "6-12",
7437 "Order": 4
7438 },
7439 {
7440 "Id": 2410,
7441 "QuestionId": 226,
7442 "Text": "No Formal Plans",
7443 "Value": "No Formal Plans",
7444 "Order": 5
7445 }
7446 ]
7447 },
7448 {
7449 "Id": 250,
7450 "Text": "Industry",
7451 "Type": "4",
7452 "Alias": "Industry",
7453 "Choices": [
7454 {
7455 "Id": 2426,
7456 "QuestionId": 250,
7457 "Text": "Agency",
7458 "Value": "Agency",
7459 "Order": 2
7460 },
7461 {
7462 "Id": 2434,
7463 "QuestionId": 250,
7464 "Text": "Association",
7465 "Value": "Association",
7466 "Order": 3
7467 },
7468 {
7469 "Id": 2442,
7470 "QuestionId": 250,
7471 "Text": "Direct Marketing",
7472 "Value": "Direct Marketing",
7473 "Order": 4
7474 },
7475 {
7476 "Id": 2450,
7477 "QuestionId": 250,
7478 "Text": "Publisher",
7479 "Value": "Publisher",
7480 "Order": 5
7481 },
7482 {
7483 "Id": 2458,
7484 "QuestionId": 250,
7485 "Text": "Service Bureau",
7486 "Value": "Service Bureau",
7487 "Order": 6
7488 },
7489 {
7490 "Id": 2466,
7491 "QuestionId": 250,
7492 "Text": "Select One",
7493 "Value": "Government",
7494 "Order": 1
7495 },
7496 {
7497 "Id": 2737,
7498 "QuestionId": 250,
7499 "Text": "Other",
7500 "Value": "Other",
7501 "Order": 7
7502 },
7503 {
7504 "Id": 3051,
7505 "QuestionId": 250,
7506 "Text": "Business Services",
7507 "Value": "Business Services",
7508 "Order": 8
7509 },
7510 {
7511 "Id": 3059,
7512 "QuestionId": 250,
7513 "Text": "Business Services, Media & Internet",
7514 "Value": "Business Services, Media & Internet",
7515 "Order": 9
7516 },
7517 {
7518 "Id": 3067,
7519 "QuestionId": 250,
7520 "Text": "Business Services,Consumer Services",
7521 "Value": "Business Services,Consumer Services",
7522 "Order": 10
7523 },
7524 {
7525 "Id": 3075,
7526 "QuestionId": 250,
7527 "Text": "Business Services,Finance",
7528 "Value": "Business Services,Finance",
7529 "Order": 11
7530 },
7531 {
7532 "Id": 3083,
7533 "QuestionId": 250,
7534 "Text": "Business Services,Retail,Media & Internet",
7535 "Value": "Business Services,Retail,Media & Internet",
7536 "Order": 12
7537 },
7538 {
7539 "Id": 3091,
7540 "QuestionId": 250,
7541 "Text": "Business Services,Telecommunications",
7542 "Value": "Business Services,Telecommunications",
7543 "Order": 13
7544 },
7545 {
7546 "Id": 3099,
7547 "QuestionId": 250,
7548 "Text": "Energy, Utilities & Waste Treatment",
7549 "Value": "Energy, Utilities & Waste Treatment",
7550 "Order": 14
7551 },
7552 {
7553 "Id": 3107,
7554 "QuestionId": 250,
7555 "Text": "Finance",
7556 "Value": "Finance",
7557 "Order": 15
7558 },
7559 {
7560 "Id": 3115,
7561 "QuestionId": 250,
7562 "Text": "Hospitality",
7563 "Value": "Hospitality",
7564 "Order": 16
7565 },
7566 {
7567 "Id": 3123,
7568 "QuestionId": 250,
7569 "Text": "Hospitality,Media & Internet",
7570 "Value": "Hospitality,Media & Internet",
7571 "Order": 17
7572 },
7573 {
7574 "Id": 3131,
7575 "QuestionId": 250,
7576 "Text": "Insurance",
7577 "Value": "Insurance",
7578 "Order": 18
7579 },
7580 {
7581 "Id": 3139,
7582 "QuestionId": 250,
7583 "Text": "Insurance, Finance",
7584 "Value": "Insurance, Finance",
7585 "Order": 19
7586 },
7587 {
7588 "Id": 3147,
7589 "QuestionId": 250,
7590 "Text": "Manufacturing",
7591 "Value": "Manufacturing",
7592 "Order": 20
7593 },
7594 {
7595 "Id": 3155,
7596 "QuestionId": 250,
7597 "Text": "Manufacturing,Business Services",
7598 "Value": "Manufacturing,Business Services",
7599 "Order": 21
7600 },
7601 {
7602 "Id": 3163,
7603 "QuestionId": 250,
7604 "Text": "Manufacturing,Retail,Healthcare",
7605 "Value": "Manufacturing,Retail,Healthcare",
7606 "Order": 22
7607 },
7608 {
7609 "Id": 3171,
7610 "QuestionId": 250,
7611 "Text": "Media & Internet",
7612 "Value": "Media & Internet",
7613 "Order": 23
7614 },
7615 {
7616 "Id": 3179,
7617 "QuestionId": 250,
7618 "Text": "Media & Internet,Business Services",
7619 "Value": "Media & Internet,Business Services",
7620 "Order": 24
7621 },
7622 {
7623 "Id": 3187,
7624 "QuestionId": 250,
7625 "Text": "Organizations",
7626 "Value": "Organizations",
7627 "Order": 25
7628 },
7629 {
7630 "Id": 3195,
7631 "QuestionId": 250,
7632 "Text": "Real Estate",
7633 "Value": "Real Estate",
7634 "Order": 26
7635 },
7636 {
7637 "Id": 3203,
7638 "QuestionId": 250,
7639 "Text": "Retail",
7640 "Value": "Retail",
7641 "Order": 27
7642 },
7643 {
7644 "Id": 3211,
7645 "QuestionId": 250,
7646 "Text": "Retail,Software,Consumer Services",
7647 "Value": "Retail,Software,Consumer Services",
7648 "Order": 28
7649 },
7650 {
7651 "Id": 3219,
7652 "QuestionId": 250,
7653 "Text": "Software",
7654 "Value": "Software",
7655 "Order": 29
7656 },
7657 {
7658 "Id": 3227,
7659 "QuestionId": 250,
7660 "Text": "Retail, Manufacturing",
7661 "Value": "Retail, Manufacturing",
7662 "Order": 30
7663 },
7664 {
7665 "Id": 3235,
7666 "QuestionId": 250,
7667 "Text": "Software,Manufacturing,Retail",
7668 "Value": "Software,Manufacturing,Retail",
7669 "Order": 31
7670 },
7671 {
7672 "Id": 3243,
7673 "QuestionId": 250,
7674 "Text": "Business Services,Media & Internet",
7675 "Value": "Business Services,Media & Internet",
7676 "Order": 32
7677 },
7678 {
7679 "Id": 3251,
7680 "QuestionId": 250,
7681 "Text": "Telecommunications",
7682 "Value": "Telecommunications",
7683 "Order": 33
7684 }
7685 ]
7686 },
7687 {
7688 "Id": 274,
7689 "Text": "How many employees work at your company?_Copy",
7690 "Type": "4",
7691 "Alias": "ALL",
7692 "Choices": [
7693 {
7694 "Id": 2698,
7695 "QuestionId": 274,
7696 "Text": "1-25",
7697 "Value": "01",
7698 "Order": 1
7699 },
7700 {
7701 "Id": 2706,
7702 "QuestionId": 274,
7703 "Text": "26-100",
7704 "Value": "02",
7705 "Order": 2
7706 },
7707 {
7708 "Id": 2714,
7709 "QuestionId": 274,
7710 "Text": "101-250",
7711 "Value": "03",
7712 "Order": 3
7713 },
7714 {
7715 "Id": 2722,
7716 "QuestionId": 274,
7717 "Text": "251-500",
7718 "Value": "04",
7719 "Order": 4
7720 },
7721 {
7722 "Id": 2730,
7723 "QuestionId": 274,
7724 "Text": "500+",
7725 "Value": "05",
7726 "Order": 5
7727 }
7728 ]
7729 },
7730 {
7731 "Id": 281,
7732 "Text": "How many employees work at your company?_Copy",
7733 "Type": "4",
7734 "Alias": "How many employees work at your company?_Copy",
7735 "Choices": [
7736 {
7737 "Id": 2745,
7738 "QuestionId": 281,
7739 "Text": "1-25",
7740 "Value": "01",
7741 "Order": 1
7742 },
7743 {
7744 "Id": 2753,
7745 "QuestionId": 281,
7746 "Text": "26-100",
7747 "Value": "02",
7748 "Order": 2
7749 },
7750 {
7751 "Id": 2761,
7752 "QuestionId": 281,
7753 "Text": "101-250",
7754 "Value": "03",
7755 "Order": 3
7756 },
7757 {
7758 "Id": 2769,
7759 "QuestionId": 281,
7760 "Text": "251-500",
7761 "Value": "04",
7762 "Order": 4
7763 },
7764 {
7765 "Id": 2777,
7766 "QuestionId": 281,
7767 "Text": "500+",
7768 "Value": "05",
7769 "Order": 5
7770 }
7771 ]
7772 },
7773 {
7774 "Id": 291,
7775 "Text": "DAS Question Update",
7776 "Type": "4",
7777 "Alias": "DAS Question Update",
7778 "Choices": [
7779 {
7780 "Id": 2859,
7781 "QuestionId": 291,
7782 "Text": "Choice a Update",
7783 "Value": "a Update",
7784 "Order": 1
7785 },
7786 {
7787 "Id": 2867,
7788 "QuestionId": 291,
7789 "Text": "Choice b Update",
7790 "Value": "b Update",
7791 "Order": 2
7792 }
7793 ]
7794 },
7795 {
7796 "Id": 363,
7797 "Text": "Group Size",
7798 "Type": "4",
7799 "Alias": "Group Size",
7800 "Choices": [
7801 {
7802 "Id": 3027,
7803 "QuestionId": 363,
7804 "Text": "NA",
7805 "Value": "NA",
7806 "Order": 1
7807 },
7808 {
7809 "Id": 3035,
7810 "QuestionId": 363,
7811 "Text": "0-10",
7812 "Value": "0-10",
7813 "Order": 2
7814 },
7815 {
7816 "Id": 3043,
7817 "QuestionId": 363,
7818 "Text": "10-25",
7819 "Value": "10-25",
7820 "Order": 3
7821 }
7822 ]
7823 },
7824 {
7825 "Id": 399,
7826 "Text": "What best describes your job title?",
7827 "Type": "4",
7828 "Alias": "1105-title",
7829 "Choices": [
7830 {
7831 "Id": 3255,
7832 "QuestionId": 399,
7833 "Text": "CIO, CTO, CKO, Technical/VP",
7834 "Value": "CIO",
7835 "Order": 1
7836 },
7837 {
7838 "Id": 3263,
7839 "QuestionId": 399,
7840 "Text": "Corporate Management",
7841 "Value": "corporate",
7842 "Order": 2
7843 },
7844 {
7845 "Id": 3271,
7846 "QuestionId": 399,
7847 "Text": "IS/IT Director/Manager",
7848 "Value": "it",
7849 "Order": 3
7850 },
7851 {
7852 "Id": 3279,
7853 "QuestionId": 399,
7854 "Text": "Director of Softare Development",
7855 "Value": "software director",
7856 "Order": 4
7857 },
7858 {
7859 "Id": 3287,
7860 "QuestionId": 399,
7861 "Text": "Application Development Manager",
7862 "Value": "ADM",
7863 "Order": 5
7864 }
7865 ]
7866 },
7867 {
7868 "Id": 407,
7869 "Text": "What is your organization's (or largest client, if you are a consultant) primary business at this location?",
7870 "Type": "4",
7871 "Alias": "1105 largest client",
7872 "Choices": [
7873 {
7874 "Id": 3295,
7875 "QuestionId": 407,
7876 "Text": "Aerospace",
7877 "Value": "aerospace",
7878 "Order": 1
7879 },
7880 {
7881 "Id": 3303,
7882 "QuestionId": 407,
7883 "Text": "Agriculture/Mining/Gas/Oil",
7884 "Value": "ag",
7885 "Order": 2
7886 },
7887 {
7888 "Id": 3311,
7889 "QuestionId": 407,
7890 "Text": "Business Services/Consultants",
7891 "Value": "bs",
7892 "Order": 3
7893 },
7894 {
7895 "Id": 3319,
7896 "QuestionId": 407,
7897 "Text": "Construction/Architecture/Engineering",
7898 "Value": "construction",
7899 "Order": 4
7900 },
7901 {
7902 "Id": 3327,
7903 "QuestionId": 407,
7904 "Text": "Education/Training",
7905 "Value": "education",
7906 "Order": 5
7907 }
7908 ]
7909 },
7910 {
7911 "Id": 415,
7912 "Text": "What is the total number of employees in your entire organzation?",
7913 "Type": "4",
7914 "Alias": "1105 num employees",
7915 "Choices": [
7916 {
7917 "Id": 3335,
7918 "QuestionId": 415,
7919 "Text": "10,000 or more",
7920 "Value": "10000",
7921 "Order": 1
7922 },
7923 {
7924 "Id": 3343,
7925 "QuestionId": 415,
7926 "Text": "5,000 - 9,999",
7927 "Value": "5000",
7928 "Order": 2
7929 },
7930 {
7931 "Id": 3351,
7932 "QuestionId": 415,
7933 "Text": "1,000 - 4,999",
7934 "Value": "1000",
7935 "Order": 3
7936 },
7937 {
7938 "Id": 3359,
7939 "QuestionId": 415,
7940 "Text": "500 - 999",
7941 "Value": "500",
7942 "Order": 4
7943 },
7944 {
7945 "Id": 3367,
7946 "QuestionId": 415,
7947 "Text": "100 - 499",
7948 "Value": "100",
7949 "Order": 5
7950 },
7951 {
7952 "Id": 3375,
7953 "QuestionId": 415,
7954 "Text": "Under 100",
7955 "Value": "Under 100",
7956 "Order": 6
7957 }
7958 ]
7959 },
7960 {
7961 "Id": 423,
7962 "Text": "saaa",
7963 "Type": "4",
7964 "Alias": "test",
7965 "Choices": [
7966 {
7967 "Id": 3383,
7968 "QuestionId": 423,
7969 "Text": "1",
7970 "Value": "1",
7971 "Order": 1
7972 },
7973 {
7974 "Id": 3391,
7975 "QuestionId": 423,
7976 "Text": "3",
7977 "Value": "3",
7978 "Order": 2
7979 }
7980 ]
7981 }
7982 ]
7983 }
7984 {{/code}}
7985
7986
7987 (% id="HPOSTCreatequestiontypenumeric2Ctext2Cpassword2Ctextareaanddate" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
7988 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create question type numeric, text, password, textarea and date(%%) ==
7989
7990 ----
7991
7992 {{panel bgColor="#D3D3D3" width="100%"}}
7993 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions
7994 {{/panel}}
7995
7996 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
7997
7998 ----
7999
8000 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8001
8002 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8003
8004 ----
8005
8006 {{code language="yml" theme="RDark" title="Body"}}
8007 {"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}
8008 {{/code}}
8009
8010 ==== Example ====
8011
8012 ----
8013
8014 (% style="color:#6b6b6b" %)Request
8015
8016 {{code language="php" theme="RDark" title="Create Question Request"}}
8017 <?php
8018
8019 $curl = curl_init();
8020
8021 curl_setopt_array($curl, array(
8022 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
8023 CURLOPT_RETURNTRANSFER => true,
8024 CURLOPT_ENCODING => '',
8025 CURLOPT_MAXREDIRS => 10,
8026 CURLOPT_TIMEOUT => 0,
8027 CURLOPT_FOLLOWLOCATION => true,
8028 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8029 CURLOPT_CUSTOMREQUEST => 'POST',
8030 CURLOPT_POSTFIELDS =>'{"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}',
8031 CURLOPT_HTTPHEADER => array(
8032 'Appkey: {{ONECOUNT API KEY}}'
8033 ),
8034 ));
8035
8036 $response = curl_exec($curl);
8037
8038 curl_close($curl);
8039 echo $response;
8040 {{/code}}
8041
8042
8043 (% style="color:#6b6b6b" %)Response  200 OK
8044
8045 {{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}
8046 {
8047 "result": {
8048 "success": "1",
8049 "error": {
8050 "code": "",
8051 "message": ""
8052 }
8053 },
8054 "Questions": [
8055 {
8056 "Id": 455
8057 }
8058 ]
8059 }
8060 {{/code}}
8061
8062
8063 (% id="HPOSTCreatequestiontypeselect2Cradioandcheckbox" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8064 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create question type select, radio and checkbox(%%) ==
8065
8066 ----
8067
8068 {{panel bgColor="#D3D3D3" width="100%"}}
8069 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions
8070 {{/panel}}
8071
8072 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8073
8074 ----
8075
8076 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8077
8078 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8079
8080 ----
8081
8082 {{code language="yml" theme="RDark" title="Body"}}
8083 {"Text":"Test from API 6","Type":4,"Alias":"Test from API 6", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]}
8084 {{/code}}
8085
8086 ==== Example ====
8087
8088 ----
8089
8090 (% style="color:#6b6b6b" %)Request
8091
8092 {{code language="php" theme="RDark" title="Create Question Request"}}
8093 <?php
8094
8095 $curl = curl_init();
8096
8097 curl_setopt_array($curl, array(
8098 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
8099 CURLOPT_RETURNTRANSFER => true,
8100 CURLOPT_ENCODING => '',
8101 CURLOPT_MAXREDIRS => 10,
8102 CURLOPT_TIMEOUT => 0,
8103 CURLOPT_FOLLOWLOCATION => true,
8104 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8105 CURLOPT_CUSTOMREQUEST => 'POST',
8106 CURLOPT_POSTFIELDS =>'{"Text":"Test from API 5","Type":4,"Alias":"Test from API 5", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]}',
8107 CURLOPT_HTTPHEADER => array(
8108 'Appkey: {{ONECOUNT API KEY}}'
8109 ),
8110 ));
8111
8112 $response = curl_exec($curl);
8113
8114 curl_close($curl);
8115 echo $response;
8116 {{/code}}
8117
8118
8119 (% style="color:#6b6b6b" %)Response  200 OK
8120
8121 {{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}
8122 {
8123 "result": {
8124 "success": "1",
8125 "error": {
8126 "code": "",
8127 "message": ""
8128 }
8129 },
8130 "Questions": [
8131 {
8132 "Id": 495
8133 }
8134 ]
8135 }
8136 {{/code}}
8137
8138
8139 (% id="HPUTUpdatequestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8140 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update question(%%) ==
8141
8142 ----
8143
8144 {{panel bgColor="#D3D3D3" width="100%"}}
8145 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}}
8146 {{/panel}}
8147
8148 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8149
8150 ----
8151
8152 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8153
8154 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8155
8156 ----
8157
8158 {{code language="yml" theme="RDark" title="Body"}}
8159 {"Text":"Test from API 6 changed","Type":4,"Alias":"Test from API 6 changed", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]}
8160 {{/code}}
8161
8162 ==== Example ====
8163
8164 ----
8165
8166 (% style="color:#6b6b6b" %)Request
8167
8168 {{code language="php" theme="RDark" title="Update Question Request"}}
8169 <?php
8170
8171 $curl = curl_init();
8172
8173 curl_setopt_array($curl, array(
8174 CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}',
8175 CURLOPT_RETURNTRANSFER => true,
8176 CURLOPT_ENCODING => '',
8177 CURLOPT_MAXREDIRS => 10,
8178 CURLOPT_TIMEOUT => 0,
8179 CURLOPT_FOLLOWLOCATION => true,
8180 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8181 CURLOPT_CUSTOMREQUEST => 'PUT',
8182 CURLOPT_POSTFIELDS =>'{"Text":"Test from API 6 changed","Type":4,"Alias":"Test from API 6 changed", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]}',
8183 CURLOPT_HTTPHEADER => array(
8184 'Appkey: {{ONECOUNT API KEY}}'
8185 ),
8186 ));
8187
8188 $response = curl_exec($curl);
8189
8190 curl_close($curl);
8191 echo $response;
8192
8193
8194 {{/code}}
8195
8196
8197 (% style="color:#6b6b6b" %)Response  200 OK
8198
8199 {{code language="yml" theme="RDark" collapse="true" title="Update Question Response"}}
8200 {
8201 "result": {
8202 "success": "1",
8203 "error": {
8204 "code": "",
8205 "message": ""
8206 }
8207 },
8208 "Questions": [
8209 {
8210 "Id": 503
8211 }
8212 ]
8213 }
8214 {{/code}}
8215
8216
8217 (% id="HCOMPONENT:Products" class="western" %)
8218 === **COMPONENT: Products** ===
8219
8220 (% class="western" %)
8221 This resource is for manipulating products resource. A product can be created, updated or searched.
8222
8223 (% class="wrapped" %)
8224 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8225 (((
8226 (% class="western" %)
8227 **Method**
8228 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8229 (((
8230 (% class="western" %)
8231 **Url**
8232 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8233 (((
8234 (% class="western" %)
8235 **Action**
8236 )))
8237 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8238 (((
8239 (% class="western" %)
8240 GET
8241 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8242 (((
8243 (% class="western" %)
8244 /products
8245 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8246 (((
8247 (% class="western" %)
8248 Get all product details
8249 )))
8250 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8251 (((
8252 (% class="western" %)
8253 GET
8254 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8255 (((
8256 (% class="western" %)
8257 /products/5
8258 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8259 (((
8260 (% class="western" %)
8261 Get product id 5
8262 )))
8263 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8264 (((
8265 (% class="western" %)
8266 GET
8267 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8268 (((
8269 (% class="western" %)
8270 /products/lookup?Title=productname
8271 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8272 (((
8273 (% class="western" %)
8274 Lookup products by Title
8275 )))
8276 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8277 (((
8278 (% class="western" %)
8279 POST
8280 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8281 (((
8282 (% class="western" %)
8283 /products
8284 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8285 (((
8286 (% class="western" %)
8287 JSON of the Products type object needs to be sent as post data. Id field should not be sent.
8288 )))
8289 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8290 (((
8291 (% class="western" %)
8292 PUT
8293 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8294 (((
8295 (% class="western" %)
8296 /products/5
8297 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8298 (((
8299 (% class="western" %)
8300 JSON of the Products type object needs to be sent as post data. Id field is mandatory for update.
8301 )))
8302 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8303 (((
8304 (% class="western" %)
8305 POST
8306 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8307 (((
8308 (% class="western" %)
8309 /products/attachResource
8310 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8311 (((
8312 (% class="western" %)
8313 JSON of the Product and Resource ids to be sent as post data.
8314
8315 (% class="western" %)
8316 Both fields are mandatory.
8317
8318 (% class="western" %)
8319 Example:
8320
8321 (% class="western" %)
8322 {"ProductID":"65","ResourceID":”121"}
8323 )))
8324
8325
8326 (% id="HGETAllProducts" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8327 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Products(%%) ==
8328
8329 ----
8330
8331 ----
8332
8333 {{panel bgColor="#D3D3D3" width="100%"}}
8334 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products
8335 {{/panel}}
8336
8337 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8338
8339 ----
8340
8341 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8342
8343 ==== Example ====
8344
8345 ----
8346
8347 (% style="color:#6b6b6b" %)Request
8348
8349 {{code language="php" theme="RDark" title="Get All Products Request"}}
8350 <?php
8351
8352 $curl = curl_init();
8353
8354 curl_setopt_array($curl, array(
8355 CURLOPT_URL => 'https://api.onecount.net/v2/products',
8356 CURLOPT_RETURNTRANSFER => true,
8357 CURLOPT_ENCODING => '',
8358 CURLOPT_MAXREDIRS => 10,
8359 CURLOPT_TIMEOUT => 0,
8360 CURLOPT_FOLLOWLOCATION => true,
8361 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8362 CURLOPT_CUSTOMREQUEST => 'GET',
8363 CURLOPT_HTTPHEADER => array(
8364 'Appkey: {{ONECOUNT API KEY}}'
8365 ),
8366 ));
8367
8368 $response = curl_exec($curl);
8369
8370 curl_close($curl);
8371 echo $response;
8372
8373
8374 {{/code}}
8375
8376
8377 (% style="color:#6b6b6b" %)Response  200 OK
8378
8379 {{code language="yml" theme="RDark" collapse="true" title="Get All Products Response"}}
8380 {
8381 "result": {
8382 "success": "1",
8383 "error": {
8384 "code": "",
8385 "message": ""
8386 }
8387 },
8388 "Products": [
8389 {
8390 "ProductId": 26,
8391 "Title": "ONEcount Product Demo",
8392 "Description": "",
8393 "ResourceIDs": [],
8394 "PrimaryFormID": [
8395 "307",
8396 "34"
8397 ],
8398 "Terms": {
8399 "Id": 26,
8400 "Name": "Please contact me to arrange a demo",
8401 "Description": "",
8402 "Duration": 1,
8403 "DurationUnit": "I",
8404 "Price": "0",
8405 "ProductId": 26
8406 }
8407 },
8408 {
8409 "ProductId": 34,
8410 "Title": "ONEcount Promotional Emails",
8411 "Description": "Master List of ONEcount prospects to receive promotional emails, etc.",
8412 "ResourceIDs": [
8413 98,
8414 114
8415 ],
8416 "PrimaryFormID": [
8417 "194"
8418 ],
8419 "Terms": {
8420 "Id": 34,
8421 "Name": "ONEcount Promotional Emails",
8422 "Description": "ONEcount promotional emails",
8423 "Duration": 1,
8424 "DurationUnit": "I",
8425 "Price": "0",
8426 "ProductId": 34
8427 }
8428 },
8429 {
8430 "ProductId": 42,
8431 "Title": "ONEcount Staff",
8432 "Description": "ONEcount/GCN Media Staff",
8433 "ResourceIDs": [
8434 18
8435 ],
8436 "PrimaryFormID": [
8437 "186"
8438 ],
8439 "Terms": {
8440 "Id": 42,
8441 "Name": "ONEcount Staff List",
8442 "Description": "List of ONEcount/GCN Media Staff",
8443 "Duration": 1,
8444 "DurationUnit": "I",
8445 "Price": "0",
8446 "ProductId": 42
8447 }
8448 },
8449 {
8450 "ProductId": 49,
8451 "Title": "ONEcount Medical Publishers",
8452 "Description": "For blasts to medical publishers and associations",
8453 "ResourceIDs": [
8454 137
8455 ],
8456 "PrimaryFormID": [
8457 "170"
8458 ],
8459 "Terms": {
8460 "Id": 49,
8461 "Name": "ONEcount Medical Publishers",
8462 "Description": "ONEcount Medical Publishers and Associations",
8463 "Duration": 1,
8464 "DurationUnit": "I",
8465 "Price": "0",
8466 "ProductId": 49
8467 }
8468 },
8469 {
8470 "ProductId": 57,
8471 "Title": "000 Pop-Up Form",
8472 "Description": "",
8473 "ResourceIDs": [
8474 145
8475 ],
8476 "PrimaryFormID": [
8477 "170"
8478 ],
8479 "Terms": {
8480 "Id": 57,
8481 "Name": "000 Pop-Up Term",
8482 "Description": "",
8483 "Duration": 1,
8484 "DurationUnit": "I",
8485 "Price": "0",
8486 "ProductId": 57
8487 }
8488 },
8489 {
8490 "ProductId": 65,
8491 "Title": "TEST",
8492 "Description": "",
8493 "ResourceIDs": [],
8494 "PrimaryFormID": [
8495 "194"
8496 ],
8497 "Terms": {}
8498 },
8499 {
8500 "ProductId": 67,
8501 "Title": "Gated Product Example PKG",
8502 "Description": "",
8503 "ResourceIDs": [],
8504 "PrimaryFormID": [
8505 "195"
8506 ],
8507 "Terms": {
8508 "Id": 59,
8509 "Name": "Get it for free",
8510 "Description": "",
8511 "Duration": 1,
8512 "DurationUnit": "I",
8513 "Price": "0",
8514 "ProductId": 67
8515 }
8516 },
8517 {
8518 "ProductId": 75,
8519 "Title": "SB: Apple Moves To Limit Tracking in Safari: Prove",
8520 "Description": "",
8521 "ResourceIDs": [],
8522 "PrimaryFormID": [],
8523 "Terms": {}
8524 },
8525 {
8526 "ProductId": 83,
8527 "Title": "SB: Audience Extension: Turning Identity Into Cash",
8528 "Description": "",
8529 "ResourceIDs": [],
8530 "PrimaryFormID": [],
8531 "Terms": {}
8532 },
8533 {
8534 "ProductId": 91,
8535 "Title": "DAS_freepass_00",
8536 "Description": "",
8537 "ResourceIDs": [
8538 187
8539 ],
8540 "PrimaryFormID": [
8541 "267"
8542 ],
8543 "Terms": {
8544 "Id": 67,
8545 "Name": "DAS_freepass_00",
8546 "Description": "",
8547 "Duration": 30,
8548 "DurationUnit": "D",
8549 "Price": "0",
8550 "ProductId": 91
8551 }
8552 },
8553 {
8554 "ProductId": 99,
8555 "Title": "Test12311111",
8556 "Description": "Testss",
8557 "ResourceIDs": [],
8558 "PrimaryFormID": [
8559 "10"
8560 ],
8561 "Terms": {
8562 "Id": 75,
8563 "Name": "Product123",
8564 "Description": null,
8565 "Duration": 0,
8566 "DurationUnit": "",
8567 "Price": "0",
8568 "ProductId": 99
8569 }
8570 },
8571 {
8572 "ProductId": 107,
8573 "Title": "Test123-456",
8574 "Description": "Testss updated",
8575 "ResourceIDs": [
8576 98
8577 ],
8578 "PrimaryFormID": [
8579 "10"
8580 ],
8581 "Terms": {
8582 "Id": 83,
8583 "Name": "Product123",
8584 "Description": null,
8585 "Duration": 0,
8586 "DurationUnit": "",
8587 "Price": "0",
8588 "ProductId": 107
8589 }
8590 },
8591 {
8592 "ProductId": 109,
8593 "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM",
8594 "Description": "",
8595 "ResourceIDs": [
8596 197
8597 ],
8598 "PrimaryFormID": [],
8599 "Terms": {
8600 "Id": 93,
8601 "Name": "Enhanced Analytics Webinar",
8602 "Description": "Check the box to register for the February 26th webinar.",
8603 "Duration": 1,
8604 "DurationUnit": "I",
8605 "Price": "0",
8606 "ProductId": 109
8607 }
8608 }
8609 ]
8610 }
8611 {{/code}}
8612
8613
8614 (% id="HGETspecificProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8615 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Product(%%) ==
8616
8617 ----
8618
8619 {{panel bgColor="#D3D3D3" width="100%"}}
8620 (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color:#212121" %)/products/~{~{product id}}
8621 {{/panel}}
8622
8623 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8624
8625 ----
8626
8627 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8628
8629 ==== Example ====
8630
8631 ----
8632
8633 (% style="color:#6b6b6b" %)Request
8634
8635 {{code language="php" theme="RDark" title="Get specific Product Request"}}
8636 <?php
8637
8638 $curl = curl_init();
8639
8640 curl_setopt_array($curl, array(
8641 CURLOPT_URL => 'https://api.onecount.net/v2/users/products/{{product id}}',
8642 CURLOPT_RETURNTRANSFER => true,
8643 CURLOPT_ENCODING => '',
8644 CURLOPT_MAXREDIRS => 10,
8645 CURLOPT_TIMEOUT => 0,
8646 CURLOPT_FOLLOWLOCATION => true,
8647 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8648 CURLOPT_CUSTOMREQUEST => 'GET',
8649 CURLOPT_HTTPHEADER => array(
8650 'Appkey: {{ONECOUNT API KEY}}'
8651 ),
8652 ));
8653
8654 $response = curl_exec($curl);
8655
8656 curl_close($curl);
8657 echo $response;
8658 {{/code}}
8659
8660
8661 (% style="color:#6b6b6b" %)Response  200 OK
8662
8663 {{code language="yml" theme="RDark" collapse="true" title="Get specific Product Response"}}
8664 {
8665 "result": {
8666 "success": "1",
8667 "error": {
8668 "code": "",
8669 "message": ""
8670 }
8671 },
8672 "Products": [
8673 {
8674 "ProductId": 109,
8675 "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM",
8676 "Description": "",
8677 "ResourceIDs": [
8678 197
8679 ],
8680 "PrimaryFormID": [],
8681 "Terms": {
8682 "Id": 93,
8683 "Name": "Enhanced Analytics Webinar",
8684 "Description": "Check the box to register for the February 26th webinar.",
8685 "Duration": 1,
8686 "DurationUnit": "I",
8687 "Price": "0",
8688 "ProductId": 109
8689 }
8690 }
8691 ]
8692 }
8693 {{/code}}
8694
8695
8696 (% id="HGETlookupProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8697 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Product(%%) ==
8698
8699 ----
8700
8701 {{panel bgColor="#D3D3D3" width="100%"}}
8702 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/lookup?Title=~{~{Product Name}}
8703 {{/panel}}
8704
8705 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8706
8707 ----
8708
8709 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8710
8711 === (% style="color:#212121" %)Query Params(%%) ===
8712
8713 ----
8714
8715 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Title                                                                                                        (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Product Name}}(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)
8716
8717 ==== Example ====
8718
8719 ----
8720
8721 (% style="color:#6b6b6b" %)Request
8722
8723 {{code language="php" theme="RDark" title="Lookup Product Request"}}
8724 <?php
8725
8726 $curl = curl_init();
8727
8728 curl_setopt_array($curl, array(
8729 CURLOPT_URL => 'https://api.onecount.net/v2/products/lookup?Title={{Product Name}}',
8730 CURLOPT_RETURNTRANSFER => true,
8731 CURLOPT_ENCODING => '',
8732 CURLOPT_MAXREDIRS => 10,
8733 CURLOPT_TIMEOUT => 0,
8734 CURLOPT_FOLLOWLOCATION => true,
8735 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8736 CURLOPT_CUSTOMREQUEST => 'GET',
8737 CURLOPT_HTTPHEADER => array(
8738 'Appkey: {{ONECOUNT API KEY}}'
8739 ),
8740 ));
8741
8742 $response = curl_exec($curl);
8743
8744 curl_close($curl);
8745 echo $response;
8746 {{/code}}
8747
8748
8749 (% style="color:#6b6b6b" %)Response  200 OK
8750
8751 {{code language="yml" theme="RDark" collapse="true" title="Lookup Product Response"}}
8752 {
8753 "result": {
8754 "success": "1",
8755 "error": {
8756 "code": "",
8757 "message": ""
8758 }
8759 },
8760 "Products": [
8761 {
8762 "ProductId": 107,
8763 "Title": "Test123-456",
8764 "Description": "Testss updated",
8765 "Terms": {
8766 "Id": 83,
8767 "Name": "Product123",
8768 "Description": null,
8769 "Duration": 0,
8770 "DurationUnit": "",
8771 "Price": "0",
8772 "ProductId": 107
8773 }
8774 }
8775 ]
8776 }
8777 {{/code}}
8778
8779
8780 (% id="HPOSTCreateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8781 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Product(%%) ==
8782
8783 ----
8784
8785 {{panel bgColor="#D3D3D3" width="100%"}}
8786 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products
8787 {{/panel}}
8788
8789 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8790
8791 ----
8792
8793 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8794
8795 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8796
8797 ----
8798
8799 {{code language="yml" theme="RDark" title="Body"}}
8800 {"Title":"Test API package creation 2","Description": "Test API package creation 2","Terms":{"Name":"Test term for API 2"},"PrimaryFormId":0}
8801 {{/code}}
8802
8803 ==== Example ====
8804
8805 ----
8806
8807 (% style="color:#6b6b6b" %)Request
8808
8809 {{code language="php" theme="RDark" title="Create Product Request"}}
8810 <?php
8811
8812 $curl = curl_init();
8813
8814 curl_setopt_array($curl, array(
8815 CURLOPT_URL => 'https://api.onecount.net/v2/products',
8816 CURLOPT_RETURNTRANSFER => true,
8817 CURLOPT_ENCODING => '',
8818 CURLOPT_MAXREDIRS => 10,
8819 CURLOPT_TIMEOUT => 0,
8820 CURLOPT_FOLLOWLOCATION => true,
8821 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8822 CURLOPT_CUSTOMREQUEST => 'POST',
8823 CURLOPT_POSTFIELDS =>'{"Title":"Test API package creation 1","Description": "Test API package creation 1","Terms":{"Name":"Test term for API 1"},"PrimaryFormId":0}',
8824 CURLOPT_HTTPHEADER => array(
8825 'Appkey: {{ONECOUNT API KEY}}'
8826 ),
8827 ));
8828
8829 $response = curl_exec($curl);
8830
8831 curl_close($curl);
8832 echo $response;
8833 {{/code}}
8834
8835
8836 (% style="color:#6b6b6b" %)Response  200 OK
8837
8838 {{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}}
8839 {
8840 "result": {
8841 "success": "1",
8842 "error": {
8843 "code": "",
8844 "message": ""
8845 }
8846 },
8847 "Products": [
8848 {
8849 "ProductId": 599
8850 }
8851 ]
8852 }
8853 {{/code}}
8854
8855
8856 (% id="HPUTUpdateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8857 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Product(%%) ==
8858
8859 ----
8860
8861 {{panel bgColor="#D3D3D3" width="100%"}}
8862 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/~{~{Product id}}
8863 {{/panel}}
8864
8865 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8866
8867 ----
8868
8869 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8870
8871 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8872
8873 ----
8874
8875 {{code language="yml" theme="RDark" title="Body"}}
8876 {"Title":"Test API package 23","Description": "Test API package 23","PrimaryFormId":0}
8877 {{/code}}
8878
8879 ==== Example ====
8880
8881 ----
8882
8883 (% style="color:#6b6b6b" %)Request
8884
8885 {{code language="php" theme="RDark" title="Update Product Request"}}
8886 <?php
8887
8888 $curl = curl_init();
8889
8890 curl_setopt_array($curl, array(
8891 CURLOPT_URL => 'https://api.onecount.net/v2/products/{{Product id}}',
8892 CURLOPT_RETURNTRANSFER => true,
8893 CURLOPT_ENCODING => '',
8894 CURLOPT_MAXREDIRS => 10,
8895 CURLOPT_TIMEOUT => 0,
8896 CURLOPT_FOLLOWLOCATION => true,
8897 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8898 CURLOPT_CUSTOMREQUEST => 'PUT',
8899 CURLOPT_POSTFIELDS =>'{"Title":"Test API package 1","Description": "Test API package 1","PrimaryFormId":0}',
8900 CURLOPT_HTTPHEADER => array(
8901 'Appkey: {{ONECOUNT API KEY}}'
8902 ),
8903 ));
8904
8905 $response = curl_exec($curl);
8906
8907 curl_close($curl);
8908 echo $response;
8909
8910 {{/code}}
8911
8912
8913 (% style="color:#6b6b6b" %)Response  200 OK
8914
8915 {{code language="yml" theme="RDark" collapse="true" title="Update Product Response"}}
8916 {
8917 "result": {
8918 "success": "1",
8919 "error": {
8920 "code": "",
8921 "message": ""
8922 }
8923 },
8924 "Products": [
8925 {
8926 "ProductId": 599,
8927 "Title": "Test API package 1",
8928 "Description": "Test API package 1"
8929 }
8930 ]
8931 }
8932 {{/code}}
8933
8934
8935 (% id="HPOSTAttachResourcetoProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8936 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Attach Resource to Product(%%) ==
8937
8938 ----
8939
8940 {{panel bgColor="#D3D3D3" width="100%"}}
8941 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/attachResource
8942 {{/panel}}
8943
8944 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8945
8946 ----
8947
8948 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
8949
8950 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8951
8952 ----
8953
8954 {{code language="yml" theme="RDark" title="Body"}}
8955 {"ProductID":"599","ResourceID":"903"}
8956 {{/code}}
8957
8958 ==== Example ====
8959
8960 ----
8961
8962 (% style="color:#6b6b6b" %)Request
8963
8964 {{code language="php" theme="RDark" title="Attach Resource to Product Request"}}
8965 <?php
8966
8967 $curl = curl_init();
8968
8969 curl_setopt_array($curl, array(
8970 CURLOPT_URL => 'https://api.onecount.net/v2/products/attachResource',
8971 CURLOPT_RETURNTRANSFER => true,
8972 CURLOPT_ENCODING => '',
8973 CURLOPT_MAXREDIRS => 10,
8974 CURLOPT_TIMEOUT => 0,
8975 CURLOPT_FOLLOWLOCATION => true,
8976 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8977 CURLOPT_CUSTOMREQUEST => 'POST',
8978 CURLOPT_POSTFIELDS =>'{"ProductID":"599","ResourceID":"903"}',
8979 CURLOPT_HTTPHEADER => array(
8980 'Appkey: {{ONECOUNT API KEY}}'
8981 ),
8982 ));
8983
8984 $response = curl_exec($curl);
8985
8986 curl_close($curl);
8987 echo $response;
8988 {{/code}}
8989
8990
8991 (% style="color:#6b6b6b" %)Response  200 OK
8992
8993 {{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}}
8994 {
8995 "result": {
8996 "success": "1",
8997 "error": {
8998 "code": "",
8999 "message": ""
9000 }
9001 },
9002 "Products": "599"
9003 }
9004 {{/code}}
9005
9006 (% id="HCOMPONENT:Terms" class="western" %)
9007 === **COMPONENT: Terms** ===
9008
9009 (% class="western" %)
9010 This resource is for manipulating terms resource. A term can be created, updated or searched.
9011
9012 (% class="wrapped" %)
9013 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9014 (((
9015 (% class="western" %)
9016 **Method**
9017 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9018 (((
9019 (% class="western" %)
9020 **Url**
9021 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9022 (((
9023 (% class="western" %)
9024 **Action**
9025 )))
9026 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9027 (((
9028 (% class="western" %)
9029 GET
9030 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9031 (((
9032 (% class="western" %)
9033 /terms/5
9034 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9035 (((
9036 (% class="western" %)
9037 Get term id 5
9038 )))
9039 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9040 (((
9041 (% class="western" %)
9042 GET
9043 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9044 (((
9045 (% class="western" %)
9046 /terms/lookup?Name=termname
9047 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9048 (((
9049 (% class="western" %)
9050 Lookup terms by Name
9051 )))
9052 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9053 (((
9054 (% class="western" %)
9055 POST
9056 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9057 (((
9058 (% class="western" %)
9059 /terms
9060 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9061 (((
9062 (% class="western" %)
9063 JSON of the terms type object needs to be sent as post data. Id field should not be sent.
9064 )))
9065 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9066 (((
9067 (% class="western" %)
9068 PUT
9069 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9070 (((
9071 (% class="western" %)
9072 /terms/5
9073 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9074 (((
9075 (% class="western" %)
9076 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update.
9077 )))
9078
9079
9080 (% id="HGETAllTerms" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9081 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Terms(%%) ==
9082
9083 ----
9084
9085 ----
9086
9087 {{panel bgColor="#D3D3D3" width="100%"}}
9088 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms
9089 {{/panel}}
9090
9091 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9092
9093 ----
9094
9095 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9096
9097 ==== Example ====
9098
9099 ----
9100
9101 (% style="color:#6b6b6b" %)Request
9102
9103 {{code language="php" theme="RDark" title="Get All Terms Request"}}
9104 <?php
9105
9106 $curl = curl_init();
9107
9108 curl_setopt_array($curl, array(
9109 CURLOPT_URL => 'https://api.onecount.net/v2/terms',
9110 CURLOPT_RETURNTRANSFER => true,
9111 CURLOPT_ENCODING => '',
9112 CURLOPT_MAXREDIRS => 10,
9113 CURLOPT_TIMEOUT => 0,
9114 CURLOPT_FOLLOWLOCATION => true,
9115 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9116 CURLOPT_CUSTOMREQUEST => 'GET',
9117 CURLOPT_HTTPHEADER => array(
9118 'Appkey: {{ONECOUNT API KEY}}'
9119 ),
9120 ));
9121
9122 $response = curl_exec($curl);
9123
9124 curl_close($curl);
9125 echo $response;
9126 {{/code}}
9127
9128
9129 (% style="color:#6b6b6b" %)Response  200 OK
9130
9131 {{code language="yml" theme="RDark" collapse="true" title="Get All Terms Response"}}
9132 {
9133 "result": {
9134 "success": "1",
9135 "error": {
9136 "code": "",
9137 "message": ""
9138 }
9139 },
9140 "Terms": [
9141 {
9142 "Id": 26,
9143 "Name": "Please contact me to arrange a demo",
9144 "Description": "",
9145 "Duration": 1,
9146 "DurationUnit": "I",
9147 "Price": "0",
9148 "ProductId": 26
9149 },
9150 {
9151 "Id": 34,
9152 "Name": "ONEcount Promotional Emails",
9153 "Description": "ONEcount promotional emails",
9154 "Duration": 1,
9155 "DurationUnit": "I",
9156 "Price": "0",
9157 "ProductId": 34
9158 },
9159 {
9160 "Id": 42,
9161 "Name": "ONEcount Staff List",
9162 "Description": "List of ONEcount/GCN Media Staff",
9163 "Duration": 1,
9164 "DurationUnit": "I",
9165 "Price": "0",
9166 "ProductId": 42
9167 },
9168 {
9169 "Id": 49,
9170 "Name": "ONEcount Medical Publishers",
9171 "Description": "ONEcount Medical Publishers and Associations",
9172 "Duration": 1,
9173 "DurationUnit": "I",
9174 "Price": "0",
9175 "ProductId": 49
9176 },
9177 {
9178 "Id": 57,
9179 "Name": "000 Pop-Up Term",
9180 "Description": "",
9181 "Duration": 1,
9182 "DurationUnit": "I",
9183 "Price": "0",
9184 "ProductId": 57
9185 },
9186 {
9187 "Id": 59,
9188 "Name": "Get it for free",
9189 "Description": "",
9190 "Duration": 1,
9191 "DurationUnit": "I",
9192 "Price": "0",
9193 "ProductId": 67
9194 },
9195 {
9196 "Id": 67,
9197 "Name": "DAS_freepass_00",
9198 "Description": "",
9199 "Duration": 30,
9200 "DurationUnit": "D",
9201 "Price": "0",
9202 "ProductId": 91
9203 },
9204 {
9205 "Id": 75,
9206 "Name": "Product123",
9207 "Description": null,
9208 "Duration": 0,
9209 "DurationUnit": "",
9210 "Price": "0",
9211 "ProductId": 99
9212 },
9213 {
9214 "Id": 83,
9215 "Name": "Product123",
9216 "Description": null,
9217 "Duration": 0,
9218 "DurationUnit": "",
9219 "Price": "0",
9220 "ProductId": 107
9221 },
9222 {
9223 "Id": 91,
9224 "Name": "Test123 update ",
9225 "Description": "Testss updated",
9226 "Duration": 10,
9227 "DurationUnit": "",
9228 "Price": "0",
9229 "ProductId": 107
9230 },
9231 {
9232 "Id": 93,
9233 "Name": "Enhanced Analytics Webinar",
9234 "Description": "Check the box to register for the February 26th webinar.",
9235 "Duration": 1,
9236 "DurationUnit": "I",
9237 "Price": "0",
9238 "ProductId": 109
9239 },
9240 {
9241 "Id": 423,
9242 "Name": "Test term for API",
9243 "Description": null,
9244 "Duration": 0,
9245 "DurationUnit": "",
9246 "Price": "0.00",
9247 "ProductId": 591
9248 },
9249 {
9250 "Id": 431,
9251 "Name": "Test term for API 1",
9252 "Description": null,
9253 "Duration": 0,
9254 "DurationUnit": "",
9255 "Price": "0.00",
9256 "ProductId": 599
9257 }
9258 ]
9259 }
9260 {{/code}}
9261
9262
9263 (% id="HGETspecificTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9264 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Term(%%) ==
9265
9266 ----
9267
9268 {{panel bgColor="#D3D3D3" width="100%"}}
9269 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}}
9270 {{/panel}}
9271
9272 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9273
9274 ----
9275
9276 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9277
9278 ==== Example ====
9279
9280 ----
9281
9282 (% style="color:#6b6b6b" %)Request
9283
9284 {{code language="php" theme="RDark" title="Get specific Term Request"}}
9285 <?php
9286
9287 $curl = curl_init();
9288
9289 curl_setopt_array($curl, array(
9290 CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}',
9291 CURLOPT_RETURNTRANSFER => true,
9292 CURLOPT_ENCODING => '',
9293 CURLOPT_MAXREDIRS => 10,
9294 CURLOPT_TIMEOUT => 0,
9295 CURLOPT_FOLLOWLOCATION => true,
9296 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9297 CURLOPT_CUSTOMREQUEST => 'GET',
9298 CURLOPT_HTTPHEADER => array(
9299 'Appkey: {{ONECOUNT API KEY}}'
9300 ),
9301 ));
9302
9303 $response = curl_exec($curl);
9304
9305 curl_close($curl);
9306 echo $response;
9307 {{/code}}
9308
9309
9310 (% style="color:#6b6b6b" %)Response  200 OK
9311
9312 {{code language="yml" theme="RDark" collapse="true" title="Get specific Term Response"}}
9313 {
9314 "result": {
9315 "success": "1",
9316 "error": {
9317 "code": "",
9318 "message": ""
9319 }
9320 },
9321 "Terms": [
9322 {
9323 "Id": 431,
9324 "Name": "Test term for API 1",
9325 "Description": null,
9326 "Duration": 0,
9327 "DurationUnit": "",
9328 "Price": "0.00",
9329 "ProductId": 599
9330 }
9331 ]
9332 }
9333 {{/code}}
9334
9335
9336 (% id="HGETlookupTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9337 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Term(%%) ==
9338
9339 ----
9340
9341 {{panel bgColor="#D3D3D3" width="100%"}}
9342 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/lookup?Name={(%%){Term Name}}
9343 {{/panel}}
9344
9345 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9346
9347 ----
9348
9349 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9350
9351 === (% style="color:#212121" %)Query Params(%%) ===
9352
9353 ----
9354
9355 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Name                                                                                                     (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Term Name}}
9356
9357 ==== Example ====
9358
9359 ----
9360
9361 (% style="color:#6b6b6b" %)Request
9362
9363 {{code language="php" theme="RDark" title="Lookup Term Request"}}
9364 <?php
9365
9366 $curl = curl_init();
9367
9368 curl_setopt_array($curl, array(
9369 CURLOPT_URL => 'https://api.onecount.net/v2/terms/lookup?Name={{Term Name}}',
9370 CURLOPT_RETURNTRANSFER => true,
9371 CURLOPT_ENCODING => '',
9372 CURLOPT_MAXREDIRS => 10,
9373 CURLOPT_TIMEOUT => 0,
9374 CURLOPT_FOLLOWLOCATION => true,
9375 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9376 CURLOPT_CUSTOMREQUEST => 'GET',
9377 CURLOPT_HTTPHEADER => array(
9378 'Appkey: {{ONECOUNT API KEY}}'
9379 ),
9380 ));
9381
9382 $response = curl_exec($curl);
9383
9384 curl_close($curl);
9385 echo $response;
9386 {{/code}}
9387
9388
9389 (% style="color:#6b6b6b" %)Response  200 OK
9390
9391 {{code language="yml" theme="RDark" collapse="true" title="Lookup Term Response"}}
9392 {
9393 "result": {
9394 "success": "1",
9395 "error": {
9396 "code": "",
9397 "message": ""
9398 }
9399 },
9400 "Terms": [
9401 {
9402 "Id": 431,
9403 "Name": "Test term for API 1",
9404 "Description": null,
9405 "Duration": 0,
9406 "DurationUnit": "",
9407 "Price": "0.00",
9408 "ProductId": 599
9409 }
9410 ]
9411 }
9412 {{/code}}
9413
9414
9415 (% id="HPOSTCreateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9416 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Term(%%) ==
9417
9418 ----
9419
9420 {{panel bgColor="#D3D3D3" width="100%"}}
9421 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms
9422 {{/panel}}
9423
9424 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9425
9426 ----
9427
9428 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9429
9430 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9431
9432 ----
9433
9434 {{code language="yml" theme="RDark" title="Body"}}
9435 {"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599}
9436 {{/code}}
9437
9438 ==== Example ====
9439
9440 ----
9441
9442 (% style="color:#6b6b6b" %)Request
9443
9444 {{code language="php" theme="RDark" title="Create Term Request"}}
9445 <?php
9446
9447 $curl = curl_init();
9448
9449 curl_setopt_array($curl, array(
9450 CURLOPT_URL => 'https://api.onecount.net/v2/terms',
9451 CURLOPT_RETURNTRANSFER => true,
9452 CURLOPT_ENCODING => '',
9453 CURLOPT_MAXREDIRS => 10,
9454 CURLOPT_TIMEOUT => 0,
9455 CURLOPT_FOLLOWLOCATION => true,
9456 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9457 CURLOPT_CUSTOMREQUEST => 'POST',
9458 CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599}
9459
9460 ',
9461 CURLOPT_HTTPHEADER => array(
9462 'Appkey: {{ONECOUNT API KEY}}'
9463 ),
9464 ));
9465
9466 $response = curl_exec($curl);
9467
9468 curl_close($curl);
9469 echo $response;
9470
9471
9472 {{/code}}
9473
9474
9475 (% style="color:#6b6b6b" %)Response  200 OK
9476
9477 {{code language="yml" theme="RDark" collapse="true" title="Create Term Response"}}
9478 {
9479 "result": {
9480 "success": "1",
9481 "error": {
9482 "code": "",
9483 "message": ""
9484 }
9485 },
9486 "Terms": [
9487 {
9488 "Id": 447
9489 }
9490 ]
9491 }
9492 {{/code}}
9493
9494
9495 (% id="HPUTUpdateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9496 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Term(%%) ==
9497
9498 ----
9499
9500 {{panel bgColor="#D3D3D3" width="100%"}}
9501 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}}
9502 {{/panel}}
9503
9504 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9505
9506 ----
9507
9508 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9509
9510 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9511
9512 ----
9513
9514 {{code language="yml" theme="RDark" title="Body"}}
9515 {"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}
9516 {{/code}}
9517
9518 ==== Example ====
9519
9520 ----
9521
9522 (% style="color:#6b6b6b" %)Request
9523
9524 {{code language="php" theme="RDark" title="Update Term Request"}}
9525 <?php
9526
9527 $curl = curl_init();
9528
9529 curl_setopt_array($curl, array(
9530 CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}',
9531 CURLOPT_RETURNTRANSFER => true,
9532 CURLOPT_ENCODING => '',
9533 CURLOPT_MAXREDIRS => 10,
9534 CURLOPT_TIMEOUT => 0,
9535 CURLOPT_FOLLOWLOCATION => true,
9536 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9537 CURLOPT_CUSTOMREQUEST => 'PUT',
9538 CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}',
9539 CURLOPT_HTTPHEADER => array(
9540 'Appkey: {{ONECOUNT API KEY}}'
9541 ),
9542 ));
9543
9544 $response = curl_exec($curl);
9545
9546 curl_close($curl);
9547 echo $response;
9548 {{/code}}
9549
9550
9551 (% style="color:#6b6b6b" %)Response  200 OK
9552
9553 {{code language="yml" theme="RDark" collapse="true" title="Update Term Response"}}
9554 {
9555 "result": {
9556 "success": "1",
9557 "error": {
9558 "code": "",
9559 "message": ""
9560 }
9561 },
9562 "Terms": [
9563 {
9564 "Id": 447,
9565 "Name": "Test API term creation update",
9566 "Description": "Test API term creation update",
9567 "Duration": 10,
9568 "DurationUnit": "",
9569 "Price": "0.00",
9570 "ProductId": 599
9571 }
9572 ]
9573 }
9574 {{/code}}
9575
9576
9577 (% id="HCOMPONENT:Resources" class="western" %)
9578 === **COMPONENT: Resources** ===
9579
9580 (% class="western" %)
9581 Resources are the available entities that can be accessed/modified via API. Each resource can be created, updated or requested by using the corresponding http method described above.
9582
9583 * (((
9584 (% class="western" %)
9585 questions
9586 )))
9587 * (((
9588 (% class="western" %)
9589 users
9590 )))
9591 * (((
9592 (% class="western" %)
9593 products
9594 )))
9595 * (((
9596 (% class="western" %)
9597 terms
9598 )))
9599 * (((
9600 (% class="western" %)
9601 resources
9602 )))
9603 * (((
9604 (% class="western" %)
9605 sources
9606 )))
9607 * (((
9608 (% class="western" %)
9609 transactions
9610 )))
9611
9612 (% class="western" %)
9613 **~ **
9614
9615 (% class="western" %)
9616 This resource is for manipulating resources resource. A resource can be created, updated or searched.
9617
9618 (% class="wrapped" %)
9619 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9620 (((
9621 (% class="western" %)
9622 **Method**
9623 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9624 (((
9625 (% class="western" %)
9626 **Url**
9627 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9628 (((
9629 (% class="western" %)
9630 **Action**
9631 )))
9632 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9633 (((
9634 (% class="western" %)
9635 GET
9636 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9637 (((
9638 (% class="western" %)
9639 /resources/5
9640 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9641 (((
9642 (% class="western" %)
9643 Get resource id 5
9644 )))
9645 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9646 (((
9647 (% class="western" %)
9648 GET
9649 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9650 (((
9651 (% class="western" %)
9652 /resources/lookup?Name=resourcename
9653 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9654 (((
9655 (% class="western" %)
9656 Lookup resources by Name
9657 )))
9658 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9659 (((
9660 (% class="western" %)
9661 POST
9662 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9663 (((
9664 (% class="western" %)
9665 /resources
9666 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9667 (((
9668 (% class="western" %)
9669 JSON of the resources type object needs to be sent as post data. Id field should not be sent.
9670 )))
9671 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9672 (((
9673 (% class="western" %)
9674 PUT
9675 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9676 (((
9677 (% class="western" %)
9678 /resources/5
9679 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9680 (((
9681 (% class="western" %)
9682 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update.
9683 )))
9684
9685
9686 (% id="HGETAllResources" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9687 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Resources(%%) ==
9688
9689 ----
9690
9691 ----
9692
9693 {{panel bgColor="#D3D3D3" width="100%"}}
9694 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources
9695 {{/panel}}
9696
9697 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9698
9699 ----
9700
9701 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9702
9703 ==== Example ====
9704
9705 ----
9706
9707 (% style="color:#6b6b6b" %)Request
9708
9709 {{code language="php" theme="RDark" title="Get All Resource Request"}}
9710 <?php
9711
9712 $curl = curl_init();
9713
9714 curl_setopt_array($curl, array(
9715 CURLOPT_URL => 'https://api.onecount.net/v2/resources',
9716 CURLOPT_RETURNTRANSFER => true,
9717 CURLOPT_ENCODING => '',
9718 CURLOPT_MAXREDIRS => 10,
9719 CURLOPT_TIMEOUT => 0,
9720 CURLOPT_FOLLOWLOCATION => true,
9721 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9722 CURLOPT_CUSTOMREQUEST => 'GET',
9723 CURLOPT_HTTPHEADER => array(
9724 'Appkey: {{ONECOUNT API KEY}}'
9725 ),
9726 ));
9727
9728 $response = curl_exec($curl);
9729
9730 curl_close($curl);
9731 echo $response;
9732 {{/code}}
9733
9734
9735 (% style="color:#6b6b6b" %)Response  200 OK
9736
9737 {{code language="yml" theme="RDark" collapse="true" title="Get All Resource Response"}}
9738 {
9739 "result": {
9740 "success": "1",
9741 "error": {
9742 "code": "",
9743 "message": ""
9744 }
9745 },
9746 "Resources": [
9747 {
9748 "Id": 18,
9749 "Name": "ONEcount/GCN Staff Newsletter Resource",
9750 "Description": "ONEcount/GCN Staff Newsletter List",
9751 "Type": "2",
9752 "Value": "57|53|55",
9753 "FreePass": 0
9754 },
9755 {
9756 "Id": 26,
9757 "Name": "GCN TEST GROUP",
9758 "Description": "THESE USER WILL GET TEST MESSAGE",
9759 "Type": "2",
9760 "Value": "47",
9761 "FreePass": 0
9762 },
9763 {
9764 "Id": 98,
9765 "Name": "ONEcount Prospects List",
9766 "Description": "Newsletter List of ONEcount Prospects",
9767 "Type": "2",
9768 "Value": "55",
9769 "FreePass": 0
9770 },
9771 {
9772 "Id": 106,
9773 "Name": "Google Ads Form",
9774 "Description": "",
9775 "Type": "3",
9776 "Value": "http://ocreg.one-count.com/onecount/reg/registerForm.cgi?form=186&brand=OC",
9777 "FreePass": 0
9778 },
9779 {
9780 "Id": 114,
9781 "Name": "secure files",
9782 "Description": "",
9783 "Type": "3",
9784 "Value": "/download.php",
9785 "FreePass": 0
9786 },
9787 {
9788 "Id": 130,
9789 "Name": "REQUEST A DEMO",
9790 "Description": "",
9791 "Type": "3",
9792 "Value": "http://ocreg.one-count.com/onecount/flexreg/displayform.cgi?g=0&form=34",
9793 "FreePass": 0
9794 },
9795 {
9796 "Id": 137,
9797 "Name": "ONEcount Medical Publishers",
9798 "Description": "ONEcount Medical Publishers and Associations",
9799 "Type": "2",
9800 "Value": "61",
9801 "FreePass": 0
9802 },
9803 {
9804 "Id": 145,
9805 "Name": "Pop-Up Test Page",
9806 "Description": "",
9807 "Type": "3",
9808 "Value": "http://omar.gcnmedia.com/projects/form/gated.html",
9809 "FreePass": 0
9810 },
9811 {
9812 "Id": 146,
9813 "Name": "Platform Resource",
9814 "Description": "Test Resource",
9815 "Type": "3",
9816 "Value": "/Platform",
9817 "FreePass": 0
9818 },
9819 {
9820 "Id": 153,
9821 "Name": "Submitted",
9822 "Description": "",
9823 "Type": "3",
9824 "Value": "http://gcn-reg.onecount.net/onecount/reg/tSuccessView.php?brand=oc",
9825 "FreePass": 0
9826 }
9827 ]
9828 }
9829 {{/code}}
9830
9831
9832 (% id="HGETspecificResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9833 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Resource(%%) ==
9834
9835 ----
9836
9837 {{panel bgColor="#D3D3D3" width="100%"}}
9838 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/{(%%){Resource ID}}
9839 {{/panel}}
9840
9841 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9842
9843 ----
9844
9845 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9846
9847 ==== Example ====
9848
9849 ----
9850
9851 (% style="color:#6b6b6b" %)Request
9852
9853 {{code language="php" theme="RDark" title="Get specific Resource Request"}}
9854 <?php
9855
9856 $curl = curl_init();
9857
9858 curl_setopt_array($curl, array(
9859 CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{Resource ID}}',
9860 CURLOPT_RETURNTRANSFER => true,
9861 CURLOPT_ENCODING => '',
9862 CURLOPT_MAXREDIRS => 10,
9863 CURLOPT_TIMEOUT => 0,
9864 CURLOPT_FOLLOWLOCATION => true,
9865 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9866 CURLOPT_CUSTOMREQUEST => 'GET',
9867 CURLOPT_HTTPHEADER => array(
9868 'Appkey: {{ONECOUNT API KEY}}'
9869 ),
9870 ));
9871
9872 $response = curl_exec($curl);
9873
9874 curl_close($curl);
9875 echo $response;
9876 {{/code}}
9877
9878
9879 (% style="color:#6b6b6b" %)Response  200 OK
9880
9881 {{code language="yml" theme="RDark" collapse="true" title="Get specific Resource Response"}}
9882 {
9883 "result": {
9884 "success": "1",
9885 "error": {
9886 "code": "",
9887 "message": ""
9888 }
9889 },
9890 "Resources": [
9891 {
9892 "Id": 623,
9893 "Name": "TOP 3 THINGS - NonStop Local News",
9894 "Description": "Tap into Non-Stop News from Montana Right Now! From the Big Story to the 3 Things to Know - we have the moment's essential headlines.",
9895 "Type": "2",
9896 "Value": "",
9897 "FreePass": 0
9898 }
9899 ]
9900 }
9901 {{/code}}
9902
9903
9904 (% id="HGETlookupResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9905 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Resource(%%) ==
9906
9907 ----
9908
9909 {{panel bgColor="#D3D3D3" width="100%"}}
9910 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/lookup?Name={(%%){Resource Name}}
9911 {{/panel}}
9912
9913 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9914
9915 ----
9916
9917 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9918
9919 === (% style="color:#212121" %)Query Params(%%) ===
9920
9921 ----
9922
9923 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Name                                                                                                    (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Resource Name}}
9924
9925 ==== Example ====
9926
9927 ----
9928
9929 (% style="color:#6b6b6b" %)Request
9930
9931 {{code language="php" theme="RDark" title="Lookup Resource Request"}}
9932 <?php
9933
9934 $curl = curl_init();
9935
9936 curl_setopt_array($curl, array(
9937 CURLOPT_URL => 'https://api.onecount.net/v2/resources/lookup?Name={{Resource Name}}',
9938 CURLOPT_RETURNTRANSFER => true,
9939 CURLOPT_ENCODING => '',
9940 CURLOPT_MAXREDIRS => 10,
9941 CURLOPT_TIMEOUT => 0,
9942 CURLOPT_FOLLOWLOCATION => true,
9943 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9944 CURLOPT_CUSTOMREQUEST => 'GET',
9945 CURLOPT_HTTPHEADER => array(
9946 'Appkey: {{ONECOUNT API KEY}}'
9947 ),
9948 ));
9949
9950 $response = curl_exec($curl);
9951
9952 curl_close($curl);
9953 echo $response;
9954 {{/code}}
9955
9956
9957 (% style="color:#6b6b6b" %)Response  200 OK
9958
9959 {{code language="yml" theme="RDark" collapse="true" title="Lookup Resource Response"}}
9960 {
9961 "result": {
9962 "success": "1",
9963 "error": {
9964 "code": "",
9965 "message": ""
9966 }
9967 },
9968 "Resources": [
9969 {
9970 "Id": 479,
9971 "Name": "Virtualization Review",
9972 "Description": "",
9973 "Type": "0",
9974 "Value": "",
9975 "FreePass": 0
9976 }
9977 ]
9978 }
9979 {{/code}}
9980
9981
9982 (% id="HPOSTCreateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9983 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Resource(%%) ==
9984
9985 ----
9986
9987 {{panel bgColor="#D3D3D3" width="100%"}}
9988 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources
9989 {{/panel}}
9990
9991 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9992
9993 ----
9994
9995 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
9996
9997 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9998
9999 ----
10000
10001 {{code language="yml" theme="RDark" title="Body"}}
10002 {"Name":"Test API product creation 22","Description":"Test API product creation 22","Type":3,"FreePass":1,"Value":["http://one-count.com"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}
10003 {{/code}}
10004
10005 ==== Example ====
10006
10007 ----
10008
10009 (% style="color:#6b6b6b" %)Request
10010
10011 {{code language="php" theme="RDark" title="Create Resource Request"}}
10012 <?php
10013
10014 $curl = curl_init();
10015
10016 curl_setopt_array($curl, array(
10017 CURLOPT_URL => 'https://api.onecount.net/v2/resources',
10018 CURLOPT_RETURNTRANSFER => true,
10019 CURLOPT_ENCODING => '',
10020 CURLOPT_MAXREDIRS => 10,
10021 CURLOPT_TIMEOUT => 0,
10022 CURLOPT_FOLLOWLOCATION => true,
10023 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10024 CURLOPT_CUSTOMREQUEST => 'POST',
10025 CURLOPT_POSTFIELDS =>'{"Name":"Test API product creation 21","Description":"Test API product creation 21","Type":3,"FreePass":1,"Value":["http://one-count.com"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}',
10026 CURLOPT_HTTPHEADER => array(
10027 'Appkey: {{ONECOUNT API KEY}}'
10028 ),
10029 ));
10030
10031 $response = curl_exec($curl);
10032
10033 curl_close($curl);
10034 echo $response;
10035 {{/code}}
10036
10037
10038 (% style="color:#6b6b6b" %)Response  200 OK
10039
10040 {{code language="yml" theme="RDark" collapse="true" title="Create Resource Response"}}
10041 {
10042 "result": {
10043 "success": "1",
10044 "error": {
10045 "code": "",
10046 "message": ""
10047 }
10048 },
10049 "Resources": [
10050 {
10051 "Id": 871,
10052 "Name": "Test API product creation 21",
10053 "Description": "Test API product creation 21",
10054 "Type": "3",
10055 "Value": "http://one-count.com",
10056 "FreePass": 1
10057 }
10058 ]
10059 }
10060 {{/code}}
10061
10062
10063 (% id="HPUTUpdateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10064 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Resource(%%) ==
10065
10066 ----
10067
10068 {{panel bgColor="#D3D3D3" width="100%"}}
10069 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/~{~{resource id}}
10070 {{/panel}}
10071
10072 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10073
10074 ----
10075
10076 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
10077
10078 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10079
10080 ----
10081
10082 {{code language="yml" theme="RDark" title="Body"}}
10083 {"Name":"Test API product creation 23","Description":"Test API product creation 23","Type":3,"FreePass":1,"Value":["http://one-count.com","onecount.net"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}
10084 {{/code}}
10085
10086 ==== Example ====
10087
10088 ----
10089
10090 (% style="color:#6b6b6b" %)Request
10091
10092 {{code language="php" theme="RDark" title="Update Resource Request"}}
10093 <?php
10094
10095 $curl = curl_init();
10096
10097 curl_setopt_array($curl, array(
10098 CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{resource id}}',
10099 CURLOPT_RETURNTRANSFER => true,
10100 CURLOPT_ENCODING => '',
10101 CURLOPT_MAXREDIRS => 10,
10102 CURLOPT_TIMEOUT => 0,
10103 CURLOPT_FOLLOWLOCATION => true,
10104 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10105 CURLOPT_CUSTOMREQUEST => 'PUT',
10106 CURLOPT_POSTFIELDS =>'{"Name":"Test API product creation 23","Description":"Test API product creation 23","Type":3,"FreePass":1,"Value":["http://one-count.com","onecount.net"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}',
10107 CURLOPT_HTTPHEADER => array(
10108 'Appkey: {{ONECOUNT API KEY}}'
10109 ),
10110 ));
10111
10112 $response = curl_exec($curl);
10113
10114 curl_close($curl);
10115 echo $response;
10116 {{/code}}
10117
10118
10119 (% style="color:#6b6b6b" %)Response  200 OK
10120
10121 {{code language="yml" theme="RDark" collapse="true" title="Update Resource Response"}}
10122 {
10123 "result": {
10124 "success": "1",
10125 "error": {
10126 "code": "",
10127 "message": ""
10128 }
10129 },
10130 "Resources": [
10131 {
10132 "Id": 903,
10133 "Name": "Test API product creation 23",
10134 "Description": "Test API product creation 23",
10135 "Type": "3",
10136 "Value": "http://one-count.com",
10137 "FreePass": 1
10138 },
10139 {
10140 "Id": 903,
10141 "Name": "Test API product creation 23",
10142 "Description": "Test API product creation 23",
10143 "Type": "3",
10144 "Value": "onecount.net",
10145 "FreePass": 1
10146 }
10147 ]
10148 }
10149 {{/code}}
10150
10151
10152 (% id="HCOMPONENT:SourceCodes" class="western" %)
10153 === **COMPONENT: Source Codes** ===
10154
10155 *
10156 ** ===
10157
10158 (% class="western" %)
10159 This resource is for manipulating source code for a resource. A source code can be created, updated or searched.
10160
10161 (% class="wrapped" %)
10162 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10163 (((
10164 (% class="western" %)
10165 **Method**
10166 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10167 (((
10168 (% class="western" %)
10169 **Url**
10170 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10171 (((
10172 (% class="western" %)
10173 **Action**
10174 )))
10175 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10176 (((
10177 (% class="western" %)
10178 GET
10179 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10180 (((
10181 (% class="western" %)
10182 /sources/1
10183 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10184 (((
10185 (% class="western" %)
10186 Get source id 1.
10187 )))
10188 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10189 (((
10190 (% class="western" %)
10191 GET
10192 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10193 (((
10194 (% class="western" %)
10195 /sources/lookup?Source=sourcename
10196 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10197 (((
10198 (% class="western" %)
10199 Lookup sources by source.
10200 )))
10201 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10202 (((
10203 (% class="western" %)
10204 POST
10205 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10206 (((
10207 (% class="western" %)
10208 /sources
10209 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10210 (((
10211 (% class="western" %)
10212 JSON of the Sources type object needs to be sent as post data. Id field should not be sent.
10213 )))
10214 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10215 (((
10216 (% class="western" %)
10217 PUT
10218 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10219 (((
10220 (% class="western" %)
10221 /sources
10222 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10223 (((
10224 (% class="western" %)
10225 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update.
10226 )))
10227
10228
10229 (% id="HGETAllSourcecodes" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10230 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Source codes(%%) ==
10231
10232 ----
10233
10234 ----
10235
10236 {{panel bgColor="#D3D3D3" width="100%"}}
10237 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources
10238 {{/panel}}
10239
10240 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10241
10242 ----
10243
10244 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
10245
10246 ==== Example ====
10247
10248 ----
10249
10250 (% style="color:#6b6b6b" %)Request
10251
10252 {{code language="php" theme="RDark" title="Get All Source code Request"}}
10253 <?php
10254
10255 $curl = curl_init();
10256
10257 curl_setopt_array($curl, array(
10258 CURLOPT_URL => 'https://api.onecount.net/v2/sources',
10259 CURLOPT_RETURNTRANSFER => true,
10260 CURLOPT_ENCODING => '',
10261 CURLOPT_MAXREDIRS => 10,
10262 CURLOPT_TIMEOUT => 0,
10263 CURLOPT_FOLLOWLOCATION => true,
10264 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10265 CURLOPT_CUSTOMREQUEST => 'GET',
10266 CURLOPT_HTTPHEADER => array(
10267 'Appkey: {{ONECOUNT API KEY}}'
10268 ),
10269 ));
10270
10271 $response = curl_exec($curl);
10272
10273 curl_close($curl);
10274 echo $response;
10275 {{/code}}
10276
10277
10278 (% style="color:#6b6b6b" %)Response  200 OK
10279
10280 {{code language="yml" theme="RDark" collapse="true" title="Get All Source code Response"}}
10281 {
10282 "result": {
10283 "success": "1",
10284 "error": {
10285 "code": "",
10286 "message": ""
10287 }
10288 },
10289 "Sources": [
10290 {
10291 "Id": 26,
10292 "Source": "GCN-Member",
10293 "Description": "Uploaded from Reston VA",
10294 "Parent": 0
10295 },
10296 {
10297 "Id": 34,
10298 "Source": "SugarID",
10299 "Description": "Sugar IDs cleaned contacts list and cleaned leads list sent by Sean Fulton for upload.",
10300 "Parent": 0
10301 },
10302 {
10303 "Id": 42,
10304 "Source": "DEMOFORM",
10305 "Description": "\"Request a Demo\" form from one-count.com",
10306 "Parent": 0
10307 },
10308 {
10309 "Id": 50,
10310 "Source": "ABM ANNUAL 2014",
10311 "Description": "ABM Annual 2014 - Registration List for Sponsors",
10312 "Parent": 0
10313 },
10314 {
10315 "Id": 58,
10316 "Source": "BIMS REG LIST",
10317 "Description": "BIMS Registration List for Sponsors (2013/2014)",
10318 "Parent": 0
10319 },
10320 {
10321 "Id": 66,
10322 "Source": "SIPA 13",
10323 "Description": "SIPA 2013 - sponsor - attendees",
10324 "Parent": 0
10325 },
10326 {
10327 "Id": 74,
10328 "Source": "Google Ads",
10329 "Description": "From Google Banner Ads",
10330 "Parent": 0
10331 },
10332 {
10333 "Id": 82,
10334 "Source": "EDIT PROFILE",
10335 "Description": "FOR EDIT PROFILE FORM",
10336 "Parent": 0
10337 },
10338 {
10339 "Id": 83,
10340 "Source": "Test Source Code",
10341 "Description": "",
10342 "Parent": 0
10343 },
10344 {
10345 "Id": 91,
10346 "Source": "NEWSLETTER",
10347 "Description": "Newsletter",
10348 "Parent": 0
10349 },
10350 {
10351 "Id": 99,
10352 "Source": "INFOTANKS-comps-only_12032019",
10353 "Description": "",
10354 "Parent": 0
10355 },
10356 {
10357 "Id": 107,
10358 "Source": "INFOTANKS-DMP-only_12102019",
10359 "Description": "",
10360 "Parent": 0
10361 },
10362 {
10363 "Id": 109,
10364 "Source": "BMVM",
10365 "Description": "Active Attendees",
10366 "Parent": 0
10367 },
10368 {
10369 "Id": 115,
10370 "Source": "USECASES",
10371 "Description": "Use Case PDF",
10372 "Parent": 0
10373 },
10374 {
10375 "Id": 123,
10376 "Source": "Borrell Miami 2022",
10377 "Description": "",
10378 "Parent": 0
10379 },
10380 {
10381 "Id": 131,
10382 "Source": "05092022-telemarketing",
10383 "Description": "",
10384 "Parent": 0
10385 },
10386 {
10387 "Id": 139,
10388 "Source": "WEBINAR6.15.22",
10389 "Description": "Live Webinar Series June 15, 2022",
10390 "Parent": 0
10391 },
10392 {
10393 "Id": 147,
10394 "Source": "LMA Show List",
10395 "Description": "",
10396 "Parent": 0
10397 },
10398 {
10399 "Id": 155,
10400 "Source": "AAA",
10401 "Description": "",
10402 "Parent": 0
10403 },
10404 {
10405 "Id": 163,
10406 "Source": "MGS2022",
10407 "Description": "",
10408 "Parent": 0
10409 },
10410 {
10411 "Id": 171,
10412 "Source": "MGS2023",
10413 "Description": "",
10414 "Parent": 0
10415 },
10416 {
10417 "Id": 179,
10418 "Source": "Sugar Leads",
10419 "Description": "",
10420 "Parent": 0
10421 },
10422 {
10423 "Id": 187,
10424 "Source": "seansbox",
10425 "Description": "",
10426 "Parent": 0
10427 },
10428 {
10429 "Id": 191,
10430 "Source": "SEEITLIVE",
10431 "Description": "Lunch & Learn Webinar Series with Special Partner Guests",
10432 "Parent": 0
10433 },
10434 {
10435 "Id": 199,
10436 "Source": "80-percent-conversion-rates",
10437 "Description": "",
10438 "Parent": 0
10439 }
10440 ]
10441 }
10442 {{/code}}
10443
10444
10445 (% id="HGETspecificSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10446 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Source code(%%) ==
10447
10448 ----
10449
10450 {{panel bgColor="#D3D3D3" width="100%"}}
10451 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}}
10452 {{/panel}}
10453
10454 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10455
10456 ----
10457
10458 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
10459
10460 ==== Example ====
10461
10462 ----
10463
10464 (% style="color:#6b6b6b" %)Request
10465
10466 {{code language="php" theme="RDark" title="Get specific Source Request"}}
10467 <?php
10468
10469 $curl = curl_init();
10470
10471 curl_setopt_array($curl, array(
10472 CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}',
10473 CURLOPT_RETURNTRANSFER => true,
10474 CURLOPT_ENCODING => '',
10475 CURLOPT_MAXREDIRS => 10,
10476 CURLOPT_TIMEOUT => 0,
10477 CURLOPT_FOLLOWLOCATION => true,
10478 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10479 CURLOPT_CUSTOMREQUEST => 'GET',
10480 CURLOPT_HTTPHEADER => array(
10481 'Appkey: {{ONECOUNT API KEY}}'
10482 ),
10483 ));
10484
10485 $response = curl_exec($curl);
10486
10487 curl_close($curl);
10488 echo $response;
10489 {{/code}}
10490
10491
10492 (% style="color:#6b6b6b" %)Response  200 OK
10493
10494 {{code language="yml" theme="RDark" collapse="true" title="Get specific Source Response"}}
10495 {
10496 "result": {
10497 "success": "1",
10498 "error": {
10499 "code": "",
10500 "message": ""
10501 }
10502 },
10503 "Sources": [
10504 {
10505 "Id": 26,
10506 "Source": "GCN-Member",
10507 "Description": "Uploaded from Reston VA",
10508 "Parent": 0
10509 }
10510 ]
10511 }
10512 {{/code}}
10513
10514
10515 (% id="HGETlookupSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10516 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Source code(%%) ==
10517
10518 ----
10519
10520 {{panel bgColor="#D3D3D3" width="100%"}}
10521 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/lookup?Source={(%%){Source code Name}}
10522 {{/panel}}
10523
10524 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10525
10526 ----
10527
10528 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
10529
10530 === (% style="color:#212121" %)Query Params(%%) ===
10531
10532 ----
10533
10534 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Source                                                                                                  (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Source code Name}}
10535
10536 ==== Example ====
10537
10538 ----
10539
10540 (% style="color:#6b6b6b" %)Request
10541
10542 {{code language="php" theme="RDark" title="Lookup Source code Request"}}
10543 <?php
10544
10545 $curl = curl_init();
10546
10547 curl_setopt_array($curl, array(
10548 CURLOPT_URL => 'https://api.onecount.net/v2/sources/lookup?Source={{Source code Name}}',
10549 CURLOPT_RETURNTRANSFER => true,
10550 CURLOPT_ENCODING => '',
10551 CURLOPT_MAXREDIRS => 10,
10552 CURLOPT_TIMEOUT => 0,
10553 CURLOPT_FOLLOWLOCATION => true,
10554 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10555 CURLOPT_CUSTOMREQUEST => 'GET',
10556 CURLOPT_HTTPHEADER => array(
10557 'Appkey: {{ONECOUNT API KEY}}'
10558 ),
10559 ));
10560
10561 $response = curl_exec($curl);
10562
10563 curl_close($curl);
10564 echo $response;
10565 {{/code}}
10566
10567
10568 (% style="color:#6b6b6b" %)Response  200 OK
10569
10570 {{code language="yml" theme="RDark" collapse="true" title="Lookup Source code Response"}}
10571 {
10572 "result": {
10573 "success": "1",
10574 "error": {
10575 "code": "",
10576 "message": ""
10577 }
10578 },
10579 "Sources": [
10580 {
10581 "Id": 26,
10582 "Source": "GCN-Member",
10583 "Description": "Uploaded from Reston VA",
10584 "Parent": 0
10585 }
10586 ]
10587 }
10588 {{/code}}
10589
10590
10591 (% id="HPOSTCreateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10592 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Source code(%%) ==
10593
10594 ----
10595
10596 {{panel bgColor="#D3D3D3" width="100%"}}
10597 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources
10598 {{/panel}}
10599
10600 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10601
10602 ----
10603
10604 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
10605
10606 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10607
10608 ----
10609
10610 {{code language="yml" theme="RDark" title="Body"}}
10611 {"Source":"Test source code from API"}
10612 {{/code}}
10613
10614 ==== Example ====
10615
10616 ----
10617
10618 (% style="color:#6b6b6b" %)Request
10619
10620 {{code language="php" theme="RDark" title="Create Source code Request"}}
10621 <?php
10622
10623 $curl = curl_init();
10624
10625 curl_setopt_array($curl, array(
10626 CURLOPT_URL => 'https://api.onecount.net/v2/sources',
10627 CURLOPT_RETURNTRANSFER => true,
10628 CURLOPT_ENCODING => '',
10629 CURLOPT_MAXREDIRS => 10,
10630 CURLOPT_TIMEOUT => 0,
10631 CURLOPT_FOLLOWLOCATION => true,
10632 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10633 CURLOPT_CUSTOMREQUEST => 'POST',
10634 CURLOPT_POSTFIELDS =>'{"Source":"Test source code from API"}',
10635 CURLOPT_HTTPHEADER => array(
10636 'Appkey: {{ONECOUNT API KEY}}'
10637 ),
10638 ));
10639
10640 $response = curl_exec($curl);
10641
10642 curl_close($curl);
10643 echo $response;
10644 {{/code}}
10645
10646
10647 (% style="color:#6b6b6b" %)Response  200 OK
10648
10649 {{code language="yml" theme="RDark" collapse="true" title="Create Source code Response"}}
10650 {
10651 "result": {
10652 "success": "1",
10653 "error": {
10654 "code": "",
10655 "message": ""
10656 }
10657 },
10658 "Sources": [
10659 {
10660 "Id": 223,
10661 "Source": "Test source code from API",
10662 "Description": "",
10663 "Parent": 0
10664 }
10665 ]
10666 }
10667 {{/code}}
10668
10669
10670 (% id="HPUTUpdateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10671 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Source code(%%) ==
10672
10673 ----
10674
10675 {{panel bgColor="#D3D3D3" width="100%"}}
10676 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}}
10677 {{/panel}}
10678
10679 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10680
10681 ----
10682
10683 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
10684
10685 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10686
10687 ----
10688
10689 {{code language="yml" theme="RDark" title="Body"}}
10690 {"Source":"Test API","Parent":215}
10691 {{/code}}
10692
10693 ==== Example ====
10694
10695 ----
10696
10697 (% style="color:#6b6b6b" %)Request
10698
10699 {{code language="php" theme="RDark" title="Update Source code Request"}}
10700 <?php
10701
10702 $curl = curl_init();
10703
10704 curl_setopt_array($curl, array(
10705 CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}',
10706 CURLOPT_RETURNTRANSFER => true,
10707 CURLOPT_ENCODING => '',
10708 CURLOPT_MAXREDIRS => 10,
10709 CURLOPT_TIMEOUT => 0,
10710 CURLOPT_FOLLOWLOCATION => true,
10711 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10712 CURLOPT_CUSTOMREQUEST => 'PUT',
10713 CURLOPT_POSTFIELDS =>'{"Source":"Test API","Parent":215}',
10714 CURLOPT_HTTPHEADER => array(
10715 'Appkey: {{ONECOUNT API KEY}}'
10716 ),
10717 ));
10718
10719 $response = curl_exec($curl);
10720
10721 curl_close($curl);
10722 echo $response;
10723 {{/code}}
10724
10725
10726 (% style="color:#6b6b6b" %)Response  200 OK
10727
10728 {{code language="yml" theme="RDark" collapse="true" title="Update Source code Response"}}
10729 {
10730 "result": {
10731 "success": "1",
10732 "error": {
10733 "code": "",
10734 "message": ""
10735 }
10736 },
10737 "Sources": [
10738 {
10739 "Id": 223,
10740 "Source": "Test API",
10741 "Description": "",
10742 "Parent": 215
10743 }
10744 ]
10745 }
10746 {{/code}}
10747
10748
10749 (% id="HCOMPONENT:Transactions" class="western" %)
10750 === **COMPONENT: Transactions** ===
10751
10752 (% class="western" %)
10753 This resource is for manipulating transactions resource. A transaction can be created or searched.
10754
10755 (% class="wrapped" %)
10756 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10757 (((
10758 (% class="western" %)
10759 **Method**
10760 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10761 (((
10762 (% class="western" %)
10763 **Url**
10764 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10765 (((
10766 (% class="western" %)
10767 **Action**
10768 )))
10769 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10770 (((
10771 (% class="western" %)
10772 GET
10773 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10774 (((
10775 (% class="western" %)
10776 /transactions
10777 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10778 (((
10779 (% class="western" %)
10780 List all transactions
10781 )))
10782 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10783 (((
10784 (% class="western" %)
10785 GET
10786 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10787 (((
10788 (% class="western" %)
10789 /transactions/lookup?UserId=1
10790 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10791 (((
10792 (% class="western" %)
10793 Lookup all transaction of UserId = 1
10794 )))
10795 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10796 (((
10797 (% class="western" %)
10798 POST
10799 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10800 (((
10801 (% class="western" %)
10802 /transactions
10803 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10804 (((
10805 (% class="western" %)
10806 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent.
10807 )))
10808
10809
10810 (% id="HGETAllTransactions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10811 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Transactions(%%) ==
10812
10813 ----
10814
10815 ----
10816
10817 {{panel bgColor="#D3D3D3" width="100%"}}
10818 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions
10819 {{/panel}}
10820
10821 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10822
10823 ----
10824
10825 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
10826
10827 ==== Example ====
10828
10829 ----
10830
10831 (% style="color:#6b6b6b" %)Request
10832
10833 {{code language="php" theme="RDark" title="Get All Transaction Request"}}
10834 <?php
10835
10836 $curl = curl_init();
10837
10838 curl_setopt_array($curl, array(
10839 CURLOPT_URL => 'https://api.onecount.net/v2/transactions',
10840 CURLOPT_RETURNTRANSFER => true,
10841 CURLOPT_ENCODING => '',
10842 CURLOPT_MAXREDIRS => 10,
10843 CURLOPT_TIMEOUT => 0,
10844 CURLOPT_FOLLOWLOCATION => true,
10845 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10846 CURLOPT_CUSTOMREQUEST => 'GET',
10847 CURLOPT_HTTPHEADER => array(
10848 'Appkey: {{ONECOUNT API KEY}}'
10849 ),
10850 ));
10851
10852 $response = curl_exec($curl);
10853
10854 curl_close($curl);
10855 echo $response;
10856 {{/code}}
10857
10858
10859 (% style="color:#6b6b6b" %)Response  200 OK
10860
10861 {{code language="yml" theme="RDark" collapse="true" title="Get All Transaction Response"}}
10862 {
10863 "result": {
10864 "success": "1",
10865 "error": {
10866 "code": "",
10867 "message": ""
10868 }
10869 },
10870 "Transactions": [
10871 {
10872 "Id": 10,
10873 "UserId": 10,
10874 "TermId": 2,
10875 "TransactionDate": "2014-07-17",
10876 "TransactionTime": "10:02:13",
10877 "RequestDate": "2014-07-17",
10878 "UserIP": "74.201.38.1",
10879 "SubscriptionType": "n",
10880 "ProductId": 2,
10881 "Source": 10,
10882 "ProductStatus": 2,
10883 "MediaFilePath": "",
10884 "Amount": ""
10885 },
10886 {
10887 "Id": 26,
10888 "UserId": 10,
10889 "TermId": 2,
10890 "TransactionDate": "2014-07-17",
10891 "TransactionTime": "10:41:59",
10892 "RequestDate": "2014-07-17",
10893 "UserIP": "74.201.38.1",
10894 "SubscriptionType": "r",
10895 "ProductId": 2,
10896 "Source": 10,
10897 "ProductStatus": 2,
10898 "MediaFilePath": "",
10899 "Amount": ""
10900 },
10901 {
10902 "Id": 50,
10903 "UserId": 26,
10904 "TermId": 2,
10905 "TransactionDate": "2014-07-17",
10906 "TransactionTime": "12:25:38",
10907 "RequestDate": "2014-07-17",
10908 "UserIP": "74.201.38.1",
10909 "SubscriptionType": "n",
10910 "ProductId": 2,
10911 "Source": 10,
10912 "ProductStatus": 2,
10913 "MediaFilePath": "",
10914 "Amount": ""
10915 },
10916 {
10917 "Id": 58,
10918 "UserId": 10,
10919 "TermId": 2,
10920 "TransactionDate": "2014-07-17",
10921 "TransactionTime": "12:25:43",
10922 "RequestDate": "2014-07-17",
10923 "UserIP": "74.201.38.1",
10924 "SubscriptionType": "r",
10925 "ProductId": 2,
10926 "Source": 10,
10927 "ProductStatus": 2,
10928 "MediaFilePath": "",
10929 "Amount": ""
10930 },
10931 {
10932 "Id": 66,
10933 "UserId": 42,
10934 "TermId": 2,
10935 "TransactionDate": "2014-07-17",
10936 "TransactionTime": "12:57:11",
10937 "RequestDate": "2014-07-17",
10938 "UserIP": "74.201.38.1",
10939 "SubscriptionType": "n",
10940 "ProductId": 2,
10941 "Source": 26,
10942 "ProductStatus": 2,
10943 "MediaFilePath": "",
10944 "Amount": ""
10945 },
10946 {
10947 "Id": 74,
10948 "UserId": 50,
10949 "TermId": 2,
10950 "TransactionDate": "2014-07-17",
10951 "TransactionTime": "12:57:11",
10952 "RequestDate": "2014-07-17",
10953 "UserIP": "74.201.38.1",
10954 "SubscriptionType": "n",
10955 "ProductId": 2,
10956 "Source": 26,
10957 "ProductStatus": 2,
10958 "MediaFilePath": "",
10959 "Amount": ""
10960 },
10961 {
10962 "Id": 82,
10963 "UserId": 58,
10964 "TermId": 2,
10965 "TransactionDate": "2014-07-17",
10966 "TransactionTime": "12:57:11",
10967 "RequestDate": "2014-07-17",
10968 "UserIP": "74.201.38.1",
10969 "SubscriptionType": "n",
10970 "ProductId": 2,
10971 "Source": 26,
10972 "ProductStatus": 2,
10973 "MediaFilePath": "",
10974 "Amount": ""
10975 },
10976 {
10977 "Id": 90,
10978 "UserId": 66,
10979 "TermId": 2,
10980 "TransactionDate": "2014-07-17",
10981 "TransactionTime": "12:57:11",
10982 "RequestDate": "2014-07-17",
10983 "UserIP": "74.201.38.1",
10984 "SubscriptionType": "n",
10985 "ProductId": 2,
10986 "Source": 26,
10987 "ProductStatus": 2,
10988 "MediaFilePath": "",
10989 "Amount": ""
10990 },
10991 {
10992 "Id": 98,
10993 "UserId": 74,
10994 "TermId": 2,
10995 "TransactionDate": "2014-07-17",
10996 "TransactionTime": "12:57:11",
10997 "RequestDate": "2014-07-17",
10998 "UserIP": "74.201.38.1",
10999 "SubscriptionType": "n",
11000 "ProductId": 2,
11001 "Source": 26,
11002 "ProductStatus": 2,
11003 "MediaFilePath": "",
11004 "Amount": ""
11005 },
11006 {
11007 "Id": 106,
11008 "UserId": 82,
11009 "TermId": 2,
11010 "TransactionDate": "2014-07-17",
11011 "TransactionTime": "12:57:11",
11012 "RequestDate": "2014-07-17",
11013 "UserIP": "74.201.38.1",
11014 "SubscriptionType": "n",
11015 "ProductId": 2,
11016 "Source": 26,
11017 "ProductStatus": 2,
11018 "MediaFilePath": "",
11019 "Amount": ""
11020 },
11021 {
11022 "Id": 114,
11023 "UserId": 90,
11024 "TermId": 2,
11025 "TransactionDate": "2014-07-17",
11026 "TransactionTime": "12:57:11",
11027 "RequestDate": "2014-07-17",
11028 "UserIP": "74.201.38.1",
11029 "SubscriptionType": "n",
11030 "ProductId": 2,
11031 "Source": 26,
11032 "ProductStatus": 2,
11033 "MediaFilePath": "",
11034 "Amount": ""
11035 },
11036 {
11037 "Id": 122,
11038 "UserId": 98,
11039 "TermId": 2,
11040 "TransactionDate": "2014-07-17",
11041 "TransactionTime": "12:57:11",
11042 "RequestDate": "2014-07-17",
11043 "UserIP": "74.201.38.1",
11044 "SubscriptionType": "n",
11045 "ProductId": 2,
11046 "Source": 26,
11047 "ProductStatus": 2,
11048 "MediaFilePath": "",
11049 "Amount": ""
11050 },
11051 {
11052 "Id": 130,
11053 "UserId": 42,
11054 "TermId": 2,
11055 "TransactionDate": "2014-07-17",
11056 "TransactionTime": "12:59:10",
11057 "RequestDate": "2014-07-17",
11058 "UserIP": "74.201.38.1",
11059 "SubscriptionType": "r",
11060 "ProductId": 2,
11061 "Source": 10,
11062 "ProductStatus": 2,
11063 "MediaFilePath": "",
11064 "Amount": ""
11065 },
11066 {
11067 "Id": 138,
11068 "UserId": 50,
11069 "TermId": 2,
11070 "TransactionDate": "2014-07-17",
11071 "TransactionTime": "12:59:10",
11072 "RequestDate": "2014-07-17",
11073 "UserIP": "74.201.38.1",
11074 "SubscriptionType": "r",
11075 "ProductId": 2,
11076 "Source": 10,
11077 "ProductStatus": 2,
11078 "MediaFilePath": "",
11079 "Amount": ""
11080 },
11081 {
11082 "Id": 146,
11083 "UserId": 58,
11084 "TermId": 2,
11085 "TransactionDate": "2014-07-17",
11086 "TransactionTime": "12:59:10",
11087 "RequestDate": "2014-07-17",
11088 "UserIP": "74.201.38.1",
11089 "SubscriptionType": "r",
11090 "ProductId": 2,
11091 "Source": 10,
11092 "ProductStatus": 2,
11093 "MediaFilePath": "",
11094 "Amount": ""
11095 },
11096 {
11097 "Id": 154,
11098 "UserId": 66,
11099 "TermId": 2,
11100 "TransactionDate": "2014-07-17",
11101 "TransactionTime": "12:59:10",
11102 "RequestDate": "2014-07-17",
11103 "UserIP": "74.201.38.1",
11104 "SubscriptionType": "r",
11105 "ProductId": 2,
11106 "Source": 10,
11107 "ProductStatus": 2,
11108 "MediaFilePath": "",
11109 "Amount": ""
11110 },
11111 {
11112 "Id": 162,
11113 "UserId": 74,
11114 "TermId": 2,
11115 "TransactionDate": "2014-07-17",
11116 "TransactionTime": "12:59:10",
11117 "RequestDate": "2014-07-17",
11118 "UserIP": "74.201.38.1",
11119 "SubscriptionType": "r",
11120 "ProductId": 2,
11121 "Source": 10,
11122 "ProductStatus": 2,
11123 "MediaFilePath": "",
11124 "Amount": ""
11125 },
11126 {
11127 "Id": 170,
11128 "UserId": 82,
11129 "TermId": 2,
11130 "TransactionDate": "2014-07-17",
11131 "TransactionTime": "12:59:10",
11132 "RequestDate": "2014-07-17",
11133 "UserIP": "74.201.38.1",
11134 "SubscriptionType": "r",
11135 "ProductId": 2,
11136 "Source": 10,
11137 "ProductStatus": 2,
11138 "MediaFilePath": "",
11139 "Amount": ""
11140 },
11141 {
11142 "Id": 178,
11143 "UserId": 90,
11144 "TermId": 2,
11145 "TransactionDate": "2014-07-17",
11146 "TransactionTime": "12:59:10",
11147 "RequestDate": "2014-07-17",
11148 "UserIP": "74.201.38.1",
11149 "SubscriptionType": "r",
11150 "ProductId": 2,
11151 "Source": 10,
11152 "ProductStatus": 2,
11153 "MediaFilePath": "",
11154 "Amount": ""
11155 },
11156 {
11157 "Id": 186,
11158 "UserId": 98,
11159 "TermId": 2,
11160 "TransactionDate": "2014-07-17",
11161 "TransactionTime": "12:59:10",
11162 "RequestDate": "2014-07-17",
11163 "UserIP": "74.201.38.1",
11164 "SubscriptionType": "r",
11165 "ProductId": 2,
11166 "Source": 10,
11167 "ProductStatus": 2,
11168 "MediaFilePath": "",
11169 "Amount": ""
11170 },
11171 {
11172 "Id": 194,
11173 "UserId": 162,
11174 "TermId": 2,
11175 "TransactionDate": "2014-07-17",
11176 "TransactionTime": "13:00:42",
11177 "RequestDate": "2014-07-17",
11178 "UserIP": "74.201.38.1",
11179 "SubscriptionType": "n",
11180 "ProductId": 2,
11181 "Source": 10,
11182 "ProductStatus": 2,
11183 "MediaFilePath": "",
11184 "Amount": ""
11185 },
11186 {
11187 "Id": 202,
11188 "UserId": 170,
11189 "TermId": 2,
11190 "TransactionDate": "2014-07-17",
11191 "TransactionTime": "13:00:42",
11192 "RequestDate": "2014-07-17",
11193 "UserIP": "74.201.38.1",
11194 "SubscriptionType": "n",
11195 "ProductId": 2,
11196 "Source": 10,
11197 "ProductStatus": 2,
11198 "MediaFilePath": "",
11199 "Amount": ""
11200 },
11201 {
11202 "Id": 210,
11203 "UserId": 178,
11204 "TermId": 2,
11205 "TransactionDate": "2014-07-17",
11206 "TransactionTime": "13:00:42",
11207 "RequestDate": "2014-07-17",
11208 "UserIP": "74.201.38.1",
11209 "SubscriptionType": "n",
11210 "ProductId": 2,
11211 "Source": 10,
11212 "ProductStatus": 2,
11213 "MediaFilePath": "",
11214 "Amount": ""
11215 },
11216 {
11217 "Id": 218,
11218 "UserId": 186,
11219 "TermId": 2,
11220 "TransactionDate": "2014-07-17",
11221 "TransactionTime": "13:00:42",
11222 "RequestDate": "2014-07-17",
11223 "UserIP": "74.201.38.1",
11224 "SubscriptionType": "n",
11225 "ProductId": 2,
11226 "Source": 10,
11227 "ProductStatus": 2,
11228 "MediaFilePath": "",
11229 "Amount": ""
11230 },
11231 {
11232 "Id": 226,
11233 "UserId": 194,
11234 "TermId": 2,
11235 "TransactionDate": "2014-07-17",
11236 "TransactionTime": "13:00:42",
11237 "RequestDate": "2014-07-17",
11238 "UserIP": "74.201.38.1",
11239 "SubscriptionType": "n",
11240 "ProductId": 2,
11241 "Source": 10,
11242 "ProductStatus": 2,
11243 "MediaFilePath": "",
11244 "Amount": ""
11245 },
11246 {
11247 "Id": 234,
11248 "UserId": 202,
11249 "TermId": 2,
11250 "TransactionDate": "2014-07-17",
11251 "TransactionTime": "13:00:42",
11252 "RequestDate": "2014-07-17",
11253 "UserIP": "74.201.38.1",
11254 "SubscriptionType": "n",
11255 "ProductId": 2,
11256 "Source": 10,
11257 "ProductStatus": 2,
11258 "MediaFilePath": "",
11259 "Amount": ""
11260 },
11261 {
11262 "Id": 242,
11263 "UserId": 210,
11264 "TermId": 2,
11265 "TransactionDate": "2014-07-17",
11266 "TransactionTime": "13:00:42",
11267 "RequestDate": "2014-07-17",
11268 "UserIP": "74.201.38.1",
11269 "SubscriptionType": "n",
11270 "ProductId": 2,
11271 "Source": 10,
11272 "ProductStatus": 2,
11273 "MediaFilePath": "",
11274 "Amount": ""
11275 },
11276 {
11277 "Id": 250,
11278 "UserId": 218,
11279 "TermId": 2,
11280 "TransactionDate": "2014-07-17",
11281 "TransactionTime": "13:00:42",
11282 "RequestDate": "2014-07-17",
11283 "UserIP": "74.201.38.1",
11284 "SubscriptionType": "n",
11285 "ProductId": 2,
11286 "Source": 10,
11287 "ProductStatus": 2,
11288 "MediaFilePath": "",
11289 "Amount": ""
11290 },
11291 {
11292 "Id": 258,
11293 "UserId": 282,
11294 "TermId": 2,
11295 "TransactionDate": "2014-07-17",
11296 "TransactionTime": "13:02:19",
11297 "RequestDate": "2014-07-17",
11298 "UserIP": "74.201.38.1",
11299 "SubscriptionType": "n",
11300 "ProductId": 2,
11301 "Source": 10,
11302 "ProductStatus": 2,
11303 "MediaFilePath": "",
11304 "Amount": ""
11305 },
11306 {
11307 "Id": 266,
11308 "UserId": 290,
11309 "TermId": 2,
11310 "TransactionDate": "2014-07-17",
11311 "TransactionTime": "13:02:19",
11312 "RequestDate": "2014-07-17",
11313 "UserIP": "74.201.38.1",
11314 "SubscriptionType": "n",
11315 "ProductId": 2,
11316 "Source": 10,
11317 "ProductStatus": 2,
11318 "MediaFilePath": "",
11319 "Amount": ""
11320 },
11321 {
11322 "Id": 274,
11323 "UserId": 298,
11324 "TermId": 2,
11325 "TransactionDate": "2014-07-17",
11326 "TransactionTime": "13:02:19",
11327 "RequestDate": "2014-07-17",
11328 "UserIP": "74.201.38.1",
11329 "SubscriptionType": "n",
11330 "ProductId": 2,
11331 "Source": 10,
11332 "ProductStatus": 2,
11333 "MediaFilePath": "",
11334 "Amount": ""
11335 },
11336 {
11337 "Id": 282,
11338 "UserId": 306,
11339 "TermId": 2,
11340 "TransactionDate": "2014-07-17",
11341 "TransactionTime": "13:02:19",
11342 "RequestDate": "2014-07-17",
11343 "UserIP": "74.201.38.1",
11344 "SubscriptionType": "n",
11345 "ProductId": 2,
11346 "Source": 10,
11347 "ProductStatus": 2,
11348 "MediaFilePath": "",
11349 "Amount": ""
11350 },
11351 {
11352 "Id": 290,
11353 "UserId": 314,
11354 "TermId": 2,
11355 "TransactionDate": "2014-07-17",
11356 "TransactionTime": "13:02:19",
11357 "RequestDate": "2014-07-17",
11358 "UserIP": "74.201.38.1",
11359 "SubscriptionType": "n",
11360 "ProductId": 2,
11361 "Source": 10,
11362 "ProductStatus": 2,
11363 "MediaFilePath": "",
11364 "Amount": ""
11365 },
11366 {
11367 "Id": 298,
11368 "UserId": 322,
11369 "TermId": 2,
11370 "TransactionDate": "2014-07-17",
11371 "TransactionTime": "13:02:19",
11372 "RequestDate": "2014-07-17",
11373 "UserIP": "74.201.38.1",
11374 "SubscriptionType": "n",
11375 "ProductId": 2,
11376 "Source": 10,
11377 "ProductStatus": 2,
11378 "MediaFilePath": "",
11379 "Amount": ""
11380 },
11381 {
11382 "Id": 306,
11383 "UserId": 330,
11384 "TermId": 2,
11385 "TransactionDate": "2014-07-17",
11386 "TransactionTime": "13:02:19",
11387 "RequestDate": "2014-07-17",
11388 "UserIP": "74.201.38.1",
11389 "SubscriptionType": "n",
11390 "ProductId": 2,
11391 "Source": 10,
11392 "ProductStatus": 2,
11393 "MediaFilePath": "",
11394 "Amount": ""
11395 },
11396 {
11397 "Id": 466,
11398 "UserId": 698,
11399 "TermId": 2,
11400 "TransactionDate": "2014-07-17",
11401 "TransactionTime": "13:13:06",
11402 "RequestDate": "2014-07-17",
11403 "UserIP": "74.201.38.1",
11404 "SubscriptionType": "n",
11405 "ProductId": 2,
11406 "Source": 26,
11407 "ProductStatus": 2,
11408 "MediaFilePath": "",
11409 "Amount": ""
11410 },
11411 {
11412 "Id": 474,
11413 "UserId": 706,
11414 "TermId": 2,
11415 "TransactionDate": "2014-07-17",
11416 "TransactionTime": "13:13:06",
11417 "RequestDate": "2014-07-17",
11418 "UserIP": "74.201.38.1",
11419 "SubscriptionType": "n",
11420 "ProductId": 2,
11421 "Source": 26,
11422 "ProductStatus": 2,
11423 "MediaFilePath": "",
11424 "Amount": ""
11425 },
11426 {
11427 "Id": 482,
11428 "UserId": 714,
11429 "TermId": 2,
11430 "TransactionDate": "2014-07-17",
11431 "TransactionTime": "13:13:06",
11432 "RequestDate": "2014-07-17",
11433 "UserIP": "74.201.38.1",
11434 "SubscriptionType": "n",
11435 "ProductId": 2,
11436 "Source": 26,
11437 "ProductStatus": 2,
11438 "MediaFilePath": "",
11439 "Amount": ""
11440 },
11441 {
11442 "Id": 490,
11443 "UserId": 722,
11444 "TermId": 2,
11445 "TransactionDate": "2014-07-17",
11446 "TransactionTime": "13:13:06",
11447 "RequestDate": "2014-07-17",
11448 "UserIP": "74.201.38.1",
11449 "SubscriptionType": "n",
11450 "ProductId": 2,
11451 "Source": 26,
11452 "ProductStatus": 2,
11453 "MediaFilePath": "",
11454 "Amount": ""
11455 },
11456 {
11457 "Id": 498,
11458 "UserId": 730,
11459 "TermId": 2,
11460 "TransactionDate": "2014-07-17",
11461 "TransactionTime": "13:13:06",
11462 "RequestDate": "2014-07-17",
11463 "UserIP": "74.201.38.1",
11464 "SubscriptionType": "n",
11465 "ProductId": 2,
11466 "Source": 26,
11467 "ProductStatus": 2,
11468 "MediaFilePath": "",
11469 "Amount": ""
11470 },
11471 {
11472 "Id": 506,
11473 "UserId": 738,
11474 "TermId": 2,
11475 "TransactionDate": "2014-07-17",
11476 "TransactionTime": "13:13:06",
11477 "RequestDate": "2014-07-17",
11478 "UserIP": "74.201.38.1",
11479 "SubscriptionType": "n",
11480 "ProductId": 2,
11481 "Source": 26,
11482 "ProductStatus": 2,
11483 "MediaFilePath": "",
11484 "Amount": ""
11485 },
11486 {
11487 "Id": 522,
11488 "UserId": 754,
11489 "TermId": 18,
11490 "TransactionDate": "2014-08-19",
11491 "TransactionTime": "11:18:55",
11492 "RequestDate": "2014-08-19",
11493 "UserIP": "74.201.38.1",
11494 "SubscriptionType": "n",
11495 "ProductId": 18,
11496 "Source": 34,
11497 "ProductStatus": 2,
11498 "MediaFilePath": "",
11499 "Amount": ""
11500 },
11501 {
11502 "Id": 530,
11503 "UserId": 762,
11504 "TermId": 18,
11505 "TransactionDate": "2014-08-19",
11506 "TransactionTime": "11:18:55",
11507 "RequestDate": "2014-08-19",
11508 "UserIP": "74.201.38.1",
11509 "SubscriptionType": "n",
11510 "ProductId": 18,
11511 "Source": 34,
11512 "ProductStatus": 2,
11513 "MediaFilePath": "",
11514 "Amount": ""
11515 },
11516 {
11517 "Id": 538,
11518 "UserId": 770,
11519 "TermId": 18,
11520 "TransactionDate": "2014-08-19",
11521 "TransactionTime": "11:18:55",
11522 "RequestDate": "2014-08-19",
11523 "UserIP": "74.201.38.1",
11524 "SubscriptionType": "n",
11525 "ProductId": 18,
11526 "Source": 34,
11527 "ProductStatus": 2,
11528 "MediaFilePath": "",
11529 "Amount": ""
11530 },
11531 {
11532 "Id": 546,
11533 "UserId": 778,
11534 "TermId": 18,
11535 "TransactionDate": "2014-08-19",
11536 "TransactionTime": "11:18:55",
11537 "RequestDate": "2014-08-19",
11538 "UserIP": "74.201.38.1",
11539 "SubscriptionType": "n",
11540 "ProductId": 18,
11541 "Source": 34,
11542 "ProductStatus": 2,
11543 "MediaFilePath": "",
11544 "Amount": ""
11545 },
11546 {
11547 "Id": 554,
11548 "UserId": 786,
11549 "TermId": 18,
11550 "TransactionDate": "2014-08-19",
11551 "TransactionTime": "11:18:55",
11552 "RequestDate": "2014-08-19",
11553 "UserIP": "74.201.38.1",
11554 "SubscriptionType": "n",
11555 "ProductId": 18,
11556 "Source": 34,
11557 "ProductStatus": 2,
11558 "MediaFilePath": "",
11559 "Amount": ""
11560 },
11561 {
11562 "Id": 570,
11563 "UserId": 802,
11564 "TermId": 18,
11565 "TransactionDate": "2014-08-19",
11566 "TransactionTime": "11:18:55",
11567 "RequestDate": "2014-08-19",
11568 "UserIP": "74.201.38.1",
11569 "SubscriptionType": "n",
11570 "ProductId": 18,
11571 "Source": 34,
11572 "ProductStatus": 2,
11573 "MediaFilePath": "",
11574 "Amount": ""
11575 },
11576 {
11577 "Id": 578,
11578 "UserId": 810,
11579 "TermId": 18,
11580 "TransactionDate": "2014-08-19",
11581 "TransactionTime": "11:18:55",
11582 "RequestDate": "2014-08-19",
11583 "UserIP": "74.201.38.1",
11584 "SubscriptionType": "n",
11585 "ProductId": 18,
11586 "Source": 34,
11587 "ProductStatus": 2,
11588 "MediaFilePath": "",
11589 "Amount": ""
11590 },
11591 {
11592 "Id": 586,
11593 "UserId": 818,
11594 "TermId": 18,
11595 "TransactionDate": "2014-08-19",
11596 "TransactionTime": "11:18:55",
11597 "RequestDate": "2014-08-19",
11598 "UserIP": "74.201.38.1",
11599 "SubscriptionType": "n",
11600 "ProductId": 18,
11601 "Source": 34,
11602 "ProductStatus": 2,
11603 "MediaFilePath": "",
11604 "Amount": ""
11605 },
11606 {
11607 "Id": 602,
11608 "UserId": 834,
11609 "TermId": 18,
11610 "TransactionDate": "2014-08-19",
11611 "TransactionTime": "11:18:55",
11612 "RequestDate": "2014-08-19",
11613 "UserIP": "74.201.38.1",
11614 "SubscriptionType": "n",
11615 "ProductId": 18,
11616 "Source": 34,
11617 "ProductStatus": 2,
11618 "MediaFilePath": "",
11619 "Amount": ""
11620 },
11621 {
11622 "Id": 610,
11623 "UserId": 842,
11624 "TermId": 18,
11625 "TransactionDate": "2014-08-19",
11626 "TransactionTime": "11:18:55",
11627 "RequestDate": "2014-08-19",
11628 "UserIP": "74.201.38.1",
11629 "SubscriptionType": "n",
11630 "ProductId": 18,
11631 "Source": 34,
11632 "ProductStatus": 2,
11633 "MediaFilePath": "",
11634 "Amount": ""
11635 },
11636 {
11637 "Id": 618,
11638 "UserId": 850,
11639 "TermId": 18,
11640 "TransactionDate": "2014-08-19",
11641 "TransactionTime": "11:18:55",
11642 "RequestDate": "2014-08-19",
11643 "UserIP": "74.201.38.1",
11644 "SubscriptionType": "n",
11645 "ProductId": 18,
11646 "Source": 34,
11647 "ProductStatus": 2,
11648 "MediaFilePath": "",
11649 "Amount": ""
11650 },
11651 {
11652 "Id": 626,
11653 "UserId": 858,
11654 "TermId": 18,
11655 "TransactionDate": "2014-08-19",
11656 "TransactionTime": "11:18:55",
11657 "RequestDate": "2014-08-19",
11658 "UserIP": "74.201.38.1",
11659 "SubscriptionType": "n",
11660 "ProductId": 18,
11661 "Source": 34,
11662 "ProductStatus": 2,
11663 "MediaFilePath": "",
11664 "Amount": ""
11665 },
11666 {
11667 "Id": 634,
11668 "UserId": 866,
11669 "TermId": 18,
11670 "TransactionDate": "2014-08-19",
11671 "TransactionTime": "11:18:55",
11672 "RequestDate": "2014-08-19",
11673 "UserIP": "74.201.38.1",
11674 "SubscriptionType": "n",
11675 "ProductId": 18,
11676 "Source": 34,
11677 "ProductStatus": 2,
11678 "MediaFilePath": "",
11679 "Amount": ""
11680 },
11681 {
11682 "Id": 642,
11683 "UserId": 874,
11684 "TermId": 18,
11685 "TransactionDate": "2014-08-19",
11686 "TransactionTime": "11:18:55",
11687 "RequestDate": "2014-08-19",
11688 "UserIP": "74.201.38.1",
11689 "SubscriptionType": "n",
11690 "ProductId": 18,
11691 "Source": 34,
11692 "ProductStatus": 2,
11693 "MediaFilePath": "",
11694 "Amount": ""
11695 },
11696 {
11697 "Id": 650,
11698 "UserId": 882,
11699 "TermId": 18,
11700 "TransactionDate": "2014-08-19",
11701 "TransactionTime": "11:18:55",
11702 "RequestDate": "2014-08-19",
11703 "UserIP": "74.201.38.1",
11704 "SubscriptionType": "n",
11705 "ProductId": 18,
11706 "Source": 34,
11707 "ProductStatus": 2,
11708 "MediaFilePath": "",
11709 "Amount": ""
11710 },
11711 {
11712 "Id": 658,
11713 "UserId": 890,
11714 "TermId": 18,
11715 "TransactionDate": "2014-08-19",
11716 "TransactionTime": "11:18:55",
11717 "RequestDate": "2014-08-19",
11718 "UserIP": "74.201.38.1",
11719 "SubscriptionType": "n",
11720 "ProductId": 18,
11721 "Source": 34,
11722 "ProductStatus": 2,
11723 "MediaFilePath": "",
11724 "Amount": ""
11725 },
11726 {
11727 "Id": 666,
11728 "UserId": 898,
11729 "TermId": 18,
11730 "TransactionDate": "2014-08-19",
11731 "TransactionTime": "11:18:55",
11732 "RequestDate": "2014-08-19",
11733 "UserIP": "74.201.38.1",
11734 "SubscriptionType": "n",
11735 "ProductId": 18,
11736 "Source": 34,
11737 "ProductStatus": 2,
11738 "MediaFilePath": "",
11739 "Amount": ""
11740 },
11741 {
11742 "Id": 674,
11743 "UserId": 906,
11744 "TermId": 18,
11745 "TransactionDate": "2014-08-19",
11746 "TransactionTime": "11:18:55",
11747 "RequestDate": "2014-08-19",
11748 "UserIP": "74.201.38.1",
11749 "SubscriptionType": "n",
11750 "ProductId": 18,
11751 "Source": 34,
11752 "ProductStatus": 2,
11753 "MediaFilePath": "",
11754 "Amount": ""
11755 },
11756 {
11757 "Id": 682,
11758 "UserId": 914,
11759 "TermId": 18,
11760 "TransactionDate": "2014-08-19",
11761 "TransactionTime": "11:18:55",
11762 "RequestDate": "2014-08-19",
11763 "UserIP": "74.201.38.1",
11764 "SubscriptionType": "n",
11765 "ProductId": 18,
11766 "Source": 34,
11767 "ProductStatus": 2,
11768 "MediaFilePath": "",
11769 "Amount": ""
11770 },
11771 {
11772 "Id": 690,
11773 "UserId": 922,
11774 "TermId": 18,
11775 "TransactionDate": "2014-08-19",
11776 "TransactionTime": "11:18:55",
11777 "RequestDate": "2014-08-19",
11778 "UserIP": "74.201.38.1",
11779 "SubscriptionType": "n",
11780 "ProductId": 18,
11781 "Source": 34,
11782 "ProductStatus": 2,
11783 "MediaFilePath": "",
11784 "Amount": ""
11785 },
11786 {
11787 "Id": 698,
11788 "UserId": 930,
11789 "TermId": 18,
11790 "TransactionDate": "2014-08-19",
11791 "TransactionTime": "11:18:55",
11792 "RequestDate": "2014-08-19",
11793 "UserIP": "74.201.38.1",
11794 "SubscriptionType": "n",
11795 "ProductId": 18,
11796 "Source": 34,
11797 "ProductStatus": 2,
11798 "MediaFilePath": "",
11799 "Amount": ""
11800 },
11801 {
11802 "Id": 706,
11803 "UserId": 938,
11804 "TermId": 18,
11805 "TransactionDate": "2014-08-19",
11806 "TransactionTime": "11:18:55",
11807 "RequestDate": "2014-08-19",
11808 "UserIP": "74.201.38.1",
11809 "SubscriptionType": "n",
11810 "ProductId": 18,
11811 "Source": 34,
11812 "ProductStatus": 2,
11813 "MediaFilePath": "",
11814 "Amount": ""
11815 },
11816 {
11817 "Id": 714,
11818 "UserId": 946,
11819 "TermId": 18,
11820 "TransactionDate": "2014-08-19",
11821 "TransactionTime": "11:18:55",
11822 "RequestDate": "2014-08-19",
11823 "UserIP": "74.201.38.1",
11824 "SubscriptionType": "n",
11825 "ProductId": 18,
11826 "Source": 34,
11827 "ProductStatus": 2,
11828 "MediaFilePath": "",
11829 "Amount": ""
11830 },
11831 {
11832 "Id": 722,
11833 "UserId": 954,
11834 "TermId": 18,
11835 "TransactionDate": "2014-08-19",
11836 "TransactionTime": "11:18:55",
11837 "RequestDate": "2014-08-19",
11838 "UserIP": "74.201.38.1",
11839 "SubscriptionType": "n",
11840 "ProductId": 18,
11841 "Source": 34,
11842 "ProductStatus": 2,
11843 "MediaFilePath": "",
11844 "Amount": ""
11845 },
11846 {
11847 "Id": 730,
11848 "UserId": 962,
11849 "TermId": 18,
11850 "TransactionDate": "2014-08-19",
11851 "TransactionTime": "11:18:55",
11852 "RequestDate": "2014-08-19",
11853 "UserIP": "74.201.38.1",
11854 "SubscriptionType": "n",
11855 "ProductId": 18,
11856 "Source": 34,
11857 "ProductStatus": 2,
11858 "MediaFilePath": "",
11859 "Amount": ""
11860 },
11861 {
11862 "Id": 738,
11863 "UserId": 970,
11864 "TermId": 18,
11865 "TransactionDate": "2014-08-19",
11866 "TransactionTime": "11:18:55",
11867 "RequestDate": "2014-08-19",
11868 "UserIP": "74.201.38.1",
11869 "SubscriptionType": "n",
11870 "ProductId": 18,
11871 "Source": 34,
11872 "ProductStatus": 2,
11873 "MediaFilePath": "",
11874 "Amount": ""
11875 },
11876 {
11877 "Id": 746,
11878 "UserId": 978,
11879 "TermId": 18,
11880 "TransactionDate": "2014-08-19",
11881 "TransactionTime": "11:18:55",
11882 "RequestDate": "2014-08-19",
11883 "UserIP": "74.201.38.1",
11884 "SubscriptionType": "n",
11885 "ProductId": 18,
11886 "Source": 34,
11887 "ProductStatus": 2,
11888 "MediaFilePath": "",
11889 "Amount": ""
11890 },
11891 {
11892 "Id": 754,
11893 "UserId": 986,
11894 "TermId": 18,
11895 "TransactionDate": "2014-08-19",
11896 "TransactionTime": "11:18:55",
11897 "RequestDate": "2014-08-19",
11898 "UserIP": "74.201.38.1",
11899 "SubscriptionType": "n",
11900 "ProductId": 18,
11901 "Source": 34,
11902 "ProductStatus": 2,
11903 "MediaFilePath": "",
11904 "Amount": ""
11905 },
11906 {
11907 "Id": 762,
11908 "UserId": 994,
11909 "TermId": 18,
11910 "TransactionDate": "2014-08-19",
11911 "TransactionTime": "11:18:55",
11912 "RequestDate": "2014-08-19",
11913 "UserIP": "74.201.38.1",
11914 "SubscriptionType": "n",
11915 "ProductId": 18,
11916 "Source": 34,
11917 "ProductStatus": 2,
11918 "MediaFilePath": "",
11919 "Amount": ""
11920 },
11921 {
11922 "Id": 770,
11923 "UserId": 1002,
11924 "TermId": 18,
11925 "TransactionDate": "2014-08-19",
11926 "TransactionTime": "11:18:55",
11927 "RequestDate": "2014-08-19",
11928 "UserIP": "74.201.38.1",
11929 "SubscriptionType": "n",
11930 "ProductId": 18,
11931 "Source": 34,
11932 "ProductStatus": 2,
11933 "MediaFilePath": "",
11934 "Amount": ""
11935 },
11936 {
11937 "Id": 778,
11938 "UserId": 1010,
11939 "TermId": 18,
11940 "TransactionDate": "2014-08-19",
11941 "TransactionTime": "11:18:55",
11942 "RequestDate": "2014-08-19",
11943 "UserIP": "74.201.38.1",
11944 "SubscriptionType": "n",
11945 "ProductId": 18,
11946 "Source": 34,
11947 "ProductStatus": 2,
11948 "MediaFilePath": "",
11949 "Amount": ""
11950 },
11951 {
11952 "Id": 786,
11953 "UserId": 1018,
11954 "TermId": 18,
11955 "TransactionDate": "2014-08-19",
11956 "TransactionTime": "11:18:55",
11957 "RequestDate": "2014-08-19",
11958 "UserIP": "74.201.38.1",
11959 "SubscriptionType": "n",
11960 "ProductId": 18,
11961 "Source": 34,
11962 "ProductStatus": 2,
11963 "MediaFilePath": "",
11964 "Amount": ""
11965 },
11966 {
11967 "Id": 794,
11968 "UserId": 1026,
11969 "TermId": 18,
11970 "TransactionDate": "2014-08-19",
11971 "TransactionTime": "11:18:55",
11972 "RequestDate": "2014-08-19",
11973 "UserIP": "74.201.38.1",
11974 "SubscriptionType": "n",
11975 "ProductId": 18,
11976 "Source": 34,
11977 "ProductStatus": 2,
11978 "MediaFilePath": "",
11979 "Amount": ""
11980 },
11981 {
11982 "Id": 802,
11983 "UserId": 1034,
11984 "TermId": 18,
11985 "TransactionDate": "2014-08-19",
11986 "TransactionTime": "11:18:55",
11987 "RequestDate": "2014-08-19",
11988 "UserIP": "74.201.38.1",
11989 "SubscriptionType": "n",
11990 "ProductId": 18,
11991 "Source": 34,
11992 "ProductStatus": 2,
11993 "MediaFilePath": "",
11994 "Amount": ""
11995 },
11996 {
11997 "Id": 810,
11998 "UserId": 1042,
11999 "TermId": 18,
12000 "TransactionDate": "2014-08-19",
12001 "TransactionTime": "11:18:55",
12002 "RequestDate": "2014-08-19",
12003 "UserIP": "74.201.38.1",
12004 "SubscriptionType": "n",
12005 "ProductId": 18,
12006 "Source": 34,
12007 "ProductStatus": 2,
12008 "MediaFilePath": "",
12009 "Amount": ""
12010 },
12011 {
12012 "Id": 818,
12013 "UserId": 1050,
12014 "TermId": 18,
12015 "TransactionDate": "2014-08-19",
12016 "TransactionTime": "11:18:55",
12017 "RequestDate": "2014-08-19",
12018 "UserIP": "74.201.38.1",
12019 "SubscriptionType": "n",
12020 "ProductId": 18,
12021 "Source": 34,
12022 "ProductStatus": 2,
12023 "MediaFilePath": "",
12024 "Amount": ""
12025 },
12026 {
12027 "Id": 826,
12028 "UserId": 1058,
12029 "TermId": 18,
12030 "TransactionDate": "2014-08-19",
12031 "TransactionTime": "11:18:55",
12032 "RequestDate": "2014-08-19",
12033 "UserIP": "74.201.38.1",
12034 "SubscriptionType": "n",
12035 "ProductId": 18,
12036 "Source": 34,
12037 "ProductStatus": 2,
12038 "MediaFilePath": "",
12039 "Amount": ""
12040 },
12041 {
12042 "Id": 834,
12043 "UserId": 1066,
12044 "TermId": 18,
12045 "TransactionDate": "2014-08-19",
12046 "TransactionTime": "11:18:55",
12047 "RequestDate": "2014-08-19",
12048 "UserIP": "74.201.38.1",
12049 "SubscriptionType": "n",
12050 "ProductId": 18,
12051 "Source": 34,
12052 "ProductStatus": 2,
12053 "MediaFilePath": "",
12054 "Amount": ""
12055 },
12056 {
12057 "Id": 842,
12058 "UserId": 1074,
12059 "TermId": 18,
12060 "TransactionDate": "2014-08-19",
12061 "TransactionTime": "11:18:55",
12062 "RequestDate": "2014-08-19",
12063 "UserIP": "74.201.38.1",
12064 "SubscriptionType": "n",
12065 "ProductId": 18,
12066 "Source": 34,
12067 "ProductStatus": 2,
12068 "MediaFilePath": "",
12069 "Amount": ""
12070 },
12071 {
12072 "Id": 850,
12073 "UserId": 1082,
12074 "TermId": 18,
12075 "TransactionDate": "2014-08-19",
12076 "TransactionTime": "11:18:55",
12077 "RequestDate": "2014-08-19",
12078 "UserIP": "74.201.38.1",
12079 "SubscriptionType": "n",
12080 "ProductId": 18,
12081 "Source": 34,
12082 "ProductStatus": 2,
12083 "MediaFilePath": "",
12084 "Amount": ""
12085 },
12086 {
12087 "Id": 858,
12088 "UserId": 1090,
12089 "TermId": 18,
12090 "TransactionDate": "2014-08-19",
12091 "TransactionTime": "11:18:55",
12092 "RequestDate": "2014-08-19",
12093 "UserIP": "74.201.38.1",
12094 "SubscriptionType": "n",
12095 "ProductId": 18,
12096 "Source": 34,
12097 "ProductStatus": 2,
12098 "MediaFilePath": "",
12099 "Amount": ""
12100 },
12101 {
12102 "Id": 866,
12103 "UserId": 1098,
12104 "TermId": 18,
12105 "TransactionDate": "2014-08-19",
12106 "TransactionTime": "11:18:55",
12107 "RequestDate": "2014-08-19",
12108 "UserIP": "74.201.38.1",
12109 "SubscriptionType": "n",
12110 "ProductId": 18,
12111 "Source": 34,
12112 "ProductStatus": 2,
12113 "MediaFilePath": "",
12114 "Amount": ""
12115 },
12116 {
12117 "Id": 874,
12118 "UserId": 1106,
12119 "TermId": 18,
12120 "TransactionDate": "2014-08-19",
12121 "TransactionTime": "11:18:55",
12122 "RequestDate": "2014-08-19",
12123 "UserIP": "74.201.38.1",
12124 "SubscriptionType": "n",
12125 "ProductId": 18,
12126 "Source": 34,
12127 "ProductStatus": 2,
12128 "MediaFilePath": "",
12129 "Amount": ""
12130 },
12131 {
12132 "Id": 882,
12133 "UserId": 1114,
12134 "TermId": 18,
12135 "TransactionDate": "2014-08-19",
12136 "TransactionTime": "11:18:55",
12137 "RequestDate": "2014-08-19",
12138 "UserIP": "74.201.38.1",
12139 "SubscriptionType": "n",
12140 "ProductId": 18,
12141 "Source": 34,
12142 "ProductStatus": 2,
12143 "MediaFilePath": "",
12144 "Amount": ""
12145 },
12146 {
12147 "Id": 890,
12148 "UserId": 1122,
12149 "TermId": 18,
12150 "TransactionDate": "2014-08-19",
12151 "TransactionTime": "11:18:55",
12152 "RequestDate": "2014-08-19",
12153 "UserIP": "74.201.38.1",
12154 "SubscriptionType": "n",
12155 "ProductId": 18,
12156 "Source": 34,
12157 "ProductStatus": 2,
12158 "MediaFilePath": "",
12159 "Amount": ""
12160 },
12161 {
12162 "Id": 898,
12163 "UserId": 1130,
12164 "TermId": 18,
12165 "TransactionDate": "2014-08-19",
12166 "TransactionTime": "11:18:55",
12167 "RequestDate": "2014-08-19",
12168 "UserIP": "74.201.38.1",
12169 "SubscriptionType": "n",
12170 "ProductId": 18,
12171 "Source": 34,
12172 "ProductStatus": 2,
12173 "MediaFilePath": "",
12174 "Amount": ""
12175 },
12176 {
12177 "Id": 906,
12178 "UserId": 1138,
12179 "TermId": 18,
12180 "TransactionDate": "2014-08-19",
12181 "TransactionTime": "11:18:55",
12182 "RequestDate": "2014-08-19",
12183 "UserIP": "74.201.38.1",
12184 "SubscriptionType": "n",
12185 "ProductId": 18,
12186 "Source": 34,
12187 "ProductStatus": 2,
12188 "MediaFilePath": "",
12189 "Amount": ""
12190 },
12191 {
12192 "Id": 914,
12193 "UserId": 1146,
12194 "TermId": 18,
12195 "TransactionDate": "2014-08-19",
12196 "TransactionTime": "11:18:55",
12197 "RequestDate": "2014-08-19",
12198 "UserIP": "74.201.38.1",
12199 "SubscriptionType": "n",
12200 "ProductId": 18,
12201 "Source": 34,
12202 "ProductStatus": 2,
12203 "MediaFilePath": "",
12204 "Amount": ""
12205 },
12206 {
12207 "Id": 922,
12208 "UserId": 1154,
12209 "TermId": 18,
12210 "TransactionDate": "2014-08-19",
12211 "TransactionTime": "11:18:55",
12212 "RequestDate": "2014-08-19",
12213 "UserIP": "74.201.38.1",
12214 "SubscriptionType": "n",
12215 "ProductId": 18,
12216 "Source": 34,
12217 "ProductStatus": 2,
12218 "MediaFilePath": "",
12219 "Amount": ""
12220 },
12221 {
12222 "Id": 930,
12223 "UserId": 1162,
12224 "TermId": 18,
12225 "TransactionDate": "2014-08-19",
12226 "TransactionTime": "11:18:55",
12227 "RequestDate": "2014-08-19",
12228 "UserIP": "74.201.38.1",
12229 "SubscriptionType": "n",
12230 "ProductId": 18,
12231 "Source": 34,
12232 "ProductStatus": 2,
12233 "MediaFilePath": "",
12234 "Amount": ""
12235 },
12236 {
12237 "Id": 938,
12238 "UserId": 1170,
12239 "TermId": 18,
12240 "TransactionDate": "2014-08-19",
12241 "TransactionTime": "11:18:55",
12242 "RequestDate": "2014-08-19",
12243 "UserIP": "74.201.38.1",
12244 "SubscriptionType": "n",
12245 "ProductId": 18,
12246 "Source": 34,
12247 "ProductStatus": 2,
12248 "MediaFilePath": "",
12249 "Amount": ""
12250 },
12251 {
12252 "Id": 946,
12253 "UserId": 1178,
12254 "TermId": 18,
12255 "TransactionDate": "2014-08-19",
12256 "TransactionTime": "11:18:55",
12257 "RequestDate": "2014-08-19",
12258 "UserIP": "74.201.38.1",
12259 "SubscriptionType": "n",
12260 "ProductId": 18,
12261 "Source": 34,
12262 "ProductStatus": 2,
12263 "MediaFilePath": "",
12264 "Amount": ""
12265 },
12266 {
12267 "Id": 954,
12268 "UserId": 1186,
12269 "TermId": 18,
12270 "TransactionDate": "2014-08-19",
12271 "TransactionTime": "11:18:55",
12272 "RequestDate": "2014-08-19",
12273 "UserIP": "74.201.38.1",
12274 "SubscriptionType": "n",
12275 "ProductId": 18,
12276 "Source": 34,
12277 "ProductStatus": 2,
12278 "MediaFilePath": "",
12279 "Amount": ""
12280 },
12281 {
12282 "Id": 962,
12283 "UserId": 1194,
12284 "TermId": 18,
12285 "TransactionDate": "2014-08-19",
12286 "TransactionTime": "11:18:55",
12287 "RequestDate": "2014-08-19",
12288 "UserIP": "74.201.38.1",
12289 "SubscriptionType": "n",
12290 "ProductId": 18,
12291 "Source": 34,
12292 "ProductStatus": 2,
12293 "MediaFilePath": "",
12294 "Amount": ""
12295 },
12296 {
12297 "Id": 970,
12298 "UserId": 1202,
12299 "TermId": 18,
12300 "TransactionDate": "2014-08-19",
12301 "TransactionTime": "11:18:55",
12302 "RequestDate": "2014-08-19",
12303 "UserIP": "74.201.38.1",
12304 "SubscriptionType": "n",
12305 "ProductId": 18,
12306 "Source": 34,
12307 "ProductStatus": 2,
12308 "MediaFilePath": "",
12309 "Amount": ""
12310 },
12311 {
12312 "Id": 978,
12313 "UserId": 1210,
12314 "TermId": 18,
12315 "TransactionDate": "2014-08-19",
12316 "TransactionTime": "11:18:55",
12317 "RequestDate": "2014-08-19",
12318 "UserIP": "74.201.38.1",
12319 "SubscriptionType": "n",
12320 "ProductId": 18,
12321 "Source": 34,
12322 "ProductStatus": 2,
12323 "MediaFilePath": "",
12324 "Amount": ""
12325 },
12326 {
12327 "Id": 986,
12328 "UserId": 1218,
12329 "TermId": 18,
12330 "TransactionDate": "2014-08-19",
12331 "TransactionTime": "11:18:55",
12332 "RequestDate": "2014-08-19",
12333 "UserIP": "74.201.38.1",
12334 "SubscriptionType": "n",
12335 "ProductId": 18,
12336 "Source": 34,
12337 "ProductStatus": 2,
12338 "MediaFilePath": "",
12339 "Amount": ""
12340 },
12341 {
12342 "Id": 994,
12343 "UserId": 1226,
12344 "TermId": 18,
12345 "TransactionDate": "2014-08-19",
12346 "TransactionTime": "11:18:55",
12347 "RequestDate": "2014-08-19",
12348 "UserIP": "74.201.38.1",
12349 "SubscriptionType": "n",
12350 "ProductId": 18,
12351 "Source": 34,
12352 "ProductStatus": 2,
12353 "MediaFilePath": "",
12354 "Amount": ""
12355 },
12356 {
12357 "Id": 1002,
12358 "UserId": 1234,
12359 "TermId": 18,
12360 "TransactionDate": "2014-08-19",
12361 "TransactionTime": "11:18:55",
12362 "RequestDate": "2014-08-19",
12363 "UserIP": "74.201.38.1",
12364 "SubscriptionType": "n",
12365 "ProductId": 18,
12366 "Source": 34,
12367 "ProductStatus": 2,
12368 "MediaFilePath": "",
12369 "Amount": ""
12370 }
12371 ]
12372 }
12373 {{/code}}
12374
12375
12376 (% id="HGETspecificTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12377 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Transaction(%%) ==
12378
12379 ----
12380
12381 {{panel bgColor="#D3D3D3" width="100%"}}
12382 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/~{~{Transaction id}}
12383 {{/panel}}
12384
12385 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12386
12387 ----
12388
12389 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
12390
12391 ==== Example ====
12392
12393 ----
12394
12395 (% style="color:#6b6b6b" %)Request
12396
12397 {{code language="php" theme="RDark" title="Get specific Transaction Request"}}
12398 <?php
12399
12400 $curl = curl_init();
12401
12402 curl_setopt_array($curl, array(
12403 CURLOPT_URL => 'https://api.onecount.net/v2/transactions/{{Transaction id}}',
12404 CURLOPT_RETURNTRANSFER => true,
12405 CURLOPT_ENCODING => '',
12406 CURLOPT_MAXREDIRS => 10,
12407 CURLOPT_TIMEOUT => 0,
12408 CURLOPT_FOLLOWLOCATION => true,
12409 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12410 CURLOPT_CUSTOMREQUEST => 'GET',
12411 CURLOPT_HTTPHEADER => array(
12412 'Appkey: {{ONECOUNT API KEY}}'
12413 ),
12414 ));
12415
12416 $response = curl_exec($curl);
12417
12418 curl_close($curl);
12419 echo $response;
12420 {{/code}}
12421
12422
12423 (% style="color:#6b6b6b" %)Response  200 OK
12424
12425 {{code language="yml" theme="RDark" collapse="true" title="Get specific Transaction Response"}}
12426 {
12427 "result": {
12428 "success": "1",
12429 "error": {
12430 "code": "",
12431 "message": ""
12432 }
12433 },
12434 "Transactions": [
12435 {
12436 "Id": 1002,
12437 "UserId": 1234,
12438 "TermId": 18,
12439 "TransactionDate": "2014-08-19",
12440 "TransactionTime": "11:18:55",
12441 "RequestDate": "2014-08-19",
12442 "UserIP": "74.201.38.1",
12443 "SubscriptionType": "n",
12444 "ProductId": 18,
12445 "Source": 34,
12446 "ProductStatus": 2,
12447 "MediaFilePath": "",
12448 "Amount": ""
12449 }
12450 ]
12451 }
12452 {{/code}}
12453
12454
12455 (% id="HGETlookupTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12456 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Transaction(%%) ==
12457
12458 ----
12459
12460 {{panel bgColor="#D3D3D3" width="100%"}}
12461 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/lookup?UserId=~{~{OCID}}
12462 {{/panel}}
12463
12464 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12465
12466 ----
12467
12468 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
12469
12470 === (% style="color:#212121" %)Query Params(%%) ===
12471
12472 ----
12473
12474 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)UserId                                                                                                   (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{OCID}}
12475
12476 ==== Example ====
12477
12478 ----
12479
12480 (% style="color:#6b6b6b" %)Request
12481
12482 {{code language="php" theme="RDark" title="Lookup Transaction Request"}}
12483 <?php
12484
12485 $curl = curl_init();
12486
12487 curl_setopt_array($curl, array(
12488 CURLOPT_URL => 'https://api.onecount.net/v2/transactions/lookup?UserId={{OCID}}',
12489 CURLOPT_RETURNTRANSFER => true,
12490 CURLOPT_ENCODING => '',
12491 CURLOPT_MAXREDIRS => 10,
12492 CURLOPT_TIMEOUT => 0,
12493 CURLOPT_FOLLOWLOCATION => true,
12494 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12495 CURLOPT_CUSTOMREQUEST => 'GET',
12496 CURLOPT_HTTPHEADER => array(
12497 'Appkey: {{ONECOUNT API KEY}}'
12498 ),
12499 ));
12500
12501 $response = curl_exec($curl);
12502
12503 curl_close($curl);
12504 echo $response;
12505 {{/code}}
12506
12507
12508 (% style="color:#6b6b6b" %)Response  200 OK
12509
12510 {{code language="yml" theme="RDark" collapse="true" title="Lookup Transaction Response"}}
12511 {
12512 "result": {
12513 "success": "1",
12514 "error": {
12515 "code": "",
12516 "message": ""
12517 }
12518 },
12519 "Transactions": [
12520 {
12521 "Id": 52494786,
12522 "UserId": 1234,
12523 "TermId": 34,
12524 "TransactionDate": "2016-01-19",
12525 "TransactionTime": "15:30:04",
12526 "RequestDate": "2016-01-19",
12527 "UserIP": "12.226.247.2",
12528 "SubscriptionType": "u",
12529 "ProductId": 34,
12530 "Source": 0,
12531 "ProductStatus": 0,
12532 "MediaFilePath": "",
12533 "Amount": ""
12534 },
12535 {
12536 "Id": 42654041,
12537 "UserId": 1234,
12538 "TermId": 34,
12539 "TransactionDate": "2015-09-09",
12540 "TransactionTime": "11:20:39",
12541 "RequestDate": "2015-09-09",
12542 "UserIP": "24.187.236.98",
12543 "SubscriptionType": "n",
12544 "ProductId": 34,
12545 "Source": 0,
12546 "ProductStatus": 2,
12547 "MediaFilePath": "",
12548 "Amount": ""
12549 },
12550 {
12551 "Id": 97251022,
12552 "UserId": 1234,
12553 "TermId": 34,
12554 "TransactionDate": "2015-06-04",
12555 "TransactionTime": "14:59:42",
12556 "RequestDate": "2015-06-04",
12557 "UserIP": "12.226.247.2",
12558 "SubscriptionType": "u",
12559 "ProductId": 34,
12560 "Source": 0,
12561 "ProductStatus": 0,
12562 "MediaFilePath": "",
12563 "Amount": ""
12564 },
12565 {
12566 "Id": 55492559,
12567 "UserId": 1234,
12568 "TermId": 34,
12569 "TransactionDate": "2015-04-03",
12570 "TransactionTime": "16:32:04",
12571 "RequestDate": "2015-04-03",
12572 "UserIP": "24.187.236.98",
12573 "SubscriptionType": "r",
12574 "ProductId": 34,
12575 "Source": 58,
12576 "ProductStatus": 106,
12577 "MediaFilePath": "",
12578 "Amount": ""
12579 },
12580 {
12581 "Id": 98173391,
12582 "UserId": 1234,
12583 "TermId": 34,
12584 "TransactionDate": "2015-04-03",
12585 "TransactionTime": "15:50:45",
12586 "RequestDate": "2014-08-19",
12587 "UserIP": "24.187.236.98",
12588 "SubscriptionType": "n",
12589 "ProductId": 34,
12590 "Source": 34,
12591 "ProductStatus": 106,
12592 "MediaFilePath": "",
12593 "Amount": ""
12594 },
12595 {
12596 "Id": 91711793,
12597 "UserId": 1234,
12598 "TermId": 18,
12599 "TransactionDate": "2015-04-27",
12600 "TransactionTime": "14:24:51",
12601 "RequestDate": "2015-04-27",
12602 "UserIP": "24.187.236.98",
12603 "SubscriptionType": "u",
12604 "ProductId": 18,
12605 "Source": 0,
12606 "ProductStatus": 106,
12607 "MediaFilePath": "",
12608 "Amount": ""
12609 },
12610 {
12611 "Id": 74936400,
12612 "UserId": 1234,
12613 "TermId": 18,
12614 "TransactionDate": "2015-04-27",
12615 "TransactionTime": "12:35:18",
12616 "RequestDate": "2015-04-27",
12617 "UserIP": "68.196.187.74",
12618 "SubscriptionType": "n",
12619 "ProductId": 18,
12620 "Source": 34,
12621 "ProductStatus": 106,
12622 "MediaFilePath": "",
12623 "Amount": ""
12624 },
12625 {
12626 "Id": 21664714,
12627 "UserId": 1234,
12628 "TermId": 18,
12629 "TransactionDate": "2015-04-03",
12630 "TransactionTime": "15:50:46",
12631 "RequestDate": "2015-04-03",
12632 "UserIP": "24.187.236.98",
12633 "SubscriptionType": "u",
12634 "ProductId": 18,
12635 "Source": 0,
12636 "ProductStatus": 2,
12637 "MediaFilePath": "",
12638 "Amount": ""
12639 },
12640 {
12641 "Id": 81129263,
12642 "UserId": 1234,
12643 "TermId": 18,
12644 "TransactionDate": "2014-08-19",
12645 "TransactionTime": "11:18:55",
12646 "RequestDate": "2014-08-19",
12647 "UserIP": "74.201.38.1",
12648 "SubscriptionType": "n",
12649 "ProductId": 18,
12650 "Source": 34,
12651 "ProductStatus": 2,
12652 "MediaFilePath": "",
12653 "Amount": ""
12654 },
12655 {
12656 "Id": 30461748,
12657 "UserId": 1234,
12658 "ResourceId": 459,
12659 "TransactionDate": "2023-03-15",
12660 "TransactionTime": "12:07:55",
12661 "RequestDate": "2023-03-15",
12662 "UserIP": "74.201.38.12",
12663 "SubscriptionType": "n",
12664 "SourceCode": 0,
12665 "ProductStatus": 0,
12666 "MediaFilePath": "",
12667 "Amount": ""
12668 },
12669 {
12670 "Id": 25858253,
12671 "UserId": 1234,
12672 "ResourceId": 451,
12673 "TransactionDate": "2023-03-15",
12674 "TransactionTime": "11:45:19",
12675 "RequestDate": "2023-03-15",
12676 "UserIP": "74.201.38.12",
12677 "SubscriptionType": "n",
12678 "SourceCode": 0,
12679 "ProductStatus": 0,
12680 "MediaFilePath": "",
12681 "Amount": ""
12682 },
12683 {
12684 "Id": 69453260,
12685 "UserId": 1234,
12686 "ResourceId": 411,
12687 "TransactionDate": "2022-06-07",
12688 "TransactionTime": "17:03:14",
12689 "RequestDate": "2022-06-07",
12690 "UserIP": "74.201.38.12",
12691 "SubscriptionType": "n",
12692 "SourceCode": 0,
12693 "ProductStatus": 0,
12694 "MediaFilePath": "",
12695 "Amount": ""
12696 },
12697 {
12698 "Id": 51354425,
12699 "UserId": 1234,
12700 "ResourceId": 355,
12701 "TransactionDate": "2020-04-06",
12702 "TransactionTime": "12:24:08",
12703 "RequestDate": "2020-04-06",
12704 "UserIP": "74.201.38.12",
12705 "SubscriptionType": "n",
12706 "SourceCode": 0,
12707 "ProductStatus": 0,
12708 "MediaFilePath": "",
12709 "Amount": ""
12710 }
12711 ]
12712 }
12713 {{/code}}
12714
12715
12716 (% id="HPOSTCreateTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12717 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Transaction(%%) ==
12718
12719 ----
12720
12721 {{panel bgColor="#D3D3D3" width="100%"}}
12722 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions
12723 {{/panel}}
12724
12725 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12726
12727 ----
12728
12729 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
12730
12731 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
12732
12733 ----
12734
12735 {{code language="yml" theme="RDark" title="Body"}}
12736 {"UserId": 1845775,"TermId":447 ,"UserIP":"192.168.0.1" ,"SubscriptionType":"n" , "ProductId":599 ,"FormId": "8f93834c-adce-4dc7-acd0-f3a1e0f7c63f","Source": 83,"ProductStatus": 2,"Amount":"0.00" ,"PaypalTransId":"" , "MediaFilePath":"" ,"Remarks": "USER SUBSCRIBED","BatchId":"1234" ,"Quantity": 1, "ExpireDate":"20251211" }
12737 {{/code}}
12738
12739 ==== Example ====
12740
12741 ----
12742
12743 (% style="color:#6b6b6b" %)Request
12744
12745 {{code language="php" theme="RDark" title="Create Transaction Request"}}
12746 <?php
12747
12748 $curl = curl_init();
12749
12750 curl_setopt_array($curl, array(
12751 CURLOPT_URL => 'https://api.onecount.net/v2/transactions',
12752 CURLOPT_RETURNTRANSFER => true,
12753 CURLOPT_ENCODING => '',
12754 CURLOPT_MAXREDIRS => 10,
12755 CURLOPT_TIMEOUT => 0,
12756 CURLOPT_FOLLOWLOCATION => true,
12757 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12758 CURLOPT_CUSTOMREQUEST => 'POST',
12759 CURLOPT_POSTFIELDS =>'{"UserId": 1845775,"TermId":447 ,"UserIP":"192.168.0.1" ,"SubscriptionType":"n" , "ProductId":599 ,"FormId": "8f93834c-adce-4dc7-acd0-f3a1e0f7c63f","Source": 83,"ProductStatus": 2,"Amount":"0.00" ,"PaypalTransId":"" , "MediaFilePath":"" ,"Remarks": "USER SUBSCRIBED","BatchId":"1234" ,"Quantity": 1, "ExpireDate":"20251211" }',
12760 CURLOPT_HTTPHEADER => array(
12761 'Appkey: {{ONECOUNT API KEY}}'
12762 ),
12763 ));
12764
12765 $response = curl_exec($curl);
12766
12767 curl_close($curl);
12768 echo $response;
12769 {{/code}}
12770
12771
12772 (% style="color:#6b6b6b" %)Response  200 OK
12773
12774 {{code language="yml" theme="RDark" collapse="true" title="Create Transaction Response"}}
12775 {
12776 "result": {
12777 "success": "1",
12778 "error": {
12779 "code": "",
12780 "message": ""
12781 }
12782 },
12783 "Transactions": {
12784 "Id": "1234",
12785 "UserId": 1845775,
12786 "TermId": 447,
12787 "TransactionDate": "20231211",
12788 "TransactionTime": "09:34:26",
12789 "RequestDate": "20231211",
12790 "UserIP": "192.168.0.1",
12791 "SubscriptionType": "n",
12792 "ProductId": 599,
12793 "Source": 83,
12794 "ProductStatus": 2,
12795 "MediaFilePath": "",
12796 "Amount": "0.00"
12797 }
12798 }
12799 {{/code}}
12800
12801
12802 === **COMPONENT: Engagements** ===
12803
12804 (% class="western" %)
12805 Engagement can be added, updated and searched for using the engagements resource from the api.
12806
12807
12808 (% class="wrapped" %)
12809 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12810 (((
12811 (% class="western" %)
12812 **Method**
12813 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12814 (((
12815 (% class="western" %)
12816 **Url**
12817 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12818 (((
12819 (% class="western" %)
12820 **Action**
12821 )))
12822 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12823 (((
12824 (% class="western" %)
12825 GET
12826 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12827 (((
12828 (% class="western" %)
12829 /(% style="color:#212121" %)engagements
12830 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12831 (((
12832 (% class="western" %)
12833 Get engagement data limiting 25.
12834 )))
12835 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12836 (((
12837 (% class="western" %)
12838 GET
12839 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12840 (((
12841 (% class="western" %)
12842 /(% style="color:#212121" %)engagements(%%)/<engagement id>
12843 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12844 (((
12845 (% class="western" %)
12846 Get data for engagement id. The engagement id is a string
12847 )))
12848 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12849 (((
12850 (% class="western" %)
12851 POST
12852 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12853 (((
12854 (% class="western" %)
12855 /(% style="color:#212121" %)engagements
12856 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12857 (((
12858 (% class="western" %)
12859 Create a new engagement
12860
12861 (% class="western" %)
12862 Parameters required to create the engagement needs to be sent as post data in JSON format.
12863 )))
12864 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12865 (((
12866 (% class="western" %)
12867 PUT
12868 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12869 (((
12870 (% class="western" %)
12871 /(% style="color:#212121" %)engagements(%%)/<engagement id>
12872 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12873 (((
12874 (% class="western" %)
12875 Update engagement by engagement id. The engagement id string
12876
12877 (% class="western" %)
12878 Parameters required to update the engagement needs to be sent as post data in JSON format.
12879 )))
12880 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12881 (((
12882 (% class="western" %)
12883 POST
12884 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12885 (((
12886 (% class="western" %)
12887 (% style="color:#212121" %)/engagements/addUser
12888 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12889 (((
12890 (% class="western" %)
12891 Add user to engagement
12892
12893 (% class="western" %)
12894 Parameters required to add user to the engagement needs to be sent as post data in JSON format.
12895 )))
12896
12897
12898 (% id="HGETAllEngagements" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12899 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Engagements(%%) ==
12900
12901 ----
12902
12903 ----
12904
12905 {{panel bgColor="#D3D3D3" width="100%"}}
12906 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements
12907 {{/panel}}
12908
12909 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12910
12911 ----
12912
12913 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
12914
12915 ==== Example ====
12916
12917 ----
12918
12919 (% style="color:#6b6b6b" %)Request
12920
12921 {{code language="php" theme="RDark" title="Get All Engagement Request"}}
12922 <?php
12923
12924 $curl = curl_init();
12925
12926 curl_setopt_array($curl, array(
12927 CURLOPT_URL => 'https://api.onecount.net/v2/engagements',
12928 CURLOPT_RETURNTRANSFER => true,
12929 CURLOPT_ENCODING => '',
12930 CURLOPT_MAXREDIRS => 10,
12931 CURLOPT_TIMEOUT => 0,
12932 CURLOPT_FOLLOWLOCATION => true,
12933 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12934 CURLOPT_CUSTOMREQUEST => 'GET',
12935 CURLOPT_HTTPHEADER => array(
12936 'Appkey: {{ONECOUNT API KEY}}'
12937 ),
12938 ));
12939
12940 $response = curl_exec($curl);
12941
12942 curl_close($curl);
12943 echo $response;
12944
12945
12946 {{/code}}
12947
12948
12949 (% style="color:#6b6b6b" %)Response  200 OK
12950
12951 {{code language="yml" theme="RDark" collapse="true" title="Get all engagements Response"}}
12952 {
12953 "result": {
12954 "success": "1",
12955 "error": {
12956 "code": "",
12957 "message": ""
12958 }
12959 },
12960 "Engagements": [
12961 {
12962 "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
12963 "Name": "Test Engagement 1",
12964 "Engagement Fields": [
12965 {
12966 "Name": "id",
12967 "Type": "text"
12968 },
12969 {
12970 "Name": "activity_time",
12971 "Type": "text"
12972 },
12973 {
12974 "Name": "Name",
12975 "Type": "text"
12976 },
12977 {
12978 "Name": "Test Field",
12979 "Type": "select",
12980 "Values": [
12981 {
12982 "text": "Test 1",
12983 "value": "Test1"
12984 }
12985 ]
12986 }
12987 ]
12988 }
12989 ]
12990 }
12991 {{/code}}
12992
12993
12994 (% id="HGETSpecificEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12995 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Specific Engagement(%%) ==
12996
12997 ----
12998
12999 ----
13000
13001 {{panel bgColor="#D3D3D3" width="100%"}}
13002 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement ID}}
13003 {{/panel}}
13004
13005 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13006
13007 ----
13008
13009 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13010
13011 ==== Example ====
13012
13013 ----
13014
13015 (% style="color:#6b6b6b" %)Request
13016
13017 {{code language="php" theme="RDark" title="Get Specific Engagement Request"}}
13018 <?php
13019
13020 $curl = curl_init();
13021
13022 curl_setopt_array($curl, array(
13023 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement ID}}',
13024 CURLOPT_RETURNTRANSFER => true,
13025 CURLOPT_ENCODING => '',
13026 CURLOPT_MAXREDIRS => 10,
13027 CURLOPT_TIMEOUT => 0,
13028 CURLOPT_FOLLOWLOCATION => true,
13029 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13030 CURLOPT_CUSTOMREQUEST => 'GET',
13031 CURLOPT_HTTPHEADER => array(
13032 'Appkey: {{ONECOUNT API KEY}}'
13033 ),
13034 ));
13035
13036 $response = curl_exec($curl);
13037
13038 curl_close($curl);
13039 echo $response;
13040
13041
13042 {{/code}}
13043
13044
13045 (% style="color:#6b6b6b" %)Response  200 OK
13046
13047 {{code language="yml" theme="RDark" collapse="true" title="Get specific engagement Response"}}
13048 {
13049 "result": {
13050 "success": "1",
13051 "error": {
13052 "code": "",
13053 "message": ""
13054 }
13055 },
13056 "Engagements": [
13057 {
13058 "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
13059 "Name": "Test Engagement 1",
13060 "Engagement Fields": [
13061 {
13062 "Name": "id",
13063 "Type": "text"
13064 },
13065 {
13066 "Name": "activity_time",
13067 "Type": "text"
13068 },
13069 {
13070 "Name": "Name",
13071 "Type": "text"
13072 },
13073 {
13074 "Name": "Test Field",
13075 "Type": "select",
13076 "Values": [
13077 {
13078 "text": "Test 1",
13079 "value": "Test1"
13080 }
13081 ]
13082 }
13083 ]
13084 }
13085 ]
13086 }
13087 {{/code}}
13088
13089
13090 (% id="HPOSTCreateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13091 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Engagement(%%) ==
13092
13093 ----
13094
13095 {{panel bgColor="#D3D3D3" width="100%"}}
13096 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements
13097 {{/panel}}
13098
13099 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13100
13101 ----
13102
13103 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13104
13105 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13106
13107 ----
13108
13109 {{code language="yml" theme="RDark" title="Body"}}
13110 {"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[
13111 {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"},
13112 {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"},
13113 {"Price":[],"Type": "numeric"},
13114 {"Transaction Date":[],"Type": "date"}
13115 ]}
13116 {{/code}}
13117
13118 ==== Example ====
13119
13120 ----
13121
13122 (% style="color:#6b6b6b" %)Request
13123
13124 {{code language="php" theme="RDark" title="Create Engagement Request"}}
13125 <?php
13126
13127 $curl = curl_init();
13128
13129 curl_setopt_array($curl, array(
13130 CURLOPT_URL => 'https://api.onecount.net/v2/engagements',
13131 CURLOPT_RETURNTRANSFER => true,
13132 CURLOPT_ENCODING => '',
13133 CURLOPT_MAXREDIRS => 10,
13134 CURLOPT_TIMEOUT => 0,
13135 CURLOPT_FOLLOWLOCATION => true,
13136 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13137 CURLOPT_CUSTOMREQUEST => 'POST',
13138 CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[
13139 {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"},
13140 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13141 {"Price":[],"Type": "numeric"},
13142 {"Transaction Date":[],"Type": "text"}
13143 ]}',
13144 CURLOPT_HTTPHEADER => array(
13145 'Appkey: {{ONECOUNT API KEY}}',
13146 'Content-Type: application/json'
13147 ),
13148 ));
13149
13150 $response = curl_exec($curl);
13151
13152 curl_close($curl);
13153 echo $response;
13154
13155
13156 {{/code}}
13157
13158
13159 (% style="color:#6b6b6b" %)Response  200 OK
13160
13161 {{code language="yml" theme="RDark" collapse="true" title="Create Engagement Response"}}
13162 {
13163 "result": {
13164 "success": "1",
13165 "error": {
13166 "code": "",
13167 "message": ""
13168 }
13169 },
13170 "Engagements": [
13171 {
13172 "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565",
13173 "Name": "Test engagement 2",
13174 "Metrics": [
13175 {
13176 "Name": "Name",
13177 "Type": "select",
13178 "Values": [
13179 {
13180 "text": "Webinar 1",
13181 "value": "Webinar_1"
13182 },
13183 {
13184 "text": "Webinar 2",
13185 "value": "Webinar_2"
13186 }
13187 ]
13188 },
13189 {
13190 "Name": "Attendance Status",
13191 "Type": "select",
13192 "Values": [
13193 {
13194 "text": "Attended",
13195 "value": "attended"
13196 },
13197 {
13198 "text": "Not Attended",
13199 "value": "not_attended"
13200 }
13201 ]
13202 },
13203 {
13204 "Name": "Price",
13205 "Type": "numeric"
13206 },
13207 {
13208 "Name": "Transaction Date",
13209 "Type": "text"
13210 },
13211 {
13212 "Name": "id",
13213 "Type": "text"
13214 },
13215 {
13216 "Name": "activity_time",
13217 "Type": "text"
13218 }
13219 ]
13220 }
13221 ]
13222 }
13223 {{/code}}
13224
13225
13226 (% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13227 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Engagement(%%) ==
13228
13229 ----
13230
13231 {{panel bgColor="#D3D3D3" width="100%"}}
13232 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement Id}}
13233 {{/panel}}
13234
13235 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13236
13237 ----
13238
13239 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13240
13241 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13242
13243 ----
13244
13245 {{code language="yml" theme="RDark" title="Body"}}
13246 {"Name":"Test engagement 3", "Metrics":[
13247 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13248 {"Price":[],"Type": "text"}
13249 ]}
13250 {{/code}}
13251
13252 ==== Example ====
13253
13254 ----
13255
13256 (% style="color:#6b6b6b" %)Request
13257
13258 {{code language="php" theme="RDark" title="Update Engagement Request"}}
13259 <?php
13260
13261 $curl = curl_init();
13262
13263 curl_setopt_array($curl, array(
13264 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement Id}}',
13265 CURLOPT_RETURNTRANSFER => true,
13266 CURLOPT_ENCODING => '',
13267 CURLOPT_MAXREDIRS => 10,
13268 CURLOPT_TIMEOUT => 0,
13269 CURLOPT_FOLLOWLOCATION => true,
13270 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13271 CURLOPT_CUSTOMREQUEST => 'PUT',
13272 CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[
13273 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13274 {"Price":[],"Type": "text"}
13275 ]}',
13276 CURLOPT_HTTPHEADER => array(
13277 'Appkey: {{ONECOUNT API KEY}}',
13278 'Content-Type: application/json'
13279 ),
13280 ));
13281
13282 $response = curl_exec($curl);
13283
13284 curl_close($curl);
13285 echo $response;
13286
13287 {{/code}}
13288
13289
13290 (% style="color:#6b6b6b" %)Response  200 OK
13291
13292 {{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}}
13293 {
13294 "result": {
13295 "success": "1",
13296 "error": {
13297 "code": "",
13298 "message": ""
13299 }
13300 },
13301 "Engagements": [
13302 {
13303 "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357",
13304 "Name": "Test engagement 3",
13305 "Metrics": [
13306 {
13307 "Name": "Attendance Status",
13308 "Type": "select",
13309 "Values": [
13310 {
13311 "text": "Attended",
13312 "value": "attended"
13313 },
13314 {
13315 "text": "Not Attended",
13316 "value": "not_attended"
13317 }
13318 ]
13319 },
13320 {
13321 "Name": "Price",
13322 "Type": "text"
13323 },
13324 {
13325 "Name": "Name",
13326 "Type": "select",
13327 "Values": [
13328 {
13329 "text": "Webinar 1",
13330 "value": "Webinar_1"
13331 },
13332 {
13333 "text": "Webinar 2",
13334 "value": "Webinar_2"
13335 }
13336 ]
13337 },
13338 {
13339 "Name": "Transaction Date",
13340 "Type": "text"
13341 },
13342 {
13343 "Name": "id",
13344 "Type": "text"
13345 },
13346 {
13347 "Name": "activity_time",
13348 "Type": "text"
13349 }
13350 ]
13351 }
13352 ]
13353 }
13354 {{/code}}
13355
13356
13357 (% id="HPOSTAddUsertoEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13358 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Add User to Engagement(%%) ==
13359
13360 ----
13361
13362 {{panel bgColor="#D3D3D3" width="100%"}}
13363 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/addUser
13364 {{/panel}}
13365
13366 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13367
13368 ----
13369
13370 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13371
13372 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13373
13374 ----
13375
13376 {{code language="yml" theme="RDark" title="Body"}}
13377 {"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","show id":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}
13378 {{/code}}
13379
13380 ==== Example ====
13381
13382 ----
13383
13384 (% style="color:#6b6b6b" %)Request
13385
13386 {{code language="php" theme="RDark" title="Add User to Engagement Request"}}
13387 <?php
13388
13389 $curl = curl_init();
13390
13391 curl_setopt_array($curl, array(
13392 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/addUser',
13393 CURLOPT_RETURNTRANSFER => true,
13394 CURLOPT_ENCODING => '',
13395 CURLOPT_MAXREDIRS => 10,
13396 CURLOPT_TIMEOUT => 0,
13397 CURLOPT_FOLLOWLOCATION => true,
13398 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13399 CURLOPT_CUSTOMREQUEST => 'POST',
13400 CURLOPT_POSTFIELDS =>'{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","show id":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}',
13401 CURLOPT_HTTPHEADER => array(
13402 'Appkey: {{ONECOUNT API KEY}}'
13403 ),
13404 ));
13405
13406 $response = curl_exec($curl);
13407
13408 curl_close($curl);
13409 echo $response;
13410 {{/code}}
13411
13412
13413 (% style="color:#6b6b6b" %)Response  200 OK
13414
13415 {{code language="yml" theme="RDark" collapse="true" title="Add Users to Engagement Response"}}
13416 {
13417 "result": {
13418 "success": "1",
13419 "error": {
13420 "code": "",
13421 "message": ""
13422 }
13423 },
13424 "Users": {
13425 "ocid": 1845775,
13426 "uuid": {
13427 "type": {
13428 "name": "uuid"
13429 },
13430 "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7",
13431 "version": 4
13432 },
13433 "blacklisted": null,
13434 "demo": {
13435 "1": "rayaan@one-count.com",
13436 "2": "user_1701788987",
13437 "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5"
13438 },
13439 "email": "rayaan@one-count.com",
13440 "espid": null,
13441 "known": {
13442 "type": {
13443 "name": "smallint"
13444 },
13445 "value": "1"
13446 },
13447 "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b",
13448 "partners_hash": null,
13449 "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5",
13450 "payment_cc_exp": null,
13451 "payment_vendor_token": null,
13452 "products": {
13453 "599": "447"
13454 },
13455 "remarks": null,
13456 "resources": null,
13457 "smartlink_hash": null,
13458 "subscription_active_resource_info": null,
13459 "subscription_active_term_info": {
13460 "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}"
13461 },
13462 "subscription_log": {
13463 "type": {
13464 "valueType": {
13465 "name": "varchar"
13466 }
13467 },
13468 "values": [
13469 "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:09:01\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702303741,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}",
13470 "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:20:49\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702304449,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}",
13471 "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:34:26\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702305266,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}"
13472 ]
13473 },
13474 "subscription_log_by_resource": null,
13475 "subscription_source_code": [
13476 "83"
13477 ],
13478 "targets": null,
13479 "timestamp": {
13480 "type": {
13481 "name": "bigint"
13482 },
13483 "value": "1701788987"
13484 },
13485 "unconfirmed": null,
13486 "update_time": null,
13487 "username": "user_1701788987",
13488 "vendor_blacklisted": null,
13489 "vendor_esp": null,
13490 "vendor_unconfirmed": null
13491 }
13492 }
13493 {{/code}}
13494
13495
13496 (% id="HCOMPONENT:Segments" class="western" %)
13497 === **COMPONENT: Segments** ===
13498
13499 *
13500 ** ===
13501
13502 (% class="western" %)
13503 This resource is for manipulating segment for a resource. A segment can be searched (or) add users to segment (or)  get all segment for a user.
13504
13505 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13506 (((
13507 (% class="western" %)
13508 **Method**
13509 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13510 (((
13511 (% class="western" %)
13512 **Url**
13513 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13514 (((
13515 (% class="western" %)
13516 **Action**
13517 )))
13518 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13519 (((
13520 (% class="western" %)
13521 GET
13522 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13523 (((
13524 (% class="western" %)
13525 /(% style="color:#212121" %)segments
13526 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13527 (((
13528 (% class="western" %)
13529 Get all segments.
13530 )))
13531 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13532 (((
13533 (% class="western" %)
13534 GET
13535 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13536 (((
13537 (% class="western" %)
13538 /(% style="color:#212121" %)segments(%%)/(% class="resolvedVariable" style="text-decoration:none" %)~{~{Segment id}}
13539 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13540 (((
13541 (% class="western" %)
13542 Get specific segment based on segment id.
13543 )))
13544 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13545 (((
13546 (% class="western" %)
13547 POST
13548 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13549 (((
13550 (% class="western" %)
13551 /(% style="color:#212121" %)segments/addUsers
13552 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13553 (((
13554 (% class="western" %)
13555 Add users to segment.
13556 )))
13557 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13558 (((
13559 (% class="western" %)
13560 GET
13561 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13562 (((
13563 (% class="western" %)
13564 /(% style="color:#212121" %)segments/users/(% class="resolvedVariable" style="text-decoration:none" %)~{~{ocid}}
13565 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13566 (((
13567 (% class="western" %)
13568 Get all segment user has be subscribed based on user id.
13569 )))
13570
13571
13572 (% id="HGETAllSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13573 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Segments(%%) ==
13574
13575 ----
13576
13577 ----
13578
13579 {{panel bgColor="#D3D3D3" width="100%"}}
13580 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments
13581 {{/panel}}
13582
13583 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13584
13585 ----
13586
13587 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13588
13589 ==== Example ====
13590
13591 ----
13592
13593 (% style="color:#6b6b6b" %)Request
13594
13595 {{code language="php" theme="RDark" title="Get All Segments Request"}}
13596 <?php
13597
13598 $curl = curl_init();
13599
13600 curl_setopt_array($curl, array(
13601 CURLOPT_URL => 'https://api.onecount.net/v2/segments',
13602 CURLOPT_RETURNTRANSFER => true,
13603 CURLOPT_ENCODING => '',
13604 CURLOPT_MAXREDIRS => 10,
13605 CURLOPT_TIMEOUT => 0,
13606 CURLOPT_FOLLOWLOCATION => true,
13607 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13608 CURLOPT_CUSTOMREQUEST => 'GET',
13609 CURLOPT_HTTPHEADER => array(
13610 'Appkey: {{ONECOUNT API KEY}}'
13611 ),
13612 ));
13613
13614 $response = curl_exec($curl);
13615
13616 curl_close($curl);
13617 echo $response;
13618 {{/code}}
13619
13620
13621 (% style="color:#6b6b6b" %)Response  200 OK
13622
13623 {{code language="yml" theme="RDark" collapse="true" title="Get All Segments Response"}}
13624 {
13625 "result": {
13626 "success": "1",
13627 "error": {
13628 "code": "",
13629 "message": ""
13630 }
13631 },
13632 "Segments": [
13633 {
13634 "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43",
13635 "Name": "2022 Use Cases PDF Download"
13636 },
13637 {
13638 "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
13639 "Name": "58-percent conversion-rate"
13640 },
13641 {
13642 "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138",
13643 "Name": "Audience Marketing Pop-Up"
13644 },
13645 {
13646 "Id": "68219b37-c155-4459-a5ce-497261286ffe",
13647 "Name": "Bold Minds Reminders"
13648 },
13649 {
13650 "Id": "6450defc-7658-4182-9c2a-a8f8420f801e",
13651 "Name": "Demo - Aviator's Guide - NL Popup"
13652 },
13653 {
13654 "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0",
13655 "Name": "Getting 80-Percent Conversion Rates Pop-up"
13656 },
13657 {
13658 "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
13659 "Name": "Holiday Special Offer - 3 mo. Pilot"
13660 },
13661 {
13662 "Id": "16305ad0-8e65-4085-942e-04d99fd39207",
13663 "Name": "Identity Resolution Test II"
13664 },
13665 {
13666 "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3",
13667 "Name": "Live ONEcount Popup Example Segment"
13668 },
13669 {
13670 "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a",
13671 "Name": "Live webinar - June 15 - Accelerate Revenue"
13672 },
13673 {
13674 "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de",
13675 "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign"
13676 },
13677 {
13678 "Id": "d883ecdb-5307-416d-9558-c196472021c9",
13679 "Name": "New Year - Increase Revenue 30-Percent"
13680 },
13681 {
13682 "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73",
13683 "Name": "OC Test"
13684 },
13685 {
13686 "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
13687 "Name": "Something big"
13688 },
13689 {
13690 "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
13691 "Name": "Something No Other Platform Has"
13692 },
13693 {
13694 "Id": "5eaa0345-a825-4ba0-a787-336312a77744",
13695 "Name": "Something Revolutionary"
13696 },
13697 {
13698 "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
13699 "Name": "Something that will change your life"
13700 },
13701 {
13702 "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
13703 "Name": "Something You Have Always Wanted"
13704 },
13705 {
13706 "Id": "28361c73-e253-49bb-a791-5481be2070a0",
13707 "Name": "Something You Never Thought Possible"
13708 },
13709 {
13710 "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814",
13711 "Name": "Test behaviour "
13712 },
13713 {
13714 "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13715 "Name": "Test behaviour banner segment"
13716 },
13717 {
13718 "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561",
13719 "Name": "Test behaviour combo"
13720 },
13721 {
13722 "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a",
13723 "Name": "Test behaviour content"
13724 },
13725 {
13726 "Id": "89424642-1363-476e-9842-4f0a2544151f",
13727 "Name": "Test behaviour email"
13728 },
13729 {
13730 "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c",
13731 "Name": "Test demographic segments"
13732 },
13733 {
13734 "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd",
13735 "Name": "Test with unknown only selecting all filters"
13736 }
13737 ]
13738 }
13739 {{/code}}
13740
13741
13742 (% id="HGETspecificSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13743 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Segments(%%) ==
13744
13745 ----
13746
13747 {{panel bgColor="#D3D3D3" width="100%"}}
13748 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments/~{~{segment id}}
13749 {{/panel}}
13750
13751 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13752
13753 ----
13754
13755 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13756
13757 ==== Example ====
13758
13759 ----
13760
13761 (% style="color:#6b6b6b" %)Request
13762
13763 {{code language="php" theme="RDark" title="Get specific Segment Request"}}
13764 <?php
13765
13766 $curl = curl_init();
13767
13768 curl_setopt_array($curl, array(
13769 CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}',
13770 CURLOPT_RETURNTRANSFER => true,
13771 CURLOPT_ENCODING => '',
13772 CURLOPT_MAXREDIRS => 10,
13773 CURLOPT_TIMEOUT => 0,
13774 CURLOPT_FOLLOWLOCATION => true,
13775 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13776 CURLOPT_CUSTOMREQUEST => 'GET',
13777 CURLOPT_HTTPHEADER => array(
13778 'Appkey: {{ONECOUNT API KEY}}'
13779 ),
13780 ));
13781
13782 $response = curl_exec($curl);
13783
13784 curl_close($curl);
13785 echo $response;
13786 {{/code}}
13787
13788
13789 (% style="color:#6b6b6b" %)Response  200 OK
13790
13791 {{code language="yml" theme="RDark" collapse="true" title="Get specific Segments Response"}}
13792 {
13793 "result": {
13794 "success": "1",
13795 "error": {
13796 "code": "",
13797 "message": ""
13798 }
13799 },
13800 "Segments": {
13801 "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13802 "Demos": {
13803 "_empty_": [],
13804 "type": ""
13805 },
13806 "Description": "",
13807 "Action": {
13808 "action": {}
13809 },
13810 "Name": "Test behaviour banner segment",
13811 "Behaviours": [
13812 {
13813 "end_date": "05/26/2022",
13814 "date_type": "Future",
13815 "sub_category_values": [],
13816 "sub_category": "clicked",
13817 "category": "1",
13818 "targets": [
13819 "all"
13820 ],
13821 "joining_logic": "AND",
13822 "frequency": "1",
13823 "start_date": "04/26/2022",
13824 "day_count": "100"
13825 }
13826 ],
13827 "Accounts": []
13828 }
13829 }
13830 {{/code}}
13831
13832
13833 (% id="HPOSTAdduserstosegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13834 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Add users to segments(%%) ==
13835
13836 ----
13837
13838 {{panel bgColor="#D3D3D3" width="100%"}}
13839 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/addUsers
13840 {{/panel}}
13841
13842 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13843
13844 ----
13845
13846 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13847
13848 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13849
13850 ----
13851
13852 {{code language="yml" theme="RDark" title="Body"}}
13853 {"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}
13854 {{/code}}
13855
13856 ==== Example ====
13857
13858 ----
13859
13860 (% style="color:#6b6b6b" %)Request
13861
13862 {{code language="php" theme="RDark" title="Add users to Segment Request"}}
13863 <?php
13864
13865 $curl = curl_init();
13866
13867 curl_setopt_array($curl, array(
13868 CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers',
13869 CURLOPT_RETURNTRANSFER => true,
13870 CURLOPT_ENCODING => '',
13871 CURLOPT_MAXREDIRS => 10,
13872 CURLOPT_TIMEOUT => 0,
13873 CURLOPT_FOLLOWLOCATION => true,
13874 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13875 CURLOPT_CUSTOMREQUEST => 'POST',
13876 CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}',
13877 CURLOPT_HTTPHEADER => array(
13878 'Appkey: {{ONECOUNT API KEY}}',
13879 'Content-Type: application/json'
13880 ),
13881 ));
13882
13883 $response = curl_exec($curl);
13884
13885 curl_close($curl);
13886 echo $response;
13887 {{/code}}
13888
13889
13890 (% style="color:#6b6b6b" %)Response  200 OK
13891
13892 {{code language="yml" theme="RDark" collapse="true" title="Add users to segment Response"}}
13893 {
13894 "result": {
13895 "success": "1",
13896 "error": {
13897 "code": "",
13898 "message": ""
13899 }
13900 },
13901 "Segments": {
13902 "Error user ids": [
13903 676172,
13904 2134321
13905 ],
13906 "Inserted user ids": [
13907 164499
13908 ]
13909 }
13910 }
13911 {{/code}}
13912
13913
13914 (% id="HGETallsegmentsforaUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13915 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)all segments for a User(%%) ==
13916
13917 ----
13918
13919 {{panel bgColor="#D3D3D3" width="100%"}}
13920 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration:none" %)~{~{ocid}}
13921 {{/panel}}
13922
13923 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13924
13925 ----
13926
13927 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey                                                                                                 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}
13928
13929 ==== Example ====
13930
13931 ----
13932
13933 (% style="color:#6b6b6b" %)Request
13934
13935 {{code language="php" theme="RDark" title="Get all segments for a user Request"}}
13936 <?php
13937
13938 $curl = curl_init();
13939
13940 curl_setopt_array($curl, array(
13941 CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••',
13942 CURLOPT_RETURNTRANSFER => true,
13943 CURLOPT_ENCODING => '',
13944 CURLOPT_MAXREDIRS => 10,
13945 CURLOPT_TIMEOUT => 0,
13946 CURLOPT_FOLLOWLOCATION => true,
13947 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13948 CURLOPT_CUSTOMREQUEST => 'GET',
13949 CURLOPT_HTTPHEADER => array(
13950 'Appkey: {{ONECOUNT API KEY}}'
13951 ),
13952 ));
13953
13954 $response = curl_exec($curl);
13955
13956 curl_close($curl);
13957 echo $response;
13958 {{/code}}
13959
13960
13961 (% style="color:#6b6b6b" %)Response  200 OK
13962
13963 {{code language="yml" theme="RDark" collapse="true" title="Get all Segments for a user Response"}}
13964 {
13965 "result": {
13966 "success": "1",
13967 "error": {
13968 "code": "",
13969 "message": ""
13970 }
13971 },
13972 "Segments": [
13973 "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
13974 "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
13975 "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
13976 "28361c73-e253-49bb-a791-5481be2070a0",
13977 "28774f7c-9fd3-4dff-a42e-683460f437c0",
13978 "5eaa0345-a825-4ba0-a787-336312a77744",
13979 "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
13980 "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
13981 "bcb403a2-c0a1-414f-90c1-277a41009c97",
13982 "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
13983 "d883ecdb-5307-416d-9558-c196472021c9",
13984 "d8d1bc9d-ede2-4c82-a747-10ab9fb979de"
13985 ]
13986 }
13987 {{/code}}
13988
13989
13990 (% id="HCOMPONENT:Leads" class="western" %)
13991 === **COMPONENT: Leads** ===
13992
13993 *
13994 ** ===
13995
13996 (% class="western" %)
13997 Stats resource can be used to submit any type of stat collected on the third party systems. Each type of stat will be represented by a sub-resource. So, for telemarketing it could be **/stats/telemarketing** endpoint, for videos it can be **/stats/videos**, for webinar it could be **/stats/webinars** etc. Right now we only have telemarketing sub-resource.
13998
13999 (% class="western" %)
14000 **Telemarketing Leads**
14001
14002
14003 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed.
14004
14005 (% class="wrapped" %)
14006 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14007 (((
14008 (% class="western" %)
14009 **Method**
14010 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14011 (((
14012 (% class="western" %)
14013 **Url**
14014 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14015 (((
14016 (% class="western" %)
14017 **Action**
14018 )))
14019 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14020 (((
14021 (% class="western" %)
14022 GET
14023 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14024 (((
14025 (% class="western" %)
14026 /stats/telemarketing
14027 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14028 (((
14029 (% class="western" %)
14030 List telemarketing stats
14031 )))
14032 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14033 (((
14034 (% class="western" %)
14035 GET
14036 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14037 (((
14038 (% class="western" %)
14039 /stats/telemarketing/1000
14040 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14041 (((
14042 (% class="western" %)
14043 Get telemarketing stat whose id is 1000 in the system.
14044 )))
14045 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14046 (((
14047 (% class="western" %)
14048 POST
14049 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14050 (((
14051 (% class="western" %)
14052 /stats/telemarketing
14053 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14054 (((
14055 (% class="western" %)
14056 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent.
14057 )))
14058
14059
14060 (% class="western" %)
14061 POST method can be used to create telemarketing stat. Telemarketing info needs to be sent as request and an Id will be returned when the transaction is created.
14062
14063 (% class="wrapped" %)
14064 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14065 (((
14066 (% class="western" %)
14067 **Request**
14068 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14069 (((
14070 (% class="western" %)
14071 **Type**
14072 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14073 (((
14074 (% class="western" %)
14075 **Description**
14076 )))
14077 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14078 (((
14079 (% class="western" %)
14080 Telemarketing
14081 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14082 (((
14083 (% class="western" %)
14084 Telemarketing
14085 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14086 (((
14087 (% class="western" %)
14088 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section.
14089
14090 (% class="western" %)
14091 Workflow: OCID: This id is required field. This represents the unique id of the user in onecount system. This id can be looked up from the /user/lookup resource if the ocid is not known by providing user demographic questions, if not found new user needs to be created in the onecount system by posting the user demographic from /user resource. If the ocid is found send the demo data to user resource (PUT) to update the demographic information.
14092
14093 (% class="western" %)
14094 E.g
14095
14096 (% class="western" %)
14097 {
14098
14099 (% class="western" %)
14100 "Telemarketing":[
14101
14102 (% class="western" %)
14103 {
14104
14105 (% class="western" %)
14106 "OCID":"5000",
14107
14108 (% class="western" %)
14109 "Date": "2016-01-01",
14110
14111 (% class="western" %)
14112 "Time": "10:10:10",
14113
14114 (% class="western" %)
14115 "ResourceId":"250",
14116
14117 (% class="western" %)
14118 "PageUrl": "[[http:~~/~~/www.one-count.com/detail/a.php>>url:http://www.one-count.com/detail/a.php||rel="nofollow" shape="rect" class="external-link"]]",
14119
14120 (% class="western" %)
14121 "PageTitle":"tests"
14122
14123 (% class="western" %)
14124 }
14125
14126 (% class="western" %)
14127 ]
14128
14129 (% class="western" %)
14130 }
14131 )))
14132 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14133 (((
14134 (% class="western" %)
14135
14136 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14137 (((
14138 (% class="western" %)
14139
14140 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14141 (((
14142 (% class="western" %)
14143
14144 )))
14145
14146 (% class="wrapped" %)
14147 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14148 (((
14149 (% class="western" %)
14150 **Response**
14151 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14152 (((
14153 (% class="western" %)
14154 **Type**
14155 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14156 (((
14157 (% class="western" %)
14158 **Description**
14159 )))
14160 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14161 (((
14162 (% class="western" %)
14163 Ids
14164 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14165 (((
14166 (% class="western" %)
14167 String
14168 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14169 (((
14170 (% class="western" %)
14171 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format.
14172 )))
14173
14174
14175 (% class="western" %)
14176 **API REFERENCE**
14177
14178 (% class="western" %)
14179 **Type: Questions**
14180
14181 (% class="wrapped" %)
14182 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14183 (((
14184 (% class="western" %)
14185 **Property Name**
14186 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14187 (((
14188 (% class="western" %)
14189 **Type**
14190 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14191 (((
14192 (% class="western" %)
14193 **Description**
14194 )))
14195 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14196 (((
14197 (% class="western" %)
14198 Id
14199 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14200 (((
14201 (% class="western" %)
14202 Int
14203 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14204 (((
14205 (% class="western" %)
14206 Id of the question.
14207 )))
14208 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14209 (((
14210 (% class="western" %)
14211 Text
14212 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14213 (((
14214 (% class="western" %)
14215 String
14216 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14217 (((
14218 (% class="western" %)
14219 Text of the question.
14220 )))
14221 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14222 (((
14223 (% class="western" %)
14224 Type
14225 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14226 (((
14227 (% class="western" %)
14228 Int
14229 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14230 (((
14231 (% class="western" %)
14232 Determines which type of question it is. Textbox, checkbox, select, radio.
14233 There can be 6 types of questions.
14234 type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
14235 type=2 means textarea type question or long response type question.
14236 type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
14237 type = 4 means select or dropdown type questions. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the select question.
14238 type=5 means radio button type question. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the radio question.
14239 type=6 means checkbox type question. This is a multiple choice, multi response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the checkbox question.
14240 )))
14241 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14242 (((
14243 (% class="western" %)
14244 Choices
14245 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14246 (((
14247 (% class="western" %)
14248 choices
14249 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14250 (((
14251 (% class="western" %)
14252 If multiple choice question this field will have the choices.
14253 )))
14254 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14255 (((
14256 (% class="western" %)
14257 Alias
14258 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14259 (((
14260 (% class="western" %)
14261 String
14262 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14263 (((
14264 (% class="western" %)
14265 Alias for admin purpose.
14266 )))
14267
14268
14269
14270 (% class="western" %)
14271 **Type: Choices**
14272
14273 (% class="wrapped" %)
14274 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14275 (((
14276 (% class="western" %)
14277 **Property Name**
14278 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14279 (((
14280 (% class="western" %)
14281 **Type**
14282 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14283 (((
14284 (% class="western" %)
14285 **Description**
14286 )))
14287 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14288 (((
14289 (% class="western" %)
14290 Id
14291 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14292 (((
14293 (% class="western" %)
14294 int
14295 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14296 (((
14297 (% class="western" %)
14298 Id of the choice.
14299 )))
14300 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14301 (((
14302 (% class="western" %)
14303 Text
14304 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14305 (((
14306 (% class="western" %)
14307 string
14308 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14309 (((
14310 (% class="western" %)
14311 Display text of choice.
14312 )))
14313 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14314 (((
14315 (% class="western" %)
14316 Value
14317 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14318 (((
14319 (% class="western" %)
14320 String
14321 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14322 (((
14323 (% class="western" %)
14324 Value stored in db.
14325 )))
14326 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14327 (((
14328 (% class="western" %)
14329 Order
14330 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14331 (((
14332 (% class="western" %)
14333 Int
14334 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14335 (((
14336 (% class="western" %)
14337 Display order.
14338 )))
14339 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14340 (((
14341 (% class="western" %)
14342 QuestionId
14343 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14344 (((
14345 (% class="western" %)
14346 Int
14347 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14348 (((
14349 (% class="western" %)
14350 Tied to which question id.
14351 )))
14352
14353
14354 (% class="western" %)
14355 **Type: Users**
14356
14357 (% class="wrapped" %)
14358 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14359 (((
14360 (% class="western" %)
14361 **Property Name**
14362 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14363 (((
14364 (% class="western" %)
14365 **Type**
14366 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14367 (((
14368 (% class="western" %)
14369 **Description**
14370 )))
14371 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14372 (((
14373 (% class="western" %)
14374 Id
14375 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14376 (((
14377 (% class="western" %)
14378 Int
14379 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14380 (((
14381 (% class="western" %)
14382 ID of the user in ONEcount.
14383 )))
14384 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14385 (((
14386 (% class="western" %)
14387 PartnerId
14388 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14389 (((
14390 (% class="western" %)
14391 Int
14392 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14393 (((
14394 (% class="western" %)
14395 ID of the user in partners system (e.g. id of your system).
14396 )))
14397 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14398 (((
14399 (% class="western" %)
14400 Demo
14401 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14402 (((
14403 (% class="western" %)
14404 Demo
14405 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14406 (((
14407 (% class="western" %)
14408 Object of user's demo question ids and respective response values.
14409 )))
14410 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14411 (((
14412 (% class="western" %)
14413 RequestDate
14414 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14415 (((
14416 (% class="western" %)
14417 Date
14418 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14419 (((
14420 (% class="western" %)
14421 Request date.
14422 )))
14423
14424
14425 (% class="western" %)
14426 **Type: Demo**
14427
14428 (% class="wrapped" %)
14429 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14430 (((
14431 (% class="western" %)
14432 **Property Name**
14433 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14434 (((
14435 (% class="western" %)
14436 **Type**
14437 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14438 (((
14439 (% class="western" %)
14440 **Description**
14441 )))
14442 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14443 (((
14444 (% class="western" %)
14445 QuestionId (e.g 6)
14446 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14447 (((
14448 (% class="western" %)
14449 String
14450 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14451 (((
14452 (% class="western" %)
14453 6 is the value of “Id” property of question resource(Text = “First Name”)
14454 )))
14455 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14456 (((
14457 (% class="western" %)
14458 QuestionId (e.g 7)
14459 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14460 (((
14461 (% class="western" %)
14462 String
14463 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14464 (((
14465 (% class="western" %)
14466 7 is the value of “Id” property of question resource(Text = “Last Name”)
14467 )))
14468 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14469 (((
14470 (% class="western" %)
14471 ...
14472 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14473 (((
14474 (% class="western" %)
14475 ...
14476 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14477 (((
14478 (% class="western" %)
14479 ...
14480 )))
14481
14482
14483 (% class="western" %)
14484 **Type: Transactions**
14485
14486 (% class="wrapped" %)
14487 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14488 (((
14489 (% class="western" %)
14490 **Property Name**
14491 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14492 (((
14493 (% class="western" %)
14494 **Type**
14495 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14496 (((
14497 (% class="western" %)
14498 **Description**
14499 )))
14500 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14501 (((
14502 (% class="western" %)
14503 Id
14504 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14505 (((
14506 (% class="western" %)
14507 Int
14508 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14509 (((
14510 (% class="western" %)
14511 ID of the transaction.
14512 )))
14513 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14514 (((
14515 (% class="western" %)
14516 UserId
14517 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14518 (((
14519 (% class="western" %)
14520 Int
14521 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14522 (((
14523 (% class="western" %)
14524 Id of user in ONEcount.
14525 )))
14526 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14527 (((
14528 (% class="western" %)
14529 TermId
14530 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14531 (((
14532 (% class="western" %)
14533 Int
14534 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14535 (((
14536 (% class="western" %)
14537 TermId in ONEcount.
14538 )))
14539 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14540 (((
14541 (% class="western" %)
14542 ProductStatus
14543 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14544 (((
14545 (% class="western" %)
14546 Int
14547 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14548 (((
14549 (% class="western" %)
14550 Status ID.
14551 )))
14552 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14553 (((
14554 (% class="western" %)
14555 SubscriptionType
14556 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14557 (((
14558 (% class="western" %)
14559 Char
14560 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14561 (((
14562 (% class="western" %)
14563 Can be n,r or u for new, renew or unsubscribe.
14564 )))
14565 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14566 (((
14567 (% class="western" %)
14568 TransactionDate
14569 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14570 (((
14571 (% class="western" %)
14572 Date
14573 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14574 (((
14575 (% class="western" %)
14576 Date when the transaction occurred.
14577 )))
14578 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14579 (((
14580 (% class="western" %)
14581 TransactionTime
14582 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14583 (((
14584 (% class="western" %)
14585 Time
14586 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14587 (((
14588 (% class="western" %)
14589 Time of transaction.
14590 )))
14591 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14592 (((
14593 (% class="western" %)
14594 RequestDate
14595 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14596 (((
14597 (% class="western" %)
14598 Date
14599 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14600 (((
14601 (% class="western" %)
14602 The effective request date for the transaction.
14603 )))
14604 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14605 (((
14606 (% class="western" %)
14607 UserIP
14608 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14609 (((
14610 (% class="western" %)
14611 String
14612 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14613 (((
14614 (% class="western" %)
14615 IP of the user.
14616 )))
14617 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14618 (((
14619 (% class="western" %)
14620 Source
14621 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14622 (((
14623 (% class="western" %)
14624 String
14625 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14626 (((
14627 (% class="western" %)
14628 The transaction needs to be tied to a source code this will define it.
14629 )))
14630 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14631 (((
14632 (% class="western" %)
14633 MediaFilePath
14634 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14635 (((
14636 (% class="western" %)
14637 String
14638 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14639 (((
14640 (% class="western" %)
14641 The url of media associated with that transaction. Eg image, audio.
14642 )))
14643 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14644 (((
14645 (% class="western" %)
14646 ExpireDate
14647 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14648 (((
14649 (% class="western" %)
14650 Date
14651 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14652 (((
14653 (% class="western" %)
14654 Date when the subscription expires.
14655 )))
14656 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14657 (((
14658 (% class="western" %)
14659 Amount
14660 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14661 (((
14662 (% class="western" %)
14663 Float
14664 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14665 (((
14666 (% class="western" %)
14667 If there is amount (USD) included in transaction.
14668 )))
14669
14670
14671 (% class="western" %)
14672 **Type: Sources**
14673
14674 (% class="wrapped" %)
14675 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14676 (((
14677 (% class="western" %)
14678 **Property Name**
14679 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14680 (((
14681 (% class="western" %)
14682 **Type**
14683 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14684 (((
14685 (% class="western" %)
14686 **Description**
14687 )))
14688 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14689 (((
14690 (% class="western" %)
14691 Id
14692 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14693 (((
14694 (% class="western" %)
14695 Int
14696 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14697 (((
14698 (% class="western" %)
14699 Id of the source.
14700 )))
14701 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14702 (((
14703 (% class="western" %)
14704 Source
14705 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14706 (((
14707 (% class="western" %)
14708 String
14709 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14710 (((
14711 (% class="western" %)
14712 Value of the source.
14713 )))
14714 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14715 (((
14716 (% class="western" %)
14717 Description
14718 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14719 (((
14720 (% class="western" %)
14721 Text
14722 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14723 (((
14724 (% class="western" %)
14725 Description of the source.
14726 )))
14727 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14728 (((
14729 (% class="western" %)
14730 ParentId
14731 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14732 (((
14733 (% class="western" %)
14734 int
14735 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14736 (((
14737 (% class="western" %)
14738 If this is a child source then list the parent source id.
14739 )))
14740
14741
14742 (% class="western" %)
14743 **Type: Products**
14744
14745 (% class="wrapped" %)
14746 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14747 (((
14748 (% class="western" %)
14749 **Property Name**
14750 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14751 (((
14752 (% class="western" %)
14753 **Type**
14754 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14755 (((
14756 (% class="western" %)
14757 **Description**
14758 )))
14759 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14760 (((
14761 (% class="western" %)
14762 Id
14763 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14764 (((
14765 (% class="western" %)
14766 Int
14767 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14768 (((
14769 (% class="western" %)
14770 Specify only for update.
14771 )))
14772 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14773 (((
14774 (% class="western" %)
14775 Name
14776 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14777 (((
14778 (% class="western" %)
14779 String
14780 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14781 (((
14782 (% class="western" %)
14783 Name of the Product.
14784 )))
14785 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14786 (((
14787 (% class="western" %)
14788 Description
14789 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14790 (((
14791 (% class="western" %)
14792 Text
14793 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14794 (((
14795 (% class="western" %)
14796 Description of the product.
14797 )))
14798 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14799 (((
14800 (% class="western" %)
14801 Terms
14802 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14803 (((
14804 (% class="western" %)
14805 Terms
14806 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14807 (((
14808 (% class="western" %)
14809 (Array of) Terms associated with the product.
14810 )))
14811
14812
14813 (% class="western" %)
14814 **Type: Terms**
14815
14816 (% class="wrapped" %)
14817 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14818 (((
14819 (% class="western" %)
14820 **Property Name**
14821 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14822 (((
14823 (% class="western" %)
14824 **Type**
14825 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14826 (((
14827 (% class="western" %)
14828 **Description**
14829 )))
14830 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14831 (((
14832 (% class="western" %)
14833 Id
14834 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14835 (((
14836 (% class="western" %)
14837 int
14838 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14839 (((
14840 (% class="western" %)
14841 Id of the term.
14842 )))
14843 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14844 (((
14845 (% class="western" %)
14846 Name
14847 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14848 (((
14849 (% class="western" %)
14850 string
14851 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14852 (((
14853 (% class="western" %)
14854 Name of the Term.
14855 )))
14856 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14857 (((
14858 (% class="western" %)
14859 Description
14860 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14861 (((
14862 (% class="western" %)
14863 text
14864 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14865 (((
14866 (% class="western" %)
14867 Description of the term.
14868 )))
14869 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14870 (((
14871 (% class="western" %)
14872 Duration
14873 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14874 (((
14875 (% class="western" %)
14876 int
14877 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14878 (((
14879 (% class="western" %)
14880 Duration of term validity.
14881 )))
14882 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14883 (((
14884 (% class="western" %)
14885 DurationUnit
14886 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14887 (((
14888 (% class="western" %)
14889 sting
14890 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14891 (((
14892 (% class="western" %)
14893 Y (year), M (Month), D (Days).
14894 )))
14895 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14896 (((
14897 (% class="western" %)
14898 ProductId
14899 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14900 (((
14901 (% class="western" %)
14902 int
14903 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14904 (((
14905 (% class="western" %)
14906 Id of the product the term is tied to.
14907 )))
14908 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14909 (((
14910 (% class="western" %)
14911 Price
14912 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14913 (((
14914 (% class="western" %)
14915 float
14916 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14917 (((
14918 (% class="western" %)
14919 If there is price (USD) for the term.
14920 )))
14921
14922
14923 (% class="western" %)
14924 **Type: Resources**
14925
14926 (% class="wrapped" %)
14927 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14928 (((
14929 (% class="western" %)
14930 **Property Name**
14931 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14932 (((
14933 (% class="western" %)
14934 **Type**
14935 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14936 (((
14937 (% class="western" %)
14938 **Description**
14939 )))
14940 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14941 (((
14942 (% class="western" %)
14943 Id
14944 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14945 (((
14946 (% class="western" %)
14947 Int
14948 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14949 (((
14950 (% class="western" %)
14951 Specify only for update.
14952 )))
14953 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14954 (((
14955 (% class="western" %)
14956 Name
14957 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14958 (((
14959 (% class="western" %)
14960 String
14961 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14962 (((
14963 (% class="western" %)
14964 Name of the Resource.
14965 )))
14966 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14967 (((
14968 (% class="western" %)
14969 Description
14970 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14971 (((
14972 (% class="western" %)
14973 Text
14974 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14975 (((
14976 (% class="western" %)
14977 Description of the Resource.
14978 )))
14979 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14980 (((
14981 (% class="western" %)
14982 Type
14983 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14984 (((
14985 (% class="western" %)
14986 Int
14987 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14988 (((
14989 (% class="western" %)
14990 Type Options
14991
14992 (% class="western" %)
14993 **0** : File
14994
14995 (% class="western" %)
14996 **2 : **Newsletter
14997
14998 (% class="western" %)
14999 **3 : **Section
15000
15001 (% class="western" %)
15002 **4 : **Page
15003
15004 (% class="western" %)
15005 **5 : **Function
15006 )))
15007 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15008 (((
15009 (% class="western" %)
15010 Value
15011 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15012 (((
15013 (% class="western" %)
15014 String
15015
15016 (% class="western" %)
15017 or
15018
15019 (% class="western" %)
15020 Array
15021 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15022 (((
15023 (% class="western" %)
15024 Value of Resource Type:
15025
15026 (% class="western" %)
15027 When requesting a resource (GET), you should expect a string if there is only one value. If there are multiple values, you should expect an array.
15028
15029 (% class="western" %)
15030 For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests.
15031
15032 (% class="western" %)
15033 Example :
15034
15035 (% class="western" %)
15036 if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].**
15037 if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"]
15038
15039 (% class="western" %)
15040 For Function type resource leave it blank.
15041 )))
15042 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15043 (((
15044 (% class="western" %)
15045 limit
15046 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15047 (((
15048 (% class="western" %)
15049 Int
15050 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15051 (((
15052 (% class="western" %)
15053 Default limit is 25 but if all the data needs to be pulled then pass limit=0.
15054 )))
15055 |(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15056 (((
15057 FreePass
15058 )))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15059 (((
15060 Int
15061 )))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15062 (((
15063 Default value is 0. This parameter is used to provide access to protected content.
15064 )))
15065
15066
15067 (% class="western" %)
15068 **Type: Telemarketing**
15069
15070 (% class="wrapped" %)
15071 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15072 (((
15073 (% class="western" %)
15074 **Property Name**
15075 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15076 (((
15077 (% class="western" %)
15078 **Type**
15079 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15080 (((
15081 (% class="western" %)
15082 **Description**
15083 )))
15084 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15085 (((
15086 (% class="western" %)
15087 Id
15088 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15089 (((
15090 (% class="western" %)
15091 int
15092 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15093 (((
15094 (% class="western" %)
15095 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat.
15096 )))
15097 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15098 (((
15099 (% class="western" %)
15100 OCID
15101 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15102 (((
15103 (% class="western" %)
15104 int
15105 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15106 (((
15107 (% class="western" %)
15108 Onecount ID of the user.
15109 )))
15110 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15111 (((
15112 (% class="western" %)
15113 Date
15114 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15115 (((
15116 (% class="western" %)
15117 Date
15118 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15119 (((
15120 (% class="western" %)
15121 Date when the stat occurred. Format: yyyy-mm-dd
15122 )))
15123 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15124 (((
15125 (% class="western" %)
15126 Time
15127 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15128 (((
15129 (% class="western" %)
15130 Time
15131 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15132 (((
15133 (% class="western" %)
15134 Time of stat. Format: h:m:s (24 hour format)
15135 )))
15136 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15137 (((
15138 (% class="western" %)
15139 ResourceId
15140 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15141 (((
15142 (% class="western" %)
15143 int
15144 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15145 (((
15146 (% class="western" %)
15147 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send
15148
15149 (% class="western" %)
15150 PageTitle otherwise it will follow the process described in PageTitle.
15151 )))
15152 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15153 (((
15154 (% class="western" %)
15155 PageUrl
15156 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15157 (((
15158 (% class="western" %)
15159 string
15160 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15161 (((
15162 (% class="western" %)
15163 Page Url belongs to resource that is being sent with this request. If the resource is file type then it needs to be path to that file and if the resource is section it needs to be section. Basically the value here needs to exact what is defined while creating resource.
15164 )))
15165 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15166 (((
15167 (% class="western" %)
15168 PageTitle
15169 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15170 (((
15171 (% class="western" %)
15172 string
15173 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15174 (((
15175 (% class="western" %)
15176 Page title that belongs to the page url that is being sent. If not provided it try to pull the title from the page but if unsuccessful then it will set it as blank.
15177
15178
15179 (% class="western" %)
15180 If the page url already exists and it doesn't match with the one that is being sent then it will throw conflict error with the title in our system.
15181 )))
15182
15183