Wiki source code of ONEcount API Documentation

Version 10.1 by Rayaan Ahmed on 2024/02/27 18:43

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 (% class="western" %)
69 **Accessing API**
70
71 (% class="western" %)
72 **REST API URL: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/||rel="nofollow" shape="rect" class="external-link"]]**
73
74 (% class="western" %)
75 **Appkey**: THIS WILL BE PROVIDED TO YOU
76
77
78 (% class="western" %)
79 Your HTTP requests to a REST API resource should contain the following information:
80
81 * (((
82 (% class="western" %)
83 An HTTP method GET, POST, PUT.
84 )))
85 * (((
86 (% class="western" %)
87 An Appkey sent as Appkey header in the http request to authenticate the request.
88 )))
89 * (((
90 (% class="western" %)
91 Resource name in the url (/resourcename)
92 )))
93 * (((
94 (% class="western" %)
95 Any JSON data or JSON files containing information needed for requests, such as updating a record with new information.
96 )))
97
98 (% class="western" %)
99 **General API Usage**
100
101 (% class="western" %)
102 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.
103
104 (% class="western" %)
105 For lookup, the parameter list will be part of the request url.
106
107
108 (% class="western" %)
109 **Response**
110
111 (% class="western" %)
112 API will output the response in a JSON format discussed below.
113
114 {{code language="yml" theme="RDark" title="Response"}}
115 {
116 "result": {
117 "success": "1",
118 "error": {
119 "code": "0",
120 "message": ""
121 }
122 },
123 "Users": {
124 "Id": "12562",
125 "PartnerId": "5467",
126 "Demo": {
127 "6": "Rayaan",
128 "7": "Ahmed"
129 }
130 }
131 }
132 {{/code}}
133
134
135 (% class="western" %)
136 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.
137
138
139 (% class="western" %)
140 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.
141
142 If the value of success is 1 then the response parameters of the called method will also be output.
143
144 (% class="western" %)
145 For (% class="StyledLeaf___StyledSpan-sc-129cvv1-0 hSAwv slate-bold" %)**GET **requests we can pass** limit **as parameter in URL.
146
147 === **COMPONENT: Users** ===
148
149 (% class="western" %)
150 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.
151
152 (% class="western" %)
153 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.
154
155 (% class="western" %)
156 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.
157
158 (% class="western" %)
159 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.
160
161 (% class="western" %)
162 Return parameter will have the comma separated list of question Ids that is requested back from the API.
163
164 (% class="western" %)
165 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.
166
167
168 (% class="wrapped" %)
169 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
170 (((
171 (% class="western" %)
172 **Method**
173 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
174 (((
175 (% class="western" %)
176 **Url**
177 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
178 (((
179 (% class="western" %)
180 **Action**
181 )))
182 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
183 (((
184 (% class="western" %)
185 GET
186 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
187 (((
188 (% class="western" %)
189 /users
190 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
191 (((
192 (% class="western" %)
193 Get users data limiting 25.
194 )))
195 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
196 (((
197 (% class="western" %)
198 GET
199 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
200 (((
201 (% class="western" %)
202 /users/<ocid or ocid_hash>
203 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
204 (((
205 (% class="western" %)
206 Get data for user id 1. The user id can be a numeric value or a hash
207 )))
208 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
209 (((
210 (% class="western" %)
211 GET
212 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
213 (((
214 (% class="western" %)
215 /users/lookup?1=user1@email.com&return=1,2
216 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
217 (((
218 (% class="western" %)
219 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.
220
221 (% class="western" %)
222 Return parameter defines a CSV of question id that are requested back in response.
223 )))
224 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
225 (((
226 (% class="western" %)
227 POST
228 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
229 (((
230 (% class="western" %)
231 /users
232 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
233 (((
234 (% class="western" %)
235 Create a new users
236
237 (% class="western" %)
238 Parameters required to create the user needs to be sent as post data in JSON format.
239 )))
240 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
241 (((
242 (% class="western" %)
243 PUT
244 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
245 (((
246 (% class="western" %)
247 /users/1
248 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
249 (((
250 (% class="western" %)
251 Update user id 1. The user id can be a numeric value or a hash
252
253 (% class="western" %)
254 Parameters required to update the user needs to be sent as post data in JSON format.
255 )))
256 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
257 (((
258 (% class="western" %)
259 GET
260 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
261 (((
262 (% class="western" %)
263 /users/1/partners/2
264 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
265 (((
266 (% class="western" %)
267 Get user id 1 and partner id 2's ONEcount hash. The user id can be a numeric value or a hash.
268 )))
269 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
270 (((
271 (% class="western" %)
272 POST
273 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
274 (((
275 (% class="western" %)
276 /users/login
277 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
278 (((
279 (% class="western" %)
280 Check to see user exist with username/email and password.
281
282 (% class="western" %)
283 Parameters required to create JSON object with **u** as username, **e** as email and **p** as password and sent is as POST param.
284
285 (% class="western" %)
286 Example:
287
288 (% class="western" %)
289 {"u":"abc@one-count.com","e":"abc@one-count.com","p":"1234"}
290
291 (% class="western" %)
292 OR
293
294 (% class="western" %)
295 {"u":"abc@one-count.com","p":"1234"}
296
297 (% class="western" %)
298 OR
299
300 (% class="western" %)
301 {"e":"abc@one-count.com","p":"1234"}
302
303 (% class="western" %)
304 **OUTPUT** : Should get OCID of the user if it finds it otherwise get and error with msg user not found.
305 )))
306
307 (% id="HGETAllUsers" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
308 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Users(%%) ==
309
310 ----
311
312 ----
313
314 {{panel bgColor="#D3D3D3" width="100%"}}
315 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users
316 {{/panel}}
317
318 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
319
320 ----
321
322 (% 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}}
323
324 ==== Example ====
325
326 ----
327
328 (% style="color:#6b6b6b" %)Request
329
330 {{code language="php" theme="RDark" title="Get All Users Request"}}
331 <?php
332
333 $curl = curl_init();
334
335 curl_setopt_array($curl, array(
336 CURLOPT_URL => 'https://api.onecount.net/v2/users',
337 CURLOPT_RETURNTRANSFER => true,
338 CURLOPT_ENCODING => '',
339 CURLOPT_MAXREDIRS => 10,
340 CURLOPT_TIMEOUT => 0,
341 CURLOPT_FOLLOWLOCATION => true,
342 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
343 CURLOPT_CUSTOMREQUEST => 'GET',
344 CURLOPT_HTTPHEADER => array(
345 'Appkey: {{ONECOUNT API KEY}}'
346 ),
347 ));
348
349 $response = curl_exec($curl);
350
351 curl_close($curl);
352 echo $response;
353
354
355 {{/code}}
356
357
358 (% style="color:#6b6b6b" %)Response  200 OK
359
360 {{code language="yml" theme="RDark" collapse="true" title="Get All Users Response"}}
361 {
362 "result": {
363 "success": "1",
364 "error": {
365 "code": "",
366 "message": ""
367 }
368 },
369 "Users": [
370 {
371 "Id": 10,
372 "OCID_HASH": "309d0ba643ac9cf164fa7089db622444fb82bf031c79ebb97c8566d0b91a224c",
373 "Demo": {
374 "1": "ORISH+IMNG12373@gcnmedia.com",
375 "2": "user_26_2",
376 "3": "pass_262",
377 "4": "orish123"
378 }
379 },
380 {
381 "Id": 26,
382 "OCID_HASH": "362b0815ab579017802c0539fa30d45c46f2e357025756e3a998225aa2c3f123",
383 "Demo": {
384 "1": "ORISH+IMNG12374@gcnmedia.com",
385 "2": "user_82_2",
386 "3": "pass_822",
387 "4": "orish111"
388 }
389 },
390 {
391 "Id": 34,
392 "OCID_HASH": "508ae86cfa9185a59a855b6f0aaf1ef52e1895c7a7bd1ee01d1f7be82ea233d2",
393 "Demo": {
394 "1": "",
395 "2": "user_1405614567717",
396 "3": "",
397 "4": "sonish",
398 "5": "shrestha",
399 "6": "Test",
400 "7": "GCN",
401 "8": "Sterling",
402 "9": "Norwalk",
403 "10": "",
404 "11": "",
405 "12": "",
406 "13": "Nepa",
407 "14": "",
408 "15": ""
409 }
410 },
411 {
412 "Id": 42,
413 "OCID_HASH": "3fd11fb98076330290d14edd70265c273eaf5ad72e498fc9ac4f2b580a2f36cc",
414 "Demo": {
415 "1": "orish@gcnpublishing.com",
416 "2": "user_106_42",
417 "3": "f5a622347842b9384cae63bb998f2aa19aea2ebc43fa2f00800e9accd85a8dd1",
418 "4": "Orish",
419 "5": "Shrestha",
420 "6": "Director of Engineering",
421 "7": "ONEcount",
422 "8": "194 Main Street",
423 "9": "Suite 2NW",
424 "10": "Norwalk",
425 "11": "CT",
426 "12": "06851",
427 "13": "",
428 "15": "",
429 "106": "",
430 "114": "",
431 "130": "",
432 "138": "",
433 "146": "",
434 "234": "",
435 "242": "",
436 "250": ""
437 }
438 },
439 {
440 "Id": 50,
441 "OCID_HASH": "88d721f543c79f8ea718d9020897c9036d1d303099a649585f6d4c37e354c5d3",
442 "Demo": {
443 "1": "sundeep@gcnpublishing.com",
444 "2": "",
445 "3": "",
446 "4": "Sundeep",
447 "5": "Dangol",
448 "6": "Director of Integrations",
449 "7": "ONEcount",
450 "8": "194 Main Street",
451 "9": "Suite 2NW",
452 "10": "Norwalk",
453 "11": "CT",
454 "12": "06851",
455 "13": "",
456 "15": "",
457 "106": "",
458 "114": "",
459 "130": "",
460 "138": "",
461 "146": "",
462 "234": "",
463 "242": ""
464 }
465 },
466 {
467 "Id": 58,
468 "OCID_HASH": "c45f5d1d27364ee19973148d6c02999cbfbc8b2ca80f7655dd6a873b864eb211",
469 "Demo": {
470 "1": "sean@gcnpublishing.com",
471 "2": "user_106_34",
472 "3": "pass_10634",
473 "4": "Sean",
474 "5": "Fulton",
475 "6": "Vice President",
476 "7": "ONEcount",
477 "8": "194 Main Street",
478 "9": "Suite 2NW",
479 "10": "Norwalk",
480 "11": "CT",
481 "12": "06851",
482 "13": "UNITED STATES"
483 }
484 },
485 {
486 "Id": 66,
487 "OCID_HASH": "f037520f7af46301532a95b39d8fd8e607988afe3c7b67f086740e6676775bee",
488 "Demo": {
489 "1": "joanne@gcnpublishing.com",
490 "2": "user_106_2",
491 "3": "c55b18c5a4e475034ccc8cd14e132e1fd7e2aadcd8dcc625996ba51d145f160e",
492 "4": "Joanne",
493 "5": "Persico",
494 "6": "President",
495 "7": "ONEcount",
496 "8": "194 Main Street",
497 "9": "Suite 2NW",
498 "10": "Norwalk",
499 "11": "CT",
500 "12": "06851",
501 "13": "UNITED STATES",
502 "234": "",
503 "242": "",
504 "250": ""
505 }
506 },
507 {
508 "Id": 74,
509 "OCID_HASH": "abb8adfb275030ad96808967edea5003e3ed9da5965b6d8f4537597dff17af4f",
510 "Demo": {
511 "1": "melanie@gcnpublishing.com",
512 "2": "user_106_18",
513 "3": "pass_10618",
514 "4": "Melanie",
515 "5": "Mason",
516 "6": "Director of Customer Experience",
517 "7": "ONEcount",
518 "8": "194 Main Street",
519 "9": "Suite 2NW",
520 "10": "Norwalk",
521 "11": "CT",
522 "12": "06851",
523 "13": "UNITED STATES",
524 "14": "",
525 "15": "",
526 "106": "",
527 "114": "",
528 "130": "",
529 "138": "",
530 "146": "",
531 "154": "",
532 "162": "",
533 "170": "",
534 "178": "",
535 "186": "",
536 "202": "",
537 "218": "",
538 "226": "",
539 "234": "",
540 "242": "",
541 "250": ""
542 }
543 },
544 {
545 "Id": 82,
546 "OCID_HASH": "6b2635a195d46e9df53ec6069d198fa0fe26d26111c0b71b9bc39652935f6034",
547 "Demo": {
548 "1": "doug@gcnpublishing.com",
549 "2": "user_106_58",
550 "3": "pass_10658",
551 "4": "Doug",
552 "5": "LaFarge",
553 "7": "ONEcount",
554 "8": "194 Main Street",
555 "9": "Suite 2NW",
556 "10": "Norwalk",
557 "11": "CT",
558 "12": "06851",
559 "13": "UNITED STATES"
560 }
561 },
562 {
563 "Id": 90,
564 "OCID_HASH": "869434d36ef71f8244c5eacaac35cb87d9ee16f3c8bbeddaddb87869588deb52",
565 "Demo": {
566 "1": "subash@gcnpublishing.com",
567 "2": "user_106_50",
568 "3": "pass_10650",
569 "4": "Subash",
570 "5": "Tamang",
571 "7": "ONEcount",
572 "8": "194 Main Street",
573 "9": "Suite 2NW",
574 "10": "Norwalk",
575 "11": "CT",
576 "12": "06851",
577 "13": "UNITED STATES"
578 }
579 },
580 {
581 "Id": 98,
582 "OCID_HASH": "f46e4d07d8c2aede8e3f0b4d30cf984f9ce507147b75cff17315642d456d7cca",
583 "Demo": {
584 "1": "sonish@gcnpublishing.com",
585 "2": "user_106_10",
586 "3": "pass_10610",
587 "4": "Sonishs",
588 "5": "Shrestha",
589 "8": "334 Street",
590 "10": "Ashburn",
591 "11": "VA",
592 "12": "11118",
593 "13": "United States"
594 }
595 },
596 {
597 "Id": 162,
598 "OCID_HASH": "86616a428abeabe722079cb29ffd3b76341aa7895b2bd3579dfd89e01a737f0c",
599 "Demo": {
600 "1": "orish+1@gcnpublishing.com",
601 "2": "user_130_42",
602 "3": "pass_13042",
603 "4": "OrishGCN",
604 "5": "Shrestha",
605 "8": "123 street",
606 "10": "New Rochelle",
607 "11": "NY",
608 "12": "11111",
609 "13": "United States"
610 }
611 },
612 {
613 "Id": 170,
614 "OCID_HASH": "3fb40dbcd3c0ca47fd3a80f5a34290c68a2e7ff79d4d8f28b388677bea2df2ac",
615 "Demo": {
616 "1": "sundeep+1@gcnpublishing.com",
617 "2": "user_130_26",
618 "3": "pass_13026",
619 "4": "SundeepGCN",
620 "5": "Dangol",
621 "8": "456 Street",
622 "10": "Bridgeport",
623 "11": "CT",
624 "12": "11112",
625 "13": "United States"
626 }
627 },
628 {
629 "Id": 178,
630 "OCID_HASH": "ca72068a59896a3cec1faf52a4701d13b539039467cbe9d5d9b60b54e263040f",
631 "Demo": {
632 "1": "sean+1@gcnpublishing.com",
633 "2": "user_130_34",
634 "3": "pass_13034",
635 "4": "SeanGCN",
636 "5": "Fulton",
637 "8": "222 Street",
638 "10": "Norwalk",
639 "11": "CT",
640 "12": "11113",
641 "13": "United States"
642 }
643 },
644 {
645 "Id": 186,
646 "OCID_HASH": "4b643f02f3d30d0b6ae465b4d758a721574e798712c3d42bd5458a1fd5634243",
647 "Demo": {
648 "1": "joanne+1@gcnpublishing.com",
649 "2": "user_130_2",
650 "3": "pass_1302",
651 "4": "JoanneGCN",
652 "5": "Persico",
653 "8": "222 Street",
654 "10": "Norwalk",
655 "11": "CT",
656 "12": "11114",
657 "13": "United States"
658 }
659 },
660 {
661 "Id": 194,
662 "OCID_HASH": "d3200217585d2d954e0b55ee9ff1c939f265067420ff82c6e924dcdd71ccc960",
663 "Demo": {
664 "1": "melanie+1@gcnpublishing.com",
665 "2": "user_130_18",
666 "3": "pass_13018",
667 "4": "MelanieGCN",
668 "5": "Mason",
669 "6": "",
670 "7": "",
671 "8": "345 Street",
672 "9": "",
673 "10": "Norwalk",
674 "11": "CT",
675 "12": "11115",
676 "13": "United States",
677 "14": "",
678 "15": "",
679 "106": "",
680 "114": "",
681 "130": "",
682 "138": "",
683 "146": "",
684 "154": "",
685 "162": "",
686 "170": "",
687 "178": "",
688 "186": "",
689 "202": "",
690 "218": "",
691 "226": "",
692 "234": "",
693 "242": "",
694 "250": "",
695 "266": "01"
696 }
697 },
698 {
699 "Id": 202,
700 "OCID_HASH": "a7c7d5016322340c4394538d68f601a0720e70850091387114963aba0f1bae09",
701 "Demo": {
702 "1": "doug+1@gcnpublishing.com",
703 "2": "user_130_58",
704 "3": "pass_13058",
705 "4": "DougGCN",
706 "5": "La Farge",
707 "8": "849 Street",
708 "10": "Tuson",
709 "11": "AZ",
710 "12": "11116",
711 "13": "United States"
712 }
713 },
714 {
715 "Id": 210,
716 "OCID_HASH": "f0f0d59478e9a4aa9b0fad6ae5bfc4292a169f899135e8c4d16cada9e9dc267d",
717 "Demo": {
718 "1": "subash+1@gcnpublishing.com",
719 "2": "user_130_50",
720 "3": "pass_13050",
721 "4": "SubashGCN",
722 "5": "Tamang",
723 "8": "112 Street",
724 "10": "Herndon",
725 "11": "VA",
726 "12": "11117",
727 "13": "United States"
728 }
729 },
730 {
731 "Id": 218,
732 "OCID_HASH": "4939a3be6dfd79c715a1144d82815f2abe8e413d04e4311284a05610589ad87b",
733 "Demo": {
734 "1": "sonish+1@gcnpublishing.com",
735 "2": "user_130_10",
736 "3": "pass_13010",
737 "4": "SonishGCN",
738 "5": "Shrestha",
739 "8": "334 Street",
740 "10": "Reston",
741 "11": "VA",
742 "12": "11118",
743 "13": "United States"
744 }
745 },
746 {
747 "Id": 282,
748 "OCID_HASH": "44421a4b109b0f5eb412b29e0037df61aae9ea95003d73f0175e5d6db8c0f928",
749 "Demo": {
750 "1": "orish+11@gcnpublishing.com",
751 "2": "user_138_42",
752 "3": "pass_13842",
753 "4": "OrishGCN",
754 "5": "Shrestha",
755 "8": "123 street",
756 "10": "New Rochelle",
757 "11": "NY",
758 "12": "11111",
759 "13": "United States"
760 }
761 },
762 {
763 "Id": 290,
764 "OCID_HASH": "971c357d4808224595f83a30bba9f05d1118bd7fd4f1d51160cad57dfd6b2137",
765 "Demo": {
766 "1": "sundeep+11@gcnpublishing.com",
767 "2": "user_138_26",
768 "3": "pass_13826",
769 "4": "SundeepGCN",
770 "5": "Dangol",
771 "8": "456 Street",
772 "10": "Bridgeport",
773 "11": "CT",
774 "12": "11112",
775 "13": "United States"
776 }
777 },
778 {
779 "Id": 298,
780 "OCID_HASH": "4fa0426afe48ee79602e9c47dda1987797b1983ecaa5975a09885ac4480f5033",
781 "Demo": {
782 "1": "sean+11@gcnpublishing.com",
783 "2": "user_138_34",
784 "3": "pass_13834",
785 "4": "SeanGCN",
786 "5": "Fulton",
787 "8": "222 Street",
788 "10": "Norwalk",
789 "11": "CT",
790 "12": "11113",
791 "13": "United States"
792 }
793 },
794 {
795 "Id": 306,
796 "OCID_HASH": "67037db60fea235ebcb48fae4eeef08a4b33c2f8860944925b615e602ba7a6e1",
797 "Demo": {
798 "1": "joanne+11@gcnpublishing.com",
799 "2": "user_138_2",
800 "3": "pass_1382",
801 "4": "JoanneGCN",
802 "5": "Persico",
803 "8": "222 Street",
804 "10": "Norwalk",
805 "11": "CT",
806 "12": "11114",
807 "13": "United States"
808 }
809 },
810 {
811 "Id": 314,
812 "OCID_HASH": "6421cab33907111f038ead8fc0aeafed785642e9b92cda544b2048f90ada259f",
813 "Demo": {
814 "1": "melanie+11@gcnpublishing.com",
815 "2": "user_138_18",
816 "3": "pass_13818",
817 "4": "MelanieGCN",
818 "5": "Mason",
819 "8": "345 Street",
820 "10": "Norwalk",
821 "11": "CT",
822 "12": "11115",
823 "13": "United States"
824 }
825 },
826 {
827 "Id": 322,
828 "OCID_HASH": "334b6f64d387b9a45b8ac7e0901d438cace133899b608c03a0f8c1f706882958",
829 "Demo": {
830 "1": "doug+11@gcnpublishing.com",
831 "2": "user_138_58",
832 "3": "pass_13858",
833 "4": "DougGCN",
834 "5": "La Farge",
835 "8": "849 Street",
836 "10": "Tuson",
837 "11": "AZ",
838 "12": "11116",
839 "13": "United States"
840 }
841 }
842 ]
843 }
844 {{/code}}
845
846
847 (% id="HGETspecificUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
848 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific User(%%) ==
849
850 ----
851
852 {{panel bgColor="#D3D3D3" width="100%"}}
853 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color:#212121" %)~{~{OCID}}
854 {{/panel}}
855
856 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
857
858 ----
859
860 (% 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}}
861
862 ==== Example ====
863
864 ----
865
866 (% style="color:#6b6b6b" %)Request
867
868 {{code language="php" theme="RDark" title="Get specific User Request"}}
869 <?php
870
871 $curl = curl_init();
872
873 curl_setopt_array($curl, array(
874 CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}',
875 CURLOPT_RETURNTRANSFER => true,
876 CURLOPT_ENCODING => '',
877 CURLOPT_MAXREDIRS => 10,
878 CURLOPT_TIMEOUT => 0,
879 CURLOPT_FOLLOWLOCATION => true,
880 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
881 CURLOPT_CUSTOMREQUEST => 'GET',
882 CURLOPT_HTTPHEADER => array(
883 'Appkey: {{ONECOUNT API KEY}}'
884 ),
885 ));
886
887 $response = curl_exec($curl);
888
889 curl_close($curl);
890 echo $response;
891 {{/code}}
892
893
894 (% style="color:#6b6b6b" %)Response  200 OK
895
896 {{code language="yml" theme="RDark" collapse="true" title="Get specific user Response"}}
897 {
898 "result": {
899 "success": "1",
900 "error": {
901 "code": "",
902 "message": ""
903 }
904 },
905 "Users": [
906 {
907 "Id": 8418,
908 "PartnerId": null,
909 "OCID_HASH": "7eedae58c56e97e79a9d42e85e7ef6e252563e60e92bd6d9ac7b7be748ffa823",
910 "Demo": {
911 "1": "",
912 "2": "user_242_5634",
913 "3": "pass_2425634",
914 "4": "Stuart",
915 "5": "Allen",
916 "6": "Pub",
917 "7": "Latinfinance",
918 "9": "2121 Ponce de Leon Blvd",
919 "10": "Coral Gables",
920 "11": "Fl",
921 "12": "33134",
922 "13": "",
923 "15": "",
924 "106": "",
925 "114": "",
926 "122": "305-448-6593",
927 "130": "",
928 "138": "",
929 "146": "5434982f-a05b-5f1e-2176-4809012686bb"
930 },
931 "Products": [
932 34
933 ],
934 "Resources": [
935 114,
936 98
937 ],
938 "Segments": []
939 }
940 ]
941 }
942 {{/code}}
943
944
945 (% id="HPOSTUserLogin" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
946 == (% 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(%%) ==
947
948 ----
949
950 {{panel bgColor="#D3D3D3" width="100%"}}
951 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/login
952 {{/panel}}
953
954 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
955
956 ----
957
958 (% 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}}
959
960 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
961
962 ----
963
964 {{code language="yml" theme="RDark" title="Body"}}
965 {"e":"rayaan@one-count.com","p":"12345"}
966 {{/code}}
967
968 ==== Example ====
969
970 ----
971
972 (% style="color:#6b6b6b" %)Request
973
974 {{code language="php" theme="RDark" title="User login Request"}}
975 <?php
976
977 $curl = curl_init();
978
979 curl_setopt_array($curl, array(
980 CURLOPT_URL => 'https://api.onecount.net/v2/users/login',
981 CURLOPT_RETURNTRANSFER => true,
982 CURLOPT_ENCODING => '',
983 CURLOPT_MAXREDIRS => 10,
984 CURLOPT_TIMEOUT => 0,
985 CURLOPT_FOLLOWLOCATION => true,
986 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
987 CURLOPT_CUSTOMREQUEST => 'POST',
988 CURLOPT_POSTFIELDS =>'{"e":"rayaan@one-count.com","p":"12345"}',
989 CURLOPT_HTTPHEADER => array(
990 'Appkey: {{ONECOUNT API KEY}}'
991 ),
992 ));
993
994 $response = curl_exec($curl);
995
996 curl_close($curl);
997 echo $response;
998 {{/code}}
999
1000
1001 (% style="color:#6b6b6b" %)Response  200 OK
1002
1003 {{code language="yml" theme="RDark" collapse="true" title="Login user Response"}}
1004 {
1005 "result": {
1006 "success": "1",
1007 "error": {
1008 "code": "",
1009 "message": ""
1010 }
1011 },
1012 "Users": [
1013 "1845775"
1014 ]
1015 }
1016 {{/code}}
1017
1018
1019 (% id="HGETlookupUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1020 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup User(%%) ==
1021
1022 ----
1023
1024 {{panel bgColor="#D3D3D3" width="100%"}}
1025 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/lookup?2=user_242_6298&return=1,2,3,4
1026 {{/panel}}
1027
1028 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1029
1030 ----
1031
1032 (% 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}}
1033
1034 === (% style="color:#212121" %)Query Params(%%) ===
1035
1036 ----
1037
1038 (% 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(%%)
1039 (% 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
1040
1041 ==== Example ====
1042
1043 ----
1044
1045 (% style="color:#6b6b6b" %)Request
1046
1047 {{code language="php" theme="RDark" title="Lookup user Request"}}
1048 <?php
1049
1050 $curl = curl_init();
1051
1052 curl_setopt_array($curl, array(
1053 CURLOPT_URL => 'https://api.onecount.net/v2/users/lookup?2=user_242_6298&return=1,2,3,4',
1054 CURLOPT_RETURNTRANSFER => true,
1055 CURLOPT_ENCODING => '',
1056 CURLOPT_MAXREDIRS => 10,
1057 CURLOPT_TIMEOUT => 0,
1058 CURLOPT_FOLLOWLOCATION => true,
1059 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1060 CURLOPT_CUSTOMREQUEST => 'GET',
1061 CURLOPT_HTTPHEADER => array(
1062 'Appkey: {{ONECOUNT API KEY}}'
1063 ),
1064 ));
1065
1066 $response = curl_exec($curl);
1067
1068 curl_close($curl);
1069 echo $response;
1070 {{/code}}
1071
1072
1073 (% style="color:#6b6b6b" %)Response  200 OK
1074
1075 {{code language="yml" theme="RDark" collapse="true" title="Lookup user Response"}}
1076 {
1077 "result": {
1078 "success": "1",
1079 "error": {
1080 "code": "",
1081 "message": ""
1082 }
1083 },
1084 "Users": [
1085 {
1086 "Id": 9082,
1087 "PartnerId": null,
1088 "OCID_HASH": "c91c697bc764c64a78bb0bbc9a848ace303169fb17da177a06264d4ede2ca659",
1089 "Demo": {
1090 "2": "user_242_6298",
1091 "3": "pass_2426298"
1092 }
1093 }
1094 ]
1095 }
1096 {{/code}}
1097
1098
1099 (% id="HGETPartners" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1100 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Partners(%%) ==
1101
1102 ----
1103
1104 {{panel bgColor="#D3D3D3" width="100%"}}
1105 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/users/~{~{OCID}}/partners/~{~{Partner id}}
1106 {{/panel}}
1107
1108 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1109
1110 ----
1111
1112 (% 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}}
1113
1114 (% id="HPOSTCreateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1115 == (% 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(%%) ==
1116
1117 ----
1118
1119 {{panel bgColor="#D3D3D3" width="100%"}}
1120 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users
1121 {{/panel}}
1122
1123
1124 (% class="western" %)
1125 **POST method should be used to create users.**
1126
1127 (% class="wrapped" %)
1128 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1129 (((
1130 (% class="western" %)
1131 **Request**
1132 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1133 (((
1134 (% class="western" %)
1135 **Type**
1136 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1137 (((
1138 (% class="western" %)
1139 **Description**
1140 )))
1141 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1142 (((
1143 (% class="western" %)
1144 Users
1145 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1146 (((
1147 (% class="western" %)
1148 Users
1149 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1150 (((
1151 (% class="western" %)
1152 Users object that contains information about user to create. PartnerId Needs to be specified.
1153 )))
1154 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1155 (((
1156 (% class="western" %)
1157 Transactions
1158 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1159 (((
1160 (% class="western" %)
1161 Transactions
1162 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1163 (((
1164 (% class="western" %)
1165 (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.
1166 )))
1167 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1168 (((
1169 (% class="western" %)
1170 DedupeColumns
1171 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1172 (((
1173 (% class="western" %)
1174 String
1175 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1176 (((
1177 (% class="western" %)
1178 CSV of question id's that should be considered to find duplicate.
1179 )))
1180 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1181 (((
1182 (% class="western" %)
1183 Return
1184 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1185 (((
1186 (% class="western" %)
1187 String
1188 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1189 (((
1190 (% class="western" %)
1191 CSV of ONEcount QuestionId's requested back in Users object in response.
1192 )))
1193
1194 (% class="wrapped" %)
1195 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1196 (((
1197 (% class="western" %)
1198 **Response**
1199 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1200 (((
1201 (% class="western" %)
1202 **Type**
1203 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1204 (((
1205 (% class="western" %)
1206 **Description**
1207 )))
1208 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1209 (((
1210 (% class="western" %)
1211 Users
1212 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
1213 (((
1214 (% class="western" style="text-align:left" %)
1215 Users
1216 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1217 (((
1218 (% class="western" %)
1219 Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned.
1220 )))
1221
1222 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1223
1224 ----
1225
1226 (% 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}}
1227
1228 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
1229
1230 ----
1231
1232 {{code language="yml" theme="RDark" title="Body"}}
1233 {"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}
1234 {{/code}}
1235
1236 ==== Example ====
1237
1238 ----
1239
1240 (% style="color:#6b6b6b" %)Request
1241
1242 {{code language="php" theme="RDark" title="Create User Request"}}
1243 <?php
1244
1245 $curl = curl_init();
1246
1247 curl_setopt_array($curl, array(
1248 CURLOPT_URL => 'https://api.onecount.net/v2/users',
1249 CURLOPT_RETURNTRANSFER => true,
1250 CURLOPT_ENCODING => '',
1251 CURLOPT_MAXREDIRS => 10,
1252 CURLOPT_TIMEOUT => 0,
1253 CURLOPT_FOLLOWLOCATION => true,
1254 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1255 CURLOPT_CUSTOMREQUEST => 'POST',
1256 CURLOPT_POSTFIELDS =>'{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan6@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}',
1257 CURLOPT_HTTPHEADER => array(
1258 'Appkey: {{ONECOUNT API KEY}}'
1259 ),
1260 ));
1261
1262 $response = curl_exec($curl);
1263
1264 curl_close($curl);
1265 echo $response;
1266 {{/code}}
1267
1268
1269 (% style="color:#6b6b6b" %)Response  200 OK
1270
1271 {{code language="yml" theme="RDark" collapse="true" title="Create user Response"}}
1272 {
1273 "result": {
1274 "success": "1",
1275 "error": {
1276 "code": "",
1277 "message": ""
1278 }
1279 },
1280 "Users": {
1281 "Id": 1845831
1282 }
1283 }
1284 {{/code}}
1285
1286
1287 (% id="HPUTUpdateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1288 == (% 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(%%) ==
1289
1290 ----
1291
1292 {{panel bgColor="#D3D3D3" width="100%"}}
1293 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/~{~{OCID(% class="nolink" %)}}
1294 {{/panel}}
1295
1296
1297 (% class="western" %)
1298 **PUT method should be used to update users.**
1299
1300 (% class="wrapped" %)
1301 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1302 (((
1303 (% class="western" %)
1304 **Request**
1305 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1306 (((
1307 (% class="western" %)
1308 **Type**
1309 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1310 (((
1311 (% class="western" %)
1312 **Description**
1313 )))
1314 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1315 (((
1316 (% class="western" %)
1317 Users
1318 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1319 (((
1320 (% class="western" %)
1321 Users
1322 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1323 (((
1324 (% class="western" %)
1325 Users object with update fields. Return property has CSV of questions id requested back in Users object.
1326 )))
1327 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1328 (((
1329 (% class="western" %)
1330 Return
1331 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1332 (((
1333 (% class="western" %)
1334 String
1335 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1336 (((
1337 (% class="western" %)
1338 CSV of ONEcount QuestionId's requested back in Users object in response
1339 )))
1340 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1341 (((
1342 (% class="western" %)
1343 RequestDate
1344 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1345 (((
1346 (% class="western" %)
1347 Date
1348 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1349 (((
1350 (% class="western" %)
1351 RequestDate to use for the demo update. If not provided current date will be used.
1352 )))
1353
1354 (% class="wrapped" %)
1355 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1356 (((
1357 (% class="western" %)
1358 **Response**
1359 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1360 (((
1361 (% class="western" %)
1362 **Type**
1363 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1364 (((
1365 (% class="western" %)
1366 **Description**
1367 )))
1368 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1369 (((
1370 (% class="western" %)
1371 Users
1372 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
1373 (((
1374 (% class="western" style="text-align:left" %)
1375 Users
1376 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1377 (((
1378 (% class="western" %)
1379 Updated user returned with the demo field requested in return parameter in json format.
1380 )))
1381
1382 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1383
1384 ----
1385
1386 (% 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}}
1387
1388 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
1389
1390 ----
1391
1392 {{code language="yml" theme="RDark" title="Body"}}
1393 {"Users":{"Demo":{"6":"title1"}}}
1394 {{/code}}
1395
1396 ==== Example ====
1397
1398 ----
1399
1400 (% style="color:#6b6b6b" %)Request
1401
1402 {{code language="php" theme="RDark" title="Update User Request"}}
1403 <?php
1404
1405 $curl = curl_init();
1406
1407 curl_setopt_array($curl, array(
1408 CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}',
1409 CURLOPT_RETURNTRANSFER => true,
1410 CURLOPT_ENCODING => '',
1411 CURLOPT_MAXREDIRS => 10,
1412 CURLOPT_TIMEOUT => 0,
1413 CURLOPT_FOLLOWLOCATION => true,
1414 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1415 CURLOPT_CUSTOMREQUEST => 'PUT',
1416 CURLOPT_POSTFIELDS =>'{"Users":{"Demo":{"6":"title"}}}',
1417 CURLOPT_HTTPHEADER => array(
1418 'Appkey: {{ONECOUNT API KEY}}'
1419 ),
1420 ));
1421
1422 $response = curl_exec($curl);
1423
1424 curl_close($curl);
1425 echo $response;
1426
1427
1428 {{/code}}
1429
1430
1431 (% style="color:#6b6b6b" %)Response  200 OK
1432
1433 {{code language="yml" theme="RDark" collapse="true" title="Update user Response"}}
1434 {
1435 "result": {
1436 "success": "1",
1437 "error": {
1438 "code": "",
1439 "message": ""
1440 }
1441 },
1442 "Users": [
1443 {
1444 "Id": 1845823,
1445 "OCID_HASH": "fccaa8dc7afadccc5882528d47b27c2bb53e2788dd0ac1fe170abef77a9c4d5b"
1446 }
1447 ]
1448 }
1449 {{/code}}
1450
1451
1452 (% id="HCOMPONENT:Questions" class="western" %)
1453 === **COMPONENT: Questions** ===
1454
1455 (% class="western" %)
1456 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).
1457
1458 (% class="western" %)
1459 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.
1460
1461 (% class="western" %)
1462 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)
1463
1464 (% class="western" %)
1465 There can be 6 types of questions:
1466
1467 (% class="wrapped" %)
1468 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1469 (((
1470 (% class="western" style="text-align:center" %)
1471 **Type**
1472 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1473 (((
1474 (% class="western" %)
1475 **Description**
1476 )))
1477 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1478 (((
1479 (% class="western" style="text-align:center" %)
1480 0
1481 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1482 (((
1483 (% class="western" %)
1484 Text type questions or short response type question. The response length needs to be less than 255 characters.
1485 )))
1486 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1487 (((
1488 (% class="western" style="text-align:center" %)
1489 1
1490 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1491 (((
1492 (% class="western" %)
1493 Textarea type question or long response type question.
1494 )))
1495 |(% style="text-align:left; vertical-align:top" %)(((
1496 (% style="text-align: left;vertical-align: top;" %)
1497 (((
1498 (% class="western" style="text-align:center" %)
1499 2
1500 )))
1501
1502 (((
1503
1504 )))
1505 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1506 (((
1507 (% class="western" %)
1508 Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *.
1509 )))
1510 |(% style="text-align:left; vertical-align:top" %) 3|(% style="text-align:left; vertical-align:top" %)Numeric type question.
1511 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1512 (((
1513 (% class="western" style="text-align:center" %)
1514 4
1515 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1516 (((
1517 (% class="western" %)
1518 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.
1519 )))
1520 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1521 (((
1522 (% class="western" style="text-align:center" %)
1523 5
1524 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1525 (((
1526 (% class="western" %)
1527 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.
1528 )))
1529 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1530 (((
1531 (% class="western" style="text-align:center" %)
1532 6
1533 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1534 (((
1535 (% class="western" %)
1536 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.
1537 )))
1538 |(% style="text-align:left; vertical-align:top" %) 7  |(% style="text-align:left; vertical-align:top" %)Date type question.
1539
1540 (% class="wrapped" %)
1541 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1542 (((
1543 (% class="western" %)
1544 **Method**
1545 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1546 (((
1547 (% class="western" %)
1548 **Url**
1549 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1550 (((
1551 (% class="western" %)
1552 **Action**
1553 )))
1554 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1555 (((
1556 (% class="western" %)
1557 GET
1558 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1559 (((
1560 (% class="western" %)
1561 /questions
1562 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1563 (((
1564 (% class="western" %)
1565 List all questions
1566 )))
1567 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1568 (((
1569 (% class="western" %)
1570 GET
1571 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1572 (((
1573 (% class="western" %)
1574 /questions/1
1575 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1576 (((
1577 (% class="western" %)
1578 Returns question id 1
1579 )))
1580 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1581 (((
1582 (% class="western" %)
1583 GET
1584 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1585 (((
1586 (% class="western" %)
1587 /questions/lookup?Text=Email
1588 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1589 (((
1590 (% class="western" %)
1591 Returns all questions with “Email" in question text
1592 )))
1593 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1594 (((
1595 (% class="western" %)
1596 POST
1597 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1598 (((
1599 (% class="western" %)
1600 /questions
1601 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1602 (((
1603 (% class="western" %)
1604 Create a new question
1605
1606 (% class="western" %)
1607 JSON of the Questions type object needs to be sent as post data. Id field should not be sent.
1608 )))
1609 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1610 (((
1611 (% class="western" %)
1612 PUT
1613 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1614 (((
1615 (% class="western" %)
1616 /questions
1617 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1618 (((
1619 (% class="western" %)
1620 Update a question
1621
1622 (% class="western" %)
1623 JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update.
1624 )))
1625
1626 (% id="HGETAllQuestions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1627 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Questions(%%) ==
1628
1629 ----
1630
1631 ----
1632
1633 {{panel bgColor="#D3D3D3" width="100%"}}
1634 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/(% style="color:#212121" %)questions
1635 {{/panel}}
1636
1637 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1638
1639 ----
1640
1641 (% 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}}
1642
1643 ==== Example ====
1644
1645 ----
1646
1647 (% style="color:#6b6b6b" %)Request
1648
1649 {{code language="php" theme="RDark" title="Get All Questions Request"}}
1650 <?php
1651
1652 $curl = curl_init();
1653
1654 curl_setopt_array($curl, array(
1655 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
1656 CURLOPT_RETURNTRANSFER => true,
1657 CURLOPT_ENCODING => '',
1658 CURLOPT_MAXREDIRS => 10,
1659 CURLOPT_TIMEOUT => 0,
1660 CURLOPT_FOLLOWLOCATION => true,
1661 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1662 CURLOPT_CUSTOMREQUEST => 'GET',
1663 CURLOPT_HTTPHEADER => array(
1664 'Appkey: 70856f83422599c8e36191098f1536ae06e7bbcd'
1665 ),
1666 ));
1667
1668 $response = curl_exec($curl);
1669
1670 curl_close($curl);
1671 echo $response;
1672
1673
1674
1675 {{/code}}
1676
1677
1678 (% style="color:#6b6b6b" %)Response  200 OK
1679
1680 {{code language="yml" theme="RDark" collapse="true" title="Get All Questions Response"}}
1681 {
1682 "result": {
1683 "success": "1",
1684 "error": {
1685 "code": "",
1686 "message": ""
1687 }
1688 },
1689 "Questions": [
1690 {
1691 "Id": 1,
1692 "Text": "Email",
1693 "Type": "0",
1694 "Alias": "Email"
1695 },
1696 {
1697 "Id": 2,
1698 "Text": "Username",
1699 "Type": "0",
1700 "Alias": "Username"
1701 },
1702 {
1703 "Id": 3,
1704 "Text": "Password",
1705 "Type": "2",
1706 "Alias": "Password"
1707 },
1708 {
1709 "Id": 4,
1710 "Text": "First Name",
1711 "Type": "0",
1712 "Alias": "First Name"
1713 },
1714 {
1715 "Id": 5,
1716 "Text": "Last Name",
1717 "Type": "0",
1718 "Alias": "Last Name"
1719 },
1720 {
1721 "Id": 6,
1722 "Text": "Title",
1723 "Type": "0",
1724 "Alias": "Title"
1725 },
1726 {
1727 "Id": 7,
1728 "Text": "Company Name",
1729 "Type": "0",
1730 "Alias": "Company Name"
1731 },
1732 {
1733 "Id": 8,
1734 "Text": "Company Address",
1735 "Type": "0",
1736 "Alias": "Company Address"
1737 },
1738 {
1739 "Id": 9,
1740 "Text": "Address2",
1741 "Type": "0",
1742 "Alias": "Address2"
1743 },
1744 {
1745 "Id": 10,
1746 "Text": "City",
1747 "Type": "0",
1748 "Alias": "City"
1749 },
1750 {
1751 "Id": 11,
1752 "Text": "State/Province",
1753 "Type": "4",
1754 "Alias": "State/Province",
1755 "Choices": [
1756 {
1757 "Id": 1554,
1758 "QuestionId": 11,
1759 "Text": "Select One",
1760 "Value": "",
1761 "Order": 1
1762 },
1763 {
1764 "Id": 1562,
1765 "QuestionId": 11,
1766 "Text": "Alabama",
1767 "Value": "AL",
1768 "Order": 2
1769 },
1770 {
1771 "Id": 1570,
1772 "QuestionId": 11,
1773 "Text": "Alaska",
1774 "Value": "AK",
1775 "Order": 3
1776 },
1777 {
1778 "Id": 1578,
1779 "QuestionId": 11,
1780 "Text": "Arizona",
1781 "Value": "AZ",
1782 "Order": 4
1783 },
1784 {
1785 "Id": 1586,
1786 "QuestionId": 11,
1787 "Text": "Arkansas",
1788 "Value": "AR",
1789 "Order": 5
1790 },
1791 {
1792 "Id": 1594,
1793 "QuestionId": 11,
1794 "Text": "California",
1795 "Value": "CA",
1796 "Order": 6
1797 },
1798 {
1799 "Id": 1602,
1800 "QuestionId": 11,
1801 "Text": "Colorado",
1802 "Value": "CO",
1803 "Order": 7
1804 },
1805 {
1806 "Id": 1610,
1807 "QuestionId": 11,
1808 "Text": "Connecticut",
1809 "Value": "CT",
1810 "Order": 8
1811 },
1812 {
1813 "Id": 1618,
1814 "QuestionId": 11,
1815 "Text": "Delaware",
1816 "Value": "DE",
1817 "Order": 9
1818 },
1819 {
1820 "Id": 1626,
1821 "QuestionId": 11,
1822 "Text": "District of Columbia",
1823 "Value": "DC",
1824 "Order": 10
1825 },
1826 {
1827 "Id": 1634,
1828 "QuestionId": 11,
1829 "Text": "Florida",
1830 "Value": "FL",
1831 "Order": 11
1832 },
1833 {
1834 "Id": 1642,
1835 "QuestionId": 11,
1836 "Text": "Georgia",
1837 "Value": "GA",
1838 "Order": 12
1839 },
1840 {
1841 "Id": 1650,
1842 "QuestionId": 11,
1843 "Text": "Hawaii",
1844 "Value": "HI",
1845 "Order": 13
1846 },
1847 {
1848 "Id": 1658,
1849 "QuestionId": 11,
1850 "Text": "Idaho",
1851 "Value": "ID",
1852 "Order": 14
1853 },
1854 {
1855 "Id": 1666,
1856 "QuestionId": 11,
1857 "Text": "Illinois",
1858 "Value": "IL",
1859 "Order": 15
1860 },
1861 {
1862 "Id": 1674,
1863 "QuestionId": 11,
1864 "Text": "Indiana",
1865 "Value": "IN",
1866 "Order": 16
1867 },
1868 {
1869 "Id": 1682,
1870 "QuestionId": 11,
1871 "Text": "Iowa",
1872 "Value": "IA",
1873 "Order": 17
1874 },
1875 {
1876 "Id": 1690,
1877 "QuestionId": 11,
1878 "Text": "Kansas",
1879 "Value": "KS",
1880 "Order": 18
1881 },
1882 {
1883 "Id": 1698,
1884 "QuestionId": 11,
1885 "Text": "Kentucky",
1886 "Value": "KY",
1887 "Order": 19
1888 },
1889 {
1890 "Id": 1706,
1891 "QuestionId": 11,
1892 "Text": "Louisiana",
1893 "Value": "LA",
1894 "Order": 20
1895 },
1896 {
1897 "Id": 1714,
1898 "QuestionId": 11,
1899 "Text": "Maine",
1900 "Value": "ME",
1901 "Order": 21
1902 },
1903 {
1904 "Id": 1722,
1905 "QuestionId": 11,
1906 "Text": "Maryland",
1907 "Value": "MD",
1908 "Order": 22
1909 },
1910 {
1911 "Id": 1730,
1912 "QuestionId": 11,
1913 "Text": "Massachusetts",
1914 "Value": "MA",
1915 "Order": 23
1916 },
1917 {
1918 "Id": 1738,
1919 "QuestionId": 11,
1920 "Text": "Michigan",
1921 "Value": "MI",
1922 "Order": 24
1923 },
1924 {
1925 "Id": 1746,
1926 "QuestionId": 11,
1927 "Text": "Minnesota",
1928 "Value": "MN",
1929 "Order": 25
1930 },
1931 {
1932 "Id": 1754,
1933 "QuestionId": 11,
1934 "Text": "Mississippi",
1935 "Value": "MS",
1936 "Order": 26
1937 },
1938 {
1939 "Id": 1762,
1940 "QuestionId": 11,
1941 "Text": "Missouri",
1942 "Value": "MO",
1943 "Order": 27
1944 },
1945 {
1946 "Id": 1770,
1947 "QuestionId": 11,
1948 "Text": "Montana",
1949 "Value": "MT",
1950 "Order": 28
1951 },
1952 {
1953 "Id": 1778,
1954 "QuestionId": 11,
1955 "Text": "Nebraska",
1956 "Value": "NE",
1957 "Order": 29
1958 },
1959 {
1960 "Id": 1786,
1961 "QuestionId": 11,
1962 "Text": "Nevada",
1963 "Value": "NV",
1964 "Order": 30
1965 },
1966 {
1967 "Id": 1794,
1968 "QuestionId": 11,
1969 "Text": "New Hampshire",
1970 "Value": "NH",
1971 "Order": 31
1972 },
1973 {
1974 "Id": 1802,
1975 "QuestionId": 11,
1976 "Text": "New Jersey",
1977 "Value": "NJ",
1978 "Order": 32
1979 },
1980 {
1981 "Id": 1810,
1982 "QuestionId": 11,
1983 "Text": "New Mexico",
1984 "Value": "NM",
1985 "Order": 33
1986 },
1987 {
1988 "Id": 1818,
1989 "QuestionId": 11,
1990 "Text": "New York",
1991 "Value": "NY",
1992 "Order": 34
1993 },
1994 {
1995 "Id": 1826,
1996 "QuestionId": 11,
1997 "Text": "North Carolina",
1998 "Value": "NC",
1999 "Order": 35
2000 },
2001 {
2002 "Id": 1834,
2003 "QuestionId": 11,
2004 "Text": "Ohio",
2005 "Value": "OH",
2006 "Order": 37
2007 },
2008 {
2009 "Id": 1842,
2010 "QuestionId": 11,
2011 "Text": "Oklahoma",
2012 "Value": "OK",
2013 "Order": 38
2014 },
2015 {
2016 "Id": 1850,
2017 "QuestionId": 11,
2018 "Text": "Oregon",
2019 "Value": "OR",
2020 "Order": 39
2021 },
2022 {
2023 "Id": 1858,
2024 "QuestionId": 11,
2025 "Text": "Pennsylvania",
2026 "Value": "PA",
2027 "Order": 40
2028 },
2029 {
2030 "Id": 1866,
2031 "QuestionId": 11,
2032 "Text": "Rhode Island",
2033 "Value": "RI",
2034 "Order": 41
2035 },
2036 {
2037 "Id": 1874,
2038 "QuestionId": 11,
2039 "Text": "South Carolina",
2040 "Value": "SC",
2041 "Order": 42
2042 },
2043 {
2044 "Id": 1882,
2045 "QuestionId": 11,
2046 "Text": "South Dakota",
2047 "Value": "SD",
2048 "Order": 43
2049 },
2050 {
2051 "Id": 1890,
2052 "QuestionId": 11,
2053 "Text": "Tennessee",
2054 "Value": "TN",
2055 "Order": 44
2056 },
2057 {
2058 "Id": 1898,
2059 "QuestionId": 11,
2060 "Text": "Texas",
2061 "Value": "TX",
2062 "Order": 45
2063 },
2064 {
2065 "Id": 1906,
2066 "QuestionId": 11,
2067 "Text": "Utah",
2068 "Value": "UT",
2069 "Order": 46
2070 },
2071 {
2072 "Id": 1914,
2073 "QuestionId": 11,
2074 "Text": "Vermont",
2075 "Value": "VT",
2076 "Order": 47
2077 },
2078 {
2079 "Id": 1922,
2080 "QuestionId": 11,
2081 "Text": "Virginia",
2082 "Value": "VA",
2083 "Order": 48
2084 },
2085 {
2086 "Id": 1930,
2087 "QuestionId": 11,
2088 "Text": "Washington",
2089 "Value": "WA",
2090 "Order": 49
2091 },
2092 {
2093 "Id": 1938,
2094 "QuestionId": 11,
2095 "Text": "West Virginia",
2096 "Value": "WV",
2097 "Order": 50
2098 },
2099 {
2100 "Id": 1946,
2101 "QuestionId": 11,
2102 "Text": "Wisconsin",
2103 "Value": "WI",
2104 "Order": 51
2105 },
2106 {
2107 "Id": 1954,
2108 "QuestionId": 11,
2109 "Text": "Wyoming",
2110 "Value": "WY",
2111 "Order": 52
2112 },
2113 {
2114 "Id": 1962,
2115 "QuestionId": 11,
2116 "Text": "American Samoa",
2117 "Value": "AS",
2118 "Order": 53
2119 },
2120 {
2121 "Id": 1970,
2122 "QuestionId": 11,
2123 "Text": "North Dakota",
2124 "Value": "ND",
2125 "Order": 36
2126 },
2127 {
2128 "Id": 1978,
2129 "QuestionId": 11,
2130 "Text": "Federated States of Micronesia",
2131 "Value": "FM",
2132 "Order": 54
2133 },
2134 {
2135 "Id": 1986,
2136 "QuestionId": 11,
2137 "Text": "Guam",
2138 "Value": "GU",
2139 "Order": 55
2140 },
2141 {
2142 "Id": 1994,
2143 "QuestionId": 11,
2144 "Text": "Marshall Islands",
2145 "Value": "MH",
2146 "Order": 56
2147 },
2148 {
2149 "Id": 2002,
2150 "QuestionId": 11,
2151 "Text": "Northern Mariana Islands",
2152 "Value": "MP",
2153 "Order": 57
2154 },
2155 {
2156 "Id": 2010,
2157 "QuestionId": 11,
2158 "Text": "Palau",
2159 "Value": "PW",
2160 "Order": 58
2161 },
2162 {
2163 "Id": 2018,
2164 "QuestionId": 11,
2165 "Text": "Puerto Rico",
2166 "Value": "PR",
2167 "Order": 59
2168 },
2169 {
2170 "Id": 2026,
2171 "QuestionId": 11,
2172 "Text": "U.S. Virgin Islands",
2173 "Value": "VI",
2174 "Order": 60
2175 },
2176 {
2177 "Id": 2034,
2178 "QuestionId": 11,
2179 "Text": "Armed Forces Africa",
2180 "Value": "AE",
2181 "Order": 61
2182 },
2183 {
2184 "Id": 2042,
2185 "QuestionId": 11,
2186 "Text": "Armed Forces Americas (except Canada)",
2187 "Value": "AA",
2188 "Order": 62
2189 },
2190 {
2191 "Id": 2050,
2192 "QuestionId": 11,
2193 "Text": "Armed Forces Canada",
2194 "Value": "AE",
2195 "Order": 63
2196 },
2197 {
2198 "Id": 2058,
2199 "QuestionId": 11,
2200 "Text": "Armed Forces Europe",
2201 "Value": "AE",
2202 "Order": 64
2203 },
2204 {
2205 "Id": 2066,
2206 "QuestionId": 11,
2207 "Text": "Armed Forces Middle East",
2208 "Value": "AE",
2209 "Order": 65
2210 },
2211 {
2212 "Id": 2074,
2213 "QuestionId": 11,
2214 "Text": "Armed Forces Pacific",
2215 "Value": "AP",
2216 "Order": 66
2217 },
2218 {
2219 "Id": 2082,
2220 "QuestionId": 11,
2221 "Text": "Non-US/Not Applicable",
2222 "Value": "Non-US/Not Applicable",
2223 "Order": 67
2224 },
2225 {
2226 "Id": 2090,
2227 "QuestionId": 11,
2228 "Text": "Ontario",
2229 "Value": "Ontario",
2230 "Order": 68
2231 },
2232 {
2233 "Id": 2098,
2234 "QuestionId": 11,
2235 "Text": "Quebec",
2236 "Value": "Quebec",
2237 "Order": 69
2238 },
2239 {
2240 "Id": 2106,
2241 "QuestionId": 11,
2242 "Text": "Nova Scotia",
2243 "Value": "Nova Scotia",
2244 "Order": 70
2245 },
2246 {
2247 "Id": 2114,
2248 "QuestionId": 11,
2249 "Text": "New Brunswick",
2250 "Value": "New Brunswick",
2251 "Order": 71
2252 },
2253 {
2254 "Id": 2122,
2255 "QuestionId": 11,
2256 "Text": "Manitoba",
2257 "Value": "Manitoba",
2258 "Order": 72
2259 },
2260 {
2261 "Id": 2130,
2262 "QuestionId": 11,
2263 "Text": "Brittish Columbia",
2264 "Value": "Brittish Columbia",
2265 "Order": 73
2266 },
2267 {
2268 "Id": 2138,
2269 "QuestionId": 11,
2270 "Text": "Prince Edward Island",
2271 "Value": "Prince Edward Island",
2272 "Order": 74
2273 },
2274 {
2275 "Id": 2146,
2276 "QuestionId": 11,
2277 "Text": "Saskatchewan",
2278 "Value": "Saskatchewan",
2279 "Order": 75
2280 },
2281 {
2282 "Id": 2154,
2283 "QuestionId": 11,
2284 "Text": "Alberta",
2285 "Value": "Alberta",
2286 "Order": 76
2287 },
2288 {
2289 "Id": 2162,
2290 "QuestionId": 11,
2291 "Text": "Newfoundland and Labrador",
2292 "Value": "Newfoundland and Labrador",
2293 "Order": 77
2294 },
2295 {
2296 "Id": 2170,
2297 "QuestionId": 11,
2298 "Text": "British Columbia",
2299 "Value": "British Columbia",
2300 "Order": 78
2301 },
2302 {
2303 "Id": 2178,
2304 "QuestionId": 11,
2305 "Text": "Ontario",
2306 "Value": "ON",
2307 "Order": 79
2308 }
2309 ]
2310 },
2311 {
2312 "Id": 12,
2313 "Text": "Zip/Postal Code",
2314 "Type": "0",
2315 "Alias": "Zip/Postal Code"
2316 },
2317 {
2318 "Id": 13,
2319 "Text": "Country",
2320 "Type": "4",
2321 "Alias": "Country",
2322 "Choices": [
2323 {
2324 "Id": 2,
2325 "QuestionId": 13,
2326 "Text": "Select One",
2327 "Value": "",
2328 "Order": 1
2329 },
2330 {
2331 "Id": 10,
2332 "QuestionId": 13,
2333 "Text": "Afghanistan",
2334 "Value": "Afghanistan",
2335 "Order": 3
2336 },
2337 {
2338 "Id": 18,
2339 "QuestionId": 13,
2340 "Text": "Albania",
2341 "Value": "Albania",
2342 "Order": 4
2343 },
2344 {
2345 "Id": 26,
2346 "QuestionId": 13,
2347 "Text": "Algeria",
2348 "Value": "Algeria",
2349 "Order": 5
2350 },
2351 {
2352 "Id": 34,
2353 "QuestionId": 13,
2354 "Text": "Andorra",
2355 "Value": "Andorra",
2356 "Order": 6
2357 },
2358 {
2359 "Id": 42,
2360 "QuestionId": 13,
2361 "Text": "Angola",
2362 "Value": "Angola",
2363 "Order": 7
2364 },
2365 {
2366 "Id": 50,
2367 "QuestionId": 13,
2368 "Text": "Antigua and Barbuda",
2369 "Value": "Antigua and Barbuda",
2370 "Order": 8
2371 },
2372 {
2373 "Id": 58,
2374 "QuestionId": 13,
2375 "Text": "Argentina",
2376 "Value": "Argentina",
2377 "Order": 9
2378 },
2379 {
2380 "Id": 66,
2381 "QuestionId": 13,
2382 "Text": "Armenia",
2383 "Value": "Armenia",
2384 "Order": 10
2385 },
2386 {
2387 "Id": 74,
2388 "QuestionId": 13,
2389 "Text": "Australia",
2390 "Value": "Australia",
2391 "Order": 11
2392 },
2393 {
2394 "Id": 82,
2395 "QuestionId": 13,
2396 "Text": "Austria",
2397 "Value": "Austria",
2398 "Order": 12
2399 },
2400 {
2401 "Id": 90,
2402 "QuestionId": 13,
2403 "Text": "Azerbaijan",
2404 "Value": "Azerbaijan",
2405 "Order": 13
2406 },
2407 {
2408 "Id": 98,
2409 "QuestionId": 13,
2410 "Text": "Bahamas",
2411 "Value": "Bahamas",
2412 "Order": 14
2413 },
2414 {
2415 "Id": 106,
2416 "QuestionId": 13,
2417 "Text": "Bahrain",
2418 "Value": "Bahrain",
2419 "Order": 15
2420 },
2421 {
2422 "Id": 114,
2423 "QuestionId": 13,
2424 "Text": "Bangladesh",
2425 "Value": "Bangladesh",
2426 "Order": 16
2427 },
2428 {
2429 "Id": 122,
2430 "QuestionId": 13,
2431 "Text": "Barbados",
2432 "Value": "Barbados",
2433 "Order": 17
2434 },
2435 {
2436 "Id": 130,
2437 "QuestionId": 13,
2438 "Text": "Belarus",
2439 "Value": "Belarus",
2440 "Order": 18
2441 },
2442 {
2443 "Id": 138,
2444 "QuestionId": 13,
2445 "Text": "Belgium",
2446 "Value": "Belgium",
2447 "Order": 19
2448 },
2449 {
2450 "Id": 146,
2451 "QuestionId": 13,
2452 "Text": "Belize",
2453 "Value": "Belize",
2454 "Order": 20
2455 },
2456 {
2457 "Id": 154,
2458 "QuestionId": 13,
2459 "Text": "Benin",
2460 "Value": "Benin",
2461 "Order": 21
2462 },
2463 {
2464 "Id": 162,
2465 "QuestionId": 13,
2466 "Text": "Bhutan",
2467 "Value": "Bhutan",
2468 "Order": 22
2469 },
2470 {
2471 "Id": 170,
2472 "QuestionId": 13,
2473 "Text": "Bolivia",
2474 "Value": "Bolivia",
2475 "Order": 23
2476 },
2477 {
2478 "Id": 178,
2479 "QuestionId": 13,
2480 "Text": "Bosnia and Herzegovina",
2481 "Value": "Bosnia and Herzegovina",
2482 "Order": 24
2483 },
2484 {
2485 "Id": 186,
2486 "QuestionId": 13,
2487 "Text": "Botswana",
2488 "Value": "Botswana",
2489 "Order": 25
2490 },
2491 {
2492 "Id": 194,
2493 "QuestionId": 13,
2494 "Text": "Brazil",
2495 "Value": "Brazil",
2496 "Order": 26
2497 },
2498 {
2499 "Id": 202,
2500 "QuestionId": 13,
2501 "Text": "Brunei",
2502 "Value": "Brunei",
2503 "Order": 27
2504 },
2505 {
2506 "Id": 210,
2507 "QuestionId": 13,
2508 "Text": "Bulgaria",
2509 "Value": "Bulgaria",
2510 "Order": 28
2511 },
2512 {
2513 "Id": 218,
2514 "QuestionId": 13,
2515 "Text": "Burkina Faso",
2516 "Value": "Burkina Faso",
2517 "Order": 29
2518 },
2519 {
2520 "Id": 226,
2521 "QuestionId": 13,
2522 "Text": "Burundi",
2523 "Value": "Burundi",
2524 "Order": 30
2525 },
2526 {
2527 "Id": 234,
2528 "QuestionId": 13,
2529 "Text": "Cambodia",
2530 "Value": "Cambodia",
2531 "Order": 31
2532 },
2533 {
2534 "Id": 242,
2535 "QuestionId": 13,
2536 "Text": "Cameroon",
2537 "Value": "Cameroon",
2538 "Order": 32
2539 },
2540 {
2541 "Id": 250,
2542 "QuestionId": 13,
2543 "Text": "Canada",
2544 "Value": "Canada",
2545 "Order": 33
2546 },
2547 {
2548 "Id": 258,
2549 "QuestionId": 13,
2550 "Text": "Cape Verde",
2551 "Value": "Cape Verde",
2552 "Order": 34
2553 },
2554 {
2555 "Id": 266,
2556 "QuestionId": 13,
2557 "Text": "Central African Republic",
2558 "Value": "Central African Republic",
2559 "Order": 35
2560 },
2561 {
2562 "Id": 274,
2563 "QuestionId": 13,
2564 "Text": "Chad",
2565 "Value": "Chad",
2566 "Order": 36
2567 },
2568 {
2569 "Id": 282,
2570 "QuestionId": 13,
2571 "Text": "Chile",
2572 "Value": "Chile",
2573 "Order": 37
2574 },
2575 {
2576 "Id": 290,
2577 "QuestionId": 13,
2578 "Text": "China",
2579 "Value": "China",
2580 "Order": 38
2581 },
2582 {
2583 "Id": 298,
2584 "QuestionId": 13,
2585 "Text": "Colombia",
2586 "Value": "Colombia",
2587 "Order": 39
2588 },
2589 {
2590 "Id": 306,
2591 "QuestionId": 13,
2592 "Text": "Comoros",
2593 "Value": "Comoros",
2594 "Order": 40
2595 },
2596 {
2597 "Id": 314,
2598 "QuestionId": 13,
2599 "Text": "Congo (Brazzaville)",
2600 "Value": "Congo (Brazzaville)",
2601 "Order": 41
2602 },
2603 {
2604 "Id": 322,
2605 "QuestionId": 13,
2606 "Text": "Congo",
2607 "Value": "Congo",
2608 "Order": 42
2609 },
2610 {
2611 "Id": 330,
2612 "QuestionId": 13,
2613 "Text": "Costa Rica",
2614 "Value": "Costa Rica",
2615 "Order": 43
2616 },
2617 {
2618 "Id": 338,
2619 "QuestionId": 13,
2620 "Text": "Cote d'Ivoire",
2621 "Value": "Cote d'Ivoire",
2622 "Order": 44
2623 },
2624 {
2625 "Id": 346,
2626 "QuestionId": 13,
2627 "Text": "Croatia",
2628 "Value": "Croatia",
2629 "Order": 45
2630 },
2631 {
2632 "Id": 354,
2633 "QuestionId": 13,
2634 "Text": "Cuba",
2635 "Value": "Cuba",
2636 "Order": 46
2637 },
2638 {
2639 "Id": 362,
2640 "QuestionId": 13,
2641 "Text": "Cyprus",
2642 "Value": "Cyprus",
2643 "Order": 47
2644 },
2645 {
2646 "Id": 370,
2647 "QuestionId": 13,
2648 "Text": "Czech Republic",
2649 "Value": "Czech Republic",
2650 "Order": 48
2651 },
2652 {
2653 "Id": 378,
2654 "QuestionId": 13,
2655 "Text": "Denmark",
2656 "Value": "Denmark",
2657 "Order": 49
2658 },
2659 {
2660 "Id": 386,
2661 "QuestionId": 13,
2662 "Text": "Djibouti",
2663 "Value": "Djibouti",
2664 "Order": 50
2665 },
2666 {
2667 "Id": 394,
2668 "QuestionId": 13,
2669 "Text": "Dominica",
2670 "Value": "Dominica",
2671 "Order": 51
2672 },
2673 {
2674 "Id": 402,
2675 "QuestionId": 13,
2676 "Text": "Dominican Republic",
2677 "Value": "Dominican Republic",
2678 "Order": 52
2679 },
2680 {
2681 "Id": 410,
2682 "QuestionId": 13,
2683 "Text": "East Timor",
2684 "Value": "East Timor",
2685 "Order": 53
2686 },
2687 {
2688 "Id": 418,
2689 "QuestionId": 13,
2690 "Text": "Ecuador",
2691 "Value": "Ecuador",
2692 "Order": 54
2693 },
2694 {
2695 "Id": 426,
2696 "QuestionId": 13,
2697 "Text": "Egypt",
2698 "Value": "Egypt",
2699 "Order": 55
2700 },
2701 {
2702 "Id": 434,
2703 "QuestionId": 13,
2704 "Text": "El Salvador",
2705 "Value": "El Salvador",
2706 "Order": 56
2707 },
2708 {
2709 "Id": 442,
2710 "QuestionId": 13,
2711 "Text": "Equatorial Guinea",
2712 "Value": "Equatorial Guinea",
2713 "Order": 57
2714 },
2715 {
2716 "Id": 450,
2717 "QuestionId": 13,
2718 "Text": "Eritrea",
2719 "Value": "Eritrea",
2720 "Order": 58
2721 },
2722 {
2723 "Id": 458,
2724 "QuestionId": 13,
2725 "Text": "Estonia",
2726 "Value": "Estonia",
2727 "Order": 59
2728 },
2729 {
2730 "Id": 466,
2731 "QuestionId": 13,
2732 "Text": "Ethiopia",
2733 "Value": "Ethiopia",
2734 "Order": 60
2735 },
2736 {
2737 "Id": 474,
2738 "QuestionId": 13,
2739 "Text": "Fiji",
2740 "Value": "Fiji",
2741 "Order": 61
2742 },
2743 {
2744 "Id": 482,
2745 "QuestionId": 13,
2746 "Text": "Finland",
2747 "Value": "Finland",
2748 "Order": 62
2749 },
2750 {
2751 "Id": 490,
2752 "QuestionId": 13,
2753 "Text": "France",
2754 "Value": "France",
2755 "Order": 63
2756 },
2757 {
2758 "Id": 498,
2759 "QuestionId": 13,
2760 "Text": "Gabon",
2761 "Value": "Gabon",
2762 "Order": 64
2763 },
2764 {
2765 "Id": 506,
2766 "QuestionId": 13,
2767 "Text": "Gambia, The",
2768 "Value": "Gambia, The",
2769 "Order": 65
2770 },
2771 {
2772 "Id": 514,
2773 "QuestionId": 13,
2774 "Text": "Georgia",
2775 "Value": "Georgia",
2776 "Order": 66
2777 },
2778 {
2779 "Id": 522,
2780 "QuestionId": 13,
2781 "Text": "Germany",
2782 "Value": "Germany",
2783 "Order": 67
2784 },
2785 {
2786 "Id": 530,
2787 "QuestionId": 13,
2788 "Text": "Ghana",
2789 "Value": "Ghana",
2790 "Order": 68
2791 },
2792 {
2793 "Id": 538,
2794 "QuestionId": 13,
2795 "Text": "Greece",
2796 "Value": "Greece",
2797 "Order": 69
2798 },
2799 {
2800 "Id": 546,
2801 "QuestionId": 13,
2802 "Text": "Grenada",
2803 "Value": "Grenada",
2804 "Order": 70
2805 },
2806 {
2807 "Id": 554,
2808 "QuestionId": 13,
2809 "Text": "Guatemala",
2810 "Value": "Guatemala",
2811 "Order": 71
2812 },
2813 {
2814 "Id": 562,
2815 "QuestionId": 13,
2816 "Text": "Guinea",
2817 "Value": "Guinea",
2818 "Order": 72
2819 },
2820 {
2821 "Id": 570,
2822 "QuestionId": 13,
2823 "Text": "Guinea-Bissau",
2824 "Value": "Guinea-Bissau",
2825 "Order": 73
2826 },
2827 {
2828 "Id": 578,
2829 "QuestionId": 13,
2830 "Text": "Guyana",
2831 "Value": "Guyana",
2832 "Order": 74
2833 },
2834 {
2835 "Id": 586,
2836 "QuestionId": 13,
2837 "Text": "Haiti",
2838 "Value": "Haiti",
2839 "Order": 75
2840 },
2841 {
2842 "Id": 594,
2843 "QuestionId": 13,
2844 "Text": "Honduras",
2845 "Value": "Honduras",
2846 "Order": 76
2847 },
2848 {
2849 "Id": 602,
2850 "QuestionId": 13,
2851 "Text": "Hungary",
2852 "Value": "Hungary",
2853 "Order": 77
2854 },
2855 {
2856 "Id": 610,
2857 "QuestionId": 13,
2858 "Text": "Iceland",
2859 "Value": "Iceland",
2860 "Order": 78
2861 },
2862 {
2863 "Id": 618,
2864 "QuestionId": 13,
2865 "Text": "India",
2866 "Value": "India",
2867 "Order": 79
2868 },
2869 {
2870 "Id": 626,
2871 "QuestionId": 13,
2872 "Text": "Indonesia",
2873 "Value": "Indonesia",
2874 "Order": 80
2875 },
2876 {
2877 "Id": 634,
2878 "QuestionId": 13,
2879 "Text": "Iran",
2880 "Value": "Iran",
2881 "Order": 81
2882 },
2883 {
2884 "Id": 642,
2885 "QuestionId": 13,
2886 "Text": "Iraq",
2887 "Value": "Iraq",
2888 "Order": 82
2889 },
2890 {
2891 "Id": 650,
2892 "QuestionId": 13,
2893 "Text": "Ireland",
2894 "Value": "Ireland",
2895 "Order": 83
2896 },
2897 {
2898 "Id": 658,
2899 "QuestionId": 13,
2900 "Text": "Israel",
2901 "Value": "Israel",
2902 "Order": 84
2903 },
2904 {
2905 "Id": 666,
2906 "QuestionId": 13,
2907 "Text": "Italy",
2908 "Value": "Italy",
2909 "Order": 85
2910 },
2911 {
2912 "Id": 674,
2913 "QuestionId": 13,
2914 "Text": "Jamaica",
2915 "Value": "Jamaica",
2916 "Order": 86
2917 },
2918 {
2919 "Id": 682,
2920 "QuestionId": 13,
2921 "Text": "Japan",
2922 "Value": "Japan",
2923 "Order": 87
2924 },
2925 {
2926 "Id": 690,
2927 "QuestionId": 13,
2928 "Text": "Jordan",
2929 "Value": "Jordan",
2930 "Order": 88
2931 },
2932 {
2933 "Id": 698,
2934 "QuestionId": 13,
2935 "Text": "Kazakhstan",
2936 "Value": "Kazakhstan",
2937 "Order": 89
2938 },
2939 {
2940 "Id": 706,
2941 "QuestionId": 13,
2942 "Text": "Kenya",
2943 "Value": "Kenya",
2944 "Order": 90
2945 },
2946 {
2947 "Id": 714,
2948 "QuestionId": 13,
2949 "Text": "Kiribati",
2950 "Value": "Kiribati",
2951 "Order": 91
2952 },
2953 {
2954 "Id": 722,
2955 "QuestionId": 13,
2956 "Text": "Korea, North",
2957 "Value": "Korea, North",
2958 "Order": 92
2959 },
2960 {
2961 "Id": 730,
2962 "QuestionId": 13,
2963 "Text": "Korea, South",
2964 "Value": "Korea, South",
2965 "Order": 93
2966 },
2967 {
2968 "Id": 738,
2969 "QuestionId": 13,
2970 "Text": "Kuwait",
2971 "Value": "Kuwait",
2972 "Order": 94
2973 },
2974 {
2975 "Id": 746,
2976 "QuestionId": 13,
2977 "Text": "Kyrgyzstan",
2978 "Value": "Kyrgyzstan",
2979 "Order": 95
2980 },
2981 {
2982 "Id": 754,
2983 "QuestionId": 13,
2984 "Text": "Laos",
2985 "Value": "Laos",
2986 "Order": 96
2987 },
2988 {
2989 "Id": 762,
2990 "QuestionId": 13,
2991 "Text": "Latvia",
2992 "Value": "Latvia",
2993 "Order": 97
2994 },
2995 {
2996 "Id": 770,
2997 "QuestionId": 13,
2998 "Text": "Lebanon",
2999 "Value": "Lebanon",
3000 "Order": 98
3001 },
3002 {
3003 "Id": 778,
3004 "QuestionId": 13,
3005 "Text": "Lesotho",
3006 "Value": "Lesotho",
3007 "Order": 99
3008 },
3009 {
3010 "Id": 786,
3011 "QuestionId": 13,
3012 "Text": "Liberia",
3013 "Value": "Liberia",
3014 "Order": 100
3015 },
3016 {
3017 "Id": 794,
3018 "QuestionId": 13,
3019 "Text": "Libya",
3020 "Value": "Libya",
3021 "Order": 101
3022 },
3023 {
3024 "Id": 802,
3025 "QuestionId": 13,
3026 "Text": "Liechtenstein",
3027 "Value": "Liechtenstein",
3028 "Order": 102
3029 },
3030 {
3031 "Id": 810,
3032 "QuestionId": 13,
3033 "Text": "Lithuania",
3034 "Value": "Lithuania",
3035 "Order": 103
3036 },
3037 {
3038 "Id": 818,
3039 "QuestionId": 13,
3040 "Text": "Luxembourg",
3041 "Value": "Luxembourg",
3042 "Order": 104
3043 },
3044 {
3045 "Id": 826,
3046 "QuestionId": 13,
3047 "Text": "Macedonia",
3048 "Value": "Macedonia",
3049 "Order": 105
3050 },
3051 {
3052 "Id": 834,
3053 "QuestionId": 13,
3054 "Text": "Madagascar",
3055 "Value": "Madagascar",
3056 "Order": 106
3057 },
3058 {
3059 "Id": 842,
3060 "QuestionId": 13,
3061 "Text": "Malawi",
3062 "Value": "Malawi",
3063 "Order": 107
3064 },
3065 {
3066 "Id": 850,
3067 "QuestionId": 13,
3068 "Text": "Malaysia",
3069 "Value": "Malaysia",
3070 "Order": 108
3071 },
3072 {
3073 "Id": 858,
3074 "QuestionId": 13,
3075 "Text": "Maldives",
3076 "Value": "Maldives",
3077 "Order": 109
3078 },
3079 {
3080 "Id": 866,
3081 "QuestionId": 13,
3082 "Text": "Mali",
3083 "Value": "Mali",
3084 "Order": 110
3085 },
3086 {
3087 "Id": 874,
3088 "QuestionId": 13,
3089 "Text": "Malta",
3090 "Value": "Malta",
3091 "Order": 111
3092 },
3093 {
3094 "Id": 882,
3095 "QuestionId": 13,
3096 "Text": "Marshall Islands",
3097 "Value": "Marshall Islands",
3098 "Order": 112
3099 },
3100 {
3101 "Id": 890,
3102 "QuestionId": 13,
3103 "Text": "Mauritania",
3104 "Value": "Mauritania",
3105 "Order": 113
3106 },
3107 {
3108 "Id": 898,
3109 "QuestionId": 13,
3110 "Text": "Mauritius",
3111 "Value": "Mauritius",
3112 "Order": 114
3113 },
3114 {
3115 "Id": 906,
3116 "QuestionId": 13,
3117 "Text": "Mexico",
3118 "Value": "Mexico",
3119 "Order": 115
3120 },
3121 {
3122 "Id": 914,
3123 "QuestionId": 13,
3124 "Text": "Micronesia",
3125 "Value": "Micronesia",
3126 "Order": 116
3127 },
3128 {
3129 "Id": 922,
3130 "QuestionId": 13,
3131 "Text": "Moldova",
3132 "Value": "Moldova",
3133 "Order": 117
3134 },
3135 {
3136 "Id": 930,
3137 "QuestionId": 13,
3138 "Text": "Monaco",
3139 "Value": "Monaco",
3140 "Order": 118
3141 },
3142 {
3143 "Id": 938,
3144 "QuestionId": 13,
3145 "Text": "Mongolia",
3146 "Value": "Mongolia",
3147 "Order": 119
3148 },
3149 {
3150 "Id": 946,
3151 "QuestionId": 13,
3152 "Text": "Morocco",
3153 "Value": "Morocco",
3154 "Order": 120
3155 },
3156 {
3157 "Id": 954,
3158 "QuestionId": 13,
3159 "Text": "Mozambique",
3160 "Value": "Mozambique",
3161 "Order": 121
3162 },
3163 {
3164 "Id": 962,
3165 "QuestionId": 13,
3166 "Text": "Myanmar",
3167 "Value": "Myanmar",
3168 "Order": 122
3169 },
3170 {
3171 "Id": 970,
3172 "QuestionId": 13,
3173 "Text": "Namibia",
3174 "Value": "Namibia",
3175 "Order": 123
3176 },
3177 {
3178 "Id": 978,
3179 "QuestionId": 13,
3180 "Text": "Nauru",
3181 "Value": "Nauru",
3182 "Order": 124
3183 },
3184 {
3185 "Id": 986,
3186 "QuestionId": 13,
3187 "Text": "Nepa",
3188 "Value": "Nepa",
3189 "Order": 125
3190 },
3191 {
3192 "Id": 994,
3193 "QuestionId": 13,
3194 "Text": "Netherlands",
3195 "Value": "Netherlands",
3196 "Order": 126
3197 },
3198 {
3199 "Id": 1002,
3200 "QuestionId": 13,
3201 "Text": "New Zealand",
3202 "Value": "New Zealand",
3203 "Order": 127
3204 },
3205 {
3206 "Id": 1010,
3207 "QuestionId": 13,
3208 "Text": "Nicaragua",
3209 "Value": "Nicaragua",
3210 "Order": 128
3211 },
3212 {
3213 "Id": 1018,
3214 "QuestionId": 13,
3215 "Text": "Niger",
3216 "Value": "Niger",
3217 "Order": 129
3218 },
3219 {
3220 "Id": 1026,
3221 "QuestionId": 13,
3222 "Text": "Nigeria",
3223 "Value": "Nigeria",
3224 "Order": 130
3225 },
3226 {
3227 "Id": 1034,
3228 "QuestionId": 13,
3229 "Text": "Norway",
3230 "Value": "Norway",
3231 "Order": 131
3232 },
3233 {
3234 "Id": 1042,
3235 "QuestionId": 13,
3236 "Text": "Oman",
3237 "Value": "Oman",
3238 "Order": 132
3239 },
3240 {
3241 "Id": 1050,
3242 "QuestionId": 13,
3243 "Text": "Pakistan",
3244 "Value": "Pakistan",
3245 "Order": 133
3246 },
3247 {
3248 "Id": 1058,
3249 "QuestionId": 13,
3250 "Text": "Palau",
3251 "Value": "Palau",
3252 "Order": 134
3253 },
3254 {
3255 "Id": 1066,
3256 "QuestionId": 13,
3257 "Text": "Panama",
3258 "Value": "Panama",
3259 "Order": 135
3260 },
3261 {
3262 "Id": 1074,
3263 "QuestionId": 13,
3264 "Text": "Papua New Guinea",
3265 "Value": "Papua New Guinea",
3266 "Order": 136
3267 },
3268 {
3269 "Id": 1082,
3270 "QuestionId": 13,
3271 "Text": "Paraguay",
3272 "Value": "Paraguay",
3273 "Order": 137
3274 },
3275 {
3276 "Id": 1090,
3277 "QuestionId": 13,
3278 "Text": "Peru",
3279 "Value": "Peru",
3280 "Order": 138
3281 },
3282 {
3283 "Id": 1098,
3284 "QuestionId": 13,
3285 "Text": "Philippines",
3286 "Value": "Philippines",
3287 "Order": 139
3288 },
3289 {
3290 "Id": 1106,
3291 "QuestionId": 13,
3292 "Text": "Poland",
3293 "Value": "Poland",
3294 "Order": 140
3295 },
3296 {
3297 "Id": 1114,
3298 "QuestionId": 13,
3299 "Text": "Portugal",
3300 "Value": "Portugal",
3301 "Order": 141
3302 },
3303 {
3304 "Id": 1122,
3305 "QuestionId": 13,
3306 "Text": "Qatar",
3307 "Value": "Qatar",
3308 "Order": 142
3309 },
3310 {
3311 "Id": 1130,
3312 "QuestionId": 13,
3313 "Text": "Romania",
3314 "Value": "Romania",
3315 "Order": 143
3316 },
3317 {
3318 "Id": 1138,
3319 "QuestionId": 13,
3320 "Text": "Russia",
3321 "Value": "Russia",
3322 "Order": 144
3323 },
3324 {
3325 "Id": 1146,
3326 "QuestionId": 13,
3327 "Text": "Rwanda",
3328 "Value": "Rwanda",
3329 "Order": 145
3330 },
3331 {
3332 "Id": 1154,
3333 "QuestionId": 13,
3334 "Text": "Saint Kitts and Nevis",
3335 "Value": "Saint Kitts and Nevis",
3336 "Order": 146
3337 },
3338 {
3339 "Id": 1162,
3340 "QuestionId": 13,
3341 "Text": "Saint Lucia",
3342 "Value": "Saint Lucia",
3343 "Order": 147
3344 },
3345 {
3346 "Id": 1170,
3347 "QuestionId": 13,
3348 "Text": "Saint Vincent",
3349 "Value": "Saint Vincent",
3350 "Order": 148
3351 },
3352 {
3353 "Id": 1178,
3354 "QuestionId": 13,
3355 "Text": "Samoa",
3356 "Value": "Samoa",
3357 "Order": 149
3358 },
3359 {
3360 "Id": 1186,
3361 "QuestionId": 13,
3362 "Text": "San Marino",
3363 "Value": "San Marino",
3364 "Order": 150
3365 },
3366 {
3367 "Id": 1194,
3368 "QuestionId": 13,
3369 "Text": "Sao Tome and Principe",
3370 "Value": "Sao Tome and Principe",
3371 "Order": 151
3372 },
3373 {
3374 "Id": 1202,
3375 "QuestionId": 13,
3376 "Text": "Saudi Arabia",
3377 "Value": "Saudi Arabia",
3378 "Order": 152
3379 },
3380 {
3381 "Id": 1210,
3382 "QuestionId": 13,
3383 "Text": "Senegal",
3384 "Value": "Senegal",
3385 "Order": 153
3386 },
3387 {
3388 "Id": 1218,
3389 "QuestionId": 13,
3390 "Text": "Serbia and Montenegro",
3391 "Value": "Serbia and Montenegro",
3392 "Order": 154
3393 },
3394 {
3395 "Id": 1226,
3396 "QuestionId": 13,
3397 "Text": "Seychelles",
3398 "Value": "Seychelles",
3399 "Order": 155
3400 },
3401 {
3402 "Id": 1234,
3403 "QuestionId": 13,
3404 "Text": "Sierra Leone",
3405 "Value": "Sierra Leone",
3406 "Order": 156
3407 },
3408 {
3409 "Id": 1242,
3410 "QuestionId": 13,
3411 "Text": "Singapore",
3412 "Value": "Singapore",
3413 "Order": 157
3414 },
3415 {
3416 "Id": 1250,
3417 "QuestionId": 13,
3418 "Text": "Slovakia",
3419 "Value": "Slovakia",
3420 "Order": 158
3421 },
3422 {
3423 "Id": 1258,
3424 "QuestionId": 13,
3425 "Text": "Slovenia",
3426 "Value": "Slovenia",
3427 "Order": 159
3428 },
3429 {
3430 "Id": 1266,
3431 "QuestionId": 13,
3432 "Text": "Solomon Islands",
3433 "Value": "Solomon Islands",
3434 "Order": 160
3435 },
3436 {
3437 "Id": 1274,
3438 "QuestionId": 13,
3439 "Text": "Somalia",
3440 "Value": "Somalia",
3441 "Order": 161
3442 },
3443 {
3444 "Id": 1282,
3445 "QuestionId": 13,
3446 "Text": "South Africa",
3447 "Value": "South Africa",
3448 "Order": 162
3449 },
3450 {
3451 "Id": 1290,
3452 "QuestionId": 13,
3453 "Text": "Spain",
3454 "Value": "Spain",
3455 "Order": 163
3456 },
3457 {
3458 "Id": 1298,
3459 "QuestionId": 13,
3460 "Text": "Sri Lanka",
3461 "Value": "Sri Lanka",
3462 "Order": 164
3463 },
3464 {
3465 "Id": 1306,
3466 "QuestionId": 13,
3467 "Text": "Sudan",
3468 "Value": "Sudan",
3469 "Order": 165
3470 },
3471 {
3472 "Id": 1314,
3473 "QuestionId": 13,
3474 "Text": "Suriname",
3475 "Value": "Suriname",
3476 "Order": 166
3477 },
3478 {
3479 "Id": 1322,
3480 "QuestionId": 13,
3481 "Text": "Swaziland",
3482 "Value": "Swaziland",
3483 "Order": 167
3484 },
3485 {
3486 "Id": 1330,
3487 "QuestionId": 13,
3488 "Text": "Sweden",
3489 "Value": "Sweden",
3490 "Order": 168
3491 },
3492 {
3493 "Id": 1338,
3494 "QuestionId": 13,
3495 "Text": "Switzerland",
3496 "Value": "Switzerland",
3497 "Order": 169
3498 },
3499 {
3500 "Id": 1346,
3501 "QuestionId": 13,
3502 "Text": "Syria",
3503 "Value": "Syria",
3504 "Order": 170
3505 },
3506 {
3507 "Id": 1354,
3508 "QuestionId": 13,
3509 "Text": "Taiwan",
3510 "Value": "Taiwan",
3511 "Order": 171
3512 },
3513 {
3514 "Id": 1362,
3515 "QuestionId": 13,
3516 "Text": "Tajikistan",
3517 "Value": "Tajikistan",
3518 "Order": 172
3519 },
3520 {
3521 "Id": 1370,
3522 "QuestionId": 13,
3523 "Text": "Tanzania",
3524 "Value": "Tanzania",
3525 "Order": 173
3526 },
3527 {
3528 "Id": 1378,
3529 "QuestionId": 13,
3530 "Text": "Thailand",
3531 "Value": "Thailand",
3532 "Order": 174
3533 },
3534 {
3535 "Id": 1386,
3536 "QuestionId": 13,
3537 "Text": "Togo",
3538 "Value": "Togo",
3539 "Order": 175
3540 },
3541 {
3542 "Id": 1394,
3543 "QuestionId": 13,
3544 "Text": "Tonga",
3545 "Value": "Tonga",
3546 "Order": 176
3547 },
3548 {
3549 "Id": 1402,
3550 "QuestionId": 13,
3551 "Text": "Trinidad and Tobago",
3552 "Value": "Trinidad and Tobago",
3553 "Order": 177
3554 },
3555 {
3556 "Id": 1410,
3557 "QuestionId": 13,
3558 "Text": "Tunisia",
3559 "Value": "Tunisia",
3560 "Order": 178
3561 },
3562 {
3563 "Id": 1418,
3564 "QuestionId": 13,
3565 "Text": "Turkey",
3566 "Value": "Turkey",
3567 "Order": 179
3568 },
3569 {
3570 "Id": 1426,
3571 "QuestionId": 13,
3572 "Text": "Turkmenistan",
3573 "Value": "Turkmenistan",
3574 "Order": 180
3575 },
3576 {
3577 "Id": 1434,
3578 "QuestionId": 13,
3579 "Text": "Tuvalu",
3580 "Value": "Tuvalu",
3581 "Order": 181
3582 },
3583 {
3584 "Id": 1442,
3585 "QuestionId": 13,
3586 "Text": "Uganda",
3587 "Value": "Uganda",
3588 "Order": 182
3589 },
3590 {
3591 "Id": 1450,
3592 "QuestionId": 13,
3593 "Text": "Ukraine",
3594 "Value": "Ukraine",
3595 "Order": 183
3596 },
3597 {
3598 "Id": 1458,
3599 "QuestionId": 13,
3600 "Text": "United Arab Emirates",
3601 "Value": "United Arab Emirates",
3602 "Order": 184
3603 },
3604 {
3605 "Id": 1466,
3606 "QuestionId": 13,
3607 "Text": "United Kingdom",
3608 "Value": "United Kingdom",
3609 "Order": 185
3610 },
3611 {
3612 "Id": 1474,
3613 "QuestionId": 13,
3614 "Text": "United States",
3615 "Value": "United States",
3616 "Order": 2
3617 },
3618 {
3619 "Id": 1482,
3620 "QuestionId": 13,
3621 "Text": "Uruguay",
3622 "Value": "Uruguay",
3623 "Order": 186
3624 },
3625 {
3626 "Id": 1490,
3627 "QuestionId": 13,
3628 "Text": "Uzbekistan",
3629 "Value": "Uzbekistan",
3630 "Order": 187
3631 },
3632 {
3633 "Id": 1498,
3634 "QuestionId": 13,
3635 "Text": "Vanuatu",
3636 "Value": "Vanuatu",
3637 "Order": 188
3638 },
3639 {
3640 "Id": 1506,
3641 "QuestionId": 13,
3642 "Text": "Vatican City",
3643 "Value": "Vatican City",
3644 "Order": 189
3645 },
3646 {
3647 "Id": 1514,
3648 "QuestionId": 13,
3649 "Text": "Venezuela",
3650 "Value": "Venezuela",
3651 "Order": 190
3652 },
3653 {
3654 "Id": 1522,
3655 "QuestionId": 13,
3656 "Text": "Vietnam",
3657 "Value": "Vietnam",
3658 "Order": 191
3659 },
3660 {
3661 "Id": 1530,
3662 "QuestionId": 13,
3663 "Text": "Yemen",
3664 "Value": "Yemen",
3665 "Order": 192
3666 },
3667 {
3668 "Id": 1538,
3669 "QuestionId": 13,
3670 "Text": "Zambia",
3671 "Value": "Zambia",
3672 "Order": 193
3673 },
3674 {
3675 "Id": 1546,
3676 "QuestionId": 13,
3677 "Text": "Zimbabwe",
3678 "Value": "Zimbabwe",
3679 "Order": 194
3680 },
3681 {
3682 "Id": 2186,
3683 "QuestionId": 13,
3684 "Text": "British Columbia",
3685 "Value": "British Columbia",
3686 "Order": 195
3687 }
3688 ]
3689 },
3690 {
3691 "Id": 14,
3692 "Text": "Phone",
3693 "Type": "0",
3694 "Alias": "Phone"
3695 },
3696 {
3697 "Id": 15,
3698 "Text": "Fax",
3699 "Type": "0",
3700 "Alias": "Fax"
3701 },
3702 {
3703 "Id": 18,
3704 "Text": " NEW QUESTION",
3705 "Type": "0",
3706 "Alias": ""
3707 },
3708 {
3709 "Id": 26,
3710 "Text": " NEW QUESTION",
3711 "Type": "0",
3712 "Alias": ""
3713 },
3714 {
3715 "Id": 34,
3716 "Text": " NEW QUESTION",
3717 "Type": "0",
3718 "Alias": ""
3719 },
3720 {
3721 "Id": 42,
3722 "Text": " NEW QUESTION",
3723 "Type": "0",
3724 "Alias": ""
3725 },
3726 {
3727 "Id": 50,
3728 "Text": " NEW QUESTION",
3729 "Type": "0",
3730 "Alias": ""
3731 },
3732 {
3733 "Id": 58,
3734 "Text": " NEW QUESTION",
3735 "Type": "0",
3736 "Alias": ""
3737 },
3738 {
3739 "Id": 66,
3740 "Text": " NEW QUESTION",
3741 "Type": "0",
3742 "Alias": ""
3743 },
3744 {
3745 "Id": 74,
3746 "Text": " NEW QUESTION",
3747 "Type": "0",
3748 "Alias": ""
3749 },
3750 {
3751 "Id": 82,
3752 "Text": " NEW QUESTION",
3753 "Type": "0",
3754 "Alias": ""
3755 },
3756 {
3757 "Id": 90,
3758 "Text": " NEW QUESTION",
3759 "Type": "0",
3760 "Alias": ""
3761 }
3762 ]
3763 }
3764 {{/code}}
3765
3766
3767 (% id="HGETspecificQuestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
3768 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Question(%%) ==
3769
3770 ----
3771
3772 {{panel bgColor="#D3D3D3" width="100%"}}
3773 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}}
3774 {{/panel}}
3775
3776 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
3777
3778 ----
3779
3780 (% 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}}
3781
3782 ==== Example ====
3783
3784 ----
3785
3786 (% style="color:#6b6b6b" %)Request
3787
3788 {{code language="php" theme="RDark" title="Get specific Question Request"}}
3789 <?php
3790
3791 $curl = curl_init();
3792
3793 curl_setopt_array($curl, array(
3794 CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}',
3795 CURLOPT_RETURNTRANSFER => true,
3796 CURLOPT_ENCODING => '',
3797 CURLOPT_MAXREDIRS => 10,
3798 CURLOPT_TIMEOUT => 0,
3799 CURLOPT_FOLLOWLOCATION => true,
3800 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
3801 CURLOPT_CUSTOMREQUEST => 'GET',
3802 CURLOPT_HTTPHEADER => array(
3803 'Appkey: {{ONECOUNT API KEY}}'
3804 ),
3805 ));
3806
3807 $response = curl_exec($curl);
3808
3809 curl_close($curl);
3810 echo $response;
3811 {{/code}}
3812
3813
3814 (% style="color:#6b6b6b" %)Response  200 OK
3815
3816 {{code language="yml" theme="RDark" collapse="true" title="Get specific question Response"}}
3817 {
3818 "result": {
3819 "success": "1",
3820 "error": {
3821 "code": "",
3822 "message": ""
3823 }
3824 },
3825 "Questions": [
3826 {
3827 "Id": 3,
3828 "Text": "Password",
3829 "Type": "2",
3830 "Alias": "Password"
3831 }
3832 ]
3833 }
3834 {{/code}}
3835
3836
3837 (% id="HGETlookupquestionbytext" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
3838 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by text(%%) ==
3839
3840 ----
3841
3842 {{panel bgColor="#D3D3D3" width="100%"}}
3843 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Text=COUNTRY
3844 {{/panel}}
3845
3846 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
3847
3848 ----
3849
3850 (% 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}}
3851
3852 === (% style="color:#212121" %)Query Params(%%) ===
3853
3854 ----
3855
3856 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Text  COUNTRY(%%)
3857
3858
3859 ==== Example ====
3860
3861 ----
3862
3863 (% style="color:#6b6b6b" %)Request
3864
3865 {{code language="php" theme="RDark" title="Lookup question by text Request"}}
3866 <?php
3867
3868 $curl = curl_init();
3869
3870 curl_setopt_array($curl, array(
3871 CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Text=COUNTRY',
3872 CURLOPT_RETURNTRANSFER => true,
3873 CURLOPT_ENCODING => '',
3874 CURLOPT_MAXREDIRS => 10,
3875 CURLOPT_TIMEOUT => 0,
3876 CURLOPT_FOLLOWLOCATION => true,
3877 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
3878 CURLOPT_CUSTOMREQUEST => 'GET',
3879 CURLOPT_HTTPHEADER => array(
3880 'Appkey: {{ONECOUNT API KEY}}'
3881 ),
3882 ));
3883
3884 $response = curl_exec($curl);
3885
3886 curl_close($curl);
3887 echo $response;
3888 {{/code}}
3889
3890
3891 (% style="color:#6b6b6b" %)Response  200 OK
3892
3893 {{code language="yml" theme="RDark" collapse="true" title="Lookup question by title Response"}}
3894 {
3895 "result": {
3896 "success": "1",
3897 "error": {
3898 "code": "",
3899 "message": ""
3900 }
3901 },
3902 "Questions": [
3903 {
3904 "Id": 13,
3905 "Text": "Country",
3906 "Type": "4",
3907 "Alias": "Country",
3908 "Choices": [
3909 {
3910 "Id": 2,
3911 "QuestionId": 13,
3912 "Text": "Select One",
3913 "Value": "",
3914 "Order": 1
3915 },
3916 {
3917 "Id": 10,
3918 "QuestionId": 13,
3919 "Text": "Afghanistan",
3920 "Value": "Afghanistan",
3921 "Order": 3
3922 },
3923 {
3924 "Id": 18,
3925 "QuestionId": 13,
3926 "Text": "Albania",
3927 "Value": "Albania",
3928 "Order": 4
3929 },
3930 {
3931 "Id": 26,
3932 "QuestionId": 13,
3933 "Text": "Algeria",
3934 "Value": "Algeria",
3935 "Order": 5
3936 },
3937 {
3938 "Id": 34,
3939 "QuestionId": 13,
3940 "Text": "Andorra",
3941 "Value": "Andorra",
3942 "Order": 6
3943 },
3944 {
3945 "Id": 42,
3946 "QuestionId": 13,
3947 "Text": "Angola",
3948 "Value": "Angola",
3949 "Order": 7
3950 },
3951 {
3952 "Id": 50,
3953 "QuestionId": 13,
3954 "Text": "Antigua and Barbuda",
3955 "Value": "Antigua and Barbuda",
3956 "Order": 8
3957 },
3958 {
3959 "Id": 58,
3960 "QuestionId": 13,
3961 "Text": "Argentina",
3962 "Value": "Argentina",
3963 "Order": 9
3964 },
3965 {
3966 "Id": 66,
3967 "QuestionId": 13,
3968 "Text": "Armenia",
3969 "Value": "Armenia",
3970 "Order": 10
3971 },
3972 {
3973 "Id": 74,
3974 "QuestionId": 13,
3975 "Text": "Australia",
3976 "Value": "Australia",
3977 "Order": 11
3978 },
3979 {
3980 "Id": 82,
3981 "QuestionId": 13,
3982 "Text": "Austria",
3983 "Value": "Austria",
3984 "Order": 12
3985 },
3986 {
3987 "Id": 90,
3988 "QuestionId": 13,
3989 "Text": "Azerbaijan",
3990 "Value": "Azerbaijan",
3991 "Order": 13
3992 },
3993 {
3994 "Id": 98,
3995 "QuestionId": 13,
3996 "Text": "Bahamas",
3997 "Value": "Bahamas",
3998 "Order": 14
3999 },
4000 {
4001 "Id": 106,
4002 "QuestionId": 13,
4003 "Text": "Bahrain",
4004 "Value": "Bahrain",
4005 "Order": 15
4006 },
4007 {
4008 "Id": 114,
4009 "QuestionId": 13,
4010 "Text": "Bangladesh",
4011 "Value": "Bangladesh",
4012 "Order": 16
4013 },
4014 {
4015 "Id": 122,
4016 "QuestionId": 13,
4017 "Text": "Barbados",
4018 "Value": "Barbados",
4019 "Order": 17
4020 },
4021 {
4022 "Id": 130,
4023 "QuestionId": 13,
4024 "Text": "Belarus",
4025 "Value": "Belarus",
4026 "Order": 18
4027 },
4028 {
4029 "Id": 138,
4030 "QuestionId": 13,
4031 "Text": "Belgium",
4032 "Value": "Belgium",
4033 "Order": 19
4034 },
4035 {
4036 "Id": 146,
4037 "QuestionId": 13,
4038 "Text": "Belize",
4039 "Value": "Belize",
4040 "Order": 20
4041 },
4042 {
4043 "Id": 154,
4044 "QuestionId": 13,
4045 "Text": "Benin",
4046 "Value": "Benin",
4047 "Order": 21
4048 },
4049 {
4050 "Id": 162,
4051 "QuestionId": 13,
4052 "Text": "Bhutan",
4053 "Value": "Bhutan",
4054 "Order": 22
4055 },
4056 {
4057 "Id": 170,
4058 "QuestionId": 13,
4059 "Text": "Bolivia",
4060 "Value": "Bolivia",
4061 "Order": 23
4062 },
4063 {
4064 "Id": 178,
4065 "QuestionId": 13,
4066 "Text": "Bosnia and Herzegovina",
4067 "Value": "Bosnia and Herzegovina",
4068 "Order": 24
4069 },
4070 {
4071 "Id": 186,
4072 "QuestionId": 13,
4073 "Text": "Botswana",
4074 "Value": "Botswana",
4075 "Order": 25
4076 },
4077 {
4078 "Id": 194,
4079 "QuestionId": 13,
4080 "Text": "Brazil",
4081 "Value": "Brazil",
4082 "Order": 26
4083 },
4084 {
4085 "Id": 202,
4086 "QuestionId": 13,
4087 "Text": "Brunei",
4088 "Value": "Brunei",
4089 "Order": 27
4090 },
4091 {
4092 "Id": 210,
4093 "QuestionId": 13,
4094 "Text": "Bulgaria",
4095 "Value": "Bulgaria",
4096 "Order": 28
4097 },
4098 {
4099 "Id": 218,
4100 "QuestionId": 13,
4101 "Text": "Burkina Faso",
4102 "Value": "Burkina Faso",
4103 "Order": 29
4104 },
4105 {
4106 "Id": 226,
4107 "QuestionId": 13,
4108 "Text": "Burundi",
4109 "Value": "Burundi",
4110 "Order": 30
4111 },
4112 {
4113 "Id": 234,
4114 "QuestionId": 13,
4115 "Text": "Cambodia",
4116 "Value": "Cambodia",
4117 "Order": 31
4118 },
4119 {
4120 "Id": 242,
4121 "QuestionId": 13,
4122 "Text": "Cameroon",
4123 "Value": "Cameroon",
4124 "Order": 32
4125 },
4126 {
4127 "Id": 250,
4128 "QuestionId": 13,
4129 "Text": "Canada",
4130 "Value": "Canada",
4131 "Order": 33
4132 },
4133 {
4134 "Id": 258,
4135 "QuestionId": 13,
4136 "Text": "Cape Verde",
4137 "Value": "Cape Verde",
4138 "Order": 34
4139 },
4140 {
4141 "Id": 266,
4142 "QuestionId": 13,
4143 "Text": "Central African Republic",
4144 "Value": "Central African Republic",
4145 "Order": 35
4146 },
4147 {
4148 "Id": 274,
4149 "QuestionId": 13,
4150 "Text": "Chad",
4151 "Value": "Chad",
4152 "Order": 36
4153 },
4154 {
4155 "Id": 282,
4156 "QuestionId": 13,
4157 "Text": "Chile",
4158 "Value": "Chile",
4159 "Order": 37
4160 },
4161 {
4162 "Id": 290,
4163 "QuestionId": 13,
4164 "Text": "China",
4165 "Value": "China",
4166 "Order": 38
4167 },
4168 {
4169 "Id": 298,
4170 "QuestionId": 13,
4171 "Text": "Colombia",
4172 "Value": "Colombia",
4173 "Order": 39
4174 },
4175 {
4176 "Id": 306,
4177 "QuestionId": 13,
4178 "Text": "Comoros",
4179 "Value": "Comoros",
4180 "Order": 40
4181 },
4182 {
4183 "Id": 314,
4184 "QuestionId": 13,
4185 "Text": "Congo (Brazzaville)",
4186 "Value": "Congo (Brazzaville)",
4187 "Order": 41
4188 },
4189 {
4190 "Id": 322,
4191 "QuestionId": 13,
4192 "Text": "Congo",
4193 "Value": "Congo",
4194 "Order": 42
4195 },
4196 {
4197 "Id": 330,
4198 "QuestionId": 13,
4199 "Text": "Costa Rica",
4200 "Value": "Costa Rica",
4201 "Order": 43
4202 },
4203 {
4204 "Id": 338,
4205 "QuestionId": 13,
4206 "Text": "Cote d'Ivoire",
4207 "Value": "Cote d'Ivoire",
4208 "Order": 44
4209 },
4210 {
4211 "Id": 346,
4212 "QuestionId": 13,
4213 "Text": "Croatia",
4214 "Value": "Croatia",
4215 "Order": 45
4216 },
4217 {
4218 "Id": 354,
4219 "QuestionId": 13,
4220 "Text": "Cuba",
4221 "Value": "Cuba",
4222 "Order": 46
4223 },
4224 {
4225 "Id": 362,
4226 "QuestionId": 13,
4227 "Text": "Cyprus",
4228 "Value": "Cyprus",
4229 "Order": 47
4230 },
4231 {
4232 "Id": 370,
4233 "QuestionId": 13,
4234 "Text": "Czech Republic",
4235 "Value": "Czech Republic",
4236 "Order": 48
4237 },
4238 {
4239 "Id": 378,
4240 "QuestionId": 13,
4241 "Text": "Denmark",
4242 "Value": "Denmark",
4243 "Order": 49
4244 },
4245 {
4246 "Id": 386,
4247 "QuestionId": 13,
4248 "Text": "Djibouti",
4249 "Value": "Djibouti",
4250 "Order": 50
4251 },
4252 {
4253 "Id": 394,
4254 "QuestionId": 13,
4255 "Text": "Dominica",
4256 "Value": "Dominica",
4257 "Order": 51
4258 },
4259 {
4260 "Id": 402,
4261 "QuestionId": 13,
4262 "Text": "Dominican Republic",
4263 "Value": "Dominican Republic",
4264 "Order": 52
4265 },
4266 {
4267 "Id": 410,
4268 "QuestionId": 13,
4269 "Text": "East Timor",
4270 "Value": "East Timor",
4271 "Order": 53
4272 },
4273 {
4274 "Id": 418,
4275 "QuestionId": 13,
4276 "Text": "Ecuador",
4277 "Value": "Ecuador",
4278 "Order": 54
4279 },
4280 {
4281 "Id": 426,
4282 "QuestionId": 13,
4283 "Text": "Egypt",
4284 "Value": "Egypt",
4285 "Order": 55
4286 },
4287 {
4288 "Id": 434,
4289 "QuestionId": 13,
4290 "Text": "El Salvador",
4291 "Value": "El Salvador",
4292 "Order": 56
4293 },
4294 {
4295 "Id": 442,
4296 "QuestionId": 13,
4297 "Text": "Equatorial Guinea",
4298 "Value": "Equatorial Guinea",
4299 "Order": 57
4300 },
4301 {
4302 "Id": 450,
4303 "QuestionId": 13,
4304 "Text": "Eritrea",
4305 "Value": "Eritrea",
4306 "Order": 58
4307 },
4308 {
4309 "Id": 458,
4310 "QuestionId": 13,
4311 "Text": "Estonia",
4312 "Value": "Estonia",
4313 "Order": 59
4314 },
4315 {
4316 "Id": 466,
4317 "QuestionId": 13,
4318 "Text": "Ethiopia",
4319 "Value": "Ethiopia",
4320 "Order": 60
4321 },
4322 {
4323 "Id": 474,
4324 "QuestionId": 13,
4325 "Text": "Fiji",
4326 "Value": "Fiji",
4327 "Order": 61
4328 },
4329 {
4330 "Id": 482,
4331 "QuestionId": 13,
4332 "Text": "Finland",
4333 "Value": "Finland",
4334 "Order": 62
4335 },
4336 {
4337 "Id": 490,
4338 "QuestionId": 13,
4339 "Text": "France",
4340 "Value": "France",
4341 "Order": 63
4342 },
4343 {
4344 "Id": 498,
4345 "QuestionId": 13,
4346 "Text": "Gabon",
4347 "Value": "Gabon",
4348 "Order": 64
4349 },
4350 {
4351 "Id": 506,
4352 "QuestionId": 13,
4353 "Text": "Gambia, The",
4354 "Value": "Gambia, The",
4355 "Order": 65
4356 },
4357 {
4358 "Id": 514,
4359 "QuestionId": 13,
4360 "Text": "Georgia",
4361 "Value": "Georgia",
4362 "Order": 66
4363 },
4364 {
4365 "Id": 522,
4366 "QuestionId": 13,
4367 "Text": "Germany",
4368 "Value": "Germany",
4369 "Order": 67
4370 },
4371 {
4372 "Id": 530,
4373 "QuestionId": 13,
4374 "Text": "Ghana",
4375 "Value": "Ghana",
4376 "Order": 68
4377 },
4378 {
4379 "Id": 538,
4380 "QuestionId": 13,
4381 "Text": "Greece",
4382 "Value": "Greece",
4383 "Order": 69
4384 },
4385 {
4386 "Id": 546,
4387 "QuestionId": 13,
4388 "Text": "Grenada",
4389 "Value": "Grenada",
4390 "Order": 70
4391 },
4392 {
4393 "Id": 554,
4394 "QuestionId": 13,
4395 "Text": "Guatemala",
4396 "Value": "Guatemala",
4397 "Order": 71
4398 },
4399 {
4400 "Id": 562,
4401 "QuestionId": 13,
4402 "Text": "Guinea",
4403 "Value": "Guinea",
4404 "Order": 72
4405 },
4406 {
4407 "Id": 570,
4408 "QuestionId": 13,
4409 "Text": "Guinea-Bissau",
4410 "Value": "Guinea-Bissau",
4411 "Order": 73
4412 },
4413 {
4414 "Id": 578,
4415 "QuestionId": 13,
4416 "Text": "Guyana",
4417 "Value": "Guyana",
4418 "Order": 74
4419 },
4420 {
4421 "Id": 586,
4422 "QuestionId": 13,
4423 "Text": "Haiti",
4424 "Value": "Haiti",
4425 "Order": 75
4426 },
4427 {
4428 "Id": 594,
4429 "QuestionId": 13,
4430 "Text": "Honduras",
4431 "Value": "Honduras",
4432 "Order": 76
4433 },
4434 {
4435 "Id": 602,
4436 "QuestionId": 13,
4437 "Text": "Hungary",
4438 "Value": "Hungary",
4439 "Order": 77
4440 },
4441 {
4442 "Id": 610,
4443 "QuestionId": 13,
4444 "Text": "Iceland",
4445 "Value": "Iceland",
4446 "Order": 78
4447 },
4448 {
4449 "Id": 618,
4450 "QuestionId": 13,
4451 "Text": "India",
4452 "Value": "India",
4453 "Order": 79
4454 },
4455 {
4456 "Id": 626,
4457 "QuestionId": 13,
4458 "Text": "Indonesia",
4459 "Value": "Indonesia",
4460 "Order": 80
4461 },
4462 {
4463 "Id": 634,
4464 "QuestionId": 13,
4465 "Text": "Iran",
4466 "Value": "Iran",
4467 "Order": 81
4468 },
4469 {
4470 "Id": 642,
4471 "QuestionId": 13,
4472 "Text": "Iraq",
4473 "Value": "Iraq",
4474 "Order": 82
4475 },
4476 {
4477 "Id": 650,
4478 "QuestionId": 13,
4479 "Text": "Ireland",
4480 "Value": "Ireland",
4481 "Order": 83
4482 },
4483 {
4484 "Id": 658,
4485 "QuestionId": 13,
4486 "Text": "Israel",
4487 "Value": "Israel",
4488 "Order": 84
4489 },
4490 {
4491 "Id": 666,
4492 "QuestionId": 13,
4493 "Text": "Italy",
4494 "Value": "Italy",
4495 "Order": 85
4496 },
4497 {
4498 "Id": 674,
4499 "QuestionId": 13,
4500 "Text": "Jamaica",
4501 "Value": "Jamaica",
4502 "Order": 86
4503 },
4504 {
4505 "Id": 682,
4506 "QuestionId": 13,
4507 "Text": "Japan",
4508 "Value": "Japan",
4509 "Order": 87
4510 },
4511 {
4512 "Id": 690,
4513 "QuestionId": 13,
4514 "Text": "Jordan",
4515 "Value": "Jordan",
4516 "Order": 88
4517 },
4518 {
4519 "Id": 698,
4520 "QuestionId": 13,
4521 "Text": "Kazakhstan",
4522 "Value": "Kazakhstan",
4523 "Order": 89
4524 },
4525 {
4526 "Id": 706,
4527 "QuestionId": 13,
4528 "Text": "Kenya",
4529 "Value": "Kenya",
4530 "Order": 90
4531 },
4532 {
4533 "Id": 714,
4534 "QuestionId": 13,
4535 "Text": "Kiribati",
4536 "Value": "Kiribati",
4537 "Order": 91
4538 },
4539 {
4540 "Id": 722,
4541 "QuestionId": 13,
4542 "Text": "Korea, North",
4543 "Value": "Korea, North",
4544 "Order": 92
4545 },
4546 {
4547 "Id": 730,
4548 "QuestionId": 13,
4549 "Text": "Korea, South",
4550 "Value": "Korea, South",
4551 "Order": 93
4552 },
4553 {
4554 "Id": 738,
4555 "QuestionId": 13,
4556 "Text": "Kuwait",
4557 "Value": "Kuwait",
4558 "Order": 94
4559 },
4560 {
4561 "Id": 746,
4562 "QuestionId": 13,
4563 "Text": "Kyrgyzstan",
4564 "Value": "Kyrgyzstan",
4565 "Order": 95
4566 },
4567 {
4568 "Id": 754,
4569 "QuestionId": 13,
4570 "Text": "Laos",
4571 "Value": "Laos",
4572 "Order": 96
4573 },
4574 {
4575 "Id": 762,
4576 "QuestionId": 13,
4577 "Text": "Latvia",
4578 "Value": "Latvia",
4579 "Order": 97
4580 },
4581 {
4582 "Id": 770,
4583 "QuestionId": 13,
4584 "Text": "Lebanon",
4585 "Value": "Lebanon",
4586 "Order": 98
4587 },
4588 {
4589 "Id": 778,
4590 "QuestionId": 13,
4591 "Text": "Lesotho",
4592 "Value": "Lesotho",
4593 "Order": 99
4594 },
4595 {
4596 "Id": 786,
4597 "QuestionId": 13,
4598 "Text": "Liberia",
4599 "Value": "Liberia",
4600 "Order": 100
4601 },
4602 {
4603 "Id": 794,
4604 "QuestionId": 13,
4605 "Text": "Libya",
4606 "Value": "Libya",
4607 "Order": 101
4608 },
4609 {
4610 "Id": 802,
4611 "QuestionId": 13,
4612 "Text": "Liechtenstein",
4613 "Value": "Liechtenstein",
4614 "Order": 102
4615 },
4616 {
4617 "Id": 810,
4618 "QuestionId": 13,
4619 "Text": "Lithuania",
4620 "Value": "Lithuania",
4621 "Order": 103
4622 },
4623 {
4624 "Id": 818,
4625 "QuestionId": 13,
4626 "Text": "Luxembourg",
4627 "Value": "Luxembourg",
4628 "Order": 104
4629 },
4630 {
4631 "Id": 826,
4632 "QuestionId": 13,
4633 "Text": "Macedonia",
4634 "Value": "Macedonia",
4635 "Order": 105
4636 },
4637 {
4638 "Id": 834,
4639 "QuestionId": 13,
4640 "Text": "Madagascar",
4641 "Value": "Madagascar",
4642 "Order": 106
4643 },
4644 {
4645 "Id": 842,
4646 "QuestionId": 13,
4647 "Text": "Malawi",
4648 "Value": "Malawi",
4649 "Order": 107
4650 },
4651 {
4652 "Id": 850,
4653 "QuestionId": 13,
4654 "Text": "Malaysia",
4655 "Value": "Malaysia",
4656 "Order": 108
4657 },
4658 {
4659 "Id": 858,
4660 "QuestionId": 13,
4661 "Text": "Maldives",
4662 "Value": "Maldives",
4663 "Order": 109
4664 },
4665 {
4666 "Id": 866,
4667 "QuestionId": 13,
4668 "Text": "Mali",
4669 "Value": "Mali",
4670 "Order": 110
4671 },
4672 {
4673 "Id": 874,
4674 "QuestionId": 13,
4675 "Text": "Malta",
4676 "Value": "Malta",
4677 "Order": 111
4678 },
4679 {
4680 "Id": 882,
4681 "QuestionId": 13,
4682 "Text": "Marshall Islands",
4683 "Value": "Marshall Islands",
4684 "Order": 112
4685 },
4686 {
4687 "Id": 890,
4688 "QuestionId": 13,
4689 "Text": "Mauritania",
4690 "Value": "Mauritania",
4691 "Order": 113
4692 },
4693 {
4694 "Id": 898,
4695 "QuestionId": 13,
4696 "Text": "Mauritius",
4697 "Value": "Mauritius",
4698 "Order": 114
4699 },
4700 {
4701 "Id": 906,
4702 "QuestionId": 13,
4703 "Text": "Mexico",
4704 "Value": "Mexico",
4705 "Order": 115
4706 },
4707 {
4708 "Id": 914,
4709 "QuestionId": 13,
4710 "Text": "Micronesia",
4711 "Value": "Micronesia",
4712 "Order": 116
4713 },
4714 {
4715 "Id": 922,
4716 "QuestionId": 13,
4717 "Text": "Moldova",
4718 "Value": "Moldova",
4719 "Order": 117
4720 },
4721 {
4722 "Id": 930,
4723 "QuestionId": 13,
4724 "Text": "Monaco",
4725 "Value": "Monaco",
4726 "Order": 118
4727 },
4728 {
4729 "Id": 938,
4730 "QuestionId": 13,
4731 "Text": "Mongolia",
4732 "Value": "Mongolia",
4733 "Order": 119
4734 },
4735 {
4736 "Id": 946,
4737 "QuestionId": 13,
4738 "Text": "Morocco",
4739 "Value": "Morocco",
4740 "Order": 120
4741 },
4742 {
4743 "Id": 954,
4744 "QuestionId": 13,
4745 "Text": "Mozambique",
4746 "Value": "Mozambique",
4747 "Order": 121
4748 },
4749 {
4750 "Id": 962,
4751 "QuestionId": 13,
4752 "Text": "Myanmar",
4753 "Value": "Myanmar",
4754 "Order": 122
4755 },
4756 {
4757 "Id": 970,
4758 "QuestionId": 13,
4759 "Text": "Namibia",
4760 "Value": "Namibia",
4761 "Order": 123
4762 },
4763 {
4764 "Id": 978,
4765 "QuestionId": 13,
4766 "Text": "Nauru",
4767 "Value": "Nauru",
4768 "Order": 124
4769 },
4770 {
4771 "Id": 986,
4772 "QuestionId": 13,
4773 "Text": "Nepa",
4774 "Value": "Nepa",
4775 "Order": 125
4776 },
4777 {
4778 "Id": 994,
4779 "QuestionId": 13,
4780 "Text": "Netherlands",
4781 "Value": "Netherlands",
4782 "Order": 126
4783 },
4784 {
4785 "Id": 1002,
4786 "QuestionId": 13,
4787 "Text": "New Zealand",
4788 "Value": "New Zealand",
4789 "Order": 127
4790 },
4791 {
4792 "Id": 1010,
4793 "QuestionId": 13,
4794 "Text": "Nicaragua",
4795 "Value": "Nicaragua",
4796 "Order": 128
4797 },
4798 {
4799 "Id": 1018,
4800 "QuestionId": 13,
4801 "Text": "Niger",
4802 "Value": "Niger",
4803 "Order": 129
4804 },
4805 {
4806 "Id": 1026,
4807 "QuestionId": 13,
4808 "Text": "Nigeria",
4809 "Value": "Nigeria",
4810 "Order": 130
4811 },
4812 {
4813 "Id": 1034,
4814 "QuestionId": 13,
4815 "Text": "Norway",
4816 "Value": "Norway",
4817 "Order": 131
4818 },
4819 {
4820 "Id": 1042,
4821 "QuestionId": 13,
4822 "Text": "Oman",
4823 "Value": "Oman",
4824 "Order": 132
4825 },
4826 {
4827 "Id": 1050,
4828 "QuestionId": 13,
4829 "Text": "Pakistan",
4830 "Value": "Pakistan",
4831 "Order": 133
4832 },
4833 {
4834 "Id": 1058,
4835 "QuestionId": 13,
4836 "Text": "Palau",
4837 "Value": "Palau",
4838 "Order": 134
4839 },
4840 {
4841 "Id": 1066,
4842 "QuestionId": 13,
4843 "Text": "Panama",
4844 "Value": "Panama",
4845 "Order": 135
4846 },
4847 {
4848 "Id": 1074,
4849 "QuestionId": 13,
4850 "Text": "Papua New Guinea",
4851 "Value": "Papua New Guinea",
4852 "Order": 136
4853 },
4854 {
4855 "Id": 1082,
4856 "QuestionId": 13,
4857 "Text": "Paraguay",
4858 "Value": "Paraguay",
4859 "Order": 137
4860 },
4861 {
4862 "Id": 1090,
4863 "QuestionId": 13,
4864 "Text": "Peru",
4865 "Value": "Peru",
4866 "Order": 138
4867 },
4868 {
4869 "Id": 1098,
4870 "QuestionId": 13,
4871 "Text": "Philippines",
4872 "Value": "Philippines",
4873 "Order": 139
4874 },
4875 {
4876 "Id": 1106,
4877 "QuestionId": 13,
4878 "Text": "Poland",
4879 "Value": "Poland",
4880 "Order": 140
4881 },
4882 {
4883 "Id": 1114,
4884 "QuestionId": 13,
4885 "Text": "Portugal",
4886 "Value": "Portugal",
4887 "Order": 141
4888 },
4889 {
4890 "Id": 1122,
4891 "QuestionId": 13,
4892 "Text": "Qatar",
4893 "Value": "Qatar",
4894 "Order": 142
4895 },
4896 {
4897 "Id": 1130,
4898 "QuestionId": 13,
4899 "Text": "Romania",
4900 "Value": "Romania",
4901 "Order": 143
4902 },
4903 {
4904 "Id": 1138,
4905 "QuestionId": 13,
4906 "Text": "Russia",
4907 "Value": "Russia",
4908 "Order": 144
4909 },
4910 {
4911 "Id": 1146,
4912 "QuestionId": 13,
4913 "Text": "Rwanda",
4914 "Value": "Rwanda",
4915 "Order": 145
4916 },
4917 {
4918 "Id": 1154,
4919 "QuestionId": 13,
4920 "Text": "Saint Kitts and Nevis",
4921 "Value": "Saint Kitts and Nevis",
4922 "Order": 146
4923 },
4924 {
4925 "Id": 1162,
4926 "QuestionId": 13,
4927 "Text": "Saint Lucia",
4928 "Value": "Saint Lucia",
4929 "Order": 147
4930 },
4931 {
4932 "Id": 1170,
4933 "QuestionId": 13,
4934 "Text": "Saint Vincent",
4935 "Value": "Saint Vincent",
4936 "Order": 148
4937 },
4938 {
4939 "Id": 1178,
4940 "QuestionId": 13,
4941 "Text": "Samoa",
4942 "Value": "Samoa",
4943 "Order": 149
4944 },
4945 {
4946 "Id": 1186,
4947 "QuestionId": 13,
4948 "Text": "San Marino",
4949 "Value": "San Marino",
4950 "Order": 150
4951 },
4952 {
4953 "Id": 1194,
4954 "QuestionId": 13,
4955 "Text": "Sao Tome and Principe",
4956 "Value": "Sao Tome and Principe",
4957 "Order": 151
4958 },
4959 {
4960 "Id": 1202,
4961 "QuestionId": 13,
4962 "Text": "Saudi Arabia",
4963 "Value": "Saudi Arabia",
4964 "Order": 152
4965 },
4966 {
4967 "Id": 1210,
4968 "QuestionId": 13,
4969 "Text": "Senegal",
4970 "Value": "Senegal",
4971 "Order": 153
4972 },
4973 {
4974 "Id": 1218,
4975 "QuestionId": 13,
4976 "Text": "Serbia and Montenegro",
4977 "Value": "Serbia and Montenegro",
4978 "Order": 154
4979 },
4980 {
4981 "Id": 1226,
4982 "QuestionId": 13,
4983 "Text": "Seychelles",
4984 "Value": "Seychelles",
4985 "Order": 155
4986 },
4987 {
4988 "Id": 1234,
4989 "QuestionId": 13,
4990 "Text": "Sierra Leone",
4991 "Value": "Sierra Leone",
4992 "Order": 156
4993 },
4994 {
4995 "Id": 1242,
4996 "QuestionId": 13,
4997 "Text": "Singapore",
4998 "Value": "Singapore",
4999 "Order": 157
5000 },
5001 {
5002 "Id": 1250,
5003 "QuestionId": 13,
5004 "Text": "Slovakia",
5005 "Value": "Slovakia",
5006 "Order": 158
5007 },
5008 {
5009 "Id": 1258,
5010 "QuestionId": 13,
5011 "Text": "Slovenia",
5012 "Value": "Slovenia",
5013 "Order": 159
5014 },
5015 {
5016 "Id": 1266,
5017 "QuestionId": 13,
5018 "Text": "Solomon Islands",
5019 "Value": "Solomon Islands",
5020 "Order": 160
5021 },
5022 {
5023 "Id": 1274,
5024 "QuestionId": 13,
5025 "Text": "Somalia",
5026 "Value": "Somalia",
5027 "Order": 161
5028 },
5029 {
5030 "Id": 1282,
5031 "QuestionId": 13,
5032 "Text": "South Africa",
5033 "Value": "South Africa",
5034 "Order": 162
5035 },
5036 {
5037 "Id": 1290,
5038 "QuestionId": 13,
5039 "Text": "Spain",
5040 "Value": "Spain",
5041 "Order": 163
5042 },
5043 {
5044 "Id": 1298,
5045 "QuestionId": 13,
5046 "Text": "Sri Lanka",
5047 "Value": "Sri Lanka",
5048 "Order": 164
5049 },
5050 {
5051 "Id": 1306,
5052 "QuestionId": 13,
5053 "Text": "Sudan",
5054 "Value": "Sudan",
5055 "Order": 165
5056 },
5057 {
5058 "Id": 1314,
5059 "QuestionId": 13,
5060 "Text": "Suriname",
5061 "Value": "Suriname",
5062 "Order": 166
5063 },
5064 {
5065 "Id": 1322,
5066 "QuestionId": 13,
5067 "Text": "Swaziland",
5068 "Value": "Swaziland",
5069 "Order": 167
5070 },
5071 {
5072 "Id": 1330,
5073 "QuestionId": 13,
5074 "Text": "Sweden",
5075 "Value": "Sweden",
5076 "Order": 168
5077 },
5078 {
5079 "Id": 1338,
5080 "QuestionId": 13,
5081 "Text": "Switzerland",
5082 "Value": "Switzerland",
5083 "Order": 169
5084 },
5085 {
5086 "Id": 1346,
5087 "QuestionId": 13,
5088 "Text": "Syria",
5089 "Value": "Syria",
5090 "Order": 170
5091 },
5092 {
5093 "Id": 1354,
5094 "QuestionId": 13,
5095 "Text": "Taiwan",
5096 "Value": "Taiwan",
5097 "Order": 171
5098 },
5099 {
5100 "Id": 1362,
5101 "QuestionId": 13,
5102 "Text": "Tajikistan",
5103 "Value": "Tajikistan",
5104 "Order": 172
5105 },
5106 {
5107 "Id": 1370,
5108 "QuestionId": 13,
5109 "Text": "Tanzania",
5110 "Value": "Tanzania",
5111 "Order": 173
5112 },
5113 {
5114 "Id": 1378,
5115 "QuestionId": 13,
5116 "Text": "Thailand",
5117 "Value": "Thailand",
5118 "Order": 174
5119 },
5120 {
5121 "Id": 1386,
5122 "QuestionId": 13,
5123 "Text": "Togo",
5124 "Value": "Togo",
5125 "Order": 175
5126 },
5127 {
5128 "Id": 1394,
5129 "QuestionId": 13,
5130 "Text": "Tonga",
5131 "Value": "Tonga",
5132 "Order": 176
5133 },
5134 {
5135 "Id": 1402,
5136 "QuestionId": 13,
5137 "Text": "Trinidad and Tobago",
5138 "Value": "Trinidad and Tobago",
5139 "Order": 177
5140 },
5141 {
5142 "Id": 1410,
5143 "QuestionId": 13,
5144 "Text": "Tunisia",
5145 "Value": "Tunisia",
5146 "Order": 178
5147 },
5148 {
5149 "Id": 1418,
5150 "QuestionId": 13,
5151 "Text": "Turkey",
5152 "Value": "Turkey",
5153 "Order": 179
5154 },
5155 {
5156 "Id": 1426,
5157 "QuestionId": 13,
5158 "Text": "Turkmenistan",
5159 "Value": "Turkmenistan",
5160 "Order": 180
5161 },
5162 {
5163 "Id": 1434,
5164 "QuestionId": 13,
5165 "Text": "Tuvalu",
5166 "Value": "Tuvalu",
5167 "Order": 181
5168 },
5169 {
5170 "Id": 1442,
5171 "QuestionId": 13,
5172 "Text": "Uganda",
5173 "Value": "Uganda",
5174 "Order": 182
5175 },
5176 {
5177 "Id": 1450,
5178 "QuestionId": 13,
5179 "Text": "Ukraine",
5180 "Value": "Ukraine",
5181 "Order": 183
5182 },
5183 {
5184 "Id": 1458,
5185 "QuestionId": 13,
5186 "Text": "United Arab Emirates",
5187 "Value": "United Arab Emirates",
5188 "Order": 184
5189 },
5190 {
5191 "Id": 1466,
5192 "QuestionId": 13,
5193 "Text": "United Kingdom",
5194 "Value": "United Kingdom",
5195 "Order": 185
5196 },
5197 {
5198 "Id": 1474,
5199 "QuestionId": 13,
5200 "Text": "United States",
5201 "Value": "United States",
5202 "Order": 2
5203 },
5204 {
5205 "Id": 1482,
5206 "QuestionId": 13,
5207 "Text": "Uruguay",
5208 "Value": "Uruguay",
5209 "Order": 186
5210 },
5211 {
5212 "Id": 1490,
5213 "QuestionId": 13,
5214 "Text": "Uzbekistan",
5215 "Value": "Uzbekistan",
5216 "Order": 187
5217 },
5218 {
5219 "Id": 1498,
5220 "QuestionId": 13,
5221 "Text": "Vanuatu",
5222 "Value": "Vanuatu",
5223 "Order": 188
5224 },
5225 {
5226 "Id": 1506,
5227 "QuestionId": 13,
5228 "Text": "Vatican City",
5229 "Value": "Vatican City",
5230 "Order": 189
5231 },
5232 {
5233 "Id": 1514,
5234 "QuestionId": 13,
5235 "Text": "Venezuela",
5236 "Value": "Venezuela",
5237 "Order": 190
5238 },
5239 {
5240 "Id": 1522,
5241 "QuestionId": 13,
5242 "Text": "Vietnam",
5243 "Value": "Vietnam",
5244 "Order": 191
5245 },
5246 {
5247 "Id": 1530,
5248 "QuestionId": 13,
5249 "Text": "Yemen",
5250 "Value": "Yemen",
5251 "Order": 192
5252 },
5253 {
5254 "Id": 1538,
5255 "QuestionId": 13,
5256 "Text": "Zambia",
5257 "Value": "Zambia",
5258 "Order": 193
5259 },
5260 {
5261 "Id": 1546,
5262 "QuestionId": 13,
5263 "Text": "Zimbabwe",
5264 "Value": "Zimbabwe",
5265 "Order": 194
5266 },
5267 {
5268 "Id": 2186,
5269 "QuestionId": 13,
5270 "Text": "British Columbia",
5271 "Value": "British Columbia",
5272 "Order": 195
5273 }
5274 ]
5275 }
5276 ]
5277 }
5278 {{/code}}
5279
5280
5281 (% id="HGETlookupquestionbyType" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
5282 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by Type(%%) ==
5283
5284 ----
5285
5286 {{panel bgColor="#D3D3D3" width="100%"}}
5287 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Type=4
5288 {{/panel}}
5289
5290 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
5291
5292 ----
5293
5294 (% 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}}
5295
5296 === (% style="color:#212121" %)Query Params(%%) ===
5297
5298 ----
5299
5300 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Type  4(%%)
5301
5302
5303 ==== Example ====
5304
5305 ----
5306
5307 (% style="color:#6b6b6b" %)Request
5308
5309 {{code language="php" theme="RDark" title="Lookup question by Type Request"}}
5310 <?php
5311
5312 $curl = curl_init();
5313
5314 curl_setopt_array($curl, array(
5315 CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Type=4',
5316 CURLOPT_RETURNTRANSFER => true,
5317 CURLOPT_ENCODING => '',
5318 CURLOPT_MAXREDIRS => 10,
5319 CURLOPT_TIMEOUT => 0,
5320 CURLOPT_FOLLOWLOCATION => true,
5321 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
5322 CURLOPT_CUSTOMREQUEST => 'GET',
5323 CURLOPT_HTTPHEADER => array(
5324 'Appkey: {{ONECOUNT API KEY}}'
5325 ),
5326 ));
5327
5328 $response = curl_exec($curl);
5329
5330 curl_close($curl);
5331 echo $response;
5332 {{/code}}
5333
5334
5335 (% style="color:#6b6b6b" %)Response  200 OK
5336
5337 {{code language="yml" theme="RDark" collapse="true" title="Lookup question by type Response"}}
5338 {
5339 "result": {
5340 "success": "1",
5341 "error": {
5342 "code": "",
5343 "message": ""
5344 }
5345 },
5346 "Questions": [
5347 {
5348 "Id": 11,
5349 "Text": "State/Province",
5350 "Type": "4",
5351 "Alias": "State/Province",
5352 "Choices": [
5353 {
5354 "Id": 1554,
5355 "QuestionId": 11,
5356 "Text": "Select One",
5357 "Value": "",
5358 "Order": 1
5359 },
5360 {
5361 "Id": 1562,
5362 "QuestionId": 11,
5363 "Text": "Alabama",
5364 "Value": "AL",
5365 "Order": 2
5366 },
5367 {
5368 "Id": 1570,
5369 "QuestionId": 11,
5370 "Text": "Alaska",
5371 "Value": "AK",
5372 "Order": 3
5373 },
5374 {
5375 "Id": 1578,
5376 "QuestionId": 11,
5377 "Text": "Arizona",
5378 "Value": "AZ",
5379 "Order": 4
5380 },
5381 {
5382 "Id": 1586,
5383 "QuestionId": 11,
5384 "Text": "Arkansas",
5385 "Value": "AR",
5386 "Order": 5
5387 },
5388 {
5389 "Id": 1594,
5390 "QuestionId": 11,
5391 "Text": "California",
5392 "Value": "CA",
5393 "Order": 6
5394 },
5395 {
5396 "Id": 1602,
5397 "QuestionId": 11,
5398 "Text": "Colorado",
5399 "Value": "CO",
5400 "Order": 7
5401 },
5402 {
5403 "Id": 1610,
5404 "QuestionId": 11,
5405 "Text": "Connecticut",
5406 "Value": "CT",
5407 "Order": 8
5408 },
5409 {
5410 "Id": 1618,
5411 "QuestionId": 11,
5412 "Text": "Delaware",
5413 "Value": "DE",
5414 "Order": 9
5415 },
5416 {
5417 "Id": 1626,
5418 "QuestionId": 11,
5419 "Text": "District of Columbia",
5420 "Value": "DC",
5421 "Order": 10
5422 },
5423 {
5424 "Id": 1634,
5425 "QuestionId": 11,
5426 "Text": "Florida",
5427 "Value": "FL",
5428 "Order": 11
5429 },
5430 {
5431 "Id": 1642,
5432 "QuestionId": 11,
5433 "Text": "Georgia",
5434 "Value": "GA",
5435 "Order": 12
5436 },
5437 {
5438 "Id": 1650,
5439 "QuestionId": 11,
5440 "Text": "Hawaii",
5441 "Value": "HI",
5442 "Order": 13
5443 },
5444 {
5445 "Id": 1658,
5446 "QuestionId": 11,
5447 "Text": "Idaho",
5448 "Value": "ID",
5449 "Order": 14
5450 },
5451 {
5452 "Id": 1666,
5453 "QuestionId": 11,
5454 "Text": "Illinois",
5455 "Value": "IL",
5456 "Order": 15
5457 },
5458 {
5459 "Id": 1674,
5460 "QuestionId": 11,
5461 "Text": "Indiana",
5462 "Value": "IN",
5463 "Order": 16
5464 },
5465 {
5466 "Id": 1682,
5467 "QuestionId": 11,
5468 "Text": "Iowa",
5469 "Value": "IA",
5470 "Order": 17
5471 },
5472 {
5473 "Id": 1690,
5474 "QuestionId": 11,
5475 "Text": "Kansas",
5476 "Value": "KS",
5477 "Order": 18
5478 },
5479 {
5480 "Id": 1698,
5481 "QuestionId": 11,
5482 "Text": "Kentucky",
5483 "Value": "KY",
5484 "Order": 19
5485 },
5486 {
5487 "Id": 1706,
5488 "QuestionId": 11,
5489 "Text": "Louisiana",
5490 "Value": "LA",
5491 "Order": 20
5492 },
5493 {
5494 "Id": 1714,
5495 "QuestionId": 11,
5496 "Text": "Maine",
5497 "Value": "ME",
5498 "Order": 21
5499 },
5500 {
5501 "Id": 1722,
5502 "QuestionId": 11,
5503 "Text": "Maryland",
5504 "Value": "MD",
5505 "Order": 22
5506 },
5507 {
5508 "Id": 1730,
5509 "QuestionId": 11,
5510 "Text": "Massachusetts",
5511 "Value": "MA",
5512 "Order": 23
5513 },
5514 {
5515 "Id": 1738,
5516 "QuestionId": 11,
5517 "Text": "Michigan",
5518 "Value": "MI",
5519 "Order": 24
5520 },
5521 {
5522 "Id": 1746,
5523 "QuestionId": 11,
5524 "Text": "Minnesota",
5525 "Value": "MN",
5526 "Order": 25
5527 },
5528 {
5529 "Id": 1754,
5530 "QuestionId": 11,
5531 "Text": "Mississippi",
5532 "Value": "MS",
5533 "Order": 26
5534 },
5535 {
5536 "Id": 1762,
5537 "QuestionId": 11,
5538 "Text": "Missouri",
5539 "Value": "MO",
5540 "Order": 27
5541 },
5542 {
5543 "Id": 1770,
5544 "QuestionId": 11,
5545 "Text": "Montana",
5546 "Value": "MT",
5547 "Order": 28
5548 },
5549 {
5550 "Id": 1778,
5551 "QuestionId": 11,
5552 "Text": "Nebraska",
5553 "Value": "NE",
5554 "Order": 29
5555 },
5556 {
5557 "Id": 1786,
5558 "QuestionId": 11,
5559 "Text": "Nevada",
5560 "Value": "NV",
5561 "Order": 30
5562 },
5563 {
5564 "Id": 1794,
5565 "QuestionId": 11,
5566 "Text": "New Hampshire",
5567 "Value": "NH",
5568 "Order": 31
5569 },
5570 {
5571 "Id": 1802,
5572 "QuestionId": 11,
5573 "Text": "New Jersey",
5574 "Value": "NJ",
5575 "Order": 32
5576 },
5577 {
5578 "Id": 1810,
5579 "QuestionId": 11,
5580 "Text": "New Mexico",
5581 "Value": "NM",
5582 "Order": 33
5583 },
5584 {
5585 "Id": 1818,
5586 "QuestionId": 11,
5587 "Text": "New York",
5588 "Value": "NY",
5589 "Order": 34
5590 },
5591 {
5592 "Id": 1826,
5593 "QuestionId": 11,
5594 "Text": "North Carolina",
5595 "Value": "NC",
5596 "Order": 35
5597 },
5598 {
5599 "Id": 1834,
5600 "QuestionId": 11,
5601 "Text": "Ohio",
5602 "Value": "OH",
5603 "Order": 37
5604 },
5605 {
5606 "Id": 1842,
5607 "QuestionId": 11,
5608 "Text": "Oklahoma",
5609 "Value": "OK",
5610 "Order": 38
5611 },
5612 {
5613 "Id": 1850,
5614 "QuestionId": 11,
5615 "Text": "Oregon",
5616 "Value": "OR",
5617 "Order": 39
5618 },
5619 {
5620 "Id": 1858,
5621 "QuestionId": 11,
5622 "Text": "Pennsylvania",
5623 "Value": "PA",
5624 "Order": 40
5625 },
5626 {
5627 "Id": 1866,
5628 "QuestionId": 11,
5629 "Text": "Rhode Island",
5630 "Value": "RI",
5631 "Order": 41
5632 },
5633 {
5634 "Id": 1874,
5635 "QuestionId": 11,
5636 "Text": "South Carolina",
5637 "Value": "SC",
5638 "Order": 42
5639 },
5640 {
5641 "Id": 1882,
5642 "QuestionId": 11,
5643 "Text": "South Dakota",
5644 "Value": "SD",
5645 "Order": 43
5646 },
5647 {
5648 "Id": 1890,
5649 "QuestionId": 11,
5650 "Text": "Tennessee",
5651 "Value": "TN",
5652 "Order": 44
5653 },
5654 {
5655 "Id": 1898,
5656 "QuestionId": 11,
5657 "Text": "Texas",
5658 "Value": "TX",
5659 "Order": 45
5660 },
5661 {
5662 "Id": 1906,
5663 "QuestionId": 11,
5664 "Text": "Utah",
5665 "Value": "UT",
5666 "Order": 46
5667 },
5668 {
5669 "Id": 1914,
5670 "QuestionId": 11,
5671 "Text": "Vermont",
5672 "Value": "VT",
5673 "Order": 47
5674 },
5675 {
5676 "Id": 1922,
5677 "QuestionId": 11,
5678 "Text": "Virginia",
5679 "Value": "VA",
5680 "Order": 48
5681 },
5682 {
5683 "Id": 1930,
5684 "QuestionId": 11,
5685 "Text": "Washington",
5686 "Value": "WA",
5687 "Order": 49
5688 },
5689 {
5690 "Id": 1938,
5691 "QuestionId": 11,
5692 "Text": "West Virginia",
5693 "Value": "WV",
5694 "Order": 50
5695 },
5696 {
5697 "Id": 1946,
5698 "QuestionId": 11,
5699 "Text": "Wisconsin",
5700 "Value": "WI",
5701 "Order": 51
5702 },
5703 {
5704 "Id": 1954,
5705 "QuestionId": 11,
5706 "Text": "Wyoming",
5707 "Value": "WY",
5708 "Order": 52
5709 },
5710 {
5711 "Id": 1962,
5712 "QuestionId": 11,
5713 "Text": "American Samoa",
5714 "Value": "AS",
5715 "Order": 53
5716 },
5717 {
5718 "Id": 1970,
5719 "QuestionId": 11,
5720 "Text": "North Dakota",
5721 "Value": "ND",
5722 "Order": 36
5723 },
5724 {
5725 "Id": 1978,
5726 "QuestionId": 11,
5727 "Text": "Federated States of Micronesia",
5728 "Value": "FM",
5729 "Order": 54
5730 },
5731 {
5732 "Id": 1986,
5733 "QuestionId": 11,
5734 "Text": "Guam",
5735 "Value": "GU",
5736 "Order": 55
5737 },
5738 {
5739 "Id": 1994,
5740 "QuestionId": 11,
5741 "Text": "Marshall Islands",
5742 "Value": "MH",
5743 "Order": 56
5744 },
5745 {
5746 "Id": 2002,
5747 "QuestionId": 11,
5748 "Text": "Northern Mariana Islands",
5749 "Value": "MP",
5750 "Order": 57
5751 },
5752 {
5753 "Id": 2010,
5754 "QuestionId": 11,
5755 "Text": "Palau",
5756 "Value": "PW",
5757 "Order": 58
5758 },
5759 {
5760 "Id": 2018,
5761 "QuestionId": 11,
5762 "Text": "Puerto Rico",
5763 "Value": "PR",
5764 "Order": 59
5765 },
5766 {
5767 "Id": 2026,
5768 "QuestionId": 11,
5769 "Text": "U.S. Virgin Islands",
5770 "Value": "VI",
5771 "Order": 60
5772 },
5773 {
5774 "Id": 2034,
5775 "QuestionId": 11,
5776 "Text": "Armed Forces Africa",
5777 "Value": "AE",
5778 "Order": 61
5779 },
5780 {
5781 "Id": 2042,
5782 "QuestionId": 11,
5783 "Text": "Armed Forces Americas (except Canada)",
5784 "Value": "AA",
5785 "Order": 62
5786 },
5787 {
5788 "Id": 2050,
5789 "QuestionId": 11,
5790 "Text": "Armed Forces Canada",
5791 "Value": "AE",
5792 "Order": 63
5793 },
5794 {
5795 "Id": 2058,
5796 "QuestionId": 11,
5797 "Text": "Armed Forces Europe",
5798 "Value": "AE",
5799 "Order": 64
5800 },
5801 {
5802 "Id": 2066,
5803 "QuestionId": 11,
5804 "Text": "Armed Forces Middle East",
5805 "Value": "AE",
5806 "Order": 65
5807 },
5808 {
5809 "Id": 2074,
5810 "QuestionId": 11,
5811 "Text": "Armed Forces Pacific",
5812 "Value": "AP",
5813 "Order": 66
5814 },
5815 {
5816 "Id": 2082,
5817 "QuestionId": 11,
5818 "Text": "Non-US/Not Applicable",
5819 "Value": "Non-US/Not Applicable",
5820 "Order": 67
5821 },
5822 {
5823 "Id": 2090,
5824 "QuestionId": 11,
5825 "Text": "Ontario",
5826 "Value": "Ontario",
5827 "Order": 68
5828 },
5829 {
5830 "Id": 2098,
5831 "QuestionId": 11,
5832 "Text": "Quebec",
5833 "Value": "Quebec",
5834 "Order": 69
5835 },
5836 {
5837 "Id": 2106,
5838 "QuestionId": 11,
5839 "Text": "Nova Scotia",
5840 "Value": "Nova Scotia",
5841 "Order": 70
5842 },
5843 {
5844 "Id": 2114,
5845 "QuestionId": 11,
5846 "Text": "New Brunswick",
5847 "Value": "New Brunswick",
5848 "Order": 71
5849 },
5850 {
5851 "Id": 2122,
5852 "QuestionId": 11,
5853 "Text": "Manitoba",
5854 "Value": "Manitoba",
5855 "Order": 72
5856 },
5857 {
5858 "Id": 2130,
5859 "QuestionId": 11,
5860 "Text": "Brittish Columbia",
5861 "Value": "Brittish Columbia",
5862 "Order": 73
5863 },
5864 {
5865 "Id": 2138,
5866 "QuestionId": 11,
5867 "Text": "Prince Edward Island",
5868 "Value": "Prince Edward Island",
5869 "Order": 74
5870 },
5871 {
5872 "Id": 2146,
5873 "QuestionId": 11,
5874 "Text": "Saskatchewan",
5875 "Value": "Saskatchewan",
5876 "Order": 75
5877 },
5878 {
5879 "Id": 2154,
5880 "QuestionId": 11,
5881 "Text": "Alberta",
5882 "Value": "Alberta",
5883 "Order": 76
5884 },
5885 {
5886 "Id": 2162,
5887 "QuestionId": 11,
5888 "Text": "Newfoundland and Labrador",
5889 "Value": "Newfoundland and Labrador",
5890 "Order": 77
5891 },
5892 {
5893 "Id": 2170,
5894 "QuestionId": 11,
5895 "Text": "British Columbia",
5896 "Value": "British Columbia",
5897 "Order": 78
5898 },
5899 {
5900 "Id": 2178,
5901 "QuestionId": 11,
5902 "Text": "Ontario",
5903 "Value": "ON",
5904 "Order": 79
5905 }
5906 ]
5907 },
5908 {
5909 "Id": 13,
5910 "Text": "Country",
5911 "Type": "4",
5912 "Alias": "Country",
5913 "Choices": [
5914 {
5915 "Id": 2,
5916 "QuestionId": 13,
5917 "Text": "Select One",
5918 "Value": "",
5919 "Order": 1
5920 },
5921 {
5922 "Id": 10,
5923 "QuestionId": 13,
5924 "Text": "Afghanistan",
5925 "Value": "Afghanistan",
5926 "Order": 3
5927 },
5928 {
5929 "Id": 18,
5930 "QuestionId": 13,
5931 "Text": "Albania",
5932 "Value": "Albania",
5933 "Order": 4
5934 },
5935 {
5936 "Id": 26,
5937 "QuestionId": 13,
5938 "Text": "Algeria",
5939 "Value": "Algeria",
5940 "Order": 5
5941 },
5942 {
5943 "Id": 34,
5944 "QuestionId": 13,
5945 "Text": "Andorra",
5946 "Value": "Andorra",
5947 "Order": 6
5948 },
5949 {
5950 "Id": 42,
5951 "QuestionId": 13,
5952 "Text": "Angola",
5953 "Value": "Angola",
5954 "Order": 7
5955 },
5956 {
5957 "Id": 50,
5958 "QuestionId": 13,
5959 "Text": "Antigua and Barbuda",
5960 "Value": "Antigua and Barbuda",
5961 "Order": 8
5962 },
5963 {
5964 "Id": 58,
5965 "QuestionId": 13,
5966 "Text": "Argentina",
5967 "Value": "Argentina",
5968 "Order": 9
5969 },
5970 {
5971 "Id": 66,
5972 "QuestionId": 13,
5973 "Text": "Armenia",
5974 "Value": "Armenia",
5975 "Order": 10
5976 },
5977 {
5978 "Id": 74,
5979 "QuestionId": 13,
5980 "Text": "Australia",
5981 "Value": "Australia",
5982 "Order": 11
5983 },
5984 {
5985 "Id": 82,
5986 "QuestionId": 13,
5987 "Text": "Austria",
5988 "Value": "Austria",
5989 "Order": 12
5990 },
5991 {
5992 "Id": 90,
5993 "QuestionId": 13,
5994 "Text": "Azerbaijan",
5995 "Value": "Azerbaijan",
5996 "Order": 13
5997 },
5998 {
5999 "Id": 98,
6000 "QuestionId": 13,
6001 "Text": "Bahamas",
6002 "Value": "Bahamas",
6003 "Order": 14
6004 },
6005 {
6006 "Id": 106,
6007 "QuestionId": 13,
6008 "Text": "Bahrain",
6009 "Value": "Bahrain",
6010 "Order": 15
6011 },
6012 {
6013 "Id": 114,
6014 "QuestionId": 13,
6015 "Text": "Bangladesh",
6016 "Value": "Bangladesh",
6017 "Order": 16
6018 },
6019 {
6020 "Id": 122,
6021 "QuestionId": 13,
6022 "Text": "Barbados",
6023 "Value": "Barbados",
6024 "Order": 17
6025 },
6026 {
6027 "Id": 130,
6028 "QuestionId": 13,
6029 "Text": "Belarus",
6030 "Value": "Belarus",
6031 "Order": 18
6032 },
6033 {
6034 "Id": 138,
6035 "QuestionId": 13,
6036 "Text": "Belgium",
6037 "Value": "Belgium",
6038 "Order": 19
6039 },
6040 {
6041 "Id": 146,
6042 "QuestionId": 13,
6043 "Text": "Belize",
6044 "Value": "Belize",
6045 "Order": 20
6046 },
6047 {
6048 "Id": 154,
6049 "QuestionId": 13,
6050 "Text": "Benin",
6051 "Value": "Benin",
6052 "Order": 21
6053 },
6054 {
6055 "Id": 162,
6056 "QuestionId": 13,
6057 "Text": "Bhutan",
6058 "Value": "Bhutan",
6059 "Order": 22
6060 },
6061 {
6062 "Id": 170,
6063 "QuestionId": 13,
6064 "Text": "Bolivia",
6065 "Value": "Bolivia",
6066 "Order": 23
6067 },
6068 {
6069 "Id": 178,
6070 "QuestionId": 13,
6071 "Text": "Bosnia and Herzegovina",
6072 "Value": "Bosnia and Herzegovina",
6073 "Order": 24
6074 },
6075 {
6076 "Id": 186,
6077 "QuestionId": 13,
6078 "Text": "Botswana",
6079 "Value": "Botswana",
6080 "Order": 25
6081 },
6082 {
6083 "Id": 194,
6084 "QuestionId": 13,
6085 "Text": "Brazil",
6086 "Value": "Brazil",
6087 "Order": 26
6088 },
6089 {
6090 "Id": 202,
6091 "QuestionId": 13,
6092 "Text": "Brunei",
6093 "Value": "Brunei",
6094 "Order": 27
6095 },
6096 {
6097 "Id": 210,
6098 "QuestionId": 13,
6099 "Text": "Bulgaria",
6100 "Value": "Bulgaria",
6101 "Order": 28
6102 },
6103 {
6104 "Id": 218,
6105 "QuestionId": 13,
6106 "Text": "Burkina Faso",
6107 "Value": "Burkina Faso",
6108 "Order": 29
6109 },
6110 {
6111 "Id": 226,
6112 "QuestionId": 13,
6113 "Text": "Burundi",
6114 "Value": "Burundi",
6115 "Order": 30
6116 },
6117 {
6118 "Id": 234,
6119 "QuestionId": 13,
6120 "Text": "Cambodia",
6121 "Value": "Cambodia",
6122 "Order": 31
6123 },
6124 {
6125 "Id": 242,
6126 "QuestionId": 13,
6127 "Text": "Cameroon",
6128 "Value": "Cameroon",
6129 "Order": 32
6130 },
6131 {
6132 "Id": 250,
6133 "QuestionId": 13,
6134 "Text": "Canada",
6135 "Value": "Canada",
6136 "Order": 33
6137 },
6138 {
6139 "Id": 258,
6140 "QuestionId": 13,
6141 "Text": "Cape Verde",
6142 "Value": "Cape Verde",
6143 "Order": 34
6144 },
6145 {
6146 "Id": 266,
6147 "QuestionId": 13,
6148 "Text": "Central African Republic",
6149 "Value": "Central African Republic",
6150 "Order": 35
6151 },
6152 {
6153 "Id": 274,
6154 "QuestionId": 13,
6155 "Text": "Chad",
6156 "Value": "Chad",
6157 "Order": 36
6158 },
6159 {
6160 "Id": 282,
6161 "QuestionId": 13,
6162 "Text": "Chile",
6163 "Value": "Chile",
6164 "Order": 37
6165 },
6166 {
6167 "Id": 290,
6168 "QuestionId": 13,
6169 "Text": "China",
6170 "Value": "China",
6171 "Order": 38
6172 },
6173 {
6174 "Id": 298,
6175 "QuestionId": 13,
6176 "Text": "Colombia",
6177 "Value": "Colombia",
6178 "Order": 39
6179 },
6180 {
6181 "Id": 306,
6182 "QuestionId": 13,
6183 "Text": "Comoros",
6184 "Value": "Comoros",
6185 "Order": 40
6186 },
6187 {
6188 "Id": 314,
6189 "QuestionId": 13,
6190 "Text": "Congo (Brazzaville)",
6191 "Value": "Congo (Brazzaville)",
6192 "Order": 41
6193 },
6194 {
6195 "Id": 322,
6196 "QuestionId": 13,
6197 "Text": "Congo",
6198 "Value": "Congo",
6199 "Order": 42
6200 },
6201 {
6202 "Id": 330,
6203 "QuestionId": 13,
6204 "Text": "Costa Rica",
6205 "Value": "Costa Rica",
6206 "Order": 43
6207 },
6208 {
6209 "Id": 338,
6210 "QuestionId": 13,
6211 "Text": "Cote d'Ivoire",
6212 "Value": "Cote d'Ivoire",
6213 "Order": 44
6214 },
6215 {
6216 "Id": 346,
6217 "QuestionId": 13,
6218 "Text": "Croatia",
6219 "Value": "Croatia",
6220 "Order": 45
6221 },
6222 {
6223 "Id": 354,
6224 "QuestionId": 13,
6225 "Text": "Cuba",
6226 "Value": "Cuba",
6227 "Order": 46
6228 },
6229 {
6230 "Id": 362,
6231 "QuestionId": 13,
6232 "Text": "Cyprus",
6233 "Value": "Cyprus",
6234 "Order": 47
6235 },
6236 {
6237 "Id": 370,
6238 "QuestionId": 13,
6239 "Text": "Czech Republic",
6240 "Value": "Czech Republic",
6241 "Order": 48
6242 },
6243 {
6244 "Id": 378,
6245 "QuestionId": 13,
6246 "Text": "Denmark",
6247 "Value": "Denmark",
6248 "Order": 49
6249 },
6250 {
6251 "Id": 386,
6252 "QuestionId": 13,
6253 "Text": "Djibouti",
6254 "Value": "Djibouti",
6255 "Order": 50
6256 },
6257 {
6258 "Id": 394,
6259 "QuestionId": 13,
6260 "Text": "Dominica",
6261 "Value": "Dominica",
6262 "Order": 51
6263 },
6264 {
6265 "Id": 402,
6266 "QuestionId": 13,
6267 "Text": "Dominican Republic",
6268 "Value": "Dominican Republic",
6269 "Order": 52
6270 },
6271 {
6272 "Id": 410,
6273 "QuestionId": 13,
6274 "Text": "East Timor",
6275 "Value": "East Timor",
6276 "Order": 53
6277 },
6278 {
6279 "Id": 418,
6280 "QuestionId": 13,
6281 "Text": "Ecuador",
6282 "Value": "Ecuador",
6283 "Order": 54
6284 },
6285 {
6286 "Id": 426,
6287 "QuestionId": 13,
6288 "Text": "Egypt",
6289 "Value": "Egypt",
6290 "Order": 55
6291 },
6292 {
6293 "Id": 434,
6294 "QuestionId": 13,
6295 "Text": "El Salvador",
6296 "Value": "El Salvador",
6297 "Order": 56
6298 },
6299 {
6300 "Id": 442,
6301 "QuestionId": 13,
6302 "Text": "Equatorial Guinea",
6303 "Value": "Equatorial Guinea",
6304 "Order": 57
6305 },
6306 {
6307 "Id": 450,
6308 "QuestionId": 13,
6309 "Text": "Eritrea",
6310 "Value": "Eritrea",
6311 "Order": 58
6312 },
6313 {
6314 "Id": 458,
6315 "QuestionId": 13,
6316 "Text": "Estonia",
6317 "Value": "Estonia",
6318 "Order": 59
6319 },
6320 {
6321 "Id": 466,
6322 "QuestionId": 13,
6323 "Text": "Ethiopia",
6324 "Value": "Ethiopia",
6325 "Order": 60
6326 },
6327 {
6328 "Id": 474,
6329 "QuestionId": 13,
6330 "Text": "Fiji",
6331 "Value": "Fiji",
6332 "Order": 61
6333 },
6334 {
6335 "Id": 482,
6336 "QuestionId": 13,
6337 "Text": "Finland",
6338 "Value": "Finland",
6339 "Order": 62
6340 },
6341 {
6342 "Id": 490,
6343 "QuestionId": 13,
6344 "Text": "France",
6345 "Value": "France",
6346 "Order": 63
6347 },
6348 {
6349 "Id": 498,
6350 "QuestionId": 13,
6351 "Text": "Gabon",
6352 "Value": "Gabon",
6353 "Order": 64
6354 },
6355 {
6356 "Id": 506,
6357 "QuestionId": 13,
6358 "Text": "Gambia, The",
6359 "Value": "Gambia, The",
6360 "Order": 65
6361 },
6362 {
6363 "Id": 514,
6364 "QuestionId": 13,
6365 "Text": "Georgia",
6366 "Value": "Georgia",
6367 "Order": 66
6368 },
6369 {
6370 "Id": 522,
6371 "QuestionId": 13,
6372 "Text": "Germany",
6373 "Value": "Germany",
6374 "Order": 67
6375 },
6376 {
6377 "Id": 530,
6378 "QuestionId": 13,
6379 "Text": "Ghana",
6380 "Value": "Ghana",
6381 "Order": 68
6382 },
6383 {
6384 "Id": 538,
6385 "QuestionId": 13,
6386 "Text": "Greece",
6387 "Value": "Greece",
6388 "Order": 69
6389 },
6390 {
6391 "Id": 546,
6392 "QuestionId": 13,
6393 "Text": "Grenada",
6394 "Value": "Grenada",
6395 "Order": 70
6396 },
6397 {
6398 "Id": 554,
6399 "QuestionId": 13,
6400 "Text": "Guatemala",
6401 "Value": "Guatemala",
6402 "Order": 71
6403 },
6404 {
6405 "Id": 562,
6406 "QuestionId": 13,
6407 "Text": "Guinea",
6408 "Value": "Guinea",
6409 "Order": 72
6410 },
6411 {
6412 "Id": 570,
6413 "QuestionId": 13,
6414 "Text": "Guinea-Bissau",
6415 "Value": "Guinea-Bissau",
6416 "Order": 73
6417 },
6418 {
6419 "Id": 578,
6420 "QuestionId": 13,
6421 "Text": "Guyana",
6422 "Value": "Guyana",
6423 "Order": 74
6424 },
6425 {
6426 "Id": 586,
6427 "QuestionId": 13,
6428 "Text": "Haiti",
6429 "Value": "Haiti",
6430 "Order": 75
6431 },
6432 {
6433 "Id": 594,
6434 "QuestionId": 13,
6435 "Text": "Honduras",
6436 "Value": "Honduras",
6437 "Order": 76
6438 },
6439 {
6440 "Id": 602,
6441 "QuestionId": 13,
6442 "Text": "Hungary",
6443 "Value": "Hungary",
6444 "Order": 77
6445 },
6446 {
6447 "Id": 610,
6448 "QuestionId": 13,
6449 "Text": "Iceland",
6450 "Value": "Iceland",
6451 "Order": 78
6452 },
6453 {
6454 "Id": 618,
6455 "QuestionId": 13,
6456 "Text": "India",
6457 "Value": "India",
6458 "Order": 79
6459 },
6460 {
6461 "Id": 626,
6462 "QuestionId": 13,
6463 "Text": "Indonesia",
6464 "Value": "Indonesia",
6465 "Order": 80
6466 },
6467 {
6468 "Id": 634,
6469 "QuestionId": 13,
6470 "Text": "Iran",
6471 "Value": "Iran",
6472 "Order": 81
6473 },
6474 {
6475 "Id": 642,
6476 "QuestionId": 13,
6477 "Text": "Iraq",
6478 "Value": "Iraq",
6479 "Order": 82
6480 },
6481 {
6482 "Id": 650,
6483 "QuestionId": 13,
6484 "Text": "Ireland",
6485 "Value": "Ireland",
6486 "Order": 83
6487 },
6488 {
6489 "Id": 658,
6490 "QuestionId": 13,
6491 "Text": "Israel",
6492 "Value": "Israel",
6493 "Order": 84
6494 },
6495 {
6496 "Id": 666,
6497 "QuestionId": 13,
6498 "Text": "Italy",
6499 "Value": "Italy",
6500 "Order": 85
6501 },
6502 {
6503 "Id": 674,
6504 "QuestionId": 13,
6505 "Text": "Jamaica",
6506 "Value": "Jamaica",
6507 "Order": 86
6508 },
6509 {
6510 "Id": 682,
6511 "QuestionId": 13,
6512 "Text": "Japan",
6513 "Value": "Japan",
6514 "Order": 87
6515 },
6516 {
6517 "Id": 690,
6518 "QuestionId": 13,
6519 "Text": "Jordan",
6520 "Value": "Jordan",
6521 "Order": 88
6522 },
6523 {
6524 "Id": 698,
6525 "QuestionId": 13,
6526 "Text": "Kazakhstan",
6527 "Value": "Kazakhstan",
6528 "Order": 89
6529 },
6530 {
6531 "Id": 706,
6532 "QuestionId": 13,
6533 "Text": "Kenya",
6534 "Value": "Kenya",
6535 "Order": 90
6536 },
6537 {
6538 "Id": 714,
6539 "QuestionId": 13,
6540 "Text": "Kiribati",
6541 "Value": "Kiribati",
6542 "Order": 91
6543 },
6544 {
6545 "Id": 722,
6546 "QuestionId": 13,
6547 "Text": "Korea, North",
6548 "Value": "Korea, North",
6549 "Order": 92
6550 },
6551 {
6552 "Id": 730,
6553 "QuestionId": 13,
6554 "Text": "Korea, South",
6555 "Value": "Korea, South",
6556 "Order": 93
6557 },
6558 {
6559 "Id": 738,
6560 "QuestionId": 13,
6561 "Text": "Kuwait",
6562 "Value": "Kuwait",
6563 "Order": 94
6564 },
6565 {
6566 "Id": 746,
6567 "QuestionId": 13,
6568 "Text": "Kyrgyzstan",
6569 "Value": "Kyrgyzstan",
6570 "Order": 95
6571 },
6572 {
6573 "Id": 754,
6574 "QuestionId": 13,
6575 "Text": "Laos",
6576 "Value": "Laos",
6577 "Order": 96
6578 },
6579 {
6580 "Id": 762,
6581 "QuestionId": 13,
6582 "Text": "Latvia",
6583 "Value": "Latvia",
6584 "Order": 97
6585 },
6586 {
6587 "Id": 770,
6588 "QuestionId": 13,
6589 "Text": "Lebanon",
6590 "Value": "Lebanon",
6591 "Order": 98
6592 },
6593 {
6594 "Id": 778,
6595 "QuestionId": 13,
6596 "Text": "Lesotho",
6597 "Value": "Lesotho",
6598 "Order": 99
6599 },
6600 {
6601 "Id": 786,
6602 "QuestionId": 13,
6603 "Text": "Liberia",
6604 "Value": "Liberia",
6605 "Order": 100
6606 },
6607 {
6608 "Id": 794,
6609 "QuestionId": 13,
6610 "Text": "Libya",
6611 "Value": "Libya",
6612 "Order": 101
6613 },
6614 {
6615 "Id": 802,
6616 "QuestionId": 13,
6617 "Text": "Liechtenstein",
6618 "Value": "Liechtenstein",
6619 "Order": 102
6620 },
6621 {
6622 "Id": 810,
6623 "QuestionId": 13,
6624 "Text": "Lithuania",
6625 "Value": "Lithuania",
6626 "Order": 103
6627 },
6628 {
6629 "Id": 818,
6630 "QuestionId": 13,
6631 "Text": "Luxembourg",
6632 "Value": "Luxembourg",
6633 "Order": 104
6634 },
6635 {
6636 "Id": 826,
6637 "QuestionId": 13,
6638 "Text": "Macedonia",
6639 "Value": "Macedonia",
6640 "Order": 105
6641 },
6642 {
6643 "Id": 834,
6644 "QuestionId": 13,
6645 "Text": "Madagascar",
6646 "Value": "Madagascar",
6647 "Order": 106
6648 },
6649 {
6650 "Id": 842,
6651 "QuestionId": 13,
6652 "Text": "Malawi",
6653 "Value": "Malawi",
6654 "Order": 107
6655 },
6656 {
6657 "Id": 850,
6658 "QuestionId": 13,
6659 "Text": "Malaysia",
6660 "Value": "Malaysia",
6661 "Order": 108
6662 },
6663 {
6664 "Id": 858,
6665 "QuestionId": 13,
6666 "Text": "Maldives",
6667 "Value": "Maldives",
6668 "Order": 109
6669 },
6670 {
6671 "Id": 866,
6672 "QuestionId": 13,
6673 "Text": "Mali",
6674 "Value": "Mali",
6675 "Order": 110
6676 },
6677 {
6678 "Id": 874,
6679 "QuestionId": 13,
6680 "Text": "Malta",
6681 "Value": "Malta",
6682 "Order": 111
6683 },
6684 {
6685 "Id": 882,
6686 "QuestionId": 13,
6687 "Text": "Marshall Islands",
6688 "Value": "Marshall Islands",
6689 "Order": 112
6690 },
6691 {
6692 "Id": 890,
6693 "QuestionId": 13,
6694 "Text": "Mauritania",
6695 "Value": "Mauritania",
6696 "Order": 113
6697 },
6698 {
6699 "Id": 898,
6700 "QuestionId": 13,
6701 "Text": "Mauritius",
6702 "Value": "Mauritius",
6703 "Order": 114
6704 },
6705 {
6706 "Id": 906,
6707 "QuestionId": 13,
6708 "Text": "Mexico",
6709 "Value": "Mexico",
6710 "Order": 115
6711 },
6712 {
6713 "Id": 914,
6714 "QuestionId": 13,
6715 "Text": "Micronesia",
6716 "Value": "Micronesia",
6717 "Order": 116
6718 },
6719 {
6720 "Id": 922,
6721 "QuestionId": 13,
6722 "Text": "Moldova",
6723 "Value": "Moldova",
6724 "Order": 117
6725 },
6726 {
6727 "Id": 930,
6728 "QuestionId": 13,
6729 "Text": "Monaco",
6730 "Value": "Monaco",
6731 "Order": 118
6732 },
6733 {
6734 "Id": 938,
6735 "QuestionId": 13,
6736 "Text": "Mongolia",
6737 "Value": "Mongolia",
6738 "Order": 119
6739 },
6740 {
6741 "Id": 946,
6742 "QuestionId": 13,
6743 "Text": "Morocco",
6744 "Value": "Morocco",
6745 "Order": 120
6746 },
6747 {
6748 "Id": 954,
6749 "QuestionId": 13,
6750 "Text": "Mozambique",
6751 "Value": "Mozambique",
6752 "Order": 121
6753 },
6754 {
6755 "Id": 962,
6756 "QuestionId": 13,
6757 "Text": "Myanmar",
6758 "Value": "Myanmar",
6759 "Order": 122
6760 },
6761 {
6762 "Id": 970,
6763 "QuestionId": 13,
6764 "Text": "Namibia",
6765 "Value": "Namibia",
6766 "Order": 123
6767 },
6768 {
6769 "Id": 978,
6770 "QuestionId": 13,
6771 "Text": "Nauru",
6772 "Value": "Nauru",
6773 "Order": 124
6774 },
6775 {
6776 "Id": 986,
6777 "QuestionId": 13,
6778 "Text": "Nepa",
6779 "Value": "Nepa",
6780 "Order": 125
6781 },
6782 {
6783 "Id": 994,
6784 "QuestionId": 13,
6785 "Text": "Netherlands",
6786 "Value": "Netherlands",
6787 "Order": 126
6788 },
6789 {
6790 "Id": 1002,
6791 "QuestionId": 13,
6792 "Text": "New Zealand",
6793 "Value": "New Zealand",
6794 "Order": 127
6795 },
6796 {
6797 "Id": 1010,
6798 "QuestionId": 13,
6799 "Text": "Nicaragua",
6800 "Value": "Nicaragua",
6801 "Order": 128
6802 },
6803 {
6804 "Id": 1018,
6805 "QuestionId": 13,
6806 "Text": "Niger",
6807 "Value": "Niger",
6808 "Order": 129
6809 },
6810 {
6811 "Id": 1026,
6812 "QuestionId": 13,
6813 "Text": "Nigeria",
6814 "Value": "Nigeria",
6815 "Order": 130
6816 },
6817 {
6818 "Id": 1034,
6819 "QuestionId": 13,
6820 "Text": "Norway",
6821 "Value": "Norway",
6822 "Order": 131
6823 },
6824 {
6825 "Id": 1042,
6826 "QuestionId": 13,
6827 "Text": "Oman",
6828 "Value": "Oman",
6829 "Order": 132
6830 },
6831 {
6832 "Id": 1050,
6833 "QuestionId": 13,
6834 "Text": "Pakistan",
6835 "Value": "Pakistan",
6836 "Order": 133
6837 },
6838 {
6839 "Id": 1058,
6840 "QuestionId": 13,
6841 "Text": "Palau",
6842 "Value": "Palau",
6843 "Order": 134
6844 },
6845 {
6846 "Id": 1066,
6847 "QuestionId": 13,
6848 "Text": "Panama",
6849 "Value": "Panama",
6850 "Order": 135
6851 },
6852 {
6853 "Id": 1074,
6854 "QuestionId": 13,
6855 "Text": "Papua New Guinea",
6856 "Value": "Papua New Guinea",
6857 "Order": 136
6858 },
6859 {
6860 "Id": 1082,
6861 "QuestionId": 13,
6862 "Text": "Paraguay",
6863 "Value": "Paraguay",
6864 "Order": 137
6865 },
6866 {
6867 "Id": 1090,
6868 "QuestionId": 13,
6869 "Text": "Peru",
6870 "Value": "Peru",
6871 "Order": 138
6872 },
6873 {
6874 "Id": 1098,
6875 "QuestionId": 13,
6876 "Text": "Philippines",
6877 "Value": "Philippines",
6878 "Order": 139
6879 },
6880 {
6881 "Id": 1106,
6882 "QuestionId": 13,
6883 "Text": "Poland",
6884 "Value": "Poland",
6885 "Order": 140
6886 },
6887 {
6888 "Id": 1114,
6889 "QuestionId": 13,
6890 "Text": "Portugal",
6891 "Value": "Portugal",
6892 "Order": 141
6893 },
6894 {
6895 "Id": 1122,
6896 "QuestionId": 13,
6897 "Text": "Qatar",
6898 "Value": "Qatar",
6899 "Order": 142
6900 },
6901 {
6902 "Id": 1130,
6903 "QuestionId": 13,
6904 "Text": "Romania",
6905 "Value": "Romania",
6906 "Order": 143
6907 },
6908 {
6909 "Id": 1138,
6910 "QuestionId": 13,
6911 "Text": "Russia",
6912 "Value": "Russia",
6913 "Order": 144
6914 },
6915 {
6916 "Id": 1146,
6917 "QuestionId": 13,
6918 "Text": "Rwanda",
6919 "Value": "Rwanda",
6920 "Order": 145
6921 },
6922 {
6923 "Id": 1154,
6924 "QuestionId": 13,
6925 "Text": "Saint Kitts and Nevis",
6926 "Value": "Saint Kitts and Nevis",
6927 "Order": 146
6928 },
6929 {
6930 "Id": 1162,
6931 "QuestionId": 13,
6932 "Text": "Saint Lucia",
6933 "Value": "Saint Lucia",
6934 "Order": 147
6935 },
6936 {
6937 "Id": 1170,
6938 "QuestionId": 13,
6939 "Text": "Saint Vincent",
6940 "Value": "Saint Vincent",
6941 "Order": 148
6942 },
6943 {
6944 "Id": 1178,
6945 "QuestionId": 13,
6946 "Text": "Samoa",
6947 "Value": "Samoa",
6948 "Order": 149
6949 },
6950 {
6951 "Id": 1186,
6952 "QuestionId": 13,
6953 "Text": "San Marino",
6954 "Value": "San Marino",
6955 "Order": 150
6956 },
6957 {
6958 "Id": 1194,
6959 "QuestionId": 13,
6960 "Text": "Sao Tome and Principe",
6961 "Value": "Sao Tome and Principe",
6962 "Order": 151
6963 },
6964 {
6965 "Id": 1202,
6966 "QuestionId": 13,
6967 "Text": "Saudi Arabia",
6968 "Value": "Saudi Arabia",
6969 "Order": 152
6970 },
6971 {
6972 "Id": 1210,
6973 "QuestionId": 13,
6974 "Text": "Senegal",
6975 "Value": "Senegal",
6976 "Order": 153
6977 },
6978 {
6979 "Id": 1218,
6980 "QuestionId": 13,
6981 "Text": "Serbia and Montenegro",
6982 "Value": "Serbia and Montenegro",
6983 "Order": 154
6984 },
6985 {
6986 "Id": 1226,
6987 "QuestionId": 13,
6988 "Text": "Seychelles",
6989 "Value": "Seychelles",
6990 "Order": 155
6991 },
6992 {
6993 "Id": 1234,
6994 "QuestionId": 13,
6995 "Text": "Sierra Leone",
6996 "Value": "Sierra Leone",
6997 "Order": 156
6998 },
6999 {
7000 "Id": 1242,
7001 "QuestionId": 13,
7002 "Text": "Singapore",
7003 "Value": "Singapore",
7004 "Order": 157
7005 },
7006 {
7007 "Id": 1250,
7008 "QuestionId": 13,
7009 "Text": "Slovakia",
7010 "Value": "Slovakia",
7011 "Order": 158
7012 },
7013 {
7014 "Id": 1258,
7015 "QuestionId": 13,
7016 "Text": "Slovenia",
7017 "Value": "Slovenia",
7018 "Order": 159
7019 },
7020 {
7021 "Id": 1266,
7022 "QuestionId": 13,
7023 "Text": "Solomon Islands",
7024 "Value": "Solomon Islands",
7025 "Order": 160
7026 },
7027 {
7028 "Id": 1274,
7029 "QuestionId": 13,
7030 "Text": "Somalia",
7031 "Value": "Somalia",
7032 "Order": 161
7033 },
7034 {
7035 "Id": 1282,
7036 "QuestionId": 13,
7037 "Text": "South Africa",
7038 "Value": "South Africa",
7039 "Order": 162
7040 },
7041 {
7042 "Id": 1290,
7043 "QuestionId": 13,
7044 "Text": "Spain",
7045 "Value": "Spain",
7046 "Order": 163
7047 },
7048 {
7049 "Id": 1298,
7050 "QuestionId": 13,
7051 "Text": "Sri Lanka",
7052 "Value": "Sri Lanka",
7053 "Order": 164
7054 },
7055 {
7056 "Id": 1306,
7057 "QuestionId": 13,
7058 "Text": "Sudan",
7059 "Value": "Sudan",
7060 "Order": 165
7061 },
7062 {
7063 "Id": 1314,
7064 "QuestionId": 13,
7065 "Text": "Suriname",
7066 "Value": "Suriname",
7067 "Order": 166
7068 },
7069 {
7070 "Id": 1322,
7071 "QuestionId": 13,
7072 "Text": "Swaziland",
7073 "Value": "Swaziland",
7074 "Order": 167
7075 },
7076 {
7077 "Id": 1330,
7078 "QuestionId": 13,
7079 "Text": "Sweden",
7080 "Value": "Sweden",
7081 "Order": 168
7082 },
7083 {
7084 "Id": 1338,
7085 "QuestionId": 13,
7086 "Text": "Switzerland",
7087 "Value": "Switzerland",
7088 "Order": 169
7089 },
7090 {
7091 "Id": 1346,
7092 "QuestionId": 13,
7093 "Text": "Syria",
7094 "Value": "Syria",
7095 "Order": 170
7096 },
7097 {
7098 "Id": 1354,
7099 "QuestionId": 13,
7100 "Text": "Taiwan",
7101 "Value": "Taiwan",
7102 "Order": 171
7103 },
7104 {
7105 "Id": 1362,
7106 "QuestionId": 13,
7107 "Text": "Tajikistan",
7108 "Value": "Tajikistan",
7109 "Order": 172
7110 },
7111 {
7112 "Id": 1370,
7113 "QuestionId": 13,
7114 "Text": "Tanzania",
7115 "Value": "Tanzania",
7116 "Order": 173
7117 },
7118 {
7119 "Id": 1378,
7120 "QuestionId": 13,
7121 "Text": "Thailand",
7122 "Value": "Thailand",
7123 "Order": 174
7124 },
7125 {
7126 "Id": 1386,
7127 "QuestionId": 13,
7128 "Text": "Togo",
7129 "Value": "Togo",
7130 "Order": 175
7131 },
7132 {
7133 "Id": 1394,
7134 "QuestionId": 13,
7135 "Text": "Tonga",
7136 "Value": "Tonga",
7137 "Order": 176
7138 },
7139 {
7140 "Id": 1402,
7141 "QuestionId": 13,
7142 "Text": "Trinidad and Tobago",
7143 "Value": "Trinidad and Tobago",
7144 "Order": 177
7145 },
7146 {
7147 "Id": 1410,
7148 "QuestionId": 13,
7149 "Text": "Tunisia",
7150 "Value": "Tunisia",
7151 "Order": 178
7152 },
7153 {
7154 "Id": 1418,
7155 "QuestionId": 13,
7156 "Text": "Turkey",
7157 "Value": "Turkey",
7158 "Order": 179
7159 },
7160 {
7161 "Id": 1426,
7162 "QuestionId": 13,
7163 "Text": "Turkmenistan",
7164 "Value": "Turkmenistan",
7165 "Order": 180
7166 },
7167 {
7168 "Id": 1434,
7169 "QuestionId": 13,
7170 "Text": "Tuvalu",
7171 "Value": "Tuvalu",
7172 "Order": 181
7173 },
7174 {
7175 "Id": 1442,
7176 "QuestionId": 13,
7177 "Text": "Uganda",
7178 "Value": "Uganda",
7179 "Order": 182
7180 },
7181 {
7182 "Id": 1450,
7183 "QuestionId": 13,
7184 "Text": "Ukraine",
7185 "Value": "Ukraine",
7186 "Order": 183
7187 },
7188 {
7189 "Id": 1458,
7190 "QuestionId": 13,
7191 "Text": "United Arab Emirates",
7192 "Value": "United Arab Emirates",
7193 "Order": 184
7194 },
7195 {
7196 "Id": 1466,
7197 "QuestionId": 13,
7198 "Text": "United Kingdom",
7199 "Value": "United Kingdom",
7200 "Order": 185
7201 },
7202 {
7203 "Id": 1474,
7204 "QuestionId": 13,
7205 "Text": "United States",
7206 "Value": "United States",
7207 "Order": 2
7208 },
7209 {
7210 "Id": 1482,
7211 "QuestionId": 13,
7212 "Text": "Uruguay",
7213 "Value": "Uruguay",
7214 "Order": 186
7215 },
7216 {
7217 "Id": 1490,
7218 "QuestionId": 13,
7219 "Text": "Uzbekistan",
7220 "Value": "Uzbekistan",
7221 "Order": 187
7222 },
7223 {
7224 "Id": 1498,
7225 "QuestionId": 13,
7226 "Text": "Vanuatu",
7227 "Value": "Vanuatu",
7228 "Order": 188
7229 },
7230 {
7231 "Id": 1506,
7232 "QuestionId": 13,
7233 "Text": "Vatican City",
7234 "Value": "Vatican City",
7235 "Order": 189
7236 },
7237 {
7238 "Id": 1514,
7239 "QuestionId": 13,
7240 "Text": "Venezuela",
7241 "Value": "Venezuela",
7242 "Order": 190
7243 },
7244 {
7245 "Id": 1522,
7246 "QuestionId": 13,
7247 "Text": "Vietnam",
7248 "Value": "Vietnam",
7249 "Order": 191
7250 },
7251 {
7252 "Id": 1530,
7253 "QuestionId": 13,
7254 "Text": "Yemen",
7255 "Value": "Yemen",
7256 "Order": 192
7257 },
7258 {
7259 "Id": 1538,
7260 "QuestionId": 13,
7261 "Text": "Zambia",
7262 "Value": "Zambia",
7263 "Order": 193
7264 },
7265 {
7266 "Id": 1546,
7267 "QuestionId": 13,
7268 "Text": "Zimbabwe",
7269 "Value": "Zimbabwe",
7270 "Order": 194
7271 },
7272 {
7273 "Id": 2186,
7274 "QuestionId": 13,
7275 "Text": "British Columbia",
7276 "Value": "British Columbia",
7277 "Order": 195
7278 }
7279 ]
7280 },
7281 {
7282 "Id": 178,
7283 "Text": "Job Function",
7284 "Type": "4",
7285 "Alias": "Job Function",
7286 "Choices": [
7287 {
7288 "Id": 2266,
7289 "QuestionId": 178,
7290 "Text": "Select One",
7291 "Value": "",
7292 "Order": 1
7293 },
7294 {
7295 "Id": 2274,
7296 "QuestionId": 178,
7297 "Text": "Sales",
7298 "Value": "Sales",
7299 "Order": 2
7300 },
7301 {
7302 "Id": 2282,
7303 "QuestionId": 178,
7304 "Text": "Marketing",
7305 "Value": "Marketing",
7306 "Order": 3
7307 },
7308 {
7309 "Id": 2290,
7310 "QuestionId": 178,
7311 "Text": "New Media",
7312 "Value": "New Media",
7313 "Order": 4
7314 },
7315 {
7316 "Id": 2298,
7317 "QuestionId": 178,
7318 "Text": "Audience Development",
7319 "Value": "Audience Development",
7320 "Order": 5
7321 },
7322 {
7323 "Id": 2306,
7324 "QuestionId": 178,
7325 "Text": "Editorial",
7326 "Value": "Editorial",
7327 "Order": 6
7328 },
7329 {
7330 "Id": 2314,
7331 "QuestionId": 178,
7332 "Text": "Information Technology",
7333 "Value": "IT",
7334 "Order": 7
7335 },
7336 {
7337 "Id": 2322,
7338 "QuestionId": 178,
7339 "Text": "Corporate",
7340 "Value": "Corporate",
7341 "Order": 8
7342 },
7343 {
7344 "Id": 2418,
7345 "QuestionId": 178,
7346 "Text": "Other",
7347 "Value": "Other",
7348 "Order": 9
7349 }
7350 ]
7351 },
7352 {
7353 "Id": 202,
7354 "Text": "Type of Publication",
7355 "Type": "4",
7356 "Alias": "Type of Publication",
7357 "Choices": [
7358 {
7359 "Id": 2330,
7360 "QuestionId": 202,
7361 "Text": "Select One",
7362 "Value": "",
7363 "Order": 1
7364 },
7365 {
7366 "Id": 2338,
7367 "QuestionId": 202,
7368 "Text": "Magazine",
7369 "Value": "Magazine",
7370 "Order": 2
7371 },
7372 {
7373 "Id": 2346,
7374 "QuestionId": 202,
7375 "Text": "Newspaper",
7376 "Value": "Newspaper",
7377 "Order": 3
7378 },
7379 {
7380 "Id": 2354,
7381 "QuestionId": 202,
7382 "Text": "Digital Publisher",
7383 "Value": "Digital Publisher",
7384 "Order": 4
7385 },
7386 {
7387 "Id": 2362,
7388 "QuestionId": 202,
7389 "Text": "Book Publisher",
7390 "Value": "Book Publisher",
7391 "Order": 5
7392 },
7393 {
7394 "Id": 2370,
7395 "QuestionId": 202,
7396 "Text": "Newsletter/Email",
7397 "Value": "Newsletter/Email",
7398 "Order": 6
7399 }
7400 ]
7401 },
7402 {
7403 "Id": 226,
7404 "Text": "What is your time frame for deployment?",
7405 "Type": "4",
7406 "Alias": "What is your time frame for deployment?",
7407 "Choices": [
7408 {
7409 "Id": 2378,
7410 "QuestionId": 226,
7411 "Text": "Select One",
7412 "Value": "",
7413 "Order": 1
7414 },
7415 {
7416 "Id": 2386,
7417 "QuestionId": 226,
7418 "Text": "0-3 months",
7419 "Value": "0-3",
7420 "Order": 2
7421 },
7422 {
7423 "Id": 2394,
7424 "QuestionId": 226,
7425 "Text": "3-6 months",
7426 "Value": "3-6",
7427 "Order": 3
7428 },
7429 {
7430 "Id": 2402,
7431 "QuestionId": 226,
7432 "Text": "6-12 months",
7433 "Value": "6-12",
7434 "Order": 4
7435 },
7436 {
7437 "Id": 2410,
7438 "QuestionId": 226,
7439 "Text": "No Formal Plans",
7440 "Value": "No Formal Plans",
7441 "Order": 5
7442 }
7443 ]
7444 },
7445 {
7446 "Id": 250,
7447 "Text": "Industry",
7448 "Type": "4",
7449 "Alias": "Industry",
7450 "Choices": [
7451 {
7452 "Id": 2426,
7453 "QuestionId": 250,
7454 "Text": "Agency",
7455 "Value": "Agency",
7456 "Order": 2
7457 },
7458 {
7459 "Id": 2434,
7460 "QuestionId": 250,
7461 "Text": "Association",
7462 "Value": "Association",
7463 "Order": 3
7464 },
7465 {
7466 "Id": 2442,
7467 "QuestionId": 250,
7468 "Text": "Direct Marketing",
7469 "Value": "Direct Marketing",
7470 "Order": 4
7471 },
7472 {
7473 "Id": 2450,
7474 "QuestionId": 250,
7475 "Text": "Publisher",
7476 "Value": "Publisher",
7477 "Order": 5
7478 },
7479 {
7480 "Id": 2458,
7481 "QuestionId": 250,
7482 "Text": "Service Bureau",
7483 "Value": "Service Bureau",
7484 "Order": 6
7485 },
7486 {
7487 "Id": 2466,
7488 "QuestionId": 250,
7489 "Text": "Select One",
7490 "Value": "Government",
7491 "Order": 1
7492 },
7493 {
7494 "Id": 2737,
7495 "QuestionId": 250,
7496 "Text": "Other",
7497 "Value": "Other",
7498 "Order": 7
7499 },
7500 {
7501 "Id": 3051,
7502 "QuestionId": 250,
7503 "Text": "Business Services",
7504 "Value": "Business Services",
7505 "Order": 8
7506 },
7507 {
7508 "Id": 3059,
7509 "QuestionId": 250,
7510 "Text": "Business Services, Media & Internet",
7511 "Value": "Business Services, Media & Internet",
7512 "Order": 9
7513 },
7514 {
7515 "Id": 3067,
7516 "QuestionId": 250,
7517 "Text": "Business Services,Consumer Services",
7518 "Value": "Business Services,Consumer Services",
7519 "Order": 10
7520 },
7521 {
7522 "Id": 3075,
7523 "QuestionId": 250,
7524 "Text": "Business Services,Finance",
7525 "Value": "Business Services,Finance",
7526 "Order": 11
7527 },
7528 {
7529 "Id": 3083,
7530 "QuestionId": 250,
7531 "Text": "Business Services,Retail,Media & Internet",
7532 "Value": "Business Services,Retail,Media & Internet",
7533 "Order": 12
7534 },
7535 {
7536 "Id": 3091,
7537 "QuestionId": 250,
7538 "Text": "Business Services,Telecommunications",
7539 "Value": "Business Services,Telecommunications",
7540 "Order": 13
7541 },
7542 {
7543 "Id": 3099,
7544 "QuestionId": 250,
7545 "Text": "Energy, Utilities & Waste Treatment",
7546 "Value": "Energy, Utilities & Waste Treatment",
7547 "Order": 14
7548 },
7549 {
7550 "Id": 3107,
7551 "QuestionId": 250,
7552 "Text": "Finance",
7553 "Value": "Finance",
7554 "Order": 15
7555 },
7556 {
7557 "Id": 3115,
7558 "QuestionId": 250,
7559 "Text": "Hospitality",
7560 "Value": "Hospitality",
7561 "Order": 16
7562 },
7563 {
7564 "Id": 3123,
7565 "QuestionId": 250,
7566 "Text": "Hospitality,Media & Internet",
7567 "Value": "Hospitality,Media & Internet",
7568 "Order": 17
7569 },
7570 {
7571 "Id": 3131,
7572 "QuestionId": 250,
7573 "Text": "Insurance",
7574 "Value": "Insurance",
7575 "Order": 18
7576 },
7577 {
7578 "Id": 3139,
7579 "QuestionId": 250,
7580 "Text": "Insurance, Finance",
7581 "Value": "Insurance, Finance",
7582 "Order": 19
7583 },
7584 {
7585 "Id": 3147,
7586 "QuestionId": 250,
7587 "Text": "Manufacturing",
7588 "Value": "Manufacturing",
7589 "Order": 20
7590 },
7591 {
7592 "Id": 3155,
7593 "QuestionId": 250,
7594 "Text": "Manufacturing,Business Services",
7595 "Value": "Manufacturing,Business Services",
7596 "Order": 21
7597 },
7598 {
7599 "Id": 3163,
7600 "QuestionId": 250,
7601 "Text": "Manufacturing,Retail,Healthcare",
7602 "Value": "Manufacturing,Retail,Healthcare",
7603 "Order": 22
7604 },
7605 {
7606 "Id": 3171,
7607 "QuestionId": 250,
7608 "Text": "Media & Internet",
7609 "Value": "Media & Internet",
7610 "Order": 23
7611 },
7612 {
7613 "Id": 3179,
7614 "QuestionId": 250,
7615 "Text": "Media & Internet,Business Services",
7616 "Value": "Media & Internet,Business Services",
7617 "Order": 24
7618 },
7619 {
7620 "Id": 3187,
7621 "QuestionId": 250,
7622 "Text": "Organizations",
7623 "Value": "Organizations",
7624 "Order": 25
7625 },
7626 {
7627 "Id": 3195,
7628 "QuestionId": 250,
7629 "Text": "Real Estate",
7630 "Value": "Real Estate",
7631 "Order": 26
7632 },
7633 {
7634 "Id": 3203,
7635 "QuestionId": 250,
7636 "Text": "Retail",
7637 "Value": "Retail",
7638 "Order": 27
7639 },
7640 {
7641 "Id": 3211,
7642 "QuestionId": 250,
7643 "Text": "Retail,Software,Consumer Services",
7644 "Value": "Retail,Software,Consumer Services",
7645 "Order": 28
7646 },
7647 {
7648 "Id": 3219,
7649 "QuestionId": 250,
7650 "Text": "Software",
7651 "Value": "Software",
7652 "Order": 29
7653 },
7654 {
7655 "Id": 3227,
7656 "QuestionId": 250,
7657 "Text": "Retail, Manufacturing",
7658 "Value": "Retail, Manufacturing",
7659 "Order": 30
7660 },
7661 {
7662 "Id": 3235,
7663 "QuestionId": 250,
7664 "Text": "Software,Manufacturing,Retail",
7665 "Value": "Software,Manufacturing,Retail",
7666 "Order": 31
7667 },
7668 {
7669 "Id": 3243,
7670 "QuestionId": 250,
7671 "Text": "Business Services,Media & Internet",
7672 "Value": "Business Services,Media & Internet",
7673 "Order": 32
7674 },
7675 {
7676 "Id": 3251,
7677 "QuestionId": 250,
7678 "Text": "Telecommunications",
7679 "Value": "Telecommunications",
7680 "Order": 33
7681 }
7682 ]
7683 },
7684 {
7685 "Id": 274,
7686 "Text": "How many employees work at your company?_Copy",
7687 "Type": "4",
7688 "Alias": "ALL",
7689 "Choices": [
7690 {
7691 "Id": 2698,
7692 "QuestionId": 274,
7693 "Text": "1-25",
7694 "Value": "01",
7695 "Order": 1
7696 },
7697 {
7698 "Id": 2706,
7699 "QuestionId": 274,
7700 "Text": "26-100",
7701 "Value": "02",
7702 "Order": 2
7703 },
7704 {
7705 "Id": 2714,
7706 "QuestionId": 274,
7707 "Text": "101-250",
7708 "Value": "03",
7709 "Order": 3
7710 },
7711 {
7712 "Id": 2722,
7713 "QuestionId": 274,
7714 "Text": "251-500",
7715 "Value": "04",
7716 "Order": 4
7717 },
7718 {
7719 "Id": 2730,
7720 "QuestionId": 274,
7721 "Text": "500+",
7722 "Value": "05",
7723 "Order": 5
7724 }
7725 ]
7726 },
7727 {
7728 "Id": 281,
7729 "Text": "How many employees work at your company?_Copy",
7730 "Type": "4",
7731 "Alias": "How many employees work at your company?_Copy",
7732 "Choices": [
7733 {
7734 "Id": 2745,
7735 "QuestionId": 281,
7736 "Text": "1-25",
7737 "Value": "01",
7738 "Order": 1
7739 },
7740 {
7741 "Id": 2753,
7742 "QuestionId": 281,
7743 "Text": "26-100",
7744 "Value": "02",
7745 "Order": 2
7746 },
7747 {
7748 "Id": 2761,
7749 "QuestionId": 281,
7750 "Text": "101-250",
7751 "Value": "03",
7752 "Order": 3
7753 },
7754 {
7755 "Id": 2769,
7756 "QuestionId": 281,
7757 "Text": "251-500",
7758 "Value": "04",
7759 "Order": 4
7760 },
7761 {
7762 "Id": 2777,
7763 "QuestionId": 281,
7764 "Text": "500+",
7765 "Value": "05",
7766 "Order": 5
7767 }
7768 ]
7769 },
7770 {
7771 "Id": 291,
7772 "Text": "DAS Question Update",
7773 "Type": "4",
7774 "Alias": "DAS Question Update",
7775 "Choices": [
7776 {
7777 "Id": 2859,
7778 "QuestionId": 291,
7779 "Text": "Choice a Update",
7780 "Value": "a Update",
7781 "Order": 1
7782 },
7783 {
7784 "Id": 2867,
7785 "QuestionId": 291,
7786 "Text": "Choice b Update",
7787 "Value": "b Update",
7788 "Order": 2
7789 }
7790 ]
7791 },
7792 {
7793 "Id": 363,
7794 "Text": "Group Size",
7795 "Type": "4",
7796 "Alias": "Group Size",
7797 "Choices": [
7798 {
7799 "Id": 3027,
7800 "QuestionId": 363,
7801 "Text": "NA",
7802 "Value": "NA",
7803 "Order": 1
7804 },
7805 {
7806 "Id": 3035,
7807 "QuestionId": 363,
7808 "Text": "0-10",
7809 "Value": "0-10",
7810 "Order": 2
7811 },
7812 {
7813 "Id": 3043,
7814 "QuestionId": 363,
7815 "Text": "10-25",
7816 "Value": "10-25",
7817 "Order": 3
7818 }
7819 ]
7820 },
7821 {
7822 "Id": 399,
7823 "Text": "What best describes your job title?",
7824 "Type": "4",
7825 "Alias": "1105-title",
7826 "Choices": [
7827 {
7828 "Id": 3255,
7829 "QuestionId": 399,
7830 "Text": "CIO, CTO, CKO, Technical/VP",
7831 "Value": "CIO",
7832 "Order": 1
7833 },
7834 {
7835 "Id": 3263,
7836 "QuestionId": 399,
7837 "Text": "Corporate Management",
7838 "Value": "corporate",
7839 "Order": 2
7840 },
7841 {
7842 "Id": 3271,
7843 "QuestionId": 399,
7844 "Text": "IS/IT Director/Manager",
7845 "Value": "it",
7846 "Order": 3
7847 },
7848 {
7849 "Id": 3279,
7850 "QuestionId": 399,
7851 "Text": "Director of Softare Development",
7852 "Value": "software director",
7853 "Order": 4
7854 },
7855 {
7856 "Id": 3287,
7857 "QuestionId": 399,
7858 "Text": "Application Development Manager",
7859 "Value": "ADM",
7860 "Order": 5
7861 }
7862 ]
7863 },
7864 {
7865 "Id": 407,
7866 "Text": "What is your organization's (or largest client, if you are a consultant) primary business at this location?",
7867 "Type": "4",
7868 "Alias": "1105 largest client",
7869 "Choices": [
7870 {
7871 "Id": 3295,
7872 "QuestionId": 407,
7873 "Text": "Aerospace",
7874 "Value": "aerospace",
7875 "Order": 1
7876 },
7877 {
7878 "Id": 3303,
7879 "QuestionId": 407,
7880 "Text": "Agriculture/Mining/Gas/Oil",
7881 "Value": "ag",
7882 "Order": 2
7883 },
7884 {
7885 "Id": 3311,
7886 "QuestionId": 407,
7887 "Text": "Business Services/Consultants",
7888 "Value": "bs",
7889 "Order": 3
7890 },
7891 {
7892 "Id": 3319,
7893 "QuestionId": 407,
7894 "Text": "Construction/Architecture/Engineering",
7895 "Value": "construction",
7896 "Order": 4
7897 },
7898 {
7899 "Id": 3327,
7900 "QuestionId": 407,
7901 "Text": "Education/Training",
7902 "Value": "education",
7903 "Order": 5
7904 }
7905 ]
7906 },
7907 {
7908 "Id": 415,
7909 "Text": "What is the total number of employees in your entire organzation?",
7910 "Type": "4",
7911 "Alias": "1105 num employees",
7912 "Choices": [
7913 {
7914 "Id": 3335,
7915 "QuestionId": 415,
7916 "Text": "10,000 or more",
7917 "Value": "10000",
7918 "Order": 1
7919 },
7920 {
7921 "Id": 3343,
7922 "QuestionId": 415,
7923 "Text": "5,000 - 9,999",
7924 "Value": "5000",
7925 "Order": 2
7926 },
7927 {
7928 "Id": 3351,
7929 "QuestionId": 415,
7930 "Text": "1,000 - 4,999",
7931 "Value": "1000",
7932 "Order": 3
7933 },
7934 {
7935 "Id": 3359,
7936 "QuestionId": 415,
7937 "Text": "500 - 999",
7938 "Value": "500",
7939 "Order": 4
7940 },
7941 {
7942 "Id": 3367,
7943 "QuestionId": 415,
7944 "Text": "100 - 499",
7945 "Value": "100",
7946 "Order": 5
7947 },
7948 {
7949 "Id": 3375,
7950 "QuestionId": 415,
7951 "Text": "Under 100",
7952 "Value": "Under 100",
7953 "Order": 6
7954 }
7955 ]
7956 },
7957 {
7958 "Id": 423,
7959 "Text": "saaa",
7960 "Type": "4",
7961 "Alias": "test",
7962 "Choices": [
7963 {
7964 "Id": 3383,
7965 "QuestionId": 423,
7966 "Text": "1",
7967 "Value": "1",
7968 "Order": 1
7969 },
7970 {
7971 "Id": 3391,
7972 "QuestionId": 423,
7973 "Text": "3",
7974 "Value": "3",
7975 "Order": 2
7976 }
7977 ]
7978 }
7979 ]
7980 }
7981 {{/code}}
7982
7983
7984 (% id="HPOSTCreatequestiontypenumeric2Ctext2Cpassword2Ctextareaanddate" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
7985 == (% 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(%%) ==
7986
7987 ----
7988
7989 {{panel bgColor="#D3D3D3" width="100%"}}
7990 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions
7991 {{/panel}}
7992
7993 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
7994
7995 ----
7996
7997 (% 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}}
7998
7999 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8000
8001 ----
8002
8003 {{code language="yml" theme="RDark" title="Body"}}
8004 {"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}
8005 {{/code}}
8006
8007 ==== Example ====
8008
8009 ----
8010
8011 (% style="color:#6b6b6b" %)Request
8012
8013 {{code language="php" theme="RDark" title="Create Question Request"}}
8014 <?php
8015
8016 $curl = curl_init();
8017
8018 curl_setopt_array($curl, array(
8019 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
8020 CURLOPT_RETURNTRANSFER => true,
8021 CURLOPT_ENCODING => '',
8022 CURLOPT_MAXREDIRS => 10,
8023 CURLOPT_TIMEOUT => 0,
8024 CURLOPT_FOLLOWLOCATION => true,
8025 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8026 CURLOPT_CUSTOMREQUEST => 'POST',
8027 CURLOPT_POSTFIELDS =>'{"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}',
8028 CURLOPT_HTTPHEADER => array(
8029 'Appkey: {{ONECOUNT API KEY}}'
8030 ),
8031 ));
8032
8033 $response = curl_exec($curl);
8034
8035 curl_close($curl);
8036 echo $response;
8037 {{/code}}
8038
8039
8040 (% style="color:#6b6b6b" %)Response  200 OK
8041
8042 {{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}
8043 {
8044 "result": {
8045 "success": "1",
8046 "error": {
8047 "code": "",
8048 "message": ""
8049 }
8050 },
8051 "Questions": [
8052 {
8053 "Id": 455
8054 }
8055 ]
8056 }
8057 {{/code}}
8058
8059
8060 (% id="HPOSTCreatequestiontypeselect2Cradioandcheckbox" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8061 == (% 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(%%) ==
8062
8063 ----
8064
8065 {{panel bgColor="#D3D3D3" width="100%"}}
8066 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions
8067 {{/panel}}
8068
8069 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8070
8071 ----
8072
8073 (% 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}}
8074
8075 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8076
8077 ----
8078
8079 {{code language="yml" theme="RDark" title="Body"}}
8080 {"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"}]}
8081 {{/code}}
8082
8083 ==== Example ====
8084
8085 ----
8086
8087 (% style="color:#6b6b6b" %)Request
8088
8089 {{code language="php" theme="RDark" title="Create Question Request"}}
8090 <?php
8091
8092 $curl = curl_init();
8093
8094 curl_setopt_array($curl, array(
8095 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
8096 CURLOPT_RETURNTRANSFER => true,
8097 CURLOPT_ENCODING => '',
8098 CURLOPT_MAXREDIRS => 10,
8099 CURLOPT_TIMEOUT => 0,
8100 CURLOPT_FOLLOWLOCATION => true,
8101 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8102 CURLOPT_CUSTOMREQUEST => 'POST',
8103 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"}]}',
8104 CURLOPT_HTTPHEADER => array(
8105 'Appkey: {{ONECOUNT API KEY}}'
8106 ),
8107 ));
8108
8109 $response = curl_exec($curl);
8110
8111 curl_close($curl);
8112 echo $response;
8113 {{/code}}
8114
8115
8116 (% style="color:#6b6b6b" %)Response  200 OK
8117
8118 {{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}
8119 {
8120 "result": {
8121 "success": "1",
8122 "error": {
8123 "code": "",
8124 "message": ""
8125 }
8126 },
8127 "Questions": [
8128 {
8129 "Id": 495
8130 }
8131 ]
8132 }
8133 {{/code}}
8134
8135
8136 (% id="HPUTUpdatequestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8137 == (% 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(%%) ==
8138
8139 ----
8140
8141 {{panel bgColor="#D3D3D3" width="100%"}}
8142 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}}
8143 {{/panel}}
8144
8145 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8146
8147 ----
8148
8149 (% 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}}
8150
8151 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8152
8153 ----
8154
8155 {{code language="yml" theme="RDark" title="Body"}}
8156 {"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"}]}
8157 {{/code}}
8158
8159 ==== Example ====
8160
8161 ----
8162
8163 (% style="color:#6b6b6b" %)Request
8164
8165 {{code language="php" theme="RDark" title="Update Question Request"}}
8166 <?php
8167
8168 $curl = curl_init();
8169
8170 curl_setopt_array($curl, array(
8171 CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}',
8172 CURLOPT_RETURNTRANSFER => true,
8173 CURLOPT_ENCODING => '',
8174 CURLOPT_MAXREDIRS => 10,
8175 CURLOPT_TIMEOUT => 0,
8176 CURLOPT_FOLLOWLOCATION => true,
8177 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8178 CURLOPT_CUSTOMREQUEST => 'PUT',
8179 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"}]}',
8180 CURLOPT_HTTPHEADER => array(
8181 'Appkey: {{ONECOUNT API KEY}}'
8182 ),
8183 ));
8184
8185 $response = curl_exec($curl);
8186
8187 curl_close($curl);
8188 echo $response;
8189
8190
8191 {{/code}}
8192
8193
8194 (% style="color:#6b6b6b" %)Response  200 OK
8195
8196 {{code language="yml" theme="RDark" collapse="true" title="Update Question Response"}}
8197 {
8198 "result": {
8199 "success": "1",
8200 "error": {
8201 "code": "",
8202 "message": ""
8203 }
8204 },
8205 "Questions": [
8206 {
8207 "Id": 503
8208 }
8209 ]
8210 }
8211 {{/code}}
8212
8213
8214 (% id="HCOMPONENT:Products" class="western" %)
8215 === **COMPONENT: Products** ===
8216
8217 (% class="western" %)
8218 This resource is for manipulating products resource. A product can be created, updated or searched.
8219
8220 (% class="wrapped" %)
8221 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8222 (((
8223 (% class="western" %)
8224 **Method**
8225 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8226 (((
8227 (% class="western" %)
8228 **Url**
8229 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8230 (((
8231 (% class="western" %)
8232 **Action**
8233 )))
8234 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8235 (((
8236 (% class="western" %)
8237 GET
8238 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8239 (((
8240 (% class="western" %)
8241 /products
8242 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8243 (((
8244 (% class="western" %)
8245 Get all product details
8246 )))
8247 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8248 (((
8249 (% class="western" %)
8250 GET
8251 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8252 (((
8253 (% class="western" %)
8254 /products/5
8255 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8256 (((
8257 (% class="western" %)
8258 Get product id 5
8259 )))
8260 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8261 (((
8262 (% class="western" %)
8263 GET
8264 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8265 (((
8266 (% class="western" %)
8267 /products/lookup?Title=productname
8268 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8269 (((
8270 (% class="western" %)
8271 Lookup products by Title
8272 )))
8273 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8274 (((
8275 (% class="western" %)
8276 POST
8277 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8278 (((
8279 (% class="western" %)
8280 /products
8281 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8282 (((
8283 (% class="western" %)
8284 JSON of the Products type object needs to be sent as post data. Id field should not be sent.
8285 )))
8286 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8287 (((
8288 (% class="western" %)
8289 PUT
8290 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8291 (((
8292 (% class="western" %)
8293 /products/5
8294 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8295 (((
8296 (% class="western" %)
8297 JSON of the Products type object needs to be sent as post data. Id field is mandatory for update.
8298 )))
8299 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8300 (((
8301 (% class="western" %)
8302 POST
8303 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8304 (((
8305 (% class="western" %)
8306 /products/attachResource
8307 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8308 (((
8309 (% class="western" %)
8310 JSON of the Product and Resource ids to be sent as post data.
8311
8312 (% class="western" %)
8313 Both fields are mandatory.
8314
8315 (% class="western" %)
8316 Example:
8317
8318 (% class="western" %)
8319 {"ProductID":"65","ResourceID":”121"}
8320 )))
8321
8322 (% id="HGETAllProducts" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8323 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Products(%%) ==
8324
8325 ----
8326
8327 ----
8328
8329 {{panel bgColor="#D3D3D3" width="100%"}}
8330 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products
8331 {{/panel}}
8332
8333 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8334
8335 ----
8336
8337 (% 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}}
8338
8339 ==== Example ====
8340
8341 ----
8342
8343 (% style="color:#6b6b6b" %)Request
8344
8345 {{code language="php" theme="RDark" title="Get All Products Request"}}
8346 <?php
8347
8348 $curl = curl_init();
8349
8350 curl_setopt_array($curl, array(
8351 CURLOPT_URL => 'https://api.onecount.net/v2/products',
8352 CURLOPT_RETURNTRANSFER => true,
8353 CURLOPT_ENCODING => '',
8354 CURLOPT_MAXREDIRS => 10,
8355 CURLOPT_TIMEOUT => 0,
8356 CURLOPT_FOLLOWLOCATION => true,
8357 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8358 CURLOPT_CUSTOMREQUEST => 'GET',
8359 CURLOPT_HTTPHEADER => array(
8360 'Appkey: {{ONECOUNT API KEY}}'
8361 ),
8362 ));
8363
8364 $response = curl_exec($curl);
8365
8366 curl_close($curl);
8367 echo $response;
8368
8369
8370 {{/code}}
8371
8372
8373 (% style="color:#6b6b6b" %)Response  200 OK
8374
8375 {{code language="yml" theme="RDark" collapse="true" title="Get All Products Response"}}
8376 {
8377 "result": {
8378 "success": "1",
8379 "error": {
8380 "code": "",
8381 "message": ""
8382 }
8383 },
8384 "Products": [
8385 {
8386 "ProductId": 26,
8387 "Title": "ONEcount Product Demo",
8388 "Description": "",
8389 "ResourceIDs": [],
8390 "PrimaryFormID": [
8391 "307",
8392 "34"
8393 ],
8394 "Terms": {
8395 "Id": 26,
8396 "Name": "Please contact me to arrange a demo",
8397 "Description": "",
8398 "Duration": 1,
8399 "DurationUnit": "I",
8400 "Price": "0",
8401 "ProductId": 26
8402 }
8403 },
8404 {
8405 "ProductId": 34,
8406 "Title": "ONEcount Promotional Emails",
8407 "Description": "Master List of ONEcount prospects to receive promotional emails, etc.",
8408 "ResourceIDs": [
8409 98,
8410 114
8411 ],
8412 "PrimaryFormID": [
8413 "194"
8414 ],
8415 "Terms": {
8416 "Id": 34,
8417 "Name": "ONEcount Promotional Emails",
8418 "Description": "ONEcount promotional emails",
8419 "Duration": 1,
8420 "DurationUnit": "I",
8421 "Price": "0",
8422 "ProductId": 34
8423 }
8424 },
8425 {
8426 "ProductId": 42,
8427 "Title": "ONEcount Staff",
8428 "Description": "ONEcount/GCN Media Staff",
8429 "ResourceIDs": [
8430 18
8431 ],
8432 "PrimaryFormID": [
8433 "186"
8434 ],
8435 "Terms": {
8436 "Id": 42,
8437 "Name": "ONEcount Staff List",
8438 "Description": "List of ONEcount/GCN Media Staff",
8439 "Duration": 1,
8440 "DurationUnit": "I",
8441 "Price": "0",
8442 "ProductId": 42
8443 }
8444 },
8445 {
8446 "ProductId": 49,
8447 "Title": "ONEcount Medical Publishers",
8448 "Description": "For blasts to medical publishers and associations",
8449 "ResourceIDs": [
8450 137
8451 ],
8452 "PrimaryFormID": [
8453 "170"
8454 ],
8455 "Terms": {
8456 "Id": 49,
8457 "Name": "ONEcount Medical Publishers",
8458 "Description": "ONEcount Medical Publishers and Associations",
8459 "Duration": 1,
8460 "DurationUnit": "I",
8461 "Price": "0",
8462 "ProductId": 49
8463 }
8464 },
8465 {
8466 "ProductId": 57,
8467 "Title": "000 Pop-Up Form",
8468 "Description": "",
8469 "ResourceIDs": [
8470 145
8471 ],
8472 "PrimaryFormID": [
8473 "170"
8474 ],
8475 "Terms": {
8476 "Id": 57,
8477 "Name": "000 Pop-Up Term",
8478 "Description": "",
8479 "Duration": 1,
8480 "DurationUnit": "I",
8481 "Price": "0",
8482 "ProductId": 57
8483 }
8484 },
8485 {
8486 "ProductId": 65,
8487 "Title": "TEST",
8488 "Description": "",
8489 "ResourceIDs": [],
8490 "PrimaryFormID": [
8491 "194"
8492 ],
8493 "Terms": {}
8494 },
8495 {
8496 "ProductId": 67,
8497 "Title": "Gated Product Example PKG",
8498 "Description": "",
8499 "ResourceIDs": [],
8500 "PrimaryFormID": [
8501 "195"
8502 ],
8503 "Terms": {
8504 "Id": 59,
8505 "Name": "Get it for free",
8506 "Description": "",
8507 "Duration": 1,
8508 "DurationUnit": "I",
8509 "Price": "0",
8510 "ProductId": 67
8511 }
8512 },
8513 {
8514 "ProductId": 75,
8515 "Title": "SB: Apple Moves To Limit Tracking in Safari: Prove",
8516 "Description": "",
8517 "ResourceIDs": [],
8518 "PrimaryFormID": [],
8519 "Terms": {}
8520 },
8521 {
8522 "ProductId": 83,
8523 "Title": "SB: Audience Extension: Turning Identity Into Cash",
8524 "Description": "",
8525 "ResourceIDs": [],
8526 "PrimaryFormID": [],
8527 "Terms": {}
8528 },
8529 {
8530 "ProductId": 91,
8531 "Title": "DAS_freepass_00",
8532 "Description": "",
8533 "ResourceIDs": [
8534 187
8535 ],
8536 "PrimaryFormID": [
8537 "267"
8538 ],
8539 "Terms": {
8540 "Id": 67,
8541 "Name": "DAS_freepass_00",
8542 "Description": "",
8543 "Duration": 30,
8544 "DurationUnit": "D",
8545 "Price": "0",
8546 "ProductId": 91
8547 }
8548 },
8549 {
8550 "ProductId": 99,
8551 "Title": "Test12311111",
8552 "Description": "Testss",
8553 "ResourceIDs": [],
8554 "PrimaryFormID": [
8555 "10"
8556 ],
8557 "Terms": {
8558 "Id": 75,
8559 "Name": "Product123",
8560 "Description": null,
8561 "Duration": 0,
8562 "DurationUnit": "",
8563 "Price": "0",
8564 "ProductId": 99
8565 }
8566 },
8567 {
8568 "ProductId": 107,
8569 "Title": "Test123-456",
8570 "Description": "Testss updated",
8571 "ResourceIDs": [
8572 98
8573 ],
8574 "PrimaryFormID": [
8575 "10"
8576 ],
8577 "Terms": {
8578 "Id": 83,
8579 "Name": "Product123",
8580 "Description": null,
8581 "Duration": 0,
8582 "DurationUnit": "",
8583 "Price": "0",
8584 "ProductId": 107
8585 }
8586 },
8587 {
8588 "ProductId": 109,
8589 "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM",
8590 "Description": "",
8591 "ResourceIDs": [
8592 197
8593 ],
8594 "PrimaryFormID": [],
8595 "Terms": {
8596 "Id": 93,
8597 "Name": "Enhanced Analytics Webinar",
8598 "Description": "Check the box to register for the February 26th webinar.",
8599 "Duration": 1,
8600 "DurationUnit": "I",
8601 "Price": "0",
8602 "ProductId": 109
8603 }
8604 }
8605 ]
8606 }
8607 {{/code}}
8608
8609
8610 (% id="HGETspecificProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8611 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Product(%%) ==
8612
8613 ----
8614
8615 {{panel bgColor="#D3D3D3" width="100%"}}
8616 (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color:#212121" %)/products/~{~{product id}}
8617 {{/panel}}
8618
8619 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8620
8621 ----
8622
8623 (% 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}}
8624
8625 ==== Example ====
8626
8627 ----
8628
8629 (% style="color:#6b6b6b" %)Request
8630
8631 {{code language="php" theme="RDark" title="Get specific Product Request"}}
8632 <?php
8633
8634 $curl = curl_init();
8635
8636 curl_setopt_array($curl, array(
8637 CURLOPT_URL => 'https://api.onecount.net/v2/users/products/{{product id}}',
8638 CURLOPT_RETURNTRANSFER => true,
8639 CURLOPT_ENCODING => '',
8640 CURLOPT_MAXREDIRS => 10,
8641 CURLOPT_TIMEOUT => 0,
8642 CURLOPT_FOLLOWLOCATION => true,
8643 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8644 CURLOPT_CUSTOMREQUEST => 'GET',
8645 CURLOPT_HTTPHEADER => array(
8646 'Appkey: {{ONECOUNT API KEY}}'
8647 ),
8648 ));
8649
8650 $response = curl_exec($curl);
8651
8652 curl_close($curl);
8653 echo $response;
8654 {{/code}}
8655
8656
8657 (% style="color:#6b6b6b" %)Response  200 OK
8658
8659 {{code language="yml" theme="RDark" collapse="true" title="Get specific Product Response"}}
8660 {
8661 "result": {
8662 "success": "1",
8663 "error": {
8664 "code": "",
8665 "message": ""
8666 }
8667 },
8668 "Products": [
8669 {
8670 "ProductId": 109,
8671 "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM",
8672 "Description": "",
8673 "ResourceIDs": [
8674 197
8675 ],
8676 "PrimaryFormID": [],
8677 "Terms": {
8678 "Id": 93,
8679 "Name": "Enhanced Analytics Webinar",
8680 "Description": "Check the box to register for the February 26th webinar.",
8681 "Duration": 1,
8682 "DurationUnit": "I",
8683 "Price": "0",
8684 "ProductId": 109
8685 }
8686 }
8687 ]
8688 }
8689 {{/code}}
8690
8691
8692 (% id="HGETlookupProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8693 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Product(%%) ==
8694
8695 ----
8696
8697 {{panel bgColor="#D3D3D3" width="100%"}}
8698 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/lookup?Title=~{~{Product Name}}
8699 {{/panel}}
8700
8701 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8702
8703 ----
8704
8705 (% 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}}
8706
8707 === (% style="color:#212121" %)Query Params(%%) ===
8708
8709 ----
8710
8711 (% 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" %)
8712
8713 ==== Example ====
8714
8715 ----
8716
8717 (% style="color:#6b6b6b" %)Request
8718
8719 {{code language="php" theme="RDark" title="Lookup Product Request"}}
8720 <?php
8721
8722 $curl = curl_init();
8723
8724 curl_setopt_array($curl, array(
8725 CURLOPT_URL => 'https://api.onecount.net/v2/products/lookup?Title={{Product Name}}',
8726 CURLOPT_RETURNTRANSFER => true,
8727 CURLOPT_ENCODING => '',
8728 CURLOPT_MAXREDIRS => 10,
8729 CURLOPT_TIMEOUT => 0,
8730 CURLOPT_FOLLOWLOCATION => true,
8731 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8732 CURLOPT_CUSTOMREQUEST => 'GET',
8733 CURLOPT_HTTPHEADER => array(
8734 'Appkey: {{ONECOUNT API KEY}}'
8735 ),
8736 ));
8737
8738 $response = curl_exec($curl);
8739
8740 curl_close($curl);
8741 echo $response;
8742 {{/code}}
8743
8744
8745 (% style="color:#6b6b6b" %)Response  200 OK
8746
8747 {{code language="yml" theme="RDark" collapse="true" title="Lookup Product Response"}}
8748 {
8749 "result": {
8750 "success": "1",
8751 "error": {
8752 "code": "",
8753 "message": ""
8754 }
8755 },
8756 "Products": [
8757 {
8758 "ProductId": 107,
8759 "Title": "Test123-456",
8760 "Description": "Testss updated",
8761 "Terms": {
8762 "Id": 83,
8763 "Name": "Product123",
8764 "Description": null,
8765 "Duration": 0,
8766 "DurationUnit": "",
8767 "Price": "0",
8768 "ProductId": 107
8769 }
8770 }
8771 ]
8772 }
8773 {{/code}}
8774
8775
8776 (% id="HPOSTCreateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8777 == (% 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(%%) ==
8778
8779 ----
8780
8781 {{panel bgColor="#D3D3D3" width="100%"}}
8782 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products
8783 {{/panel}}
8784
8785 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8786
8787 ----
8788
8789 (% 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}}
8790
8791 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8792
8793 ----
8794
8795 {{code language="yml" theme="RDark" title="Body"}}
8796 {"Title":"Test API package creation 2","Description": "Test API package creation 2","Terms":{"Name":"Test term for API 2"},"PrimaryFormId":0}
8797 {{/code}}
8798
8799 ==== Example ====
8800
8801 ----
8802
8803 (% style="color:#6b6b6b" %)Request
8804
8805 {{code language="php" theme="RDark" title="Create Product Request"}}
8806 <?php
8807
8808 $curl = curl_init();
8809
8810 curl_setopt_array($curl, array(
8811 CURLOPT_URL => 'https://api.onecount.net/v2/products',
8812 CURLOPT_RETURNTRANSFER => true,
8813 CURLOPT_ENCODING => '',
8814 CURLOPT_MAXREDIRS => 10,
8815 CURLOPT_TIMEOUT => 0,
8816 CURLOPT_FOLLOWLOCATION => true,
8817 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8818 CURLOPT_CUSTOMREQUEST => 'POST',
8819 CURLOPT_POSTFIELDS =>'{"Title":"Test API package creation 1","Description": "Test API package creation 1","Terms":{"Name":"Test term for API 1"},"PrimaryFormId":0}',
8820 CURLOPT_HTTPHEADER => array(
8821 'Appkey: {{ONECOUNT API KEY}}'
8822 ),
8823 ));
8824
8825 $response = curl_exec($curl);
8826
8827 curl_close($curl);
8828 echo $response;
8829 {{/code}}
8830
8831
8832 (% style="color:#6b6b6b" %)Response  200 OK
8833
8834 {{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}}
8835 {
8836 "result": {
8837 "success": "1",
8838 "error": {
8839 "code": "",
8840 "message": ""
8841 }
8842 },
8843 "Products": [
8844 {
8845 "ProductId": 599
8846 }
8847 ]
8848 }
8849 {{/code}}
8850
8851
8852 (% id="HPUTUpdateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8853 == (% 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(%%) ==
8854
8855 ----
8856
8857 {{panel bgColor="#D3D3D3" width="100%"}}
8858 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/~{~{Product id}}
8859 {{/panel}}
8860
8861 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8862
8863 ----
8864
8865 (% 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}}
8866
8867 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8868
8869 ----
8870
8871 {{code language="yml" theme="RDark" title="Body"}}
8872 {"Title":"Test API package 23","Description": "Test API package 23","PrimaryFormId":0}
8873 {{/code}}
8874
8875 ==== Example ====
8876
8877 ----
8878
8879 (% style="color:#6b6b6b" %)Request
8880
8881 {{code language="php" theme="RDark" title="Update Product Request"}}
8882 <?php
8883
8884 $curl = curl_init();
8885
8886 curl_setopt_array($curl, array(
8887 CURLOPT_URL => 'https://api.onecount.net/v2/products/{{Product id}}',
8888 CURLOPT_RETURNTRANSFER => true,
8889 CURLOPT_ENCODING => '',
8890 CURLOPT_MAXREDIRS => 10,
8891 CURLOPT_TIMEOUT => 0,
8892 CURLOPT_FOLLOWLOCATION => true,
8893 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8894 CURLOPT_CUSTOMREQUEST => 'PUT',
8895 CURLOPT_POSTFIELDS =>'{"Title":"Test API package 1","Description": "Test API package 1","PrimaryFormId":0}',
8896 CURLOPT_HTTPHEADER => array(
8897 'Appkey: {{ONECOUNT API KEY}}'
8898 ),
8899 ));
8900
8901 $response = curl_exec($curl);
8902
8903 curl_close($curl);
8904 echo $response;
8905
8906 {{/code}}
8907
8908
8909 (% style="color:#6b6b6b" %)Response  200 OK
8910
8911 {{code language="yml" theme="RDark" collapse="true" title="Update Product Response"}}
8912 {
8913 "result": {
8914 "success": "1",
8915 "error": {
8916 "code": "",
8917 "message": ""
8918 }
8919 },
8920 "Products": [
8921 {
8922 "ProductId": 599,
8923 "Title": "Test API package 1",
8924 "Description": "Test API package 1"
8925 }
8926 ]
8927 }
8928 {{/code}}
8929
8930
8931 (% id="HPOSTAttachResourcetoProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8932 == (% 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(%%) ==
8933
8934 ----
8935
8936 {{panel bgColor="#D3D3D3" width="100%"}}
8937 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/attachResource
8938 {{/panel}}
8939
8940 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8941
8942 ----
8943
8944 (% 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}}
8945
8946 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8947
8948 ----
8949
8950 {{code language="yml" theme="RDark" title="Body"}}
8951 {"ProductID":"599","ResourceID":"903"}
8952 {{/code}}
8953
8954 ==== Example ====
8955
8956 ----
8957
8958 (% style="color:#6b6b6b" %)Request
8959
8960 {{code language="php" theme="RDark" title="Attach Resource to Product Request"}}
8961 <?php
8962
8963 $curl = curl_init();
8964
8965 curl_setopt_array($curl, array(
8966 CURLOPT_URL => 'https://api.onecount.net/v2/products/attachResource',
8967 CURLOPT_RETURNTRANSFER => true,
8968 CURLOPT_ENCODING => '',
8969 CURLOPT_MAXREDIRS => 10,
8970 CURLOPT_TIMEOUT => 0,
8971 CURLOPT_FOLLOWLOCATION => true,
8972 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8973 CURLOPT_CUSTOMREQUEST => 'POST',
8974 CURLOPT_POSTFIELDS =>'{"ProductID":"599","ResourceID":"903"}',
8975 CURLOPT_HTTPHEADER => array(
8976 'Appkey: {{ONECOUNT API KEY}}'
8977 ),
8978 ));
8979
8980 $response = curl_exec($curl);
8981
8982 curl_close($curl);
8983 echo $response;
8984 {{/code}}
8985
8986
8987 (% style="color:#6b6b6b" %)Response  200 OK
8988
8989 {{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}}
8990 {
8991 "result": {
8992 "success": "1",
8993 "error": {
8994 "code": "",
8995 "message": ""
8996 }
8997 },
8998 "Products": "599"
8999 }
9000 {{/code}}
9001
9002 (% id="HCOMPONENT:Terms" class="western" %)
9003 === **COMPONENT: Terms** ===
9004
9005 (% class="western" %)
9006 This resource is for manipulating terms resource. A term can be created, updated or searched.
9007
9008 (% class="wrapped" %)
9009 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9010 (((
9011 (% class="western" %)
9012 **Method**
9013 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9014 (((
9015 (% class="western" %)
9016 **Url**
9017 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9018 (((
9019 (% class="western" %)
9020 **Action**
9021 )))
9022 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9023 (((
9024 (% class="western" %)
9025 GET
9026 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9027 (((
9028 (% class="western" %)
9029 /terms/5
9030 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9031 (((
9032 (% class="western" %)
9033 Get term id 5
9034 )))
9035 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9036 (((
9037 (% class="western" %)
9038 GET
9039 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9040 (((
9041 (% class="western" %)
9042 /terms/lookup?Name=termname
9043 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9044 (((
9045 (% class="western" %)
9046 Lookup terms by Name
9047 )))
9048 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9049 (((
9050 (% class="western" %)
9051 POST
9052 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9053 (((
9054 (% class="western" %)
9055 /terms
9056 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9057 (((
9058 (% class="western" %)
9059 JSON of the terms type object needs to be sent as post data. Id field should not be sent.
9060 )))
9061 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9062 (((
9063 (% class="western" %)
9064 PUT
9065 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9066 (((
9067 (% class="western" %)
9068 /terms/5
9069 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9070 (((
9071 (% class="western" %)
9072 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update.
9073 )))
9074
9075 (% id="HGETAllTerms" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9076 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Terms(%%) ==
9077
9078 ----
9079
9080 ----
9081
9082 {{panel bgColor="#D3D3D3" width="100%"}}
9083 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms
9084 {{/panel}}
9085
9086 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9087
9088 ----
9089
9090 (% 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}}
9091
9092 ==== Example ====
9093
9094 ----
9095
9096 (% style="color:#6b6b6b" %)Request
9097
9098 {{code language="php" theme="RDark" title="Get All Terms Request"}}
9099 <?php
9100
9101 $curl = curl_init();
9102
9103 curl_setopt_array($curl, array(
9104 CURLOPT_URL => 'https://api.onecount.net/v2/terms',
9105 CURLOPT_RETURNTRANSFER => true,
9106 CURLOPT_ENCODING => '',
9107 CURLOPT_MAXREDIRS => 10,
9108 CURLOPT_TIMEOUT => 0,
9109 CURLOPT_FOLLOWLOCATION => true,
9110 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9111 CURLOPT_CUSTOMREQUEST => 'GET',
9112 CURLOPT_HTTPHEADER => array(
9113 'Appkey: {{ONECOUNT API KEY}}'
9114 ),
9115 ));
9116
9117 $response = curl_exec($curl);
9118
9119 curl_close($curl);
9120 echo $response;
9121 {{/code}}
9122
9123
9124 (% style="color:#6b6b6b" %)Response  200 OK
9125
9126 {{code language="yml" theme="RDark" collapse="true" title="Get All Terms Response"}}
9127 {
9128 "result": {
9129 "success": "1",
9130 "error": {
9131 "code": "",
9132 "message": ""
9133 }
9134 },
9135 "Terms": [
9136 {
9137 "Id": 26,
9138 "Name": "Please contact me to arrange a demo",
9139 "Description": "",
9140 "Duration": 1,
9141 "DurationUnit": "I",
9142 "Price": "0",
9143 "ProductId": 26
9144 },
9145 {
9146 "Id": 34,
9147 "Name": "ONEcount Promotional Emails",
9148 "Description": "ONEcount promotional emails",
9149 "Duration": 1,
9150 "DurationUnit": "I",
9151 "Price": "0",
9152 "ProductId": 34
9153 },
9154 {
9155 "Id": 42,
9156 "Name": "ONEcount Staff List",
9157 "Description": "List of ONEcount/GCN Media Staff",
9158 "Duration": 1,
9159 "DurationUnit": "I",
9160 "Price": "0",
9161 "ProductId": 42
9162 },
9163 {
9164 "Id": 49,
9165 "Name": "ONEcount Medical Publishers",
9166 "Description": "ONEcount Medical Publishers and Associations",
9167 "Duration": 1,
9168 "DurationUnit": "I",
9169 "Price": "0",
9170 "ProductId": 49
9171 },
9172 {
9173 "Id": 57,
9174 "Name": "000 Pop-Up Term",
9175 "Description": "",
9176 "Duration": 1,
9177 "DurationUnit": "I",
9178 "Price": "0",
9179 "ProductId": 57
9180 },
9181 {
9182 "Id": 59,
9183 "Name": "Get it for free",
9184 "Description": "",
9185 "Duration": 1,
9186 "DurationUnit": "I",
9187 "Price": "0",
9188 "ProductId": 67
9189 },
9190 {
9191 "Id": 67,
9192 "Name": "DAS_freepass_00",
9193 "Description": "",
9194 "Duration": 30,
9195 "DurationUnit": "D",
9196 "Price": "0",
9197 "ProductId": 91
9198 },
9199 {
9200 "Id": 75,
9201 "Name": "Product123",
9202 "Description": null,
9203 "Duration": 0,
9204 "DurationUnit": "",
9205 "Price": "0",
9206 "ProductId": 99
9207 },
9208 {
9209 "Id": 83,
9210 "Name": "Product123",
9211 "Description": null,
9212 "Duration": 0,
9213 "DurationUnit": "",
9214 "Price": "0",
9215 "ProductId": 107
9216 },
9217 {
9218 "Id": 91,
9219 "Name": "Test123 update ",
9220 "Description": "Testss updated",
9221 "Duration": 10,
9222 "DurationUnit": "",
9223 "Price": "0",
9224 "ProductId": 107
9225 },
9226 {
9227 "Id": 93,
9228 "Name": "Enhanced Analytics Webinar",
9229 "Description": "Check the box to register for the February 26th webinar.",
9230 "Duration": 1,
9231 "DurationUnit": "I",
9232 "Price": "0",
9233 "ProductId": 109
9234 },
9235 {
9236 "Id": 423,
9237 "Name": "Test term for API",
9238 "Description": null,
9239 "Duration": 0,
9240 "DurationUnit": "",
9241 "Price": "0.00",
9242 "ProductId": 591
9243 },
9244 {
9245 "Id": 431,
9246 "Name": "Test term for API 1",
9247 "Description": null,
9248 "Duration": 0,
9249 "DurationUnit": "",
9250 "Price": "0.00",
9251 "ProductId": 599
9252 }
9253 ]
9254 }
9255 {{/code}}
9256
9257
9258 (% id="HGETspecificTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9259 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Term(%%) ==
9260
9261 ----
9262
9263 {{panel bgColor="#D3D3D3" width="100%"}}
9264 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}}
9265 {{/panel}}
9266
9267 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9268
9269 ----
9270
9271 (% 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}}
9272
9273 ==== Example ====
9274
9275 ----
9276
9277 (% style="color:#6b6b6b" %)Request
9278
9279 {{code language="php" theme="RDark" title="Get specific Term Request"}}
9280 <?php
9281
9282 $curl = curl_init();
9283
9284 curl_setopt_array($curl, array(
9285 CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}',
9286 CURLOPT_RETURNTRANSFER => true,
9287 CURLOPT_ENCODING => '',
9288 CURLOPT_MAXREDIRS => 10,
9289 CURLOPT_TIMEOUT => 0,
9290 CURLOPT_FOLLOWLOCATION => true,
9291 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9292 CURLOPT_CUSTOMREQUEST => 'GET',
9293 CURLOPT_HTTPHEADER => array(
9294 'Appkey: {{ONECOUNT API KEY}}'
9295 ),
9296 ));
9297
9298 $response = curl_exec($curl);
9299
9300 curl_close($curl);
9301 echo $response;
9302 {{/code}}
9303
9304
9305 (% style="color:#6b6b6b" %)Response  200 OK
9306
9307 {{code language="yml" theme="RDark" collapse="true" title="Get specific Term Response"}}
9308 {
9309 "result": {
9310 "success": "1",
9311 "error": {
9312 "code": "",
9313 "message": ""
9314 }
9315 },
9316 "Terms": [
9317 {
9318 "Id": 431,
9319 "Name": "Test term for API 1",
9320 "Description": null,
9321 "Duration": 0,
9322 "DurationUnit": "",
9323 "Price": "0.00",
9324 "ProductId": 599
9325 }
9326 ]
9327 }
9328 {{/code}}
9329
9330
9331 (% id="HGETlookupTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9332 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Term(%%) ==
9333
9334 ----
9335
9336 {{panel bgColor="#D3D3D3" width="100%"}}
9337 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/lookup?Name={(%%){Term Name}}
9338 {{/panel}}
9339
9340 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9341
9342 ----
9343
9344 (% 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}}
9345
9346 === (% style="color:#212121" %)Query Params(%%) ===
9347
9348 ----
9349
9350 (% 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}}
9351
9352 ==== Example ====
9353
9354 ----
9355
9356 (% style="color:#6b6b6b" %)Request
9357
9358 {{code language="php" theme="RDark" title="Lookup Term Request"}}
9359 <?php
9360
9361 $curl = curl_init();
9362
9363 curl_setopt_array($curl, array(
9364 CURLOPT_URL => 'https://api.onecount.net/v2/terms/lookup?Name={{Term Name}}',
9365 CURLOPT_RETURNTRANSFER => true,
9366 CURLOPT_ENCODING => '',
9367 CURLOPT_MAXREDIRS => 10,
9368 CURLOPT_TIMEOUT => 0,
9369 CURLOPT_FOLLOWLOCATION => true,
9370 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9371 CURLOPT_CUSTOMREQUEST => 'GET',
9372 CURLOPT_HTTPHEADER => array(
9373 'Appkey: {{ONECOUNT API KEY}}'
9374 ),
9375 ));
9376
9377 $response = curl_exec($curl);
9378
9379 curl_close($curl);
9380 echo $response;
9381 {{/code}}
9382
9383
9384 (% style="color:#6b6b6b" %)Response  200 OK
9385
9386 {{code language="yml" theme="RDark" collapse="true" title="Lookup Term Response"}}
9387 {
9388 "result": {
9389 "success": "1",
9390 "error": {
9391 "code": "",
9392 "message": ""
9393 }
9394 },
9395 "Terms": [
9396 {
9397 "Id": 431,
9398 "Name": "Test term for API 1",
9399 "Description": null,
9400 "Duration": 0,
9401 "DurationUnit": "",
9402 "Price": "0.00",
9403 "ProductId": 599
9404 }
9405 ]
9406 }
9407 {{/code}}
9408
9409
9410 (% id="HPOSTCreateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9411 == (% 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(%%) ==
9412
9413 ----
9414
9415 {{panel bgColor="#D3D3D3" width="100%"}}
9416 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms
9417 {{/panel}}
9418
9419 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9420
9421 ----
9422
9423 (% 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}}
9424
9425 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9426
9427 ----
9428
9429 {{code language="yml" theme="RDark" title="Body"}}
9430 {"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599}
9431 {{/code}}
9432
9433 ==== Example ====
9434
9435 ----
9436
9437 (% style="color:#6b6b6b" %)Request
9438
9439 {{code language="php" theme="RDark" title="Create Term Request"}}
9440 <?php
9441
9442 $curl = curl_init();
9443
9444 curl_setopt_array($curl, array(
9445 CURLOPT_URL => 'https://api.onecount.net/v2/terms',
9446 CURLOPT_RETURNTRANSFER => true,
9447 CURLOPT_ENCODING => '',
9448 CURLOPT_MAXREDIRS => 10,
9449 CURLOPT_TIMEOUT => 0,
9450 CURLOPT_FOLLOWLOCATION => true,
9451 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9452 CURLOPT_CUSTOMREQUEST => 'POST',
9453 CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599}
9454
9455 ',
9456 CURLOPT_HTTPHEADER => array(
9457 'Appkey: {{ONECOUNT API KEY}}'
9458 ),
9459 ));
9460
9461 $response = curl_exec($curl);
9462
9463 curl_close($curl);
9464 echo $response;
9465
9466
9467 {{/code}}
9468
9469
9470 (% style="color:#6b6b6b" %)Response  200 OK
9471
9472 {{code language="yml" theme="RDark" collapse="true" title="Create Term Response"}}
9473 {
9474 "result": {
9475 "success": "1",
9476 "error": {
9477 "code": "",
9478 "message": ""
9479 }
9480 },
9481 "Terms": [
9482 {
9483 "Id": 447
9484 }
9485 ]
9486 }
9487 {{/code}}
9488
9489
9490 (% id="HPUTUpdateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9491 == (% 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(%%) ==
9492
9493 ----
9494
9495 {{panel bgColor="#D3D3D3" width="100%"}}
9496 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}}
9497 {{/panel}}
9498
9499 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9500
9501 ----
9502
9503 (% 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}}
9504
9505 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9506
9507 ----
9508
9509 {{code language="yml" theme="RDark" title="Body"}}
9510 {"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}
9511 {{/code}}
9512
9513 ==== Example ====
9514
9515 ----
9516
9517 (% style="color:#6b6b6b" %)Request
9518
9519 {{code language="php" theme="RDark" title="Update Term Request"}}
9520 <?php
9521
9522 $curl = curl_init();
9523
9524 curl_setopt_array($curl, array(
9525 CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}',
9526 CURLOPT_RETURNTRANSFER => true,
9527 CURLOPT_ENCODING => '',
9528 CURLOPT_MAXREDIRS => 10,
9529 CURLOPT_TIMEOUT => 0,
9530 CURLOPT_FOLLOWLOCATION => true,
9531 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9532 CURLOPT_CUSTOMREQUEST => 'PUT',
9533 CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}',
9534 CURLOPT_HTTPHEADER => array(
9535 'Appkey: {{ONECOUNT API KEY}}'
9536 ),
9537 ));
9538
9539 $response = curl_exec($curl);
9540
9541 curl_close($curl);
9542 echo $response;
9543 {{/code}}
9544
9545
9546 (% style="color:#6b6b6b" %)Response  200 OK
9547
9548 {{code language="yml" theme="RDark" collapse="true" title="Update Term Response"}}
9549 {
9550 "result": {
9551 "success": "1",
9552 "error": {
9553 "code": "",
9554 "message": ""
9555 }
9556 },
9557 "Terms": [
9558 {
9559 "Id": 447,
9560 "Name": "Test API term creation update",
9561 "Description": "Test API term creation update",
9562 "Duration": 10,
9563 "DurationUnit": "",
9564 "Price": "0.00",
9565 "ProductId": 599
9566 }
9567 ]
9568 }
9569 {{/code}}
9570
9571
9572 (% id="HCOMPONENT:Resources" class="western" %)
9573 === **COMPONENT: Resources** ===
9574
9575 (% class="western" %)
9576 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.
9577
9578 * (((
9579 (% class="western" %)
9580 questions
9581 )))
9582 * (((
9583 (% class="western" %)
9584 users
9585 )))
9586 * (((
9587 (% class="western" %)
9588 products
9589 )))
9590 * (((
9591 (% class="western" %)
9592 terms
9593 )))
9594 * (((
9595 (% class="western" %)
9596 resources
9597 )))
9598 * (((
9599 (% class="western" %)
9600 sources
9601 )))
9602 * (((
9603 (% class="western" %)
9604 transactions
9605 )))
9606
9607 (% class="western" %)
9608 **~ **
9609
9610 (% class="western" %)
9611 This resource is for manipulating resources resource. A resource can be created, updated or searched.
9612
9613 (% class="wrapped" %)
9614 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9615 (((
9616 (% class="western" %)
9617 **Method**
9618 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9619 (((
9620 (% class="western" %)
9621 **Url**
9622 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9623 (((
9624 (% class="western" %)
9625 **Action**
9626 )))
9627 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9628 (((
9629 (% class="western" %)
9630 GET
9631 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9632 (((
9633 (% class="western" %)
9634 /resources/5
9635 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9636 (((
9637 (% class="western" %)
9638 Get resource id 5
9639 )))
9640 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9641 (((
9642 (% class="western" %)
9643 GET
9644 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9645 (((
9646 (% class="western" %)
9647 /resources/lookup?Name=resourcename
9648 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9649 (((
9650 (% class="western" %)
9651 Lookup resources by Name
9652 )))
9653 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9654 (((
9655 (% class="western" %)
9656 POST
9657 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9658 (((
9659 (% class="western" %)
9660 /resources
9661 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9662 (((
9663 (% class="western" %)
9664 JSON of the resources type object needs to be sent as post data. Id field should not be sent.
9665 )))
9666 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9667 (((
9668 (% class="western" %)
9669 PUT
9670 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9671 (((
9672 (% class="western" %)
9673 /resources/5
9674 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9675 (((
9676 (% class="western" %)
9677 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update.
9678 )))
9679
9680 (% id="HGETAllResources" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9681 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Resources(%%) ==
9682
9683 ----
9684
9685 ----
9686
9687 {{panel bgColor="#D3D3D3" width="100%"}}
9688 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources
9689 {{/panel}}
9690
9691 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9692
9693 ----
9694
9695 (% 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}}
9696
9697 ==== Example ====
9698
9699 ----
9700
9701 (% style="color:#6b6b6b" %)Request
9702
9703 {{code language="php" theme="RDark" title="Get All Resource Request"}}
9704 <?php
9705
9706 $curl = curl_init();
9707
9708 curl_setopt_array($curl, array(
9709 CURLOPT_URL => 'https://api.onecount.net/v2/resources',
9710 CURLOPT_RETURNTRANSFER => true,
9711 CURLOPT_ENCODING => '',
9712 CURLOPT_MAXREDIRS => 10,
9713 CURLOPT_TIMEOUT => 0,
9714 CURLOPT_FOLLOWLOCATION => true,
9715 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9716 CURLOPT_CUSTOMREQUEST => 'GET',
9717 CURLOPT_HTTPHEADER => array(
9718 'Appkey: {{ONECOUNT API KEY}}'
9719 ),
9720 ));
9721
9722 $response = curl_exec($curl);
9723
9724 curl_close($curl);
9725 echo $response;
9726 {{/code}}
9727
9728
9729 (% style="color:#6b6b6b" %)Response  200 OK
9730
9731 {{code language="yml" theme="RDark" collapse="true" title="Get All Resource Response"}}
9732 {
9733 "result": {
9734 "success": "1",
9735 "error": {
9736 "code": "",
9737 "message": ""
9738 }
9739 },
9740 "Resources": [
9741 {
9742 "Id": 18,
9743 "Name": "ONEcount/GCN Staff Newsletter Resource",
9744 "Description": "ONEcount/GCN Staff Newsletter List",
9745 "Type": "2",
9746 "Value": "57|53|55",
9747 "FreePass": 0
9748 },
9749 {
9750 "Id": 26,
9751 "Name": "GCN TEST GROUP",
9752 "Description": "THESE USER WILL GET TEST MESSAGE",
9753 "Type": "2",
9754 "Value": "47",
9755 "FreePass": 0
9756 },
9757 {
9758 "Id": 98,
9759 "Name": "ONEcount Prospects List",
9760 "Description": "Newsletter List of ONEcount Prospects",
9761 "Type": "2",
9762 "Value": "55",
9763 "FreePass": 0
9764 },
9765 {
9766 "Id": 106,
9767 "Name": "Google Ads Form",
9768 "Description": "",
9769 "Type": "3",
9770 "Value": "http://ocreg.one-count.com/onecount/reg/registerForm.cgi?form=186&brand=OC",
9771 "FreePass": 0
9772 },
9773 {
9774 "Id": 114,
9775 "Name": "secure files",
9776 "Description": "",
9777 "Type": "3",
9778 "Value": "/download.php",
9779 "FreePass": 0
9780 },
9781 {
9782 "Id": 130,
9783 "Name": "REQUEST A DEMO",
9784 "Description": "",
9785 "Type": "3",
9786 "Value": "http://ocreg.one-count.com/onecount/flexreg/displayform.cgi?g=0&form=34",
9787 "FreePass": 0
9788 },
9789 {
9790 "Id": 137,
9791 "Name": "ONEcount Medical Publishers",
9792 "Description": "ONEcount Medical Publishers and Associations",
9793 "Type": "2",
9794 "Value": "61",
9795 "FreePass": 0
9796 },
9797 {
9798 "Id": 145,
9799 "Name": "Pop-Up Test Page",
9800 "Description": "",
9801 "Type": "3",
9802 "Value": "http://omar.gcnmedia.com/projects/form/gated.html",
9803 "FreePass": 0
9804 },
9805 {
9806 "Id": 146,
9807 "Name": "Platform Resource",
9808 "Description": "Test Resource",
9809 "Type": "3",
9810 "Value": "/Platform",
9811 "FreePass": 0
9812 },
9813 {
9814 "Id": 153,
9815 "Name": "Submitted",
9816 "Description": "",
9817 "Type": "3",
9818 "Value": "http://gcn-reg.onecount.net/onecount/reg/tSuccessView.php?brand=oc",
9819 "FreePass": 0
9820 }
9821 ]
9822 }
9823 {{/code}}
9824
9825
9826 (% id="HGETspecificResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9827 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Resource(%%) ==
9828
9829 ----
9830
9831 {{panel bgColor="#D3D3D3" width="100%"}}
9832 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/{(%%){Resource ID}}
9833 {{/panel}}
9834
9835 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9836
9837 ----
9838
9839 (% 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}}
9840
9841 ==== Example ====
9842
9843 ----
9844
9845 (% style="color:#6b6b6b" %)Request
9846
9847 {{code language="php" theme="RDark" title="Get specific Resource Request"}}
9848 <?php
9849
9850 $curl = curl_init();
9851
9852 curl_setopt_array($curl, array(
9853 CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{Resource ID}}',
9854 CURLOPT_RETURNTRANSFER => true,
9855 CURLOPT_ENCODING => '',
9856 CURLOPT_MAXREDIRS => 10,
9857 CURLOPT_TIMEOUT => 0,
9858 CURLOPT_FOLLOWLOCATION => true,
9859 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9860 CURLOPT_CUSTOMREQUEST => 'GET',
9861 CURLOPT_HTTPHEADER => array(
9862 'Appkey: {{ONECOUNT API KEY}}'
9863 ),
9864 ));
9865
9866 $response = curl_exec($curl);
9867
9868 curl_close($curl);
9869 echo $response;
9870 {{/code}}
9871
9872
9873 (% style="color:#6b6b6b" %)Response  200 OK
9874
9875 {{code language="yml" theme="RDark" collapse="true" title="Get specific Resource Response"}}
9876 {
9877 "result": {
9878 "success": "1",
9879 "error": {
9880 "code": "",
9881 "message": ""
9882 }
9883 },
9884 "Resources": [
9885 {
9886 "Id": 623,
9887 "Name": "TOP 3 THINGS - NonStop Local News",
9888 "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.",
9889 "Type": "2",
9890 "Value": "",
9891 "FreePass": 0
9892 }
9893 ]
9894 }
9895 {{/code}}
9896
9897
9898 (% id="HGETlookupResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9899 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Resource(%%) ==
9900
9901 ----
9902
9903 {{panel bgColor="#D3D3D3" width="100%"}}
9904 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/lookup?Name={(%%){Resource Name}}
9905 {{/panel}}
9906
9907 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9908
9909 ----
9910
9911 (% 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}}
9912
9913 === (% style="color:#212121" %)Query Params(%%) ===
9914
9915 ----
9916
9917 (% 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}}
9918
9919 ==== Example ====
9920
9921 ----
9922
9923 (% style="color:#6b6b6b" %)Request
9924
9925 {{code language="php" theme="RDark" title="Lookup Resource Request"}}
9926 <?php
9927
9928 $curl = curl_init();
9929
9930 curl_setopt_array($curl, array(
9931 CURLOPT_URL => 'https://api.onecount.net/v2/resources/lookup?Name={{Resource Name}}',
9932 CURLOPT_RETURNTRANSFER => true,
9933 CURLOPT_ENCODING => '',
9934 CURLOPT_MAXREDIRS => 10,
9935 CURLOPT_TIMEOUT => 0,
9936 CURLOPT_FOLLOWLOCATION => true,
9937 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9938 CURLOPT_CUSTOMREQUEST => 'GET',
9939 CURLOPT_HTTPHEADER => array(
9940 'Appkey: {{ONECOUNT API KEY}}'
9941 ),
9942 ));
9943
9944 $response = curl_exec($curl);
9945
9946 curl_close($curl);
9947 echo $response;
9948 {{/code}}
9949
9950
9951 (% style="color:#6b6b6b" %)Response  200 OK
9952
9953 {{code language="yml" theme="RDark" collapse="true" title="Lookup Resource Response"}}
9954 {
9955 "result": {
9956 "success": "1",
9957 "error": {
9958 "code": "",
9959 "message": ""
9960 }
9961 },
9962 "Resources": [
9963 {
9964 "Id": 479,
9965 "Name": "Virtualization Review",
9966 "Description": "",
9967 "Type": "0",
9968 "Value": "",
9969 "FreePass": 0
9970 }
9971 ]
9972 }
9973 {{/code}}
9974
9975
9976 (% id="HPOSTCreateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9977 == (% 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(%%) ==
9978
9979 ----
9980
9981 {{panel bgColor="#D3D3D3" width="100%"}}
9982 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources
9983 {{/panel}}
9984
9985 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9986
9987 ----
9988
9989 (% 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}}
9990
9991 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9992
9993 ----
9994
9995 {{code language="yml" theme="RDark" title="Body"}}
9996 {"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}
9997 {{/code}}
9998
9999 ==== Example ====
10000
10001 ----
10002
10003 (% style="color:#6b6b6b" %)Request
10004
10005 {{code language="php" theme="RDark" title="Create Resource Request"}}
10006 <?php
10007
10008 $curl = curl_init();
10009
10010 curl_setopt_array($curl, array(
10011 CURLOPT_URL => 'https://api.onecount.net/v2/resources',
10012 CURLOPT_RETURNTRANSFER => true,
10013 CURLOPT_ENCODING => '',
10014 CURLOPT_MAXREDIRS => 10,
10015 CURLOPT_TIMEOUT => 0,
10016 CURLOPT_FOLLOWLOCATION => true,
10017 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10018 CURLOPT_CUSTOMREQUEST => 'POST',
10019 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}',
10020 CURLOPT_HTTPHEADER => array(
10021 'Appkey: {{ONECOUNT API KEY}}'
10022 ),
10023 ));
10024
10025 $response = curl_exec($curl);
10026
10027 curl_close($curl);
10028 echo $response;
10029 {{/code}}
10030
10031
10032 (% style="color:#6b6b6b" %)Response  200 OK
10033
10034 {{code language="yml" theme="RDark" collapse="true" title="Create Resource Response"}}
10035 {
10036 "result": {
10037 "success": "1",
10038 "error": {
10039 "code": "",
10040 "message": ""
10041 }
10042 },
10043 "Resources": [
10044 {
10045 "Id": 871,
10046 "Name": "Test API product creation 21",
10047 "Description": "Test API product creation 21",
10048 "Type": "3",
10049 "Value": "http://one-count.com",
10050 "FreePass": 1
10051 }
10052 ]
10053 }
10054 {{/code}}
10055
10056
10057 (% id="HPUTUpdateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10058 == (% 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(%%) ==
10059
10060 ----
10061
10062 {{panel bgColor="#D3D3D3" width="100%"}}
10063 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/~{~{resource id}}
10064 {{/panel}}
10065
10066 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10067
10068 ----
10069
10070 (% 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}}
10071
10072 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10073
10074 ----
10075
10076 {{code language="yml" theme="RDark" title="Body"}}
10077 {"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}
10078 {{/code}}
10079
10080 ==== Example ====
10081
10082 ----
10083
10084 (% style="color:#6b6b6b" %)Request
10085
10086 {{code language="php" theme="RDark" title="Update Resource Request"}}
10087 <?php
10088
10089 $curl = curl_init();
10090
10091 curl_setopt_array($curl, array(
10092 CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{resource id}}',
10093 CURLOPT_RETURNTRANSFER => true,
10094 CURLOPT_ENCODING => '',
10095 CURLOPT_MAXREDIRS => 10,
10096 CURLOPT_TIMEOUT => 0,
10097 CURLOPT_FOLLOWLOCATION => true,
10098 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10099 CURLOPT_CUSTOMREQUEST => 'PUT',
10100 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}',
10101 CURLOPT_HTTPHEADER => array(
10102 'Appkey: {{ONECOUNT API KEY}}'
10103 ),
10104 ));
10105
10106 $response = curl_exec($curl);
10107
10108 curl_close($curl);
10109 echo $response;
10110 {{/code}}
10111
10112
10113 (% style="color:#6b6b6b" %)Response  200 OK
10114
10115 {{code language="yml" theme="RDark" collapse="true" title="Update Resource Response"}}
10116 {
10117 "result": {
10118 "success": "1",
10119 "error": {
10120 "code": "",
10121 "message": ""
10122 }
10123 },
10124 "Resources": [
10125 {
10126 "Id": 903,
10127 "Name": "Test API product creation 23",
10128 "Description": "Test API product creation 23",
10129 "Type": "3",
10130 "Value": "http://one-count.com",
10131 "FreePass": 1
10132 },
10133 {
10134 "Id": 903,
10135 "Name": "Test API product creation 23",
10136 "Description": "Test API product creation 23",
10137 "Type": "3",
10138 "Value": "onecount.net",
10139 "FreePass": 1
10140 }
10141 ]
10142 }
10143 {{/code}}
10144
10145
10146 (% id="HCOMPONENT:SourceCodes" class="western" %)
10147 === **COMPONENT: Source Codes** ===
10148
10149 *
10150 ** ===
10151
10152 (% class="western" %)
10153 This resource is for manipulating source code for a resource. A source code can be created, updated or searched.
10154
10155 (% class="wrapped" %)
10156 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10157 (((
10158 (% class="western" %)
10159 **Method**
10160 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10161 (((
10162 (% class="western" %)
10163 **Url**
10164 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10165 (((
10166 (% class="western" %)
10167 **Action**
10168 )))
10169 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10170 (((
10171 (% class="western" %)
10172 GET
10173 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10174 (((
10175 (% class="western" %)
10176 /sources/1
10177 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10178 (((
10179 (% class="western" %)
10180 Get source id 1.
10181 )))
10182 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10183 (((
10184 (% class="western" %)
10185 GET
10186 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10187 (((
10188 (% class="western" %)
10189 /sources/lookup?Source=sourcename
10190 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10191 (((
10192 (% class="western" %)
10193 Lookup sources by source.
10194 )))
10195 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10196 (((
10197 (% class="western" %)
10198 POST
10199 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10200 (((
10201 (% class="western" %)
10202 /sources
10203 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10204 (((
10205 (% class="western" %)
10206 JSON of the Sources type object needs to be sent as post data. Id field should not be sent.
10207 )))
10208 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10209 (((
10210 (% class="western" %)
10211 PUT
10212 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10213 (((
10214 (% class="western" %)
10215 /sources
10216 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10217 (((
10218 (% class="western" %)
10219 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update.
10220 )))
10221
10222 (% id="HGETAllSourcecodes" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10223 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Source codes(%%) ==
10224
10225 ----
10226
10227 ----
10228
10229 {{panel bgColor="#D3D3D3" width="100%"}}
10230 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources
10231 {{/panel}}
10232
10233 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10234
10235 ----
10236
10237 (% 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}}
10238
10239 ==== Example ====
10240
10241 ----
10242
10243 (% style="color:#6b6b6b" %)Request
10244
10245 {{code language="php" theme="RDark" title="Get All Source code Request"}}
10246 <?php
10247
10248 $curl = curl_init();
10249
10250 curl_setopt_array($curl, array(
10251 CURLOPT_URL => 'https://api.onecount.net/v2/sources',
10252 CURLOPT_RETURNTRANSFER => true,
10253 CURLOPT_ENCODING => '',
10254 CURLOPT_MAXREDIRS => 10,
10255 CURLOPT_TIMEOUT => 0,
10256 CURLOPT_FOLLOWLOCATION => true,
10257 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10258 CURLOPT_CUSTOMREQUEST => 'GET',
10259 CURLOPT_HTTPHEADER => array(
10260 'Appkey: {{ONECOUNT API KEY}}'
10261 ),
10262 ));
10263
10264 $response = curl_exec($curl);
10265
10266 curl_close($curl);
10267 echo $response;
10268 {{/code}}
10269
10270
10271 (% style="color:#6b6b6b" %)Response  200 OK
10272
10273 {{code language="yml" theme="RDark" collapse="true" title="Get All Source code Response"}}
10274 {
10275 "result": {
10276 "success": "1",
10277 "error": {
10278 "code": "",
10279 "message": ""
10280 }
10281 },
10282 "Sources": [
10283 {
10284 "Id": 26,
10285 "Source": "GCN-Member",
10286 "Description": "Uploaded from Reston VA",
10287 "Parent": 0
10288 },
10289 {
10290 "Id": 34,
10291 "Source": "SugarID",
10292 "Description": "Sugar IDs cleaned contacts list and cleaned leads list sent by Sean Fulton for upload.",
10293 "Parent": 0
10294 },
10295 {
10296 "Id": 42,
10297 "Source": "DEMOFORM",
10298 "Description": "\"Request a Demo\" form from one-count.com",
10299 "Parent": 0
10300 },
10301 {
10302 "Id": 50,
10303 "Source": "ABM ANNUAL 2014",
10304 "Description": "ABM Annual 2014 - Registration List for Sponsors",
10305 "Parent": 0
10306 },
10307 {
10308 "Id": 58,
10309 "Source": "BIMS REG LIST",
10310 "Description": "BIMS Registration List for Sponsors (2013/2014)",
10311 "Parent": 0
10312 },
10313 {
10314 "Id": 66,
10315 "Source": "SIPA 13",
10316 "Description": "SIPA 2013 - sponsor - attendees",
10317 "Parent": 0
10318 },
10319 {
10320 "Id": 74,
10321 "Source": "Google Ads",
10322 "Description": "From Google Banner Ads",
10323 "Parent": 0
10324 },
10325 {
10326 "Id": 82,
10327 "Source": "EDIT PROFILE",
10328 "Description": "FOR EDIT PROFILE FORM",
10329 "Parent": 0
10330 },
10331 {
10332 "Id": 83,
10333 "Source": "Test Source Code",
10334 "Description": "",
10335 "Parent": 0
10336 },
10337 {
10338 "Id": 91,
10339 "Source": "NEWSLETTER",
10340 "Description": "Newsletter",
10341 "Parent": 0
10342 },
10343 {
10344 "Id": 99,
10345 "Source": "INFOTANKS-comps-only_12032019",
10346 "Description": "",
10347 "Parent": 0
10348 },
10349 {
10350 "Id": 107,
10351 "Source": "INFOTANKS-DMP-only_12102019",
10352 "Description": "",
10353 "Parent": 0
10354 },
10355 {
10356 "Id": 109,
10357 "Source": "BMVM",
10358 "Description": "Active Attendees",
10359 "Parent": 0
10360 },
10361 {
10362 "Id": 115,
10363 "Source": "USECASES",
10364 "Description": "Use Case PDF",
10365 "Parent": 0
10366 },
10367 {
10368 "Id": 123,
10369 "Source": "Borrell Miami 2022",
10370 "Description": "",
10371 "Parent": 0
10372 },
10373 {
10374 "Id": 131,
10375 "Source": "05092022-telemarketing",
10376 "Description": "",
10377 "Parent": 0
10378 },
10379 {
10380 "Id": 139,
10381 "Source": "WEBINAR6.15.22",
10382 "Description": "Live Webinar Series June 15, 2022",
10383 "Parent": 0
10384 },
10385 {
10386 "Id": 147,
10387 "Source": "LMA Show List",
10388 "Description": "",
10389 "Parent": 0
10390 },
10391 {
10392 "Id": 155,
10393 "Source": "AAA",
10394 "Description": "",
10395 "Parent": 0
10396 },
10397 {
10398 "Id": 163,
10399 "Source": "MGS2022",
10400 "Description": "",
10401 "Parent": 0
10402 },
10403 {
10404 "Id": 171,
10405 "Source": "MGS2023",
10406 "Description": "",
10407 "Parent": 0
10408 },
10409 {
10410 "Id": 179,
10411 "Source": "Sugar Leads",
10412 "Description": "",
10413 "Parent": 0
10414 },
10415 {
10416 "Id": 187,
10417 "Source": "seansbox",
10418 "Description": "",
10419 "Parent": 0
10420 },
10421 {
10422 "Id": 191,
10423 "Source": "SEEITLIVE",
10424 "Description": "Lunch & Learn Webinar Series with Special Partner Guests",
10425 "Parent": 0
10426 },
10427 {
10428 "Id": 199,
10429 "Source": "80-percent-conversion-rates",
10430 "Description": "",
10431 "Parent": 0
10432 }
10433 ]
10434 }
10435 {{/code}}
10436
10437
10438 (% id="HGETspecificSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10439 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Source code(%%) ==
10440
10441 ----
10442
10443 {{panel bgColor="#D3D3D3" width="100%"}}
10444 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}}
10445 {{/panel}}
10446
10447 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10448
10449 ----
10450
10451 (% 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}}
10452
10453 ==== Example ====
10454
10455 ----
10456
10457 (% style="color:#6b6b6b" %)Request
10458
10459 {{code language="php" theme="RDark" title="Get specific Source Request"}}
10460 <?php
10461
10462 $curl = curl_init();
10463
10464 curl_setopt_array($curl, array(
10465 CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}',
10466 CURLOPT_RETURNTRANSFER => true,
10467 CURLOPT_ENCODING => '',
10468 CURLOPT_MAXREDIRS => 10,
10469 CURLOPT_TIMEOUT => 0,
10470 CURLOPT_FOLLOWLOCATION => true,
10471 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10472 CURLOPT_CUSTOMREQUEST => 'GET',
10473 CURLOPT_HTTPHEADER => array(
10474 'Appkey: {{ONECOUNT API KEY}}'
10475 ),
10476 ));
10477
10478 $response = curl_exec($curl);
10479
10480 curl_close($curl);
10481 echo $response;
10482 {{/code}}
10483
10484
10485 (% style="color:#6b6b6b" %)Response  200 OK
10486
10487 {{code language="yml" theme="RDark" collapse="true" title="Get specific Source Response"}}
10488 {
10489 "result": {
10490 "success": "1",
10491 "error": {
10492 "code": "",
10493 "message": ""
10494 }
10495 },
10496 "Sources": [
10497 {
10498 "Id": 26,
10499 "Source": "GCN-Member",
10500 "Description": "Uploaded from Reston VA",
10501 "Parent": 0
10502 }
10503 ]
10504 }
10505 {{/code}}
10506
10507
10508 (% id="HGETlookupSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10509 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Source code(%%) ==
10510
10511 ----
10512
10513 {{panel bgColor="#D3D3D3" width="100%"}}
10514 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/lookup?Source={(%%){Source code Name}}
10515 {{/panel}}
10516
10517 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10518
10519 ----
10520
10521 (% 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}}
10522
10523 === (% style="color:#212121" %)Query Params(%%) ===
10524
10525 ----
10526
10527 (% 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}}
10528
10529 ==== Example ====
10530
10531 ----
10532
10533 (% style="color:#6b6b6b" %)Request
10534
10535 {{code language="php" theme="RDark" title="Lookup Source code Request"}}
10536 <?php
10537
10538 $curl = curl_init();
10539
10540 curl_setopt_array($curl, array(
10541 CURLOPT_URL => 'https://api.onecount.net/v2/sources/lookup?Source={{Source code Name}}',
10542 CURLOPT_RETURNTRANSFER => true,
10543 CURLOPT_ENCODING => '',
10544 CURLOPT_MAXREDIRS => 10,
10545 CURLOPT_TIMEOUT => 0,
10546 CURLOPT_FOLLOWLOCATION => true,
10547 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10548 CURLOPT_CUSTOMREQUEST => 'GET',
10549 CURLOPT_HTTPHEADER => array(
10550 'Appkey: {{ONECOUNT API KEY}}'
10551 ),
10552 ));
10553
10554 $response = curl_exec($curl);
10555
10556 curl_close($curl);
10557 echo $response;
10558 {{/code}}
10559
10560
10561 (% style="color:#6b6b6b" %)Response  200 OK
10562
10563 {{code language="yml" theme="RDark" collapse="true" title="Lookup Source code Response"}}
10564 {
10565 "result": {
10566 "success": "1",
10567 "error": {
10568 "code": "",
10569 "message": ""
10570 }
10571 },
10572 "Sources": [
10573 {
10574 "Id": 26,
10575 "Source": "GCN-Member",
10576 "Description": "Uploaded from Reston VA",
10577 "Parent": 0
10578 }
10579 ]
10580 }
10581 {{/code}}
10582
10583
10584 (% id="HPOSTCreateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10585 == (% 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(%%) ==
10586
10587 ----
10588
10589 {{panel bgColor="#D3D3D3" width="100%"}}
10590 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources
10591 {{/panel}}
10592
10593 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10594
10595 ----
10596
10597 (% 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}}
10598
10599 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10600
10601 ----
10602
10603 {{code language="yml" theme="RDark" title="Body"}}
10604 {"Source":"Test source code from API"}
10605 {{/code}}
10606
10607 ==== Example ====
10608
10609 ----
10610
10611 (% style="color:#6b6b6b" %)Request
10612
10613 {{code language="php" theme="RDark" title="Create Source code Request"}}
10614 <?php
10615
10616 $curl = curl_init();
10617
10618 curl_setopt_array($curl, array(
10619 CURLOPT_URL => 'https://api.onecount.net/v2/sources',
10620 CURLOPT_RETURNTRANSFER => true,
10621 CURLOPT_ENCODING => '',
10622 CURLOPT_MAXREDIRS => 10,
10623 CURLOPT_TIMEOUT => 0,
10624 CURLOPT_FOLLOWLOCATION => true,
10625 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10626 CURLOPT_CUSTOMREQUEST => 'POST',
10627 CURLOPT_POSTFIELDS =>'{"Source":"Test source code from API"}',
10628 CURLOPT_HTTPHEADER => array(
10629 'Appkey: {{ONECOUNT API KEY}}'
10630 ),
10631 ));
10632
10633 $response = curl_exec($curl);
10634
10635 curl_close($curl);
10636 echo $response;
10637 {{/code}}
10638
10639
10640 (% style="color:#6b6b6b" %)Response  200 OK
10641
10642 {{code language="yml" theme="RDark" collapse="true" title="Create Source code Response"}}
10643 {
10644 "result": {
10645 "success": "1",
10646 "error": {
10647 "code": "",
10648 "message": ""
10649 }
10650 },
10651 "Sources": [
10652 {
10653 "Id": 223,
10654 "Source": "Test source code from API",
10655 "Description": "",
10656 "Parent": 0
10657 }
10658 ]
10659 }
10660 {{/code}}
10661
10662
10663 (% id="HPUTUpdateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10664 == (% 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(%%) ==
10665
10666 ----
10667
10668 {{panel bgColor="#D3D3D3" width="100%"}}
10669 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}}
10670 {{/panel}}
10671
10672 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10673
10674 ----
10675
10676 (% 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}}
10677
10678 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10679
10680 ----
10681
10682 {{code language="yml" theme="RDark" title="Body"}}
10683 {"Source":"Test API","Parent":215}
10684 {{/code}}
10685
10686 ==== Example ====
10687
10688 ----
10689
10690 (% style="color:#6b6b6b" %)Request
10691
10692 {{code language="php" theme="RDark" title="Update Source code Request"}}
10693 <?php
10694
10695 $curl = curl_init();
10696
10697 curl_setopt_array($curl, array(
10698 CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}',
10699 CURLOPT_RETURNTRANSFER => true,
10700 CURLOPT_ENCODING => '',
10701 CURLOPT_MAXREDIRS => 10,
10702 CURLOPT_TIMEOUT => 0,
10703 CURLOPT_FOLLOWLOCATION => true,
10704 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10705 CURLOPT_CUSTOMREQUEST => 'PUT',
10706 CURLOPT_POSTFIELDS =>'{"Source":"Test API","Parent":215}',
10707 CURLOPT_HTTPHEADER => array(
10708 'Appkey: {{ONECOUNT API KEY}}'
10709 ),
10710 ));
10711
10712 $response = curl_exec($curl);
10713
10714 curl_close($curl);
10715 echo $response;
10716 {{/code}}
10717
10718
10719 (% style="color:#6b6b6b" %)Response  200 OK
10720
10721 {{code language="yml" theme="RDark" collapse="true" title="Update Source code Response"}}
10722 {
10723 "result": {
10724 "success": "1",
10725 "error": {
10726 "code": "",
10727 "message": ""
10728 }
10729 },
10730 "Sources": [
10731 {
10732 "Id": 223,
10733 "Source": "Test API",
10734 "Description": "",
10735 "Parent": 215
10736 }
10737 ]
10738 }
10739 {{/code}}
10740
10741
10742 (% id="HCOMPONENT:Transactions" class="western" %)
10743 === **COMPONENT: Transactions** ===
10744
10745 (% class="western" %)
10746 This resource is for manipulating transactions resource. A transaction can be created or searched.
10747
10748 (% class="wrapped" %)
10749 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10750 (((
10751 (% class="western" %)
10752 **Method**
10753 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10754 (((
10755 (% class="western" %)
10756 **Url**
10757 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10758 (((
10759 (% class="western" %)
10760 **Action**
10761 )))
10762 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10763 (((
10764 (% class="western" %)
10765 GET
10766 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10767 (((
10768 (% class="western" %)
10769 /transactions
10770 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10771 (((
10772 (% class="western" %)
10773 List all transactions
10774 )))
10775 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10776 (((
10777 (% class="western" %)
10778 GET
10779 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10780 (((
10781 (% class="western" %)
10782 /transactions/lookup?UserId=1
10783 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10784 (((
10785 (% class="western" %)
10786 Lookup all transaction of UserId = 1
10787 )))
10788 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10789 (((
10790 (% class="western" %)
10791 POST
10792 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10793 (((
10794 (% class="western" %)
10795 /transactions
10796 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10797 (((
10798 (% class="western" %)
10799 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent.
10800 )))
10801
10802 (% id="HGETAllTransactions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10803 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Transactions(%%) ==
10804
10805 ----
10806
10807 ----
10808
10809 {{panel bgColor="#D3D3D3" width="100%"}}
10810 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions
10811 {{/panel}}
10812
10813 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10814
10815 ----
10816
10817 (% 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}}
10818
10819 ==== Example ====
10820
10821 ----
10822
10823 (% style="color:#6b6b6b" %)Request
10824
10825 {{code language="php" theme="RDark" title="Get All Transaction Request"}}
10826 <?php
10827
10828 $curl = curl_init();
10829
10830 curl_setopt_array($curl, array(
10831 CURLOPT_URL => 'https://api.onecount.net/v2/transactions',
10832 CURLOPT_RETURNTRANSFER => true,
10833 CURLOPT_ENCODING => '',
10834 CURLOPT_MAXREDIRS => 10,
10835 CURLOPT_TIMEOUT => 0,
10836 CURLOPT_FOLLOWLOCATION => true,
10837 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10838 CURLOPT_CUSTOMREQUEST => 'GET',
10839 CURLOPT_HTTPHEADER => array(
10840 'Appkey: {{ONECOUNT API KEY}}'
10841 ),
10842 ));
10843
10844 $response = curl_exec($curl);
10845
10846 curl_close($curl);
10847 echo $response;
10848 {{/code}}
10849
10850
10851 (% style="color:#6b6b6b" %)Response  200 OK
10852
10853 {{code language="yml" theme="RDark" collapse="true" title="Get All Transaction Response"}}
10854 {
10855 "result": {
10856 "success": "1",
10857 "error": {
10858 "code": "",
10859 "message": ""
10860 }
10861 },
10862 "Transactions": [
10863 {
10864 "Id": 10,
10865 "UserId": 10,
10866 "TermId": 2,
10867 "TransactionDate": "2014-07-17",
10868 "TransactionTime": "10:02:13",
10869 "RequestDate": "2014-07-17",
10870 "UserIP": "74.201.38.1",
10871 "SubscriptionType": "n",
10872 "ProductId": 2,
10873 "Source": 10,
10874 "ProductStatus": 2,
10875 "MediaFilePath": "",
10876 "Amount": ""
10877 },
10878 {
10879 "Id": 26,
10880 "UserId": 10,
10881 "TermId": 2,
10882 "TransactionDate": "2014-07-17",
10883 "TransactionTime": "10:41:59",
10884 "RequestDate": "2014-07-17",
10885 "UserIP": "74.201.38.1",
10886 "SubscriptionType": "r",
10887 "ProductId": 2,
10888 "Source": 10,
10889 "ProductStatus": 2,
10890 "MediaFilePath": "",
10891 "Amount": ""
10892 },
10893 {
10894 "Id": 50,
10895 "UserId": 26,
10896 "TermId": 2,
10897 "TransactionDate": "2014-07-17",
10898 "TransactionTime": "12:25:38",
10899 "RequestDate": "2014-07-17",
10900 "UserIP": "74.201.38.1",
10901 "SubscriptionType": "n",
10902 "ProductId": 2,
10903 "Source": 10,
10904 "ProductStatus": 2,
10905 "MediaFilePath": "",
10906 "Amount": ""
10907 },
10908 {
10909 "Id": 58,
10910 "UserId": 10,
10911 "TermId": 2,
10912 "TransactionDate": "2014-07-17",
10913 "TransactionTime": "12:25:43",
10914 "RequestDate": "2014-07-17",
10915 "UserIP": "74.201.38.1",
10916 "SubscriptionType": "r",
10917 "ProductId": 2,
10918 "Source": 10,
10919 "ProductStatus": 2,
10920 "MediaFilePath": "",
10921 "Amount": ""
10922 },
10923 {
10924 "Id": 66,
10925 "UserId": 42,
10926 "TermId": 2,
10927 "TransactionDate": "2014-07-17",
10928 "TransactionTime": "12:57:11",
10929 "RequestDate": "2014-07-17",
10930 "UserIP": "74.201.38.1",
10931 "SubscriptionType": "n",
10932 "ProductId": 2,
10933 "Source": 26,
10934 "ProductStatus": 2,
10935 "MediaFilePath": "",
10936 "Amount": ""
10937 },
10938 {
10939 "Id": 74,
10940 "UserId": 50,
10941 "TermId": 2,
10942 "TransactionDate": "2014-07-17",
10943 "TransactionTime": "12:57:11",
10944 "RequestDate": "2014-07-17",
10945 "UserIP": "74.201.38.1",
10946 "SubscriptionType": "n",
10947 "ProductId": 2,
10948 "Source": 26,
10949 "ProductStatus": 2,
10950 "MediaFilePath": "",
10951 "Amount": ""
10952 },
10953 {
10954 "Id": 82,
10955 "UserId": 58,
10956 "TermId": 2,
10957 "TransactionDate": "2014-07-17",
10958 "TransactionTime": "12:57:11",
10959 "RequestDate": "2014-07-17",
10960 "UserIP": "74.201.38.1",
10961 "SubscriptionType": "n",
10962 "ProductId": 2,
10963 "Source": 26,
10964 "ProductStatus": 2,
10965 "MediaFilePath": "",
10966 "Amount": ""
10967 },
10968 {
10969 "Id": 90,
10970 "UserId": 66,
10971 "TermId": 2,
10972 "TransactionDate": "2014-07-17",
10973 "TransactionTime": "12:57:11",
10974 "RequestDate": "2014-07-17",
10975 "UserIP": "74.201.38.1",
10976 "SubscriptionType": "n",
10977 "ProductId": 2,
10978 "Source": 26,
10979 "ProductStatus": 2,
10980 "MediaFilePath": "",
10981 "Amount": ""
10982 },
10983 {
10984 "Id": 98,
10985 "UserId": 74,
10986 "TermId": 2,
10987 "TransactionDate": "2014-07-17",
10988 "TransactionTime": "12:57:11",
10989 "RequestDate": "2014-07-17",
10990 "UserIP": "74.201.38.1",
10991 "SubscriptionType": "n",
10992 "ProductId": 2,
10993 "Source": 26,
10994 "ProductStatus": 2,
10995 "MediaFilePath": "",
10996 "Amount": ""
10997 },
10998 {
10999 "Id": 106,
11000 "UserId": 82,
11001 "TermId": 2,
11002 "TransactionDate": "2014-07-17",
11003 "TransactionTime": "12:57:11",
11004 "RequestDate": "2014-07-17",
11005 "UserIP": "74.201.38.1",
11006 "SubscriptionType": "n",
11007 "ProductId": 2,
11008 "Source": 26,
11009 "ProductStatus": 2,
11010 "MediaFilePath": "",
11011 "Amount": ""
11012 },
11013 {
11014 "Id": 114,
11015 "UserId": 90,
11016 "TermId": 2,
11017 "TransactionDate": "2014-07-17",
11018 "TransactionTime": "12:57:11",
11019 "RequestDate": "2014-07-17",
11020 "UserIP": "74.201.38.1",
11021 "SubscriptionType": "n",
11022 "ProductId": 2,
11023 "Source": 26,
11024 "ProductStatus": 2,
11025 "MediaFilePath": "",
11026 "Amount": ""
11027 },
11028 {
11029 "Id": 122,
11030 "UserId": 98,
11031 "TermId": 2,
11032 "TransactionDate": "2014-07-17",
11033 "TransactionTime": "12:57:11",
11034 "RequestDate": "2014-07-17",
11035 "UserIP": "74.201.38.1",
11036 "SubscriptionType": "n",
11037 "ProductId": 2,
11038 "Source": 26,
11039 "ProductStatus": 2,
11040 "MediaFilePath": "",
11041 "Amount": ""
11042 },
11043 {
11044 "Id": 130,
11045 "UserId": 42,
11046 "TermId": 2,
11047 "TransactionDate": "2014-07-17",
11048 "TransactionTime": "12:59:10",
11049 "RequestDate": "2014-07-17",
11050 "UserIP": "74.201.38.1",
11051 "SubscriptionType": "r",
11052 "ProductId": 2,
11053 "Source": 10,
11054 "ProductStatus": 2,
11055 "MediaFilePath": "",
11056 "Amount": ""
11057 },
11058 {
11059 "Id": 138,
11060 "UserId": 50,
11061 "TermId": 2,
11062 "TransactionDate": "2014-07-17",
11063 "TransactionTime": "12:59:10",
11064 "RequestDate": "2014-07-17",
11065 "UserIP": "74.201.38.1",
11066 "SubscriptionType": "r",
11067 "ProductId": 2,
11068 "Source": 10,
11069 "ProductStatus": 2,
11070 "MediaFilePath": "",
11071 "Amount": ""
11072 },
11073 {
11074 "Id": 146,
11075 "UserId": 58,
11076 "TermId": 2,
11077 "TransactionDate": "2014-07-17",
11078 "TransactionTime": "12:59:10",
11079 "RequestDate": "2014-07-17",
11080 "UserIP": "74.201.38.1",
11081 "SubscriptionType": "r",
11082 "ProductId": 2,
11083 "Source": 10,
11084 "ProductStatus": 2,
11085 "MediaFilePath": "",
11086 "Amount": ""
11087 },
11088 {
11089 "Id": 154,
11090 "UserId": 66,
11091 "TermId": 2,
11092 "TransactionDate": "2014-07-17",
11093 "TransactionTime": "12:59:10",
11094 "RequestDate": "2014-07-17",
11095 "UserIP": "74.201.38.1",
11096 "SubscriptionType": "r",
11097 "ProductId": 2,
11098 "Source": 10,
11099 "ProductStatus": 2,
11100 "MediaFilePath": "",
11101 "Amount": ""
11102 },
11103 {
11104 "Id": 162,
11105 "UserId": 74,
11106 "TermId": 2,
11107 "TransactionDate": "2014-07-17",
11108 "TransactionTime": "12:59:10",
11109 "RequestDate": "2014-07-17",
11110 "UserIP": "74.201.38.1",
11111 "SubscriptionType": "r",
11112 "ProductId": 2,
11113 "Source": 10,
11114 "ProductStatus": 2,
11115 "MediaFilePath": "",
11116 "Amount": ""
11117 },
11118 {
11119 "Id": 170,
11120 "UserId": 82,
11121 "TermId": 2,
11122 "TransactionDate": "2014-07-17",
11123 "TransactionTime": "12:59:10",
11124 "RequestDate": "2014-07-17",
11125 "UserIP": "74.201.38.1",
11126 "SubscriptionType": "r",
11127 "ProductId": 2,
11128 "Source": 10,
11129 "ProductStatus": 2,
11130 "MediaFilePath": "",
11131 "Amount": ""
11132 },
11133 {
11134 "Id": 178,
11135 "UserId": 90,
11136 "TermId": 2,
11137 "TransactionDate": "2014-07-17",
11138 "TransactionTime": "12:59:10",
11139 "RequestDate": "2014-07-17",
11140 "UserIP": "74.201.38.1",
11141 "SubscriptionType": "r",
11142 "ProductId": 2,
11143 "Source": 10,
11144 "ProductStatus": 2,
11145 "MediaFilePath": "",
11146 "Amount": ""
11147 },
11148 {
11149 "Id": 186,
11150 "UserId": 98,
11151 "TermId": 2,
11152 "TransactionDate": "2014-07-17",
11153 "TransactionTime": "12:59:10",
11154 "RequestDate": "2014-07-17",
11155 "UserIP": "74.201.38.1",
11156 "SubscriptionType": "r",
11157 "ProductId": 2,
11158 "Source": 10,
11159 "ProductStatus": 2,
11160 "MediaFilePath": "",
11161 "Amount": ""
11162 },
11163 {
11164 "Id": 194,
11165 "UserId": 162,
11166 "TermId": 2,
11167 "TransactionDate": "2014-07-17",
11168 "TransactionTime": "13:00:42",
11169 "RequestDate": "2014-07-17",
11170 "UserIP": "74.201.38.1",
11171 "SubscriptionType": "n",
11172 "ProductId": 2,
11173 "Source": 10,
11174 "ProductStatus": 2,
11175 "MediaFilePath": "",
11176 "Amount": ""
11177 },
11178 {
11179 "Id": 202,
11180 "UserId": 170,
11181 "TermId": 2,
11182 "TransactionDate": "2014-07-17",
11183 "TransactionTime": "13:00:42",
11184 "RequestDate": "2014-07-17",
11185 "UserIP": "74.201.38.1",
11186 "SubscriptionType": "n",
11187 "ProductId": 2,
11188 "Source": 10,
11189 "ProductStatus": 2,
11190 "MediaFilePath": "",
11191 "Amount": ""
11192 },
11193 {
11194 "Id": 210,
11195 "UserId": 178,
11196 "TermId": 2,
11197 "TransactionDate": "2014-07-17",
11198 "TransactionTime": "13:00:42",
11199 "RequestDate": "2014-07-17",
11200 "UserIP": "74.201.38.1",
11201 "SubscriptionType": "n",
11202 "ProductId": 2,
11203 "Source": 10,
11204 "ProductStatus": 2,
11205 "MediaFilePath": "",
11206 "Amount": ""
11207 },
11208 {
11209 "Id": 218,
11210 "UserId": 186,
11211 "TermId": 2,
11212 "TransactionDate": "2014-07-17",
11213 "TransactionTime": "13:00:42",
11214 "RequestDate": "2014-07-17",
11215 "UserIP": "74.201.38.1",
11216 "SubscriptionType": "n",
11217 "ProductId": 2,
11218 "Source": 10,
11219 "ProductStatus": 2,
11220 "MediaFilePath": "",
11221 "Amount": ""
11222 },
11223 {
11224 "Id": 226,
11225 "UserId": 194,
11226 "TermId": 2,
11227 "TransactionDate": "2014-07-17",
11228 "TransactionTime": "13:00:42",
11229 "RequestDate": "2014-07-17",
11230 "UserIP": "74.201.38.1",
11231 "SubscriptionType": "n",
11232 "ProductId": 2,
11233 "Source": 10,
11234 "ProductStatus": 2,
11235 "MediaFilePath": "",
11236 "Amount": ""
11237 },
11238 {
11239 "Id": 234,
11240 "UserId": 202,
11241 "TermId": 2,
11242 "TransactionDate": "2014-07-17",
11243 "TransactionTime": "13:00:42",
11244 "RequestDate": "2014-07-17",
11245 "UserIP": "74.201.38.1",
11246 "SubscriptionType": "n",
11247 "ProductId": 2,
11248 "Source": 10,
11249 "ProductStatus": 2,
11250 "MediaFilePath": "",
11251 "Amount": ""
11252 },
11253 {
11254 "Id": 242,
11255 "UserId": 210,
11256 "TermId": 2,
11257 "TransactionDate": "2014-07-17",
11258 "TransactionTime": "13:00:42",
11259 "RequestDate": "2014-07-17",
11260 "UserIP": "74.201.38.1",
11261 "SubscriptionType": "n",
11262 "ProductId": 2,
11263 "Source": 10,
11264 "ProductStatus": 2,
11265 "MediaFilePath": "",
11266 "Amount": ""
11267 },
11268 {
11269 "Id": 250,
11270 "UserId": 218,
11271 "TermId": 2,
11272 "TransactionDate": "2014-07-17",
11273 "TransactionTime": "13:00:42",
11274 "RequestDate": "2014-07-17",
11275 "UserIP": "74.201.38.1",
11276 "SubscriptionType": "n",
11277 "ProductId": 2,
11278 "Source": 10,
11279 "ProductStatus": 2,
11280 "MediaFilePath": "",
11281 "Amount": ""
11282 },
11283 {
11284 "Id": 258,
11285 "UserId": 282,
11286 "TermId": 2,
11287 "TransactionDate": "2014-07-17",
11288 "TransactionTime": "13:02:19",
11289 "RequestDate": "2014-07-17",
11290 "UserIP": "74.201.38.1",
11291 "SubscriptionType": "n",
11292 "ProductId": 2,
11293 "Source": 10,
11294 "ProductStatus": 2,
11295 "MediaFilePath": "",
11296 "Amount": ""
11297 },
11298 {
11299 "Id": 266,
11300 "UserId": 290,
11301 "TermId": 2,
11302 "TransactionDate": "2014-07-17",
11303 "TransactionTime": "13:02:19",
11304 "RequestDate": "2014-07-17",
11305 "UserIP": "74.201.38.1",
11306 "SubscriptionType": "n",
11307 "ProductId": 2,
11308 "Source": 10,
11309 "ProductStatus": 2,
11310 "MediaFilePath": "",
11311 "Amount": ""
11312 },
11313 {
11314 "Id": 274,
11315 "UserId": 298,
11316 "TermId": 2,
11317 "TransactionDate": "2014-07-17",
11318 "TransactionTime": "13:02:19",
11319 "RequestDate": "2014-07-17",
11320 "UserIP": "74.201.38.1",
11321 "SubscriptionType": "n",
11322 "ProductId": 2,
11323 "Source": 10,
11324 "ProductStatus": 2,
11325 "MediaFilePath": "",
11326 "Amount": ""
11327 },
11328 {
11329 "Id": 282,
11330 "UserId": 306,
11331 "TermId": 2,
11332 "TransactionDate": "2014-07-17",
11333 "TransactionTime": "13:02:19",
11334 "RequestDate": "2014-07-17",
11335 "UserIP": "74.201.38.1",
11336 "SubscriptionType": "n",
11337 "ProductId": 2,
11338 "Source": 10,
11339 "ProductStatus": 2,
11340 "MediaFilePath": "",
11341 "Amount": ""
11342 },
11343 {
11344 "Id": 290,
11345 "UserId": 314,
11346 "TermId": 2,
11347 "TransactionDate": "2014-07-17",
11348 "TransactionTime": "13:02:19",
11349 "RequestDate": "2014-07-17",
11350 "UserIP": "74.201.38.1",
11351 "SubscriptionType": "n",
11352 "ProductId": 2,
11353 "Source": 10,
11354 "ProductStatus": 2,
11355 "MediaFilePath": "",
11356 "Amount": ""
11357 },
11358 {
11359 "Id": 298,
11360 "UserId": 322,
11361 "TermId": 2,
11362 "TransactionDate": "2014-07-17",
11363 "TransactionTime": "13:02:19",
11364 "RequestDate": "2014-07-17",
11365 "UserIP": "74.201.38.1",
11366 "SubscriptionType": "n",
11367 "ProductId": 2,
11368 "Source": 10,
11369 "ProductStatus": 2,
11370 "MediaFilePath": "",
11371 "Amount": ""
11372 },
11373 {
11374 "Id": 306,
11375 "UserId": 330,
11376 "TermId": 2,
11377 "TransactionDate": "2014-07-17",
11378 "TransactionTime": "13:02:19",
11379 "RequestDate": "2014-07-17",
11380 "UserIP": "74.201.38.1",
11381 "SubscriptionType": "n",
11382 "ProductId": 2,
11383 "Source": 10,
11384 "ProductStatus": 2,
11385 "MediaFilePath": "",
11386 "Amount": ""
11387 },
11388 {
11389 "Id": 466,
11390 "UserId": 698,
11391 "TermId": 2,
11392 "TransactionDate": "2014-07-17",
11393 "TransactionTime": "13:13:06",
11394 "RequestDate": "2014-07-17",
11395 "UserIP": "74.201.38.1",
11396 "SubscriptionType": "n",
11397 "ProductId": 2,
11398 "Source": 26,
11399 "ProductStatus": 2,
11400 "MediaFilePath": "",
11401 "Amount": ""
11402 },
11403 {
11404 "Id": 474,
11405 "UserId": 706,
11406 "TermId": 2,
11407 "TransactionDate": "2014-07-17",
11408 "TransactionTime": "13:13:06",
11409 "RequestDate": "2014-07-17",
11410 "UserIP": "74.201.38.1",
11411 "SubscriptionType": "n",
11412 "ProductId": 2,
11413 "Source": 26,
11414 "ProductStatus": 2,
11415 "MediaFilePath": "",
11416 "Amount": ""
11417 },
11418 {
11419 "Id": 482,
11420 "UserId": 714,
11421 "TermId": 2,
11422 "TransactionDate": "2014-07-17",
11423 "TransactionTime": "13:13:06",
11424 "RequestDate": "2014-07-17",
11425 "UserIP": "74.201.38.1",
11426 "SubscriptionType": "n",
11427 "ProductId": 2,
11428 "Source": 26,
11429 "ProductStatus": 2,
11430 "MediaFilePath": "",
11431 "Amount": ""
11432 },
11433 {
11434 "Id": 490,
11435 "UserId": 722,
11436 "TermId": 2,
11437 "TransactionDate": "2014-07-17",
11438 "TransactionTime": "13:13:06",
11439 "RequestDate": "2014-07-17",
11440 "UserIP": "74.201.38.1",
11441 "SubscriptionType": "n",
11442 "ProductId": 2,
11443 "Source": 26,
11444 "ProductStatus": 2,
11445 "MediaFilePath": "",
11446 "Amount": ""
11447 },
11448 {
11449 "Id": 498,
11450 "UserId": 730,
11451 "TermId": 2,
11452 "TransactionDate": "2014-07-17",
11453 "TransactionTime": "13:13:06",
11454 "RequestDate": "2014-07-17",
11455 "UserIP": "74.201.38.1",
11456 "SubscriptionType": "n",
11457 "ProductId": 2,
11458 "Source": 26,
11459 "ProductStatus": 2,
11460 "MediaFilePath": "",
11461 "Amount": ""
11462 },
11463 {
11464 "Id": 506,
11465 "UserId": 738,
11466 "TermId": 2,
11467 "TransactionDate": "2014-07-17",
11468 "TransactionTime": "13:13:06",
11469 "RequestDate": "2014-07-17",
11470 "UserIP": "74.201.38.1",
11471 "SubscriptionType": "n",
11472 "ProductId": 2,
11473 "Source": 26,
11474 "ProductStatus": 2,
11475 "MediaFilePath": "",
11476 "Amount": ""
11477 },
11478 {
11479 "Id": 522,
11480 "UserId": 754,
11481 "TermId": 18,
11482 "TransactionDate": "2014-08-19",
11483 "TransactionTime": "11:18:55",
11484 "RequestDate": "2014-08-19",
11485 "UserIP": "74.201.38.1",
11486 "SubscriptionType": "n",
11487 "ProductId": 18,
11488 "Source": 34,
11489 "ProductStatus": 2,
11490 "MediaFilePath": "",
11491 "Amount": ""
11492 },
11493 {
11494 "Id": 530,
11495 "UserId": 762,
11496 "TermId": 18,
11497 "TransactionDate": "2014-08-19",
11498 "TransactionTime": "11:18:55",
11499 "RequestDate": "2014-08-19",
11500 "UserIP": "74.201.38.1",
11501 "SubscriptionType": "n",
11502 "ProductId": 18,
11503 "Source": 34,
11504 "ProductStatus": 2,
11505 "MediaFilePath": "",
11506 "Amount": ""
11507 },
11508 {
11509 "Id": 538,
11510 "UserId": 770,
11511 "TermId": 18,
11512 "TransactionDate": "2014-08-19",
11513 "TransactionTime": "11:18:55",
11514 "RequestDate": "2014-08-19",
11515 "UserIP": "74.201.38.1",
11516 "SubscriptionType": "n",
11517 "ProductId": 18,
11518 "Source": 34,
11519 "ProductStatus": 2,
11520 "MediaFilePath": "",
11521 "Amount": ""
11522 },
11523 {
11524 "Id": 546,
11525 "UserId": 778,
11526 "TermId": 18,
11527 "TransactionDate": "2014-08-19",
11528 "TransactionTime": "11:18:55",
11529 "RequestDate": "2014-08-19",
11530 "UserIP": "74.201.38.1",
11531 "SubscriptionType": "n",
11532 "ProductId": 18,
11533 "Source": 34,
11534 "ProductStatus": 2,
11535 "MediaFilePath": "",
11536 "Amount": ""
11537 },
11538 {
11539 "Id": 554,
11540 "UserId": 786,
11541 "TermId": 18,
11542 "TransactionDate": "2014-08-19",
11543 "TransactionTime": "11:18:55",
11544 "RequestDate": "2014-08-19",
11545 "UserIP": "74.201.38.1",
11546 "SubscriptionType": "n",
11547 "ProductId": 18,
11548 "Source": 34,
11549 "ProductStatus": 2,
11550 "MediaFilePath": "",
11551 "Amount": ""
11552 },
11553 {
11554 "Id": 570,
11555 "UserId": 802,
11556 "TermId": 18,
11557 "TransactionDate": "2014-08-19",
11558 "TransactionTime": "11:18:55",
11559 "RequestDate": "2014-08-19",
11560 "UserIP": "74.201.38.1",
11561 "SubscriptionType": "n",
11562 "ProductId": 18,
11563 "Source": 34,
11564 "ProductStatus": 2,
11565 "MediaFilePath": "",
11566 "Amount": ""
11567 },
11568 {
11569 "Id": 578,
11570 "UserId": 810,
11571 "TermId": 18,
11572 "TransactionDate": "2014-08-19",
11573 "TransactionTime": "11:18:55",
11574 "RequestDate": "2014-08-19",
11575 "UserIP": "74.201.38.1",
11576 "SubscriptionType": "n",
11577 "ProductId": 18,
11578 "Source": 34,
11579 "ProductStatus": 2,
11580 "MediaFilePath": "",
11581 "Amount": ""
11582 },
11583 {
11584 "Id": 586,
11585 "UserId": 818,
11586 "TermId": 18,
11587 "TransactionDate": "2014-08-19",
11588 "TransactionTime": "11:18:55",
11589 "RequestDate": "2014-08-19",
11590 "UserIP": "74.201.38.1",
11591 "SubscriptionType": "n",
11592 "ProductId": 18,
11593 "Source": 34,
11594 "ProductStatus": 2,
11595 "MediaFilePath": "",
11596 "Amount": ""
11597 },
11598 {
11599 "Id": 602,
11600 "UserId": 834,
11601 "TermId": 18,
11602 "TransactionDate": "2014-08-19",
11603 "TransactionTime": "11:18:55",
11604 "RequestDate": "2014-08-19",
11605 "UserIP": "74.201.38.1",
11606 "SubscriptionType": "n",
11607 "ProductId": 18,
11608 "Source": 34,
11609 "ProductStatus": 2,
11610 "MediaFilePath": "",
11611 "Amount": ""
11612 },
11613 {
11614 "Id": 610,
11615 "UserId": 842,
11616 "TermId": 18,
11617 "TransactionDate": "2014-08-19",
11618 "TransactionTime": "11:18:55",
11619 "RequestDate": "2014-08-19",
11620 "UserIP": "74.201.38.1",
11621 "SubscriptionType": "n",
11622 "ProductId": 18,
11623 "Source": 34,
11624 "ProductStatus": 2,
11625 "MediaFilePath": "",
11626 "Amount": ""
11627 },
11628 {
11629 "Id": 618,
11630 "UserId": 850,
11631 "TermId": 18,
11632 "TransactionDate": "2014-08-19",
11633 "TransactionTime": "11:18:55",
11634 "RequestDate": "2014-08-19",
11635 "UserIP": "74.201.38.1",
11636 "SubscriptionType": "n",
11637 "ProductId": 18,
11638 "Source": 34,
11639 "ProductStatus": 2,
11640 "MediaFilePath": "",
11641 "Amount": ""
11642 },
11643 {
11644 "Id": 626,
11645 "UserId": 858,
11646 "TermId": 18,
11647 "TransactionDate": "2014-08-19",
11648 "TransactionTime": "11:18:55",
11649 "RequestDate": "2014-08-19",
11650 "UserIP": "74.201.38.1",
11651 "SubscriptionType": "n",
11652 "ProductId": 18,
11653 "Source": 34,
11654 "ProductStatus": 2,
11655 "MediaFilePath": "",
11656 "Amount": ""
11657 },
11658 {
11659 "Id": 634,
11660 "UserId": 866,
11661 "TermId": 18,
11662 "TransactionDate": "2014-08-19",
11663 "TransactionTime": "11:18:55",
11664 "RequestDate": "2014-08-19",
11665 "UserIP": "74.201.38.1",
11666 "SubscriptionType": "n",
11667 "ProductId": 18,
11668 "Source": 34,
11669 "ProductStatus": 2,
11670 "MediaFilePath": "",
11671 "Amount": ""
11672 },
11673 {
11674 "Id": 642,
11675 "UserId": 874,
11676 "TermId": 18,
11677 "TransactionDate": "2014-08-19",
11678 "TransactionTime": "11:18:55",
11679 "RequestDate": "2014-08-19",
11680 "UserIP": "74.201.38.1",
11681 "SubscriptionType": "n",
11682 "ProductId": 18,
11683 "Source": 34,
11684 "ProductStatus": 2,
11685 "MediaFilePath": "",
11686 "Amount": ""
11687 },
11688 {
11689 "Id": 650,
11690 "UserId": 882,
11691 "TermId": 18,
11692 "TransactionDate": "2014-08-19",
11693 "TransactionTime": "11:18:55",
11694 "RequestDate": "2014-08-19",
11695 "UserIP": "74.201.38.1",
11696 "SubscriptionType": "n",
11697 "ProductId": 18,
11698 "Source": 34,
11699 "ProductStatus": 2,
11700 "MediaFilePath": "",
11701 "Amount": ""
11702 },
11703 {
11704 "Id": 658,
11705 "UserId": 890,
11706 "TermId": 18,
11707 "TransactionDate": "2014-08-19",
11708 "TransactionTime": "11:18:55",
11709 "RequestDate": "2014-08-19",
11710 "UserIP": "74.201.38.1",
11711 "SubscriptionType": "n",
11712 "ProductId": 18,
11713 "Source": 34,
11714 "ProductStatus": 2,
11715 "MediaFilePath": "",
11716 "Amount": ""
11717 },
11718 {
11719 "Id": 666,
11720 "UserId": 898,
11721 "TermId": 18,
11722 "TransactionDate": "2014-08-19",
11723 "TransactionTime": "11:18:55",
11724 "RequestDate": "2014-08-19",
11725 "UserIP": "74.201.38.1",
11726 "SubscriptionType": "n",
11727 "ProductId": 18,
11728 "Source": 34,
11729 "ProductStatus": 2,
11730 "MediaFilePath": "",
11731 "Amount": ""
11732 },
11733 {
11734 "Id": 674,
11735 "UserId": 906,
11736 "TermId": 18,
11737 "TransactionDate": "2014-08-19",
11738 "TransactionTime": "11:18:55",
11739 "RequestDate": "2014-08-19",
11740 "UserIP": "74.201.38.1",
11741 "SubscriptionType": "n",
11742 "ProductId": 18,
11743 "Source": 34,
11744 "ProductStatus": 2,
11745 "MediaFilePath": "",
11746 "Amount": ""
11747 },
11748 {
11749 "Id": 682,
11750 "UserId": 914,
11751 "TermId": 18,
11752 "TransactionDate": "2014-08-19",
11753 "TransactionTime": "11:18:55",
11754 "RequestDate": "2014-08-19",
11755 "UserIP": "74.201.38.1",
11756 "SubscriptionType": "n",
11757 "ProductId": 18,
11758 "Source": 34,
11759 "ProductStatus": 2,
11760 "MediaFilePath": "",
11761 "Amount": ""
11762 },
11763 {
11764 "Id": 690,
11765 "UserId": 922,
11766 "TermId": 18,
11767 "TransactionDate": "2014-08-19",
11768 "TransactionTime": "11:18:55",
11769 "RequestDate": "2014-08-19",
11770 "UserIP": "74.201.38.1",
11771 "SubscriptionType": "n",
11772 "ProductId": 18,
11773 "Source": 34,
11774 "ProductStatus": 2,
11775 "MediaFilePath": "",
11776 "Amount": ""
11777 },
11778 {
11779 "Id": 698,
11780 "UserId": 930,
11781 "TermId": 18,
11782 "TransactionDate": "2014-08-19",
11783 "TransactionTime": "11:18:55",
11784 "RequestDate": "2014-08-19",
11785 "UserIP": "74.201.38.1",
11786 "SubscriptionType": "n",
11787 "ProductId": 18,
11788 "Source": 34,
11789 "ProductStatus": 2,
11790 "MediaFilePath": "",
11791 "Amount": ""
11792 },
11793 {
11794 "Id": 706,
11795 "UserId": 938,
11796 "TermId": 18,
11797 "TransactionDate": "2014-08-19",
11798 "TransactionTime": "11:18:55",
11799 "RequestDate": "2014-08-19",
11800 "UserIP": "74.201.38.1",
11801 "SubscriptionType": "n",
11802 "ProductId": 18,
11803 "Source": 34,
11804 "ProductStatus": 2,
11805 "MediaFilePath": "",
11806 "Amount": ""
11807 },
11808 {
11809 "Id": 714,
11810 "UserId": 946,
11811 "TermId": 18,
11812 "TransactionDate": "2014-08-19",
11813 "TransactionTime": "11:18:55",
11814 "RequestDate": "2014-08-19",
11815 "UserIP": "74.201.38.1",
11816 "SubscriptionType": "n",
11817 "ProductId": 18,
11818 "Source": 34,
11819 "ProductStatus": 2,
11820 "MediaFilePath": "",
11821 "Amount": ""
11822 },
11823 {
11824 "Id": 722,
11825 "UserId": 954,
11826 "TermId": 18,
11827 "TransactionDate": "2014-08-19",
11828 "TransactionTime": "11:18:55",
11829 "RequestDate": "2014-08-19",
11830 "UserIP": "74.201.38.1",
11831 "SubscriptionType": "n",
11832 "ProductId": 18,
11833 "Source": 34,
11834 "ProductStatus": 2,
11835 "MediaFilePath": "",
11836 "Amount": ""
11837 },
11838 {
11839 "Id": 730,
11840 "UserId": 962,
11841 "TermId": 18,
11842 "TransactionDate": "2014-08-19",
11843 "TransactionTime": "11:18:55",
11844 "RequestDate": "2014-08-19",
11845 "UserIP": "74.201.38.1",
11846 "SubscriptionType": "n",
11847 "ProductId": 18,
11848 "Source": 34,
11849 "ProductStatus": 2,
11850 "MediaFilePath": "",
11851 "Amount": ""
11852 },
11853 {
11854 "Id": 738,
11855 "UserId": 970,
11856 "TermId": 18,
11857 "TransactionDate": "2014-08-19",
11858 "TransactionTime": "11:18:55",
11859 "RequestDate": "2014-08-19",
11860 "UserIP": "74.201.38.1",
11861 "SubscriptionType": "n",
11862 "ProductId": 18,
11863 "Source": 34,
11864 "ProductStatus": 2,
11865 "MediaFilePath": "",
11866 "Amount": ""
11867 },
11868 {
11869 "Id": 746,
11870 "UserId": 978,
11871 "TermId": 18,
11872 "TransactionDate": "2014-08-19",
11873 "TransactionTime": "11:18:55",
11874 "RequestDate": "2014-08-19",
11875 "UserIP": "74.201.38.1",
11876 "SubscriptionType": "n",
11877 "ProductId": 18,
11878 "Source": 34,
11879 "ProductStatus": 2,
11880 "MediaFilePath": "",
11881 "Amount": ""
11882 },
11883 {
11884 "Id": 754,
11885 "UserId": 986,
11886 "TermId": 18,
11887 "TransactionDate": "2014-08-19",
11888 "TransactionTime": "11:18:55",
11889 "RequestDate": "2014-08-19",
11890 "UserIP": "74.201.38.1",
11891 "SubscriptionType": "n",
11892 "ProductId": 18,
11893 "Source": 34,
11894 "ProductStatus": 2,
11895 "MediaFilePath": "",
11896 "Amount": ""
11897 },
11898 {
11899 "Id": 762,
11900 "UserId": 994,
11901 "TermId": 18,
11902 "TransactionDate": "2014-08-19",
11903 "TransactionTime": "11:18:55",
11904 "RequestDate": "2014-08-19",
11905 "UserIP": "74.201.38.1",
11906 "SubscriptionType": "n",
11907 "ProductId": 18,
11908 "Source": 34,
11909 "ProductStatus": 2,
11910 "MediaFilePath": "",
11911 "Amount": ""
11912 },
11913 {
11914 "Id": 770,
11915 "UserId": 1002,
11916 "TermId": 18,
11917 "TransactionDate": "2014-08-19",
11918 "TransactionTime": "11:18:55",
11919 "RequestDate": "2014-08-19",
11920 "UserIP": "74.201.38.1",
11921 "SubscriptionType": "n",
11922 "ProductId": 18,
11923 "Source": 34,
11924 "ProductStatus": 2,
11925 "MediaFilePath": "",
11926 "Amount": ""
11927 },
11928 {
11929 "Id": 778,
11930 "UserId": 1010,
11931 "TermId": 18,
11932 "TransactionDate": "2014-08-19",
11933 "TransactionTime": "11:18:55",
11934 "RequestDate": "2014-08-19",
11935 "UserIP": "74.201.38.1",
11936 "SubscriptionType": "n",
11937 "ProductId": 18,
11938 "Source": 34,
11939 "ProductStatus": 2,
11940 "MediaFilePath": "",
11941 "Amount": ""
11942 },
11943 {
11944 "Id": 786,
11945 "UserId": 1018,
11946 "TermId": 18,
11947 "TransactionDate": "2014-08-19",
11948 "TransactionTime": "11:18:55",
11949 "RequestDate": "2014-08-19",
11950 "UserIP": "74.201.38.1",
11951 "SubscriptionType": "n",
11952 "ProductId": 18,
11953 "Source": 34,
11954 "ProductStatus": 2,
11955 "MediaFilePath": "",
11956 "Amount": ""
11957 },
11958 {
11959 "Id": 794,
11960 "UserId": 1026,
11961 "TermId": 18,
11962 "TransactionDate": "2014-08-19",
11963 "TransactionTime": "11:18:55",
11964 "RequestDate": "2014-08-19",
11965 "UserIP": "74.201.38.1",
11966 "SubscriptionType": "n",
11967 "ProductId": 18,
11968 "Source": 34,
11969 "ProductStatus": 2,
11970 "MediaFilePath": "",
11971 "Amount": ""
11972 },
11973 {
11974 "Id": 802,
11975 "UserId": 1034,
11976 "TermId": 18,
11977 "TransactionDate": "2014-08-19",
11978 "TransactionTime": "11:18:55",
11979 "RequestDate": "2014-08-19",
11980 "UserIP": "74.201.38.1",
11981 "SubscriptionType": "n",
11982 "ProductId": 18,
11983 "Source": 34,
11984 "ProductStatus": 2,
11985 "MediaFilePath": "",
11986 "Amount": ""
11987 },
11988 {
11989 "Id": 810,
11990 "UserId": 1042,
11991 "TermId": 18,
11992 "TransactionDate": "2014-08-19",
11993 "TransactionTime": "11:18:55",
11994 "RequestDate": "2014-08-19",
11995 "UserIP": "74.201.38.1",
11996 "SubscriptionType": "n",
11997 "ProductId": 18,
11998 "Source": 34,
11999 "ProductStatus": 2,
12000 "MediaFilePath": "",
12001 "Amount": ""
12002 },
12003 {
12004 "Id": 818,
12005 "UserId": 1050,
12006 "TermId": 18,
12007 "TransactionDate": "2014-08-19",
12008 "TransactionTime": "11:18:55",
12009 "RequestDate": "2014-08-19",
12010 "UserIP": "74.201.38.1",
12011 "SubscriptionType": "n",
12012 "ProductId": 18,
12013 "Source": 34,
12014 "ProductStatus": 2,
12015 "MediaFilePath": "",
12016 "Amount": ""
12017 },
12018 {
12019 "Id": 826,
12020 "UserId": 1058,
12021 "TermId": 18,
12022 "TransactionDate": "2014-08-19",
12023 "TransactionTime": "11:18:55",
12024 "RequestDate": "2014-08-19",
12025 "UserIP": "74.201.38.1",
12026 "SubscriptionType": "n",
12027 "ProductId": 18,
12028 "Source": 34,
12029 "ProductStatus": 2,
12030 "MediaFilePath": "",
12031 "Amount": ""
12032 },
12033 {
12034 "Id": 834,
12035 "UserId": 1066,
12036 "TermId": 18,
12037 "TransactionDate": "2014-08-19",
12038 "TransactionTime": "11:18:55",
12039 "RequestDate": "2014-08-19",
12040 "UserIP": "74.201.38.1",
12041 "SubscriptionType": "n",
12042 "ProductId": 18,
12043 "Source": 34,
12044 "ProductStatus": 2,
12045 "MediaFilePath": "",
12046 "Amount": ""
12047 },
12048 {
12049 "Id": 842,
12050 "UserId": 1074,
12051 "TermId": 18,
12052 "TransactionDate": "2014-08-19",
12053 "TransactionTime": "11:18:55",
12054 "RequestDate": "2014-08-19",
12055 "UserIP": "74.201.38.1",
12056 "SubscriptionType": "n",
12057 "ProductId": 18,
12058 "Source": 34,
12059 "ProductStatus": 2,
12060 "MediaFilePath": "",
12061 "Amount": ""
12062 },
12063 {
12064 "Id": 850,
12065 "UserId": 1082,
12066 "TermId": 18,
12067 "TransactionDate": "2014-08-19",
12068 "TransactionTime": "11:18:55",
12069 "RequestDate": "2014-08-19",
12070 "UserIP": "74.201.38.1",
12071 "SubscriptionType": "n",
12072 "ProductId": 18,
12073 "Source": 34,
12074 "ProductStatus": 2,
12075 "MediaFilePath": "",
12076 "Amount": ""
12077 },
12078 {
12079 "Id": 858,
12080 "UserId": 1090,
12081 "TermId": 18,
12082 "TransactionDate": "2014-08-19",
12083 "TransactionTime": "11:18:55",
12084 "RequestDate": "2014-08-19",
12085 "UserIP": "74.201.38.1",
12086 "SubscriptionType": "n",
12087 "ProductId": 18,
12088 "Source": 34,
12089 "ProductStatus": 2,
12090 "MediaFilePath": "",
12091 "Amount": ""
12092 },
12093 {
12094 "Id": 866,
12095 "UserId": 1098,
12096 "TermId": 18,
12097 "TransactionDate": "2014-08-19",
12098 "TransactionTime": "11:18:55",
12099 "RequestDate": "2014-08-19",
12100 "UserIP": "74.201.38.1",
12101 "SubscriptionType": "n",
12102 "ProductId": 18,
12103 "Source": 34,
12104 "ProductStatus": 2,
12105 "MediaFilePath": "",
12106 "Amount": ""
12107 },
12108 {
12109 "Id": 874,
12110 "UserId": 1106,
12111 "TermId": 18,
12112 "TransactionDate": "2014-08-19",
12113 "TransactionTime": "11:18:55",
12114 "RequestDate": "2014-08-19",
12115 "UserIP": "74.201.38.1",
12116 "SubscriptionType": "n",
12117 "ProductId": 18,
12118 "Source": 34,
12119 "ProductStatus": 2,
12120 "MediaFilePath": "",
12121 "Amount": ""
12122 },
12123 {
12124 "Id": 882,
12125 "UserId": 1114,
12126 "TermId": 18,
12127 "TransactionDate": "2014-08-19",
12128 "TransactionTime": "11:18:55",
12129 "RequestDate": "2014-08-19",
12130 "UserIP": "74.201.38.1",
12131 "SubscriptionType": "n",
12132 "ProductId": 18,
12133 "Source": 34,
12134 "ProductStatus": 2,
12135 "MediaFilePath": "",
12136 "Amount": ""
12137 },
12138 {
12139 "Id": 890,
12140 "UserId": 1122,
12141 "TermId": 18,
12142 "TransactionDate": "2014-08-19",
12143 "TransactionTime": "11:18:55",
12144 "RequestDate": "2014-08-19",
12145 "UserIP": "74.201.38.1",
12146 "SubscriptionType": "n",
12147 "ProductId": 18,
12148 "Source": 34,
12149 "ProductStatus": 2,
12150 "MediaFilePath": "",
12151 "Amount": ""
12152 },
12153 {
12154 "Id": 898,
12155 "UserId": 1130,
12156 "TermId": 18,
12157 "TransactionDate": "2014-08-19",
12158 "TransactionTime": "11:18:55",
12159 "RequestDate": "2014-08-19",
12160 "UserIP": "74.201.38.1",
12161 "SubscriptionType": "n",
12162 "ProductId": 18,
12163 "Source": 34,
12164 "ProductStatus": 2,
12165 "MediaFilePath": "",
12166 "Amount": ""
12167 },
12168 {
12169 "Id": 906,
12170 "UserId": 1138,
12171 "TermId": 18,
12172 "TransactionDate": "2014-08-19",
12173 "TransactionTime": "11:18:55",
12174 "RequestDate": "2014-08-19",
12175 "UserIP": "74.201.38.1",
12176 "SubscriptionType": "n",
12177 "ProductId": 18,
12178 "Source": 34,
12179 "ProductStatus": 2,
12180 "MediaFilePath": "",
12181 "Amount": ""
12182 },
12183 {
12184 "Id": 914,
12185 "UserId": 1146,
12186 "TermId": 18,
12187 "TransactionDate": "2014-08-19",
12188 "TransactionTime": "11:18:55",
12189 "RequestDate": "2014-08-19",
12190 "UserIP": "74.201.38.1",
12191 "SubscriptionType": "n",
12192 "ProductId": 18,
12193 "Source": 34,
12194 "ProductStatus": 2,
12195 "MediaFilePath": "",
12196 "Amount": ""
12197 },
12198 {
12199 "Id": 922,
12200 "UserId": 1154,
12201 "TermId": 18,
12202 "TransactionDate": "2014-08-19",
12203 "TransactionTime": "11:18:55",
12204 "RequestDate": "2014-08-19",
12205 "UserIP": "74.201.38.1",
12206 "SubscriptionType": "n",
12207 "ProductId": 18,
12208 "Source": 34,
12209 "ProductStatus": 2,
12210 "MediaFilePath": "",
12211 "Amount": ""
12212 },
12213 {
12214 "Id": 930,
12215 "UserId": 1162,
12216 "TermId": 18,
12217 "TransactionDate": "2014-08-19",
12218 "TransactionTime": "11:18:55",
12219 "RequestDate": "2014-08-19",
12220 "UserIP": "74.201.38.1",
12221 "SubscriptionType": "n",
12222 "ProductId": 18,
12223 "Source": 34,
12224 "ProductStatus": 2,
12225 "MediaFilePath": "",
12226 "Amount": ""
12227 },
12228 {
12229 "Id": 938,
12230 "UserId": 1170,
12231 "TermId": 18,
12232 "TransactionDate": "2014-08-19",
12233 "TransactionTime": "11:18:55",
12234 "RequestDate": "2014-08-19",
12235 "UserIP": "74.201.38.1",
12236 "SubscriptionType": "n",
12237 "ProductId": 18,
12238 "Source": 34,
12239 "ProductStatus": 2,
12240 "MediaFilePath": "",
12241 "Amount": ""
12242 },
12243 {
12244 "Id": 946,
12245 "UserId": 1178,
12246 "TermId": 18,
12247 "TransactionDate": "2014-08-19",
12248 "TransactionTime": "11:18:55",
12249 "RequestDate": "2014-08-19",
12250 "UserIP": "74.201.38.1",
12251 "SubscriptionType": "n",
12252 "ProductId": 18,
12253 "Source": 34,
12254 "ProductStatus": 2,
12255 "MediaFilePath": "",
12256 "Amount": ""
12257 },
12258 {
12259 "Id": 954,
12260 "UserId": 1186,
12261 "TermId": 18,
12262 "TransactionDate": "2014-08-19",
12263 "TransactionTime": "11:18:55",
12264 "RequestDate": "2014-08-19",
12265 "UserIP": "74.201.38.1",
12266 "SubscriptionType": "n",
12267 "ProductId": 18,
12268 "Source": 34,
12269 "ProductStatus": 2,
12270 "MediaFilePath": "",
12271 "Amount": ""
12272 },
12273 {
12274 "Id": 962,
12275 "UserId": 1194,
12276 "TermId": 18,
12277 "TransactionDate": "2014-08-19",
12278 "TransactionTime": "11:18:55",
12279 "RequestDate": "2014-08-19",
12280 "UserIP": "74.201.38.1",
12281 "SubscriptionType": "n",
12282 "ProductId": 18,
12283 "Source": 34,
12284 "ProductStatus": 2,
12285 "MediaFilePath": "",
12286 "Amount": ""
12287 },
12288 {
12289 "Id": 970,
12290 "UserId": 1202,
12291 "TermId": 18,
12292 "TransactionDate": "2014-08-19",
12293 "TransactionTime": "11:18:55",
12294 "RequestDate": "2014-08-19",
12295 "UserIP": "74.201.38.1",
12296 "SubscriptionType": "n",
12297 "ProductId": 18,
12298 "Source": 34,
12299 "ProductStatus": 2,
12300 "MediaFilePath": "",
12301 "Amount": ""
12302 },
12303 {
12304 "Id": 978,
12305 "UserId": 1210,
12306 "TermId": 18,
12307 "TransactionDate": "2014-08-19",
12308 "TransactionTime": "11:18:55",
12309 "RequestDate": "2014-08-19",
12310 "UserIP": "74.201.38.1",
12311 "SubscriptionType": "n",
12312 "ProductId": 18,
12313 "Source": 34,
12314 "ProductStatus": 2,
12315 "MediaFilePath": "",
12316 "Amount": ""
12317 },
12318 {
12319 "Id": 986,
12320 "UserId": 1218,
12321 "TermId": 18,
12322 "TransactionDate": "2014-08-19",
12323 "TransactionTime": "11:18:55",
12324 "RequestDate": "2014-08-19",
12325 "UserIP": "74.201.38.1",
12326 "SubscriptionType": "n",
12327 "ProductId": 18,
12328 "Source": 34,
12329 "ProductStatus": 2,
12330 "MediaFilePath": "",
12331 "Amount": ""
12332 },
12333 {
12334 "Id": 994,
12335 "UserId": 1226,
12336 "TermId": 18,
12337 "TransactionDate": "2014-08-19",
12338 "TransactionTime": "11:18:55",
12339 "RequestDate": "2014-08-19",
12340 "UserIP": "74.201.38.1",
12341 "SubscriptionType": "n",
12342 "ProductId": 18,
12343 "Source": 34,
12344 "ProductStatus": 2,
12345 "MediaFilePath": "",
12346 "Amount": ""
12347 },
12348 {
12349 "Id": 1002,
12350 "UserId": 1234,
12351 "TermId": 18,
12352 "TransactionDate": "2014-08-19",
12353 "TransactionTime": "11:18:55",
12354 "RequestDate": "2014-08-19",
12355 "UserIP": "74.201.38.1",
12356 "SubscriptionType": "n",
12357 "ProductId": 18,
12358 "Source": 34,
12359 "ProductStatus": 2,
12360 "MediaFilePath": "",
12361 "Amount": ""
12362 }
12363 ]
12364 }
12365 {{/code}}
12366
12367
12368 (% id="HGETspecificTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12369 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Transaction(%%) ==
12370
12371 ----
12372
12373 {{panel bgColor="#D3D3D3" width="100%"}}
12374 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/~{~{Transaction id}}
12375 {{/panel}}
12376
12377 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12378
12379 ----
12380
12381 (% 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}}
12382
12383 ==== Example ====
12384
12385 ----
12386
12387 (% style="color:#6b6b6b" %)Request
12388
12389 {{code language="php" theme="RDark" title="Get specific Transaction Request"}}
12390 <?php
12391
12392 $curl = curl_init();
12393
12394 curl_setopt_array($curl, array(
12395 CURLOPT_URL => 'https://api.onecount.net/v2/transactions/{{Transaction id}}',
12396 CURLOPT_RETURNTRANSFER => true,
12397 CURLOPT_ENCODING => '',
12398 CURLOPT_MAXREDIRS => 10,
12399 CURLOPT_TIMEOUT => 0,
12400 CURLOPT_FOLLOWLOCATION => true,
12401 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12402 CURLOPT_CUSTOMREQUEST => 'GET',
12403 CURLOPT_HTTPHEADER => array(
12404 'Appkey: {{ONECOUNT API KEY}}'
12405 ),
12406 ));
12407
12408 $response = curl_exec($curl);
12409
12410 curl_close($curl);
12411 echo $response;
12412 {{/code}}
12413
12414
12415 (% style="color:#6b6b6b" %)Response  200 OK
12416
12417 {{code language="yml" theme="RDark" collapse="true" title="Get specific Transaction Response"}}
12418 {
12419 "result": {
12420 "success": "1",
12421 "error": {
12422 "code": "",
12423 "message": ""
12424 }
12425 },
12426 "Transactions": [
12427 {
12428 "Id": 1002,
12429 "UserId": 1234,
12430 "TermId": 18,
12431 "TransactionDate": "2014-08-19",
12432 "TransactionTime": "11:18:55",
12433 "RequestDate": "2014-08-19",
12434 "UserIP": "74.201.38.1",
12435 "SubscriptionType": "n",
12436 "ProductId": 18,
12437 "Source": 34,
12438 "ProductStatus": 2,
12439 "MediaFilePath": "",
12440 "Amount": ""
12441 }
12442 ]
12443 }
12444 {{/code}}
12445
12446
12447 (% id="HGETlookupTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12448 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Transaction(%%) ==
12449
12450 ----
12451
12452 {{panel bgColor="#D3D3D3" width="100%"}}
12453 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/lookup?UserId=~{~{OCID}}
12454 {{/panel}}
12455
12456 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12457
12458 ----
12459
12460 (% 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}}
12461
12462 === (% style="color:#212121" %)Query Params(%%) ===
12463
12464 ----
12465
12466 (% 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}}
12467
12468 ==== Example ====
12469
12470 ----
12471
12472 (% style="color:#6b6b6b" %)Request
12473
12474 {{code language="php" theme="RDark" title="Lookup Transaction Request"}}
12475 <?php
12476
12477 $curl = curl_init();
12478
12479 curl_setopt_array($curl, array(
12480 CURLOPT_URL => 'https://api.onecount.net/v2/transactions/lookup?UserId={{OCID}}',
12481 CURLOPT_RETURNTRANSFER => true,
12482 CURLOPT_ENCODING => '',
12483 CURLOPT_MAXREDIRS => 10,
12484 CURLOPT_TIMEOUT => 0,
12485 CURLOPT_FOLLOWLOCATION => true,
12486 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12487 CURLOPT_CUSTOMREQUEST => 'GET',
12488 CURLOPT_HTTPHEADER => array(
12489 'Appkey: {{ONECOUNT API KEY}}'
12490 ),
12491 ));
12492
12493 $response = curl_exec($curl);
12494
12495 curl_close($curl);
12496 echo $response;
12497 {{/code}}
12498
12499
12500 (% style="color:#6b6b6b" %)Response  200 OK
12501
12502 {{code language="yml" theme="RDark" collapse="true" title="Lookup Transaction Response"}}
12503 {
12504 "result": {
12505 "success": "1",
12506 "error": {
12507 "code": "",
12508 "message": ""
12509 }
12510 },
12511 "Transactions": [
12512 {
12513 "Id": 52494786,
12514 "UserId": 1234,
12515 "TermId": 34,
12516 "TransactionDate": "2016-01-19",
12517 "TransactionTime": "15:30:04",
12518 "RequestDate": "2016-01-19",
12519 "UserIP": "12.226.247.2",
12520 "SubscriptionType": "u",
12521 "ProductId": 34,
12522 "Source": 0,
12523 "ProductStatus": 0,
12524 "MediaFilePath": "",
12525 "Amount": ""
12526 },
12527 {
12528 "Id": 42654041,
12529 "UserId": 1234,
12530 "TermId": 34,
12531 "TransactionDate": "2015-09-09",
12532 "TransactionTime": "11:20:39",
12533 "RequestDate": "2015-09-09",
12534 "UserIP": "24.187.236.98",
12535 "SubscriptionType": "n",
12536 "ProductId": 34,
12537 "Source": 0,
12538 "ProductStatus": 2,
12539 "MediaFilePath": "",
12540 "Amount": ""
12541 },
12542 {
12543 "Id": 97251022,
12544 "UserId": 1234,
12545 "TermId": 34,
12546 "TransactionDate": "2015-06-04",
12547 "TransactionTime": "14:59:42",
12548 "RequestDate": "2015-06-04",
12549 "UserIP": "12.226.247.2",
12550 "SubscriptionType": "u",
12551 "ProductId": 34,
12552 "Source": 0,
12553 "ProductStatus": 0,
12554 "MediaFilePath": "",
12555 "Amount": ""
12556 },
12557 {
12558 "Id": 55492559,
12559 "UserId": 1234,
12560 "TermId": 34,
12561 "TransactionDate": "2015-04-03",
12562 "TransactionTime": "16:32:04",
12563 "RequestDate": "2015-04-03",
12564 "UserIP": "24.187.236.98",
12565 "SubscriptionType": "r",
12566 "ProductId": 34,
12567 "Source": 58,
12568 "ProductStatus": 106,
12569 "MediaFilePath": "",
12570 "Amount": ""
12571 },
12572 {
12573 "Id": 98173391,
12574 "UserId": 1234,
12575 "TermId": 34,
12576 "TransactionDate": "2015-04-03",
12577 "TransactionTime": "15:50:45",
12578 "RequestDate": "2014-08-19",
12579 "UserIP": "24.187.236.98",
12580 "SubscriptionType": "n",
12581 "ProductId": 34,
12582 "Source": 34,
12583 "ProductStatus": 106,
12584 "MediaFilePath": "",
12585 "Amount": ""
12586 },
12587 {
12588 "Id": 91711793,
12589 "UserId": 1234,
12590 "TermId": 18,
12591 "TransactionDate": "2015-04-27",
12592 "TransactionTime": "14:24:51",
12593 "RequestDate": "2015-04-27",
12594 "UserIP": "24.187.236.98",
12595 "SubscriptionType": "u",
12596 "ProductId": 18,
12597 "Source": 0,
12598 "ProductStatus": 106,
12599 "MediaFilePath": "",
12600 "Amount": ""
12601 },
12602 {
12603 "Id": 74936400,
12604 "UserId": 1234,
12605 "TermId": 18,
12606 "TransactionDate": "2015-04-27",
12607 "TransactionTime": "12:35:18",
12608 "RequestDate": "2015-04-27",
12609 "UserIP": "68.196.187.74",
12610 "SubscriptionType": "n",
12611 "ProductId": 18,
12612 "Source": 34,
12613 "ProductStatus": 106,
12614 "MediaFilePath": "",
12615 "Amount": ""
12616 },
12617 {
12618 "Id": 21664714,
12619 "UserId": 1234,
12620 "TermId": 18,
12621 "TransactionDate": "2015-04-03",
12622 "TransactionTime": "15:50:46",
12623 "RequestDate": "2015-04-03",
12624 "UserIP": "24.187.236.98",
12625 "SubscriptionType": "u",
12626 "ProductId": 18,
12627 "Source": 0,
12628 "ProductStatus": 2,
12629 "MediaFilePath": "",
12630 "Amount": ""
12631 },
12632 {
12633 "Id": 81129263,
12634 "UserId": 1234,
12635 "TermId": 18,
12636 "TransactionDate": "2014-08-19",
12637 "TransactionTime": "11:18:55",
12638 "RequestDate": "2014-08-19",
12639 "UserIP": "74.201.38.1",
12640 "SubscriptionType": "n",
12641 "ProductId": 18,
12642 "Source": 34,
12643 "ProductStatus": 2,
12644 "MediaFilePath": "",
12645 "Amount": ""
12646 },
12647 {
12648 "Id": 30461748,
12649 "UserId": 1234,
12650 "ResourceId": 459,
12651 "TransactionDate": "2023-03-15",
12652 "TransactionTime": "12:07:55",
12653 "RequestDate": "2023-03-15",
12654 "UserIP": "74.201.38.12",
12655 "SubscriptionType": "n",
12656 "SourceCode": 0,
12657 "ProductStatus": 0,
12658 "MediaFilePath": "",
12659 "Amount": ""
12660 },
12661 {
12662 "Id": 25858253,
12663 "UserId": 1234,
12664 "ResourceId": 451,
12665 "TransactionDate": "2023-03-15",
12666 "TransactionTime": "11:45:19",
12667 "RequestDate": "2023-03-15",
12668 "UserIP": "74.201.38.12",
12669 "SubscriptionType": "n",
12670 "SourceCode": 0,
12671 "ProductStatus": 0,
12672 "MediaFilePath": "",
12673 "Amount": ""
12674 },
12675 {
12676 "Id": 69453260,
12677 "UserId": 1234,
12678 "ResourceId": 411,
12679 "TransactionDate": "2022-06-07",
12680 "TransactionTime": "17:03:14",
12681 "RequestDate": "2022-06-07",
12682 "UserIP": "74.201.38.12",
12683 "SubscriptionType": "n",
12684 "SourceCode": 0,
12685 "ProductStatus": 0,
12686 "MediaFilePath": "",
12687 "Amount": ""
12688 },
12689 {
12690 "Id": 51354425,
12691 "UserId": 1234,
12692 "ResourceId": 355,
12693 "TransactionDate": "2020-04-06",
12694 "TransactionTime": "12:24:08",
12695 "RequestDate": "2020-04-06",
12696 "UserIP": "74.201.38.12",
12697 "SubscriptionType": "n",
12698 "SourceCode": 0,
12699 "ProductStatus": 0,
12700 "MediaFilePath": "",
12701 "Amount": ""
12702 }
12703 ]
12704 }
12705 {{/code}}
12706
12707
12708 (% id="HPOSTCreateTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12709 == (% 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(%%) ==
12710
12711 ----
12712
12713 {{panel bgColor="#D3D3D3" width="100%"}}
12714 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions
12715 {{/panel}}
12716
12717 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12718
12719 ----
12720
12721 (% 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}}
12722
12723 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
12724
12725 ----
12726
12727 {{code language="yml" theme="RDark" title="Body"}}
12728 {"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" }
12729 {{/code}}
12730
12731 ==== Example ====
12732
12733 ----
12734
12735 (% style="color:#6b6b6b" %)Request
12736
12737 {{code language="php" theme="RDark" title="Create Transaction Request"}}
12738 <?php
12739
12740 $curl = curl_init();
12741
12742 curl_setopt_array($curl, array(
12743 CURLOPT_URL => 'https://api.onecount.net/v2/transactions',
12744 CURLOPT_RETURNTRANSFER => true,
12745 CURLOPT_ENCODING => '',
12746 CURLOPT_MAXREDIRS => 10,
12747 CURLOPT_TIMEOUT => 0,
12748 CURLOPT_FOLLOWLOCATION => true,
12749 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12750 CURLOPT_CUSTOMREQUEST => 'POST',
12751 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" }',
12752 CURLOPT_HTTPHEADER => array(
12753 'Appkey: {{ONECOUNT API KEY}}'
12754 ),
12755 ));
12756
12757 $response = curl_exec($curl);
12758
12759 curl_close($curl);
12760 echo $response;
12761 {{/code}}
12762
12763
12764 (% style="color:#6b6b6b" %)Response  200 OK
12765
12766 {{code language="yml" theme="RDark" collapse="true" title="Create Transaction Response"}}
12767 {
12768 "result": {
12769 "success": "1",
12770 "error": {
12771 "code": "",
12772 "message": ""
12773 }
12774 },
12775 "Transactions": {
12776 "Id": "1234",
12777 "UserId": 1845775,
12778 "TermId": 447,
12779 "TransactionDate": "20231211",
12780 "TransactionTime": "09:34:26",
12781 "RequestDate": "20231211",
12782 "UserIP": "192.168.0.1",
12783 "SubscriptionType": "n",
12784 "ProductId": 599,
12785 "Source": 83,
12786 "ProductStatus": 2,
12787 "MediaFilePath": "",
12788 "Amount": "0.00"
12789 }
12790 }
12791 {{/code}}
12792
12793
12794 === **COMPONENT: Engagements** ===
12795
12796 (% class="western" %)
12797 Engagement can be added, updated and searched for using the engagements resource from the api.
12798
12799
12800 (% class="wrapped" %)
12801 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12802 (((
12803 (% class="western" %)
12804 **Method**
12805 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12806 (((
12807 (% class="western" %)
12808 **Url**
12809 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12810 (((
12811 (% class="western" %)
12812 **Action**
12813 )))
12814 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12815 (((
12816 (% class="western" %)
12817 GET
12818 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12819 (((
12820 (% class="western" %)
12821 /(% style="color:#212121" %)engagements
12822 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12823 (((
12824 (% class="western" %)
12825 Get engagement data limiting 25.
12826 )))
12827 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12828 (((
12829 (% class="western" %)
12830 GET
12831 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12832 (((
12833 (% class="western" %)
12834 /(% style="color:#212121" %)engagements(%%)/<engagement id>
12835 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12836 (((
12837 (% class="western" %)
12838 Get data for engagement id. The engagement id is a string
12839 )))
12840 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12841 (((
12842 (% class="western" %)
12843 POST
12844 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12845 (((
12846 (% class="western" %)
12847 /(% style="color:#212121" %)engagements
12848 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12849 (((
12850 (% class="western" %)
12851 Create a new engagement
12852
12853 (% class="western" %)
12854 Parameters required to create the engagement needs to be sent as post data in JSON format.
12855 )))
12856 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12857 (((
12858 (% class="western" %)
12859 PUT
12860 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12861 (((
12862 (% class="western" %)
12863 /(% style="color:#212121" %)engagements(%%)/<engagement id>
12864 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12865 (((
12866 (% class="western" %)
12867 Update engagement by engagement id. The engagement id string
12868
12869 (% class="western" %)
12870 Parameters required to update the engagement needs to be sent as post data in JSON format.
12871 )))
12872 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12873 (((
12874 (% class="western" %)
12875 POST
12876 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12877 (((
12878 (% class="western" %)
12879 (% style="color:#212121" %)/engagements/addUser
12880 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12881 (((
12882 (% class="western" %)
12883 Add user to engagement
12884
12885 (% class="western" %)
12886 Parameters required to add user to the engagement needs to be sent as post data in JSON format.
12887 )))
12888
12889 (% id="HGETAllEngagements" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12890 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Engagements(%%) ==
12891
12892 ----
12893
12894 ----
12895
12896 {{panel bgColor="#D3D3D3" width="100%"}}
12897 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements
12898 {{/panel}}
12899
12900 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12901
12902 ----
12903
12904 (% 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}}
12905
12906 ==== Example ====
12907
12908 ----
12909
12910 (% style="color:#6b6b6b" %)Request
12911
12912 {{code language="php" theme="RDark" title="Get All Engagement Request"}}
12913 <?php
12914
12915 $curl = curl_init();
12916
12917 curl_setopt_array($curl, array(
12918 CURLOPT_URL => 'https://api.onecount.net/v2/engagements',
12919 CURLOPT_RETURNTRANSFER => true,
12920 CURLOPT_ENCODING => '',
12921 CURLOPT_MAXREDIRS => 10,
12922 CURLOPT_TIMEOUT => 0,
12923 CURLOPT_FOLLOWLOCATION => true,
12924 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12925 CURLOPT_CUSTOMREQUEST => 'GET',
12926 CURLOPT_HTTPHEADER => array(
12927 'Appkey: {{ONECOUNT API KEY}}'
12928 ),
12929 ));
12930
12931 $response = curl_exec($curl);
12932
12933 curl_close($curl);
12934 echo $response;
12935
12936
12937 {{/code}}
12938
12939
12940 (% style="color:#6b6b6b" %)Response  200 OK
12941
12942 {{code language="yml" theme="RDark" collapse="true" title="Get all engagements Response"}}
12943 {
12944 "result": {
12945 "success": "1",
12946 "error": {
12947 "code": "",
12948 "message": ""
12949 }
12950 },
12951 "Engagements": [
12952 {
12953 "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
12954 "Name": "Test Engagement 1",
12955 "Engagement Fields": [
12956 {
12957 "Name": "id",
12958 "Type": "text"
12959 },
12960 {
12961 "Name": "activity_time",
12962 "Type": "text"
12963 },
12964 {
12965 "Name": "Name",
12966 "Type": "text"
12967 },
12968 {
12969 "Name": "Test Field",
12970 "Type": "select",
12971 "Values": [
12972 {
12973 "text": "Test 1",
12974 "value": "Test1"
12975 }
12976 ]
12977 }
12978 ]
12979 }
12980 ]
12981 }
12982 {{/code}}
12983
12984
12985 (% id="HGETSpecificEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12986 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Specific Engagement(%%) ==
12987
12988 ----
12989
12990 ----
12991
12992 {{panel bgColor="#D3D3D3" width="100%"}}
12993 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement ID}}
12994 {{/panel}}
12995
12996 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12997
12998 ----
12999
13000 (% 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}}
13001
13002 ==== Example ====
13003
13004 ----
13005
13006 (% style="color:#6b6b6b" %)Request
13007
13008 {{code language="php" theme="RDark" title="Get Specific Engagement Request"}}
13009 <?php
13010
13011 $curl = curl_init();
13012
13013 curl_setopt_array($curl, array(
13014 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement ID}}',
13015 CURLOPT_RETURNTRANSFER => true,
13016 CURLOPT_ENCODING => '',
13017 CURLOPT_MAXREDIRS => 10,
13018 CURLOPT_TIMEOUT => 0,
13019 CURLOPT_FOLLOWLOCATION => true,
13020 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13021 CURLOPT_CUSTOMREQUEST => 'GET',
13022 CURLOPT_HTTPHEADER => array(
13023 'Appkey: {{ONECOUNT API KEY}}'
13024 ),
13025 ));
13026
13027 $response = curl_exec($curl);
13028
13029 curl_close($curl);
13030 echo $response;
13031
13032
13033 {{/code}}
13034
13035
13036 (% style="color:#6b6b6b" %)Response  200 OK
13037
13038 {{code language="yml" theme="RDark" collapse="true" title="Get specific engagement Response"}}
13039 {
13040 "result": {
13041 "success": "1",
13042 "error": {
13043 "code": "",
13044 "message": ""
13045 }
13046 },
13047 "Engagements": [
13048 {
13049 "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
13050 "Name": "Test Engagement 1",
13051 "Engagement Fields": [
13052 {
13053 "Name": "id",
13054 "Type": "text"
13055 },
13056 {
13057 "Name": "activity_time",
13058 "Type": "text"
13059 },
13060 {
13061 "Name": "Name",
13062 "Type": "text"
13063 },
13064 {
13065 "Name": "Test Field",
13066 "Type": "select",
13067 "Values": [
13068 {
13069 "text": "Test 1",
13070 "value": "Test1"
13071 }
13072 ]
13073 }
13074 ]
13075 }
13076 ]
13077 }
13078 {{/code}}
13079
13080
13081 (% id="HPOSTCreateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13082 == (% 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(%%) ==
13083
13084 ----
13085
13086 {{panel bgColor="#D3D3D3" width="100%"}}
13087 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements
13088 {{/panel}}
13089
13090 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13091
13092 ----
13093
13094 (% 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}}
13095
13096 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13097
13098 ----
13099
13100 {{code language="yml" theme="RDark" title="Body"}}
13101 {"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[
13102 {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"},
13103 {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"},
13104 {"Price":[],"Type": "numeric"},
13105 {"Transaction Date":[],"Type": "date"}
13106 ]}
13107 {{/code}}
13108
13109 ==== Example ====
13110
13111 ----
13112
13113 (% style="color:#6b6b6b" %)Request
13114
13115 {{code language="php" theme="RDark" title="Create Engagement Request"}}
13116 <?php
13117
13118 $curl = curl_init();
13119
13120 curl_setopt_array($curl, array(
13121 CURLOPT_URL => 'https://api.onecount.net/v2/engagements',
13122 CURLOPT_RETURNTRANSFER => true,
13123 CURLOPT_ENCODING => '',
13124 CURLOPT_MAXREDIRS => 10,
13125 CURLOPT_TIMEOUT => 0,
13126 CURLOPT_FOLLOWLOCATION => true,
13127 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13128 CURLOPT_CUSTOMREQUEST => 'POST',
13129 CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[
13130 {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"},
13131 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13132 {"Price":[],"Type": "numeric"},
13133 {"Transaction Date":[],"Type": "text"}
13134 ]}',
13135 CURLOPT_HTTPHEADER => array(
13136 'Appkey: {{ONECOUNT API KEY}}',
13137 'Content-Type: application/json'
13138 ),
13139 ));
13140
13141 $response = curl_exec($curl);
13142
13143 curl_close($curl);
13144 echo $response;
13145
13146
13147 {{/code}}
13148
13149
13150 (% style="color:#6b6b6b" %)Response  200 OK
13151
13152 {{code language="yml" theme="RDark" collapse="true" title="Create Engagement Response"}}
13153 {
13154 "result": {
13155 "success": "1",
13156 "error": {
13157 "code": "",
13158 "message": ""
13159 }
13160 },
13161 "Engagements": [
13162 {
13163 "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565",
13164 "Name": "Test engagement 2",
13165 "Metrics": [
13166 {
13167 "Name": "Name",
13168 "Type": "select",
13169 "Values": [
13170 {
13171 "text": "Webinar 1",
13172 "value": "Webinar_1"
13173 },
13174 {
13175 "text": "Webinar 2",
13176 "value": "Webinar_2"
13177 }
13178 ]
13179 },
13180 {
13181 "Name": "Attendance Status",
13182 "Type": "select",
13183 "Values": [
13184 {
13185 "text": "Attended",
13186 "value": "attended"
13187 },
13188 {
13189 "text": "Not Attended",
13190 "value": "not_attended"
13191 }
13192 ]
13193 },
13194 {
13195 "Name": "Price",
13196 "Type": "numeric"
13197 },
13198 {
13199 "Name": "Transaction Date",
13200 "Type": "text"
13201 },
13202 {
13203 "Name": "id",
13204 "Type": "text"
13205 },
13206 {
13207 "Name": "activity_time",
13208 "Type": "text"
13209 }
13210 ]
13211 }
13212 ]
13213 }
13214 {{/code}}
13215
13216
13217 (% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13218 == (% 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(%%) ==
13219
13220 ----
13221
13222 {{panel bgColor="#D3D3D3" width="100%"}}
13223 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement Id}}
13224 {{/panel}}
13225
13226 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13227
13228 ----
13229
13230 (% 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}}
13231
13232 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13233
13234 ----
13235
13236 {{code language="yml" theme="RDark" title="Body"}}
13237 {"Name":"Test engagement 3", "Metrics":[
13238 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13239 {"Price":[],"Type": "text"}
13240 ]}
13241 {{/code}}
13242
13243 ==== Example ====
13244
13245 ----
13246
13247 (% style="color:#6b6b6b" %)Request
13248
13249 {{code language="php" theme="RDark" title="Update Engagement Request"}}
13250 <?php
13251
13252 $curl = curl_init();
13253
13254 curl_setopt_array($curl, array(
13255 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement Id}}',
13256 CURLOPT_RETURNTRANSFER => true,
13257 CURLOPT_ENCODING => '',
13258 CURLOPT_MAXREDIRS => 10,
13259 CURLOPT_TIMEOUT => 0,
13260 CURLOPT_FOLLOWLOCATION => true,
13261 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13262 CURLOPT_CUSTOMREQUEST => 'PUT',
13263 CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[
13264 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13265 {"Price":[],"Type": "text"}
13266 ]}',
13267 CURLOPT_HTTPHEADER => array(
13268 'Appkey: {{ONECOUNT API KEY}}',
13269 'Content-Type: application/json'
13270 ),
13271 ));
13272
13273 $response = curl_exec($curl);
13274
13275 curl_close($curl);
13276 echo $response;
13277
13278 {{/code}}
13279
13280
13281 (% style="color:#6b6b6b" %)Response  200 OK
13282
13283 {{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}}
13284 {
13285 "result": {
13286 "success": "1",
13287 "error": {
13288 "code": "",
13289 "message": ""
13290 }
13291 },
13292 "Engagements": [
13293 {
13294 "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357",
13295 "Name": "Test engagement 3",
13296 "Metrics": [
13297 {
13298 "Name": "Attendance Status",
13299 "Type": "select",
13300 "Values": [
13301 {
13302 "text": "Attended",
13303 "value": "attended"
13304 },
13305 {
13306 "text": "Not Attended",
13307 "value": "not_attended"
13308 }
13309 ]
13310 },
13311 {
13312 "Name": "Price",
13313 "Type": "text"
13314 },
13315 {
13316 "Name": "Name",
13317 "Type": "select",
13318 "Values": [
13319 {
13320 "text": "Webinar 1",
13321 "value": "Webinar_1"
13322 },
13323 {
13324 "text": "Webinar 2",
13325 "value": "Webinar_2"
13326 }
13327 ]
13328 },
13329 {
13330 "Name": "Transaction Date",
13331 "Type": "text"
13332 },
13333 {
13334 "Name": "id",
13335 "Type": "text"
13336 },
13337 {
13338 "Name": "activity_time",
13339 "Type": "text"
13340 }
13341 ]
13342 }
13343 ]
13344 }
13345 {{/code}}
13346
13347
13348 (% id="HPOSTAddUsertoEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13349 == (% 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(%%) ==
13350
13351 ----
13352
13353 {{panel bgColor="#D3D3D3" width="100%"}}
13354 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/addUser
13355 {{/panel}}
13356
13357 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13358
13359 ----
13360
13361 (% 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}}
13362
13363 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13364
13365 ----
13366
13367 {{code language="yml" title="Body"}}
13368 {"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","name":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}
13369 {{/code}}
13370
13371 ==== Example ====
13372
13373 ----
13374
13375 (% style="color:#6b6b6b" %)Request
13376
13377 {{code language="php" title="Add User to Engagement Request"}}
13378 <?php
13379
13380 $curl = curl_init();
13381
13382 curl_setopt_array($curl, array(
13383 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/addUser',
13384 CURLOPT_RETURNTRANSFER => true,
13385 CURLOPT_ENCODING => '',
13386 CURLOPT_MAXREDIRS => 10,
13387 CURLOPT_TIMEOUT => 0,
13388 CURLOPT_FOLLOWLOCATION => true,
13389 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13390 CURLOPT_CUSTOMREQUEST => 'POST',
13391 CURLOPT_POSTFIELDS =>'{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","name":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}',
13392 CURLOPT_HTTPHEADER => array(
13393 'Appkey: {{ONECOUNT API KEY}}'
13394 ),
13395 ));
13396
13397 $response = curl_exec($curl);
13398
13399 curl_close($curl);
13400 echo $response;
13401 {{/code}}
13402
13403
13404 (% style="color:#6b6b6b" %)Response  200 OK
13405
13406 {{code language="yml" theme="RDark" collapse="true" title="Add Users to Engagement Response"}}
13407 {
13408 "result": {
13409 "success": "1",
13410 "error": {
13411 "code": "",
13412 "message": ""
13413 }
13414 },
13415 "Users": {
13416 "ocid": 1845775,
13417 "uuid": {
13418 "type": {
13419 "name": "uuid"
13420 },
13421 "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7",
13422 "version": 4
13423 },
13424 "blacklisted": null,
13425 "demo": {
13426 "1": "rayaan@one-count.com",
13427 "2": "user_1701788987",
13428 "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5"
13429 },
13430 "email": "rayaan@one-count.com",
13431 "espid": null,
13432 "known": {
13433 "type": {
13434 "name": "smallint"
13435 },
13436 "value": "1"
13437 },
13438 "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b",
13439 "partners_hash": null,
13440 "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5",
13441 "payment_cc_exp": null,
13442 "payment_vendor_token": null,
13443 "products": {
13444 "599": "447"
13445 },
13446 "remarks": null,
13447 "resources": null,
13448 "smartlink_hash": null,
13449 "subscription_active_resource_info": null,
13450 "subscription_active_term_info": {
13451 "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}"
13452 },
13453 "subscription_log": {
13454 "type": {
13455 "valueType": {
13456 "name": "varchar"
13457 }
13458 },
13459 "values": [
13460 "{\"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\"}",
13461 "{\"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\"}",
13462 "{\"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\"}"
13463 ]
13464 },
13465 "subscription_log_by_resource": null,
13466 "subscription_source_code": [
13467 "83"
13468 ],
13469 "targets": null,
13470 "timestamp": {
13471 "type": {
13472 "name": "bigint"
13473 },
13474 "value": "1701788987"
13475 },
13476 "unconfirmed": null,
13477 "update_time": null,
13478 "username": "user_1701788987",
13479 "vendor_blacklisted": null,
13480 "vendor_esp": null,
13481 "vendor_unconfirmed": null
13482 }
13483 }
13484 {{/code}}
13485
13486
13487 (% id="HCOMPONENT:Segments" class="western" %)
13488 === **COMPONENT: Segments** ===
13489
13490 *
13491 ** ===
13492
13493 (% class="western" %)
13494 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.
13495
13496 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13497 (((
13498 (% class="western" %)
13499 **Method**
13500 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13501 (((
13502 (% class="western" %)
13503 **Url**
13504 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13505 (((
13506 (% class="western" %)
13507 **Action**
13508 )))
13509 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13510 (((
13511 (% class="western" %)
13512 GET
13513 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13514 (((
13515 (% class="western" %)
13516 /(% style="color:#212121" %)segments
13517 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13518 (((
13519 (% class="western" %)
13520 Get all segments.
13521 )))
13522 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13523 (((
13524 (% class="western" %)
13525 GET
13526 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13527 (((
13528 (% class="western" %)
13529 /(% style="color:#212121" %)segments(%%)/(% class="resolvedVariable" style="text-decoration:none" %)~{~{Segment id}}
13530 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13531 (((
13532 (% class="western" %)
13533 Get specific segment based on segment id.
13534 )))
13535 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13536 (((
13537 (% class="western" %)
13538 POST
13539 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13540 (((
13541 (% class="western" %)
13542 /(% style="color:#212121" %)segments/addUsers
13543 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13544 (((
13545 (% class="western" %)
13546 Add users to segment.
13547 )))
13548 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13549 (((
13550 (% class="western" %)
13551 GET
13552 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13553 (((
13554 (% class="western" %)
13555 /(% style="color:#212121" %)segments/users/(% class="resolvedVariable" style="text-decoration:none" %)~{~{ocid}}
13556 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13557 (((
13558 (% class="western" %)
13559 Get all segment user has be subscribed based on user id.
13560 )))
13561
13562 (% id="HGETAllSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13563 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Segments(%%) ==
13564
13565 ----
13566
13567 ----
13568
13569 {{panel bgColor="#D3D3D3" width="100%"}}
13570 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments
13571 {{/panel}}
13572
13573 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13574
13575 ----
13576
13577 (% 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}}
13578
13579 ==== Example ====
13580
13581 ----
13582
13583 (% style="color:#6b6b6b" %)Request
13584
13585 {{code language="php" theme="RDark" title="Get All Segments Request"}}
13586 <?php
13587
13588 $curl = curl_init();
13589
13590 curl_setopt_array($curl, array(
13591 CURLOPT_URL => 'https://api.onecount.net/v2/segments',
13592 CURLOPT_RETURNTRANSFER => true,
13593 CURLOPT_ENCODING => '',
13594 CURLOPT_MAXREDIRS => 10,
13595 CURLOPT_TIMEOUT => 0,
13596 CURLOPT_FOLLOWLOCATION => true,
13597 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13598 CURLOPT_CUSTOMREQUEST => 'GET',
13599 CURLOPT_HTTPHEADER => array(
13600 'Appkey: {{ONECOUNT API KEY}}'
13601 ),
13602 ));
13603
13604 $response = curl_exec($curl);
13605
13606 curl_close($curl);
13607 echo $response;
13608 {{/code}}
13609
13610
13611 (% style="color:#6b6b6b" %)Response  200 OK
13612
13613 {{code language="yml" theme="RDark" collapse="true" title="Get All Segments Response"}}
13614 {
13615 "result": {
13616 "success": "1",
13617 "error": {
13618 "code": "",
13619 "message": ""
13620 }
13621 },
13622 "Segments": [
13623 {
13624 "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43",
13625 "Name": "2022 Use Cases PDF Download"
13626 },
13627 {
13628 "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
13629 "Name": "58-percent conversion-rate"
13630 },
13631 {
13632 "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138",
13633 "Name": "Audience Marketing Pop-Up"
13634 },
13635 {
13636 "Id": "68219b37-c155-4459-a5ce-497261286ffe",
13637 "Name": "Bold Minds Reminders"
13638 },
13639 {
13640 "Id": "6450defc-7658-4182-9c2a-a8f8420f801e",
13641 "Name": "Demo - Aviator's Guide - NL Popup"
13642 },
13643 {
13644 "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0",
13645 "Name": "Getting 80-Percent Conversion Rates Pop-up"
13646 },
13647 {
13648 "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
13649 "Name": "Holiday Special Offer - 3 mo. Pilot"
13650 },
13651 {
13652 "Id": "16305ad0-8e65-4085-942e-04d99fd39207",
13653 "Name": "Identity Resolution Test II"
13654 },
13655 {
13656 "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3",
13657 "Name": "Live ONEcount Popup Example Segment"
13658 },
13659 {
13660 "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a",
13661 "Name": "Live webinar - June 15 - Accelerate Revenue"
13662 },
13663 {
13664 "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de",
13665 "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign"
13666 },
13667 {
13668 "Id": "d883ecdb-5307-416d-9558-c196472021c9",
13669 "Name": "New Year - Increase Revenue 30-Percent"
13670 },
13671 {
13672 "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73",
13673 "Name": "OC Test"
13674 },
13675 {
13676 "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
13677 "Name": "Something big"
13678 },
13679 {
13680 "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
13681 "Name": "Something No Other Platform Has"
13682 },
13683 {
13684 "Id": "5eaa0345-a825-4ba0-a787-336312a77744",
13685 "Name": "Something Revolutionary"
13686 },
13687 {
13688 "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
13689 "Name": "Something that will change your life"
13690 },
13691 {
13692 "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
13693 "Name": "Something You Have Always Wanted"
13694 },
13695 {
13696 "Id": "28361c73-e253-49bb-a791-5481be2070a0",
13697 "Name": "Something You Never Thought Possible"
13698 },
13699 {
13700 "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814",
13701 "Name": "Test behaviour "
13702 },
13703 {
13704 "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13705 "Name": "Test behaviour banner segment"
13706 },
13707 {
13708 "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561",
13709 "Name": "Test behaviour combo"
13710 },
13711 {
13712 "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a",
13713 "Name": "Test behaviour content"
13714 },
13715 {
13716 "Id": "89424642-1363-476e-9842-4f0a2544151f",
13717 "Name": "Test behaviour email"
13718 },
13719 {
13720 "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c",
13721 "Name": "Test demographic segments"
13722 },
13723 {
13724 "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd",
13725 "Name": "Test with unknown only selecting all filters"
13726 }
13727 ]
13728 }
13729 {{/code}}
13730
13731
13732 (% id="HGETspecificSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13733 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Segments(%%) ==
13734
13735 ----
13736
13737 {{panel bgColor="#D3D3D3" width="100%"}}
13738 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments/~{~{segment id}}
13739 {{/panel}}
13740
13741 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13742
13743 ----
13744
13745 (% 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}}
13746
13747 ==== Example ====
13748
13749 ----
13750
13751 (% style="color:#6b6b6b" %)Request
13752
13753 {{code language="php" theme="RDark" title="Get specific Segment Request"}}
13754 <?php
13755
13756 $curl = curl_init();
13757
13758 curl_setopt_array($curl, array(
13759 CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}',
13760 CURLOPT_RETURNTRANSFER => true,
13761 CURLOPT_ENCODING => '',
13762 CURLOPT_MAXREDIRS => 10,
13763 CURLOPT_TIMEOUT => 0,
13764 CURLOPT_FOLLOWLOCATION => true,
13765 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13766 CURLOPT_CUSTOMREQUEST => 'GET',
13767 CURLOPT_HTTPHEADER => array(
13768 'Appkey: {{ONECOUNT API KEY}}'
13769 ),
13770 ));
13771
13772 $response = curl_exec($curl);
13773
13774 curl_close($curl);
13775 echo $response;
13776 {{/code}}
13777
13778
13779 (% style="color:#6b6b6b" %)Response  200 OK
13780
13781 {{code language="yml" theme="RDark" collapse="true" title="Get specific Segments Response"}}
13782 {
13783 "result": {
13784 "success": "1",
13785 "error": {
13786 "code": "",
13787 "message": ""
13788 }
13789 },
13790 "Segments": {
13791 "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13792 "Demos": {
13793 "_empty_": [],
13794 "type": ""
13795 },
13796 "Description": "",
13797 "Action": {
13798 "action": {}
13799 },
13800 "Name": "Test behaviour banner segment",
13801 "Behaviours": [
13802 {
13803 "end_date": "05/26/2022",
13804 "date_type": "Future",
13805 "sub_category_values": [],
13806 "sub_category": "clicked",
13807 "category": "1",
13808 "targets": [
13809 "all"
13810 ],
13811 "joining_logic": "AND",
13812 "frequency": "1",
13813 "start_date": "04/26/2022",
13814 "day_count": "100"
13815 }
13816 ],
13817 "Accounts": []
13818 }
13819 }
13820 {{/code}}
13821
13822
13823 (% id="HPOSTAdduserstosegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13824 == (% 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(%%) ==
13825
13826 ----
13827
13828 {{panel bgColor="#D3D3D3" width="100%"}}
13829 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/addUsers
13830 {{/panel}}
13831
13832 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13833
13834 ----
13835
13836 (% 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}}
13837
13838 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13839
13840 ----
13841
13842 {{code language="yml" theme="RDark" title="Body"}}
13843 {"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}
13844 {{/code}}
13845
13846 ==== Example ====
13847
13848 ----
13849
13850 (% style="color:#6b6b6b" %)Request
13851
13852 {{code language="php" theme="RDark" title="Add users to Segment Request"}}
13853 <?php
13854
13855 $curl = curl_init();
13856
13857 curl_setopt_array($curl, array(
13858 CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers',
13859 CURLOPT_RETURNTRANSFER => true,
13860 CURLOPT_ENCODING => '',
13861 CURLOPT_MAXREDIRS => 10,
13862 CURLOPT_TIMEOUT => 0,
13863 CURLOPT_FOLLOWLOCATION => true,
13864 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13865 CURLOPT_CUSTOMREQUEST => 'POST',
13866 CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}',
13867 CURLOPT_HTTPHEADER => array(
13868 'Appkey: {{ONECOUNT API KEY}}',
13869 'Content-Type: application/json'
13870 ),
13871 ));
13872
13873 $response = curl_exec($curl);
13874
13875 curl_close($curl);
13876 echo $response;
13877 {{/code}}
13878
13879
13880 (% style="color:#6b6b6b" %)Response  200 OK
13881
13882 {{code language="yml" theme="RDark" collapse="true" title="Add users to segment Response"}}
13883 {
13884 "result": {
13885 "success": "1",
13886 "error": {
13887 "code": "",
13888 "message": ""
13889 }
13890 },
13891 "Segments": {
13892 "Error user ids": [
13893 676172,
13894 2134321
13895 ],
13896 "Inserted user ids": [
13897 164499
13898 ]
13899 }
13900 }
13901 {{/code}}
13902
13903
13904 (% id="HGETallsegmentsforaUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13905 == (% 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(%%) ==
13906
13907 ----
13908
13909 {{panel bgColor="#D3D3D3" width="100%"}}
13910 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration:none" %)~{~{ocid}}
13911 {{/panel}}
13912
13913 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13914
13915 ----
13916
13917 (% 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}}
13918
13919 ==== Example ====
13920
13921 ----
13922
13923 (% style="color:#6b6b6b" %)Request
13924
13925 {{code language="php" theme="RDark" title="Get all segments for a user Request"}}
13926 <?php
13927
13928 $curl = curl_init();
13929
13930 curl_setopt_array($curl, array(
13931 CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••',
13932 CURLOPT_RETURNTRANSFER => true,
13933 CURLOPT_ENCODING => '',
13934 CURLOPT_MAXREDIRS => 10,
13935 CURLOPT_TIMEOUT => 0,
13936 CURLOPT_FOLLOWLOCATION => true,
13937 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13938 CURLOPT_CUSTOMREQUEST => 'GET',
13939 CURLOPT_HTTPHEADER => array(
13940 'Appkey: {{ONECOUNT API KEY}}'
13941 ),
13942 ));
13943
13944 $response = curl_exec($curl);
13945
13946 curl_close($curl);
13947 echo $response;
13948 {{/code}}
13949
13950
13951 (% style="color:#6b6b6b" %)Response  200 OK
13952
13953 {{code language="yml" theme="RDark" collapse="true" title="Get all Segments for a user Response"}}
13954 {
13955 "result": {
13956 "success": "1",
13957 "error": {
13958 "code": "",
13959 "message": ""
13960 }
13961 },
13962 "Segments": [
13963 "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
13964 "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
13965 "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
13966 "28361c73-e253-49bb-a791-5481be2070a0",
13967 "28774f7c-9fd3-4dff-a42e-683460f437c0",
13968 "5eaa0345-a825-4ba0-a787-336312a77744",
13969 "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
13970 "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
13971 "bcb403a2-c0a1-414f-90c1-277a41009c97",
13972 "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
13973 "d883ecdb-5307-416d-9558-c196472021c9",
13974 "d8d1bc9d-ede2-4c82-a747-10ab9fb979de"
13975 ]
13976 }
13977 {{/code}}
13978
13979
13980 (% id="HCOMPONENT:Leads" class="western" %)
13981 === **COMPONENT: Leads** ===
13982
13983 *
13984 ** ===
13985
13986 (% class="western" %)
13987 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.
13988
13989 (% class="western" %)
13990 **Telemarketing Leads**
13991
13992
13993 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed.
13994
13995 (% class="wrapped" %)
13996 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13997 (((
13998 (% class="western" %)
13999 **Method**
14000 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14001 (((
14002 (% class="western" %)
14003 **Url**
14004 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14005 (((
14006 (% class="western" %)
14007 **Action**
14008 )))
14009 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14010 (((
14011 (% class="western" %)
14012 GET
14013 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14014 (((
14015 (% class="western" %)
14016 /stats/telemarketing
14017 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14018 (((
14019 (% class="western" %)
14020 List telemarketing stats
14021 )))
14022 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14023 (((
14024 (% class="western" %)
14025 GET
14026 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14027 (((
14028 (% class="western" %)
14029 /stats/telemarketing/1000
14030 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14031 (((
14032 (% class="western" %)
14033 Get telemarketing stat whose id is 1000 in the system.
14034 )))
14035 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14036 (((
14037 (% class="western" %)
14038 POST
14039 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14040 (((
14041 (% class="western" %)
14042 /stats/telemarketing
14043 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14044 (((
14045 (% class="western" %)
14046 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent.
14047 )))
14048
14049 (% class="western" %)
14050 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.
14051
14052 (% class="wrapped" %)
14053 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14054 (((
14055 (% class="western" %)
14056 **Request**
14057 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14058 (((
14059 (% class="western" %)
14060 **Type**
14061 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14062 (((
14063 (% class="western" %)
14064 **Description**
14065 )))
14066 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14067 (((
14068 (% class="western" %)
14069 Telemarketing
14070 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14071 (((
14072 (% class="western" %)
14073 Telemarketing
14074 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14075 (((
14076 (% class="western" %)
14077 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section.
14078
14079 (% class="western" %)
14080 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.
14081
14082 (% class="western" %)
14083 E.g
14084
14085 (% class="western" %)
14086 {
14087
14088 (% class="western" %)
14089 "Telemarketing":[
14090
14091 (% class="western" %)
14092 {
14093
14094 (% class="western" %)
14095 "OCID":"5000",
14096
14097 (% class="western" %)
14098 "Date": "2016-01-01",
14099
14100 (% class="western" %)
14101 "Time": "10:10:10",
14102
14103 (% class="western" %)
14104 "ResourceId":"250",
14105
14106 (% class="western" %)
14107 "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"]]",
14108
14109 (% class="western" %)
14110 "PageTitle":"tests"
14111
14112 (% class="western" %)
14113 }
14114
14115 (% class="western" %)
14116 ]
14117
14118 (% class="western" %)
14119 }
14120 )))
14121 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14122 (((
14123 (% class="western" %)
14124
14125 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14126 (((
14127 (% class="western" %)
14128
14129 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14130 (((
14131 (% class="western" %)
14132
14133 )))
14134
14135 (% class="wrapped" %)
14136 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14137 (((
14138 (% class="western" %)
14139 **Response**
14140 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14141 (((
14142 (% class="western" %)
14143 **Type**
14144 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14145 (((
14146 (% class="western" %)
14147 **Description**
14148 )))
14149 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14150 (((
14151 (% class="western" %)
14152 Ids
14153 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14154 (((
14155 (% class="western" %)
14156 String
14157 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14158 (((
14159 (% class="western" %)
14160 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format.
14161 )))
14162
14163 (% class="western" %)
14164 **API REFERENCE**
14165
14166 (% class="western" %)
14167 **Type: Questions**
14168
14169 (% class="wrapped" %)
14170 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14171 (((
14172 (% class="western" %)
14173 **Property Name**
14174 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14175 (((
14176 (% class="western" %)
14177 **Type**
14178 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14179 (((
14180 (% class="western" %)
14181 **Description**
14182 )))
14183 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14184 (((
14185 (% class="western" %)
14186 Id
14187 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14188 (((
14189 (% class="western" %)
14190 Int
14191 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14192 (((
14193 (% class="western" %)
14194 Id of the question.
14195 )))
14196 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14197 (((
14198 (% class="western" %)
14199 Text
14200 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14201 (((
14202 (% class="western" %)
14203 String
14204 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14205 (((
14206 (% class="western" %)
14207 Text of the question.
14208 )))
14209 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14210 (((
14211 (% class="western" %)
14212 Type
14213 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14214 (((
14215 (% class="western" %)
14216 Int
14217 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14218 (((
14219 (% class="western" %)
14220 Determines which type of question it is. Textbox, checkbox, select, radio.
14221 There can be 6 types of questions.
14222 type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
14223 type=2 means textarea type question or long response type question.
14224 type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
14225 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.
14226 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.
14227 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.
14228 )))
14229 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14230 (((
14231 (% class="western" %)
14232 Choices
14233 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14234 (((
14235 (% class="western" %)
14236 choices
14237 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14238 (((
14239 (% class="western" %)
14240 If multiple choice question this field will have the choices.
14241 )))
14242 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14243 (((
14244 (% class="western" %)
14245 Alias
14246 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14247 (((
14248 (% class="western" %)
14249 String
14250 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14251 (((
14252 (% class="western" %)
14253 Alias for admin purpose.
14254 )))
14255
14256
14257 (% class="western" %)
14258 **Type: Choices**
14259
14260 (% class="wrapped" %)
14261 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14262 (((
14263 (% class="western" %)
14264 **Property Name**
14265 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14266 (((
14267 (% class="western" %)
14268 **Type**
14269 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14270 (((
14271 (% class="western" %)
14272 **Description**
14273 )))
14274 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14275 (((
14276 (% class="western" %)
14277 Id
14278 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14279 (((
14280 (% class="western" %)
14281 int
14282 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14283 (((
14284 (% class="western" %)
14285 Id of the choice.
14286 )))
14287 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14288 (((
14289 (% class="western" %)
14290 Text
14291 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14292 (((
14293 (% class="western" %)
14294 string
14295 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14296 (((
14297 (% class="western" %)
14298 Display text of choice.
14299 )))
14300 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14301 (((
14302 (% class="western" %)
14303 Value
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 Value stored in db.
14312 )))
14313 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14314 (((
14315 (% class="western" %)
14316 Order
14317 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14318 (((
14319 (% class="western" %)
14320 Int
14321 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14322 (((
14323 (% class="western" %)
14324 Display order.
14325 )))
14326 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14327 (((
14328 (% class="western" %)
14329 QuestionId
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 Tied to which question id.
14338 )))
14339
14340 (% class="western" %)
14341 **Type: Users**
14342
14343 (% class="wrapped" %)
14344 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14345 (((
14346 (% class="western" %)
14347 **Property Name**
14348 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14349 (((
14350 (% class="western" %)
14351 **Type**
14352 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14353 (((
14354 (% class="western" %)
14355 **Description**
14356 )))
14357 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14358 (((
14359 (% class="western" %)
14360 Id
14361 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14362 (((
14363 (% class="western" %)
14364 Int
14365 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14366 (((
14367 (% class="western" %)
14368 ID of the user in ONEcount.
14369 )))
14370 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14371 (((
14372 (% class="western" %)
14373 PartnerId
14374 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14375 (((
14376 (% class="western" %)
14377 Int
14378 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14379 (((
14380 (% class="western" %)
14381 ID of the user in partners system (e.g. id of your system).
14382 )))
14383 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14384 (((
14385 (% class="western" %)
14386 Demo
14387 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14388 (((
14389 (% class="western" %)
14390 Demo
14391 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14392 (((
14393 (% class="western" %)
14394 Object of user's demo question ids and respective response values.
14395 )))
14396 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14397 (((
14398 (% class="western" %)
14399 RequestDate
14400 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14401 (((
14402 (% class="western" %)
14403 Date
14404 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14405 (((
14406 (% class="western" %)
14407 Request date.
14408 )))
14409
14410 (% class="western" %)
14411 **Type: Demo**
14412
14413 (% class="wrapped" %)
14414 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14415 (((
14416 (% class="western" %)
14417 **Property Name**
14418 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14419 (((
14420 (% class="western" %)
14421 **Type**
14422 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14423 (((
14424 (% class="western" %)
14425 **Description**
14426 )))
14427 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14428 (((
14429 (% class="western" %)
14430 QuestionId (e.g 6)
14431 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14432 (((
14433 (% class="western" %)
14434 String
14435 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14436 (((
14437 (% class="western" %)
14438 6 is the value of “Id” property of question resource(Text = “First Name”)
14439 )))
14440 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14441 (((
14442 (% class="western" %)
14443 QuestionId (e.g 7)
14444 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14445 (((
14446 (% class="western" %)
14447 String
14448 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14449 (((
14450 (% class="western" %)
14451 7 is the value of “Id” property of question resource(Text = “Last Name”)
14452 )))
14453 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14454 (((
14455 (% class="western" %)
14456 ...
14457 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14458 (((
14459 (% class="western" %)
14460 ...
14461 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14462 (((
14463 (% class="western" %)
14464 ...
14465 )))
14466
14467 (% class="western" %)
14468 **Type: Transactions**
14469
14470 (% class="wrapped" %)
14471 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14472 (((
14473 (% class="western" %)
14474 **Property Name**
14475 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14476 (((
14477 (% class="western" %)
14478 **Type**
14479 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14480 (((
14481 (% class="western" %)
14482 **Description**
14483 )))
14484 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14485 (((
14486 (% class="western" %)
14487 Id
14488 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14489 (((
14490 (% class="western" %)
14491 Int
14492 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14493 (((
14494 (% class="western" %)
14495 ID of the transaction.
14496 )))
14497 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14498 (((
14499 (% class="western" %)
14500 UserId
14501 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14502 (((
14503 (% class="western" %)
14504 Int
14505 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14506 (((
14507 (% class="western" %)
14508 Id of user in ONEcount.
14509 )))
14510 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14511 (((
14512 (% class="western" %)
14513 TermId
14514 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14515 (((
14516 (% class="western" %)
14517 Int
14518 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14519 (((
14520 (% class="western" %)
14521 TermId in ONEcount.
14522 )))
14523 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14524 (((
14525 (% class="western" %)
14526 ProductStatus
14527 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14528 (((
14529 (% class="western" %)
14530 Int
14531 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14532 (((
14533 (% class="western" %)
14534 Status ID.
14535 )))
14536 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14537 (((
14538 (% class="western" %)
14539 SubscriptionType
14540 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14541 (((
14542 (% class="western" %)
14543 Char
14544 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14545 (((
14546 (% class="western" %)
14547 Can be n,r or u for new, renew or unsubscribe.
14548 )))
14549 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14550 (((
14551 (% class="western" %)
14552 TransactionDate
14553 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14554 (((
14555 (% class="western" %)
14556 Date
14557 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14558 (((
14559 (% class="western" %)
14560 Date when the transaction occurred.
14561 )))
14562 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14563 (((
14564 (% class="western" %)
14565 TransactionTime
14566 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14567 (((
14568 (% class="western" %)
14569 Time
14570 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14571 (((
14572 (% class="western" %)
14573 Time of transaction.
14574 )))
14575 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14576 (((
14577 (% class="western" %)
14578 RequestDate
14579 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14580 (((
14581 (% class="western" %)
14582 Date
14583 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14584 (((
14585 (% class="western" %)
14586 The effective request date for the transaction.
14587 )))
14588 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14589 (((
14590 (% class="western" %)
14591 UserIP
14592 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14593 (((
14594 (% class="western" %)
14595 String
14596 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14597 (((
14598 (% class="western" %)
14599 IP of the user.
14600 )))
14601 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14602 (((
14603 (% class="western" %)
14604 Source
14605 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14606 (((
14607 (% class="western" %)
14608 String
14609 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14610 (((
14611 (% class="western" %)
14612 The transaction needs to be tied to a source code this will define it.
14613 )))
14614 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14615 (((
14616 (% class="western" %)
14617 MediaFilePath
14618 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14619 (((
14620 (% class="western" %)
14621 String
14622 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14623 (((
14624 (% class="western" %)
14625 The url of media associated with that transaction. Eg image, audio.
14626 )))
14627 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14628 (((
14629 (% class="western" %)
14630 ExpireDate
14631 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14632 (((
14633 (% class="western" %)
14634 Date
14635 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14636 (((
14637 (% class="western" %)
14638 Date when the subscription expires.
14639 )))
14640 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14641 (((
14642 (% class="western" %)
14643 Amount
14644 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14645 (((
14646 (% class="western" %)
14647 Float
14648 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14649 (((
14650 (% class="western" %)
14651 If there is amount (USD) included in transaction.
14652 )))
14653
14654 (% class="western" %)
14655 **Type: Sources**
14656
14657 (% class="wrapped" %)
14658 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14659 (((
14660 (% class="western" %)
14661 **Property Name**
14662 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14663 (((
14664 (% class="western" %)
14665 **Type**
14666 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14667 (((
14668 (% class="western" %)
14669 **Description**
14670 )))
14671 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14672 (((
14673 (% class="western" %)
14674 Id
14675 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14676 (((
14677 (% class="western" %)
14678 Int
14679 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14680 (((
14681 (% class="western" %)
14682 Id of the source.
14683 )))
14684 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14685 (((
14686 (% class="western" %)
14687 Source
14688 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14689 (((
14690 (% class="western" %)
14691 String
14692 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14693 (((
14694 (% class="western" %)
14695 Value of the source.
14696 )))
14697 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14698 (((
14699 (% class="western" %)
14700 Description
14701 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14702 (((
14703 (% class="western" %)
14704 Text
14705 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14706 (((
14707 (% class="western" %)
14708 Description of the source.
14709 )))
14710 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14711 (((
14712 (% class="western" %)
14713 ParentId
14714 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14715 (((
14716 (% class="western" %)
14717 int
14718 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14719 (((
14720 (% class="western" %)
14721 If this is a child source then list the parent source id.
14722 )))
14723
14724 (% class="western" %)
14725 **Type: Products**
14726
14727 (% class="wrapped" %)
14728 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14729 (((
14730 (% class="western" %)
14731 **Property Name**
14732 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14733 (((
14734 (% class="western" %)
14735 **Type**
14736 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14737 (((
14738 (% class="western" %)
14739 **Description**
14740 )))
14741 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14742 (((
14743 (% class="western" %)
14744 Id
14745 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14746 (((
14747 (% class="western" %)
14748 Int
14749 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14750 (((
14751 (% class="western" %)
14752 Specify only for update.
14753 )))
14754 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14755 (((
14756 (% class="western" %)
14757 Name
14758 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14759 (((
14760 (% class="western" %)
14761 String
14762 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14763 (((
14764 (% class="western" %)
14765 Name of the Product.
14766 )))
14767 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14768 (((
14769 (% class="western" %)
14770 Description
14771 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14772 (((
14773 (% class="western" %)
14774 Text
14775 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14776 (((
14777 (% class="western" %)
14778 Description of the product.
14779 )))
14780 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14781 (((
14782 (% class="western" %)
14783 Terms
14784 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14785 (((
14786 (% class="western" %)
14787 Terms
14788 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14789 (((
14790 (% class="western" %)
14791 (Array of) Terms associated with the product.
14792 )))
14793
14794 (% class="western" %)
14795 **Type: Terms**
14796
14797 (% class="wrapped" %)
14798 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14799 (((
14800 (% class="western" %)
14801 **Property Name**
14802 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14803 (((
14804 (% class="western" %)
14805 **Type**
14806 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14807 (((
14808 (% class="western" %)
14809 **Description**
14810 )))
14811 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14812 (((
14813 (% class="western" %)
14814 Id
14815 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14816 (((
14817 (% class="western" %)
14818 int
14819 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14820 (((
14821 (% class="western" %)
14822 Id of the term.
14823 )))
14824 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14825 (((
14826 (% class="western" %)
14827 Name
14828 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14829 (((
14830 (% class="western" %)
14831 string
14832 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14833 (((
14834 (% class="western" %)
14835 Name of the Term.
14836 )))
14837 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14838 (((
14839 (% class="western" %)
14840 Description
14841 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14842 (((
14843 (% class="western" %)
14844 text
14845 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14846 (((
14847 (% class="western" %)
14848 Description of the term.
14849 )))
14850 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14851 (((
14852 (% class="western" %)
14853 Duration
14854 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14855 (((
14856 (% class="western" %)
14857 int
14858 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14859 (((
14860 (% class="western" %)
14861 Duration of term validity.
14862 )))
14863 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14864 (((
14865 (% class="western" %)
14866 DurationUnit
14867 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14868 (((
14869 (% class="western" %)
14870 sting
14871 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14872 (((
14873 (% class="western" %)
14874 Y (year), M (Month), D (Days).
14875 )))
14876 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14877 (((
14878 (% class="western" %)
14879 ProductId
14880 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14881 (((
14882 (% class="western" %)
14883 int
14884 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14885 (((
14886 (% class="western" %)
14887 Id of the product the term is tied to.
14888 )))
14889 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14890 (((
14891 (% class="western" %)
14892 Price
14893 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14894 (((
14895 (% class="western" %)
14896 float
14897 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14898 (((
14899 (% class="western" %)
14900 If there is price (USD) for the term.
14901 )))
14902
14903 (% class="western" %)
14904 **Type: Resources**
14905
14906 (% class="wrapped" %)
14907 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14908 (((
14909 (% class="western" %)
14910 **Property Name**
14911 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14912 (((
14913 (% class="western" %)
14914 **Type**
14915 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14916 (((
14917 (% class="western" %)
14918 **Description**
14919 )))
14920 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14921 (((
14922 (% class="western" %)
14923 Id
14924 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14925 (((
14926 (% class="western" %)
14927 Int
14928 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14929 (((
14930 (% class="western" %)
14931 Specify only for update.
14932 )))
14933 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14934 (((
14935 (% class="western" %)
14936 Name
14937 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14938 (((
14939 (% class="western" %)
14940 String
14941 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14942 (((
14943 (% class="western" %)
14944 Name of the Resource.
14945 )))
14946 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14947 (((
14948 (% class="western" %)
14949 Description
14950 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14951 (((
14952 (% class="western" %)
14953 Text
14954 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14955 (((
14956 (% class="western" %)
14957 Description of the Resource.
14958 )))
14959 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14960 (((
14961 (% class="western" %)
14962 Type
14963 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14964 (((
14965 (% class="western" %)
14966 Int
14967 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14968 (((
14969 (% class="western" %)
14970 Type Options
14971
14972 (% class="western" %)
14973 **0** : File
14974
14975 (% class="western" %)
14976 **2 : **Newsletter
14977
14978 (% class="western" %)
14979 **3 : **Section
14980
14981 (% class="western" %)
14982 **4 : **Page
14983
14984 (% class="western" %)
14985 **5 : **Function
14986 )))
14987 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14988 (((
14989 (% class="western" %)
14990 Value
14991 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14992 (((
14993 (% class="western" %)
14994 String
14995
14996 (% class="western" %)
14997 or
14998
14999 (% class="western" %)
15000 Array
15001 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15002 (((
15003 (% class="western" %)
15004 Value of Resource Type:
15005
15006 (% class="western" %)
15007 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.
15008
15009 (% class="western" %)
15010 For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests.
15011
15012 (% class="western" %)
15013 Example :
15014
15015 (% class="western" %)
15016 if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].**
15017 if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"]
15018
15019 (% class="western" %)
15020 For Function type resource leave it blank.
15021 )))
15022 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15023 (((
15024 (% class="western" %)
15025 limit
15026 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15027 (((
15028 (% class="western" %)
15029 Int
15030 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15031 (((
15032 (% class="western" %)
15033 Default limit is 25 but if all the data needs to be pulled then pass limit=0.
15034 )))
15035 |(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15036 (((
15037 FreePass
15038 )))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15039 (((
15040 Int
15041 )))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15042 (((
15043 Default value is 0. This parameter is used to provide access to protected content.
15044 )))
15045
15046 (% class="western" %)
15047 **Type: Telemarketing**
15048
15049 (% class="wrapped" %)
15050 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15051 (((
15052 (% class="western" %)
15053 **Property Name**
15054 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15055 (((
15056 (% class="western" %)
15057 **Type**
15058 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15059 (((
15060 (% class="western" %)
15061 **Description**
15062 )))
15063 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15064 (((
15065 (% class="western" %)
15066 Id
15067 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15068 (((
15069 (% class="western" %)
15070 int
15071 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15072 (((
15073 (% class="western" %)
15074 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat.
15075 )))
15076 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15077 (((
15078 (% class="western" %)
15079 OCID
15080 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15081 (((
15082 (% class="western" %)
15083 int
15084 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15085 (((
15086 (% class="western" %)
15087 Onecount ID of the user.
15088 )))
15089 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15090 (((
15091 (% class="western" %)
15092 Date
15093 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15094 (((
15095 (% class="western" %)
15096 Date
15097 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15098 (((
15099 (% class="western" %)
15100 Date when the stat occurred. Format: yyyy-mm-dd
15101 )))
15102 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15103 (((
15104 (% class="western" %)
15105 Time
15106 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15107 (((
15108 (% class="western" %)
15109 Time
15110 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15111 (((
15112 (% class="western" %)
15113 Time of stat. Format: h:m:s (24 hour format)
15114 )))
15115 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15116 (((
15117 (% class="western" %)
15118 ResourceId
15119 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15120 (((
15121 (% class="western" %)
15122 int
15123 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15124 (((
15125 (% class="western" %)
15126 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send
15127
15128 (% class="western" %)
15129 PageTitle otherwise it will follow the process described in PageTitle.
15130 )))
15131 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15132 (((
15133 (% class="western" %)
15134 PageUrl
15135 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15136 (((
15137 (% class="western" %)
15138 string
15139 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15140 (((
15141 (% class="western" %)
15142 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.
15143 )))
15144 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15145 (((
15146 (% class="western" %)
15147 PageTitle
15148 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15149 (((
15150 (% class="western" %)
15151 string
15152 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15153 (((
15154 (% class="western" %)
15155 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.
15156
15157
15158 (% class="western" %)
15159 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.
15160 )))