Wiki source code of ONEcount API Documentation

Version 11.1 by Rayaan Ahmed on 2024/02/29 16:10

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 options to metric for an engagement
62 11. Add users data to Engagement
63 1. Segments
64 11. Get all Segments
65 11. Get specific segment by segment id
66 11. Add users to segment
67 11. Get all segment ids for a user
68
69 (% class="western" %)
70 **Accessing API**
71
72 (% class="western" %)
73 **REST API URL: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/||rel="nofollow" shape="rect" class="external-link"]]**
74
75 (% class="western" %)
76 **Appkey**: THIS WILL BE PROVIDED TO YOU
77
78
79 (% class="western" %)
80 Your HTTP requests to a REST API resource should contain the following information:
81
82 * (((
83 (% class="western" %)
84 An HTTP method GET, POST, PUT.
85 )))
86 * (((
87 (% class="western" %)
88 An Appkey sent as Appkey header in the http request to authenticate the request.
89 )))
90 * (((
91 (% class="western" %)
92 Resource name in the url (/resourcename)
93 )))
94 * (((
95 (% class="western" %)
96 Any JSON data or JSON files containing information needed for requests, such as updating a record with new information.
97 )))
98
99 (% class="western" %)
100 **General API Usage**
101
102 (% class="western" %)
103 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.
104
105 (% class="western" %)
106 For lookup, the parameter list will be part of the request url.
107
108
109 (% class="western" %)
110 **Response**
111
112 (% class="western" %)
113 API will output the response in a JSON format discussed below.
114
115 {{code language="yml" theme="RDark" title="Response"}}
116 {
117 "result": {
118 "success": "1",
119 "error": {
120 "code": "0",
121 "message": ""
122 }
123 },
124 "Users": {
125 "Id": "12562",
126 "PartnerId": "5467",
127 "Demo": {
128 "6": "Rayaan",
129 "7": "Ahmed"
130 }
131 }
132 }
133 {{/code}}
134
135
136 (% class="western" %)
137 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.
138
139
140 (% class="western" %)
141 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.
142
143 If the value of success is 1 then the response parameters of the called method will also be output.
144
145 (% class="western" %)
146 For (% class="StyledLeaf___StyledSpan-sc-129cvv1-0 hSAwv slate-bold" %)**GET **requests we can pass** limit **as parameter in URL.
147
148 === **COMPONENT: Users** ===
149
150 (% class="western" %)
151 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 JSON object will have those fields. If nothing is specified by default only UserId is returned.
152
153 (% class="western" %)
154 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.
155
156 (% class="western" %)
157 In this case the provided demographic information in users JSON 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.
158
159 (% class="western" %)
160 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.
161
162 (% class="western" %)
163 Return parameter will have the comma separated list of question Ids that is requested back from the API.
164
165 (% class="western" %)
166 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.
167
168
169 (% class="wrapped" %)
170 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
171 (((
172 (% class="western" %)
173 **Method**
174 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
175 (((
176 (% class="western" %)
177 **Url**
178 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
179 (((
180 (% class="western" %)
181 **Action**
182 )))
183 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
184 (((
185 (% class="western" %)
186 GET
187 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
188 (((
189 (% class="western" %)
190 /users
191 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
192 (((
193 (% class="western" %)
194 Get users data limiting 25.
195 )))
196 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
197 (((
198 (% class="western" %)
199 GET
200 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
201 (((
202 (% class="western" %)
203 /users/<ocid or ocid_hash>
204 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
205 (((
206 (% class="western" %)
207 Get data for user id 1. The user id can be a numeric value or a hash
208 )))
209 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
210 (((
211 (% class="western" %)
212 GET
213 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
214 (((
215 (% class="western" %)
216 /users/lookup?1=user1@email.com&return=1,2
217 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
218 (((
219 (% class="western" %)
220 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.
221
222 (% class="western" %)
223 Return parameter defines a CSV of question id that are requested back in response.
224 )))
225 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
226 (((
227 (% class="western" %)
228 POST
229 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
230 (((
231 (% class="western" %)
232 /users
233 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
234 (((
235 (% class="western" %)
236 Create a new users
237
238 (% class="western" %)
239 Parameters required to create the user needs to be sent as post data in JSON format. Below is the example of data
240 \\Example:
241
242 (% class="western" %)
243 {"Users":{"PartnerId":1,"Demo":{"1":"rayaan@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[],"Return":"4,5,1"}
244
245
246 (% class="western" %)
247 1) PartherId is required, this can be any integer value.
248
249 (% class="western" %)
250 2) Demo is required it contains JSON object of user demographic information key as demo id and value as actual information of user.
251
252 (% class="western" %)
253 3) DedupeColumn is required, this contains demo id as value, used to check duplicate user based on demo id.
254
255 (% class="western" %)
256 4) Transactions is required, If user does not have any transaction pass empty array if user has a transaction pass transaction JSON object. please refer transaction API body for JSON object.
257
258 )))
259 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
260 (((
261 (% class="western" %)
262 PUT
263 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
264 (((
265 (% class="western" %)
266 /users/1
267 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
268 (((
269 (% class="western" %)
270 Update user id 1. The user id can be a numeric value or a hash
271
272 (% class="western" %)
273 Parameters required to update the user needs to be sent as post data in JSON format.
274 )))
275 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
276 (((
277 (% class="western" %)
278 GET
279 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
280 (((
281 (% class="western" %)
282 /users/1/partners/2
283 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
284 (((
285 (% class="western" %)
286 Get user id 1 and partner id 2's ONEcount hash. The user id can be a numeric value or a hash.
287 )))
288 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
289 (((
290 (% class="western" %)
291 POST
292 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
293 (((
294 (% class="western" %)
295 /users/login
296 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
297 (((
298 (% class="western" %)
299 Check to see user exist with username/email and password.
300
301 (% class="western" %)
302 Parameters required to create JSON object with **u** as username, **e** as email and **p** as password and sent is as POST param.
303
304 (% class="western" %)
305 Example:
306
307 (% class="western" %)
308 {"u":"abc@one-count.com","e":"abc@one-count.com","p":"1234"}
309
310 (% class="western" %)
311 OR
312
313 (% class="western" %)
314 {"u":"abc@one-count.com","p":"1234"}
315
316 (% class="western" %)
317 OR
318
319 (% class="western" %)
320 {"e":"abc@one-count.com","p":"1234"}
321
322 (% class="western" %)
323 **OUTPUT** : Should get OCID of the user if it finds it otherwise get and error with msg user not found.
324 )))
325
326 (% id="HGETAllUsers" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
327 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Users(%%) ==
328
329 ----
330
331 ----
332
333 {{panel bgColor="#D3D3D3" width="100%"}}
334 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users
335 {{/panel}}
336
337 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
338
339 ----
340
341 (% 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}}
342
343 ==== Example ====
344
345 ----
346
347 (% style="color:#6b6b6b" %)Request
348
349 {{code language="php" theme="RDark" title="Get All Users Request"}}
350 <?php
351
352 $curl = curl_init();
353
354 curl_setopt_array($curl, array(
355 CURLOPT_URL => 'https://api.onecount.net/v2/users',
356 CURLOPT_RETURNTRANSFER => true,
357 CURLOPT_ENCODING => '',
358 CURLOPT_MAXREDIRS => 10,
359 CURLOPT_TIMEOUT => 0,
360 CURLOPT_FOLLOWLOCATION => true,
361 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
362 CURLOPT_CUSTOMREQUEST => 'GET',
363 CURLOPT_HTTPHEADER => array(
364 'Appkey: {{ONECOUNT API KEY}}'
365 ),
366 ));
367
368 $response = curl_exec($curl);
369
370 curl_close($curl);
371 echo $response;
372
373
374 {{/code}}
375
376
377 (% style="color:#6b6b6b" %)Response  200 OK
378
379 {{code language="yml" theme="RDark" collapse="true" title="Get All Users Response"}}
380 {
381 "result": {
382 "success": "1",
383 "error": {
384 "code": "",
385 "message": ""
386 }
387 },
388 "Users": [
389 {
390 "Id": 10,
391 "OCID_HASH": "309d0ba643ac9cf164fa7089db622444fb82bf031c79ebb97c8566d0b91a224c",
392 "Demo": {
393 "1": "ORISH+IMNG12373@gcnmedia.com",
394 "2": "user_26_2",
395 "3": "pass_262",
396 "4": "orish123"
397 }
398 },
399 {
400 "Id": 26,
401 "OCID_HASH": "362b0815ab579017802c0539fa30d45c46f2e357025756e3a998225aa2c3f123",
402 "Demo": {
403 "1": "ORISH+IMNG12374@gcnmedia.com",
404 "2": "user_82_2",
405 "3": "pass_822",
406 "4": "orish111"
407 }
408 },
409 {
410 "Id": 34,
411 "OCID_HASH": "508ae86cfa9185a59a855b6f0aaf1ef52e1895c7a7bd1ee01d1f7be82ea233d2",
412 "Demo": {
413 "1": "",
414 "2": "user_1405614567717",
415 "3": "",
416 "4": "sonish",
417 "5": "shrestha",
418 "6": "Test",
419 "7": "GCN",
420 "8": "Sterling",
421 "9": "Norwalk",
422 "10": "",
423 "11": "",
424 "12": "",
425 "13": "Nepa",
426 "14": "",
427 "15": ""
428 }
429 },
430 {
431 "Id": 42,
432 "OCID_HASH": "3fd11fb98076330290d14edd70265c273eaf5ad72e498fc9ac4f2b580a2f36cc",
433 "Demo": {
434 "1": "orish@gcnpublishing.com",
435 "2": "user_106_42",
436 "3": "f5a622347842b9384cae63bb998f2aa19aea2ebc43fa2f00800e9accd85a8dd1",
437 "4": "Orish",
438 "5": "Shrestha",
439 "6": "Director of Engineering",
440 "7": "ONEcount",
441 "8": "194 Main Street",
442 "9": "Suite 2NW",
443 "10": "Norwalk",
444 "11": "CT",
445 "12": "06851",
446 "13": "",
447 "15": "",
448 "106": "",
449 "114": "",
450 "130": "",
451 "138": "",
452 "146": "",
453 "234": "",
454 "242": "",
455 "250": ""
456 }
457 },
458 {
459 "Id": 50,
460 "OCID_HASH": "88d721f543c79f8ea718d9020897c9036d1d303099a649585f6d4c37e354c5d3",
461 "Demo": {
462 "1": "sundeep@gcnpublishing.com",
463 "2": "",
464 "3": "",
465 "4": "Sundeep",
466 "5": "Dangol",
467 "6": "Director of Integrations",
468 "7": "ONEcount",
469 "8": "194 Main Street",
470 "9": "Suite 2NW",
471 "10": "Norwalk",
472 "11": "CT",
473 "12": "06851",
474 "13": "",
475 "15": "",
476 "106": "",
477 "114": "",
478 "130": "",
479 "138": "",
480 "146": "",
481 "234": "",
482 "242": ""
483 }
484 },
485 {
486 "Id": 58,
487 "OCID_HASH": "c45f5d1d27364ee19973148d6c02999cbfbc8b2ca80f7655dd6a873b864eb211",
488 "Demo": {
489 "1": "sean@gcnpublishing.com",
490 "2": "user_106_34",
491 "3": "pass_10634",
492 "4": "Sean",
493 "5": "Fulton",
494 "6": "Vice 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 }
503 },
504 {
505 "Id": 66,
506 "OCID_HASH": "f037520f7af46301532a95b39d8fd8e607988afe3c7b67f086740e6676775bee",
507 "Demo": {
508 "1": "joanne@gcnpublishing.com",
509 "2": "user_106_2",
510 "3": "c55b18c5a4e475034ccc8cd14e132e1fd7e2aadcd8dcc625996ba51d145f160e",
511 "4": "Joanne",
512 "5": "Persico",
513 "6": "President",
514 "7": "ONEcount",
515 "8": "194 Main Street",
516 "9": "Suite 2NW",
517 "10": "Norwalk",
518 "11": "CT",
519 "12": "06851",
520 "13": "UNITED STATES",
521 "234": "",
522 "242": "",
523 "250": ""
524 }
525 },
526 {
527 "Id": 74,
528 "OCID_HASH": "abb8adfb275030ad96808967edea5003e3ed9da5965b6d8f4537597dff17af4f",
529 "Demo": {
530 "1": "melanie@gcnpublishing.com",
531 "2": "user_106_18",
532 "3": "pass_10618",
533 "4": "Melanie",
534 "5": "Mason",
535 "6": "Director of Customer Experience",
536 "7": "ONEcount",
537 "8": "194 Main Street",
538 "9": "Suite 2NW",
539 "10": "Norwalk",
540 "11": "CT",
541 "12": "06851",
542 "13": "UNITED STATES",
543 "14": "",
544 "15": "",
545 "106": "",
546 "114": "",
547 "130": "",
548 "138": "",
549 "146": "",
550 "154": "",
551 "162": "",
552 "170": "",
553 "178": "",
554 "186": "",
555 "202": "",
556 "218": "",
557 "226": "",
558 "234": "",
559 "242": "",
560 "250": ""
561 }
562 },
563 {
564 "Id": 82,
565 "OCID_HASH": "6b2635a195d46e9df53ec6069d198fa0fe26d26111c0b71b9bc39652935f6034",
566 "Demo": {
567 "1": "doug@gcnpublishing.com",
568 "2": "user_106_58",
569 "3": "pass_10658",
570 "4": "Doug",
571 "5": "LaFarge",
572 "7": "ONEcount",
573 "8": "194 Main Street",
574 "9": "Suite 2NW",
575 "10": "Norwalk",
576 "11": "CT",
577 "12": "06851",
578 "13": "UNITED STATES"
579 }
580 },
581 {
582 "Id": 90,
583 "OCID_HASH": "869434d36ef71f8244c5eacaac35cb87d9ee16f3c8bbeddaddb87869588deb52",
584 "Demo": {
585 "1": "subash@gcnpublishing.com",
586 "2": "user_106_50",
587 "3": "pass_10650",
588 "4": "Subash",
589 "5": "Tamang",
590 "7": "ONEcount",
591 "8": "194 Main Street",
592 "9": "Suite 2NW",
593 "10": "Norwalk",
594 "11": "CT",
595 "12": "06851",
596 "13": "UNITED STATES"
597 }
598 },
599 {
600 "Id": 98,
601 "OCID_HASH": "f46e4d07d8c2aede8e3f0b4d30cf984f9ce507147b75cff17315642d456d7cca",
602 "Demo": {
603 "1": "sonish@gcnpublishing.com",
604 "2": "user_106_10",
605 "3": "pass_10610",
606 "4": "Sonishs",
607 "5": "Shrestha",
608 "8": "334 Street",
609 "10": "Ashburn",
610 "11": "VA",
611 "12": "11118",
612 "13": "United States"
613 }
614 },
615 {
616 "Id": 162,
617 "OCID_HASH": "86616a428abeabe722079cb29ffd3b76341aa7895b2bd3579dfd89e01a737f0c",
618 "Demo": {
619 "1": "orish+1@gcnpublishing.com",
620 "2": "user_130_42",
621 "3": "pass_13042",
622 "4": "OrishGCN",
623 "5": "Shrestha",
624 "8": "123 street",
625 "10": "New Rochelle",
626 "11": "NY",
627 "12": "11111",
628 "13": "United States"
629 }
630 },
631 {
632 "Id": 170,
633 "OCID_HASH": "3fb40dbcd3c0ca47fd3a80f5a34290c68a2e7ff79d4d8f28b388677bea2df2ac",
634 "Demo": {
635 "1": "sundeep+1@gcnpublishing.com",
636 "2": "user_130_26",
637 "3": "pass_13026",
638 "4": "SundeepGCN",
639 "5": "Dangol",
640 "8": "456 Street",
641 "10": "Bridgeport",
642 "11": "CT",
643 "12": "11112",
644 "13": "United States"
645 }
646 },
647 {
648 "Id": 178,
649 "OCID_HASH": "ca72068a59896a3cec1faf52a4701d13b539039467cbe9d5d9b60b54e263040f",
650 "Demo": {
651 "1": "sean+1@gcnpublishing.com",
652 "2": "user_130_34",
653 "3": "pass_13034",
654 "4": "SeanGCN",
655 "5": "Fulton",
656 "8": "222 Street",
657 "10": "Norwalk",
658 "11": "CT",
659 "12": "11113",
660 "13": "United States"
661 }
662 },
663 {
664 "Id": 186,
665 "OCID_HASH": "4b643f02f3d30d0b6ae465b4d758a721574e798712c3d42bd5458a1fd5634243",
666 "Demo": {
667 "1": "joanne+1@gcnpublishing.com",
668 "2": "user_130_2",
669 "3": "pass_1302",
670 "4": "JoanneGCN",
671 "5": "Persico",
672 "8": "222 Street",
673 "10": "Norwalk",
674 "11": "CT",
675 "12": "11114",
676 "13": "United States"
677 }
678 },
679 {
680 "Id": 194,
681 "OCID_HASH": "d3200217585d2d954e0b55ee9ff1c939f265067420ff82c6e924dcdd71ccc960",
682 "Demo": {
683 "1": "melanie+1@gcnpublishing.com",
684 "2": "user_130_18",
685 "3": "pass_13018",
686 "4": "MelanieGCN",
687 "5": "Mason",
688 "6": "",
689 "7": "",
690 "8": "345 Street",
691 "9": "",
692 "10": "Norwalk",
693 "11": "CT",
694 "12": "11115",
695 "13": "United States",
696 "14": "",
697 "15": "",
698 "106": "",
699 "114": "",
700 "130": "",
701 "138": "",
702 "146": "",
703 "154": "",
704 "162": "",
705 "170": "",
706 "178": "",
707 "186": "",
708 "202": "",
709 "218": "",
710 "226": "",
711 "234": "",
712 "242": "",
713 "250": "",
714 "266": "01"
715 }
716 },
717 {
718 "Id": 202,
719 "OCID_HASH": "a7c7d5016322340c4394538d68f601a0720e70850091387114963aba0f1bae09",
720 "Demo": {
721 "1": "doug+1@gcnpublishing.com",
722 "2": "user_130_58",
723 "3": "pass_13058",
724 "4": "DougGCN",
725 "5": "La Farge",
726 "8": "849 Street",
727 "10": "Tuson",
728 "11": "AZ",
729 "12": "11116",
730 "13": "United States"
731 }
732 },
733 {
734 "Id": 210,
735 "OCID_HASH": "f0f0d59478e9a4aa9b0fad6ae5bfc4292a169f899135e8c4d16cada9e9dc267d",
736 "Demo": {
737 "1": "subash+1@gcnpublishing.com",
738 "2": "user_130_50",
739 "3": "pass_13050",
740 "4": "SubashGCN",
741 "5": "Tamang",
742 "8": "112 Street",
743 "10": "Herndon",
744 "11": "VA",
745 "12": "11117",
746 "13": "United States"
747 }
748 },
749 {
750 "Id": 218,
751 "OCID_HASH": "4939a3be6dfd79c715a1144d82815f2abe8e413d04e4311284a05610589ad87b",
752 "Demo": {
753 "1": "sonish+1@gcnpublishing.com",
754 "2": "user_130_10",
755 "3": "pass_13010",
756 "4": "SonishGCN",
757 "5": "Shrestha",
758 "8": "334 Street",
759 "10": "Reston",
760 "11": "VA",
761 "12": "11118",
762 "13": "United States"
763 }
764 },
765 {
766 "Id": 282,
767 "OCID_HASH": "44421a4b109b0f5eb412b29e0037df61aae9ea95003d73f0175e5d6db8c0f928",
768 "Demo": {
769 "1": "orish+11@gcnpublishing.com",
770 "2": "user_138_42",
771 "3": "pass_13842",
772 "4": "OrishGCN",
773 "5": "Shrestha",
774 "8": "123 street",
775 "10": "New Rochelle",
776 "11": "NY",
777 "12": "11111",
778 "13": "United States"
779 }
780 },
781 {
782 "Id": 290,
783 "OCID_HASH": "971c357d4808224595f83a30bba9f05d1118bd7fd4f1d51160cad57dfd6b2137",
784 "Demo": {
785 "1": "sundeep+11@gcnpublishing.com",
786 "2": "user_138_26",
787 "3": "pass_13826",
788 "4": "SundeepGCN",
789 "5": "Dangol",
790 "8": "456 Street",
791 "10": "Bridgeport",
792 "11": "CT",
793 "12": "11112",
794 "13": "United States"
795 }
796 },
797 {
798 "Id": 298,
799 "OCID_HASH": "4fa0426afe48ee79602e9c47dda1987797b1983ecaa5975a09885ac4480f5033",
800 "Demo": {
801 "1": "sean+11@gcnpublishing.com",
802 "2": "user_138_34",
803 "3": "pass_13834",
804 "4": "SeanGCN",
805 "5": "Fulton",
806 "8": "222 Street",
807 "10": "Norwalk",
808 "11": "CT",
809 "12": "11113",
810 "13": "United States"
811 }
812 },
813 {
814 "Id": 306,
815 "OCID_HASH": "67037db60fea235ebcb48fae4eeef08a4b33c2f8860944925b615e602ba7a6e1",
816 "Demo": {
817 "1": "joanne+11@gcnpublishing.com",
818 "2": "user_138_2",
819 "3": "pass_1382",
820 "4": "JoanneGCN",
821 "5": "Persico",
822 "8": "222 Street",
823 "10": "Norwalk",
824 "11": "CT",
825 "12": "11114",
826 "13": "United States"
827 }
828 },
829 {
830 "Id": 314,
831 "OCID_HASH": "6421cab33907111f038ead8fc0aeafed785642e9b92cda544b2048f90ada259f",
832 "Demo": {
833 "1": "melanie+11@gcnpublishing.com",
834 "2": "user_138_18",
835 "3": "pass_13818",
836 "4": "MelanieGCN",
837 "5": "Mason",
838 "8": "345 Street",
839 "10": "Norwalk",
840 "11": "CT",
841 "12": "11115",
842 "13": "United States"
843 }
844 },
845 {
846 "Id": 322,
847 "OCID_HASH": "334b6f64d387b9a45b8ac7e0901d438cace133899b608c03a0f8c1f706882958",
848 "Demo": {
849 "1": "doug+11@gcnpublishing.com",
850 "2": "user_138_58",
851 "3": "pass_13858",
852 "4": "DougGCN",
853 "5": "La Farge",
854 "8": "849 Street",
855 "10": "Tuson",
856 "11": "AZ",
857 "12": "11116",
858 "13": "United States"
859 }
860 }
861 ]
862 }
863 {{/code}}
864
865
866 (% id="HGETspecificUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
867 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific User(%%) ==
868
869 ----
870
871 {{panel bgColor="#D3D3D3" width="100%"}}
872 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color:#212121" %)~{~{OCID}}
873 {{/panel}}
874
875 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
876
877 ----
878
879 (% 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}}
880
881 ==== Example ====
882
883 ----
884
885 (% style="color:#6b6b6b" %)Request
886
887 {{code language="php" theme="RDark" title="Get specific User Request"}}
888 <?php
889
890 $curl = curl_init();
891
892 curl_setopt_array($curl, array(
893 CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}',
894 CURLOPT_RETURNTRANSFER => true,
895 CURLOPT_ENCODING => '',
896 CURLOPT_MAXREDIRS => 10,
897 CURLOPT_TIMEOUT => 0,
898 CURLOPT_FOLLOWLOCATION => true,
899 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
900 CURLOPT_CUSTOMREQUEST => 'GET',
901 CURLOPT_HTTPHEADER => array(
902 'Appkey: {{ONECOUNT API KEY}}'
903 ),
904 ));
905
906 $response = curl_exec($curl);
907
908 curl_close($curl);
909 echo $response;
910 {{/code}}
911
912
913 (% style="color:#6b6b6b" %)Response  200 OK
914
915 {{code language="yml" theme="RDark" collapse="true" title="Get specific user Response"}}
916 {
917 "result": {
918 "success": "1",
919 "error": {
920 "code": "",
921 "message": ""
922 }
923 },
924 "Users": [
925 {
926 "Id": 8418,
927 "PartnerId": null,
928 "OCID_HASH": "7eedae58c56e97e79a9d42e85e7ef6e252563e60e92bd6d9ac7b7be748ffa823",
929 "Demo": {
930 "1": "",
931 "2": "user_242_5634",
932 "3": "pass_2425634",
933 "4": "Stuart",
934 "5": "Allen",
935 "6": "Pub",
936 "7": "Latinfinance",
937 "9": "2121 Ponce de Leon Blvd",
938 "10": "Coral Gables",
939 "11": "Fl",
940 "12": "33134",
941 "13": "",
942 "15": "",
943 "106": "",
944 "114": "",
945 "122": "305-448-6593",
946 "130": "",
947 "138": "",
948 "146": "5434982f-a05b-5f1e-2176-4809012686bb"
949 },
950 "Products": [
951 34
952 ],
953 "Resources": [
954 114,
955 98
956 ],
957 "Segments": []
958 }
959 ]
960 }
961 {{/code}}
962
963
964 (% id="HPOSTUserLogin" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
965 == (% 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(%%) ==
966
967 ----
968
969 {{panel bgColor="#D3D3D3" width="100%"}}
970 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/login
971 {{/panel}}
972
973 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
974
975 ----
976
977 (% 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}}
978
979 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
980
981 ----
982
983 {{code language="yml" theme="RDark" title="Body"}}
984 {"e":"rayaan@one-count.com","p":"12345"}
985 {{/code}}
986
987 ==== Example ====
988
989 ----
990
991 (% style="color:#6b6b6b" %)Request
992
993 {{code language="php" theme="RDark" title="User login Request"}}
994 <?php
995
996 $curl = curl_init();
997
998 curl_setopt_array($curl, array(
999 CURLOPT_URL => 'https://api.onecount.net/v2/users/login',
1000 CURLOPT_RETURNTRANSFER => true,
1001 CURLOPT_ENCODING => '',
1002 CURLOPT_MAXREDIRS => 10,
1003 CURLOPT_TIMEOUT => 0,
1004 CURLOPT_FOLLOWLOCATION => true,
1005 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1006 CURLOPT_CUSTOMREQUEST => 'POST',
1007 CURLOPT_POSTFIELDS =>'{"e":"rayaan@one-count.com","p":"12345"}',
1008 CURLOPT_HTTPHEADER => array(
1009 'Appkey: {{ONECOUNT API KEY}}'
1010 ),
1011 ));
1012
1013 $response = curl_exec($curl);
1014
1015 curl_close($curl);
1016 echo $response;
1017 {{/code}}
1018
1019
1020 (% style="color:#6b6b6b" %)Response  200 OK
1021
1022 {{code language="yml" theme="RDark" collapse="true" title="Login user Response"}}
1023 {
1024 "result": {
1025 "success": "1",
1026 "error": {
1027 "code": "",
1028 "message": ""
1029 }
1030 },
1031 "Users": [
1032 "1845775"
1033 ]
1034 }
1035 {{/code}}
1036
1037
1038 (% id="HGETlookupUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1039 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup User(%%) ==
1040
1041 ----
1042
1043 {{panel bgColor="#D3D3D3" width="100%"}}
1044 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/lookup?2=user_242_6298&return=1,2,3,4
1045 {{/panel}}
1046
1047 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1048
1049 ----
1050
1051 (% 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}}
1052
1053 === (% style="color:#212121" %)Query Params(%%) ===
1054
1055 ----
1056
1057 (% 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(%%)
1058 (% 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
1059
1060 ==== Example ====
1061
1062 ----
1063
1064 (% style="color:#6b6b6b" %)Request
1065
1066 {{code language="php" theme="RDark" title="Lookup user Request"}}
1067 <?php
1068
1069 $curl = curl_init();
1070
1071 curl_setopt_array($curl, array(
1072 CURLOPT_URL => 'https://api.onecount.net/v2/users/lookup?2=user_242_6298&return=1,2,3,4',
1073 CURLOPT_RETURNTRANSFER => true,
1074 CURLOPT_ENCODING => '',
1075 CURLOPT_MAXREDIRS => 10,
1076 CURLOPT_TIMEOUT => 0,
1077 CURLOPT_FOLLOWLOCATION => true,
1078 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1079 CURLOPT_CUSTOMREQUEST => 'GET',
1080 CURLOPT_HTTPHEADER => array(
1081 'Appkey: {{ONECOUNT API KEY}}'
1082 ),
1083 ));
1084
1085 $response = curl_exec($curl);
1086
1087 curl_close($curl);
1088 echo $response;
1089 {{/code}}
1090
1091
1092 (% style="color:#6b6b6b" %)Response  200 OK
1093
1094 {{code language="yml" theme="RDark" collapse="true" title="Lookup user Response"}}
1095 {
1096 "result": {
1097 "success": "1",
1098 "error": {
1099 "code": "",
1100 "message": ""
1101 }
1102 },
1103 "Users": [
1104 {
1105 "Id": 9082,
1106 "PartnerId": null,
1107 "OCID_HASH": "c91c697bc764c64a78bb0bbc9a848ace303169fb17da177a06264d4ede2ca659",
1108 "Demo": {
1109 "2": "user_242_6298",
1110 "3": "pass_2426298"
1111 }
1112 }
1113 ]
1114 }
1115 {{/code}}
1116
1117
1118 (% id="HGETPartners" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1119 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Partners(%%) ==
1120
1121 ----
1122
1123 {{panel bgColor="#D3D3D3" width="100%"}}
1124 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/users/~{~{OCID}}/partners/~{~{Partner id}}
1125 {{/panel}}
1126
1127 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1128
1129 ----
1130
1131 (% 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}}
1132
1133 (% id="HPOSTCreateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1134 == (% 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(%%) ==
1135
1136 ----
1137
1138 {{panel bgColor="#D3D3D3" width="100%"}}
1139 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users
1140 {{/panel}}
1141
1142
1143 (% class="western" %)
1144 **POST method should be used to create users.**
1145
1146 (% class="wrapped" %)
1147 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1148 (((
1149 (% class="western" %)
1150 **Request**
1151 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1152 (((
1153 (% class="western" %)
1154 **Type**
1155 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1156 (((
1157 (% class="western" %)
1158 **Description**
1159 )))
1160 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1161 (((
1162 (% class="western" %)
1163 Users
1164 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1165 (((
1166 (% class="western" %)
1167 Users
1168 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1169 (((
1170 (% class="western" %)
1171 Users object that contains information about user to create. PartnerId Needs to be specified. PartnerId is any integer value.
1172 )))
1173 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1174 (((
1175 (% class="western" %)
1176 Transactions
1177 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1178 (((
1179 (% class="western" %)
1180 Transactions
1181 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1182 (((
1183 (% class="western" %)
1184 (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.
1185 )))
1186 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1187 (((
1188 (% class="western" %)
1189 DedupeColumns
1190 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1191 (((
1192 (% class="western" %)
1193 String
1194 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1195 (((
1196 (% class="western" %)
1197 CSV of question id's that should be considered to find duplicate.
1198 )))
1199 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1200 (((
1201 (% class="western" %)
1202 Return
1203 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1204 (((
1205 (% class="western" %)
1206 String
1207 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1208 (((
1209 (% class="western" %)
1210 CSV of ONEcount QuestionId's requested back in Users object in response.
1211 )))
1212
1213 (% class="wrapped" %)
1214 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1215 (((
1216 (% class="western" %)
1217 **Response**
1218 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1219 (((
1220 (% class="western" %)
1221 **Type**
1222 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1223 (((
1224 (% class="western" %)
1225 **Description**
1226 )))
1227 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1228 (((
1229 (% class="western" %)
1230 Users
1231 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
1232 (((
1233 (% class="western" style="text-align:left" %)
1234 Users
1235 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1236 (((
1237 (% class="western" %)
1238 Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned.
1239 )))
1240
1241 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1242
1243 ----
1244
1245 (% 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}}
1246
1247 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
1248
1249 ----
1250
1251 {{code language="yml" theme="RDark" title="Body"}}
1252 {"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}
1253 {{/code}}
1254
1255 ==== Example ====
1256
1257 ----
1258
1259 (% style="color:#6b6b6b" %)Request
1260
1261 {{code language="php" theme="RDark" title="Create User Request"}}
1262 <?php
1263
1264 $curl = curl_init();
1265
1266 curl_setopt_array($curl, array(
1267 CURLOPT_URL => 'https://api.onecount.net/v2/users',
1268 CURLOPT_RETURNTRANSFER => true,
1269 CURLOPT_ENCODING => '',
1270 CURLOPT_MAXREDIRS => 10,
1271 CURLOPT_TIMEOUT => 0,
1272 CURLOPT_FOLLOWLOCATION => true,
1273 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1274 CURLOPT_CUSTOMREQUEST => 'POST',
1275 CURLOPT_POSTFIELDS =>'{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan6@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}',
1276 CURLOPT_HTTPHEADER => array(
1277 'Appkey: {{ONECOUNT API KEY}}'
1278 ),
1279 ));
1280
1281 $response = curl_exec($curl);
1282
1283 curl_close($curl);
1284 echo $response;
1285 {{/code}}
1286
1287
1288 (% style="color:#6b6b6b" %)Response  200 OK
1289
1290 {{code language="yml" theme="RDark" collapse="true" title="Create user Response"}}
1291 {
1292 "result": {
1293 "success": "1",
1294 "error": {
1295 "code": "",
1296 "message": ""
1297 }
1298 },
1299 "Users": {
1300 "Id": 1845831
1301 }
1302 }
1303 {{/code}}
1304
1305
1306 (% id="HPUTUpdateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1307 == (% 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(%%) ==
1308
1309 ----
1310
1311 {{panel bgColor="#D3D3D3" width="100%"}}
1312 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/~{~{OCID(% class="nolink" %)}}
1313 {{/panel}}
1314
1315
1316 (% class="western" %)
1317 **PUT method should be used to update users.**
1318
1319 (% class="wrapped" %)
1320 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1321 (((
1322 (% class="western" %)
1323 **Request**
1324 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1325 (((
1326 (% class="western" %)
1327 **Type**
1328 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1329 (((
1330 (% class="western" %)
1331 **Description**
1332 )))
1333 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1334 (((
1335 (% class="western" %)
1336 Users
1337 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1338 (((
1339 (% class="western" %)
1340 Users
1341 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1342 (((
1343 (% class="western" %)
1344 Users object with update fields. Return property has CSV of questions id requested back in Users object.
1345 )))
1346 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1347 (((
1348 (% class="western" %)
1349 Return
1350 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1351 (((
1352 (% class="western" %)
1353 String
1354 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1355 (((
1356 (% class="western" %)
1357 CSV of ONEcount QuestionId's requested back in Users object in response
1358 )))
1359 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1360 (((
1361 (% class="western" %)
1362 RequestDate
1363 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1364 (((
1365 (% class="western" %)
1366 Date
1367 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1368 (((
1369 (% class="western" %)
1370 RequestDate to use for the demo update. If not provided current date will be used.
1371 )))
1372
1373 (% class="wrapped" %)
1374 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1375 (((
1376 (% class="western" %)
1377 **Response**
1378 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1379 (((
1380 (% class="western" %)
1381 **Type**
1382 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1383 (((
1384 (% class="western" %)
1385 **Description**
1386 )))
1387 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1388 (((
1389 (% class="western" %)
1390 Users
1391 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
1392 (((
1393 (% class="western" style="text-align:left" %)
1394 Users
1395 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1396 (((
1397 (% class="western" %)
1398 Updated user returned with the demo field requested in return parameter in json format.
1399 )))
1400
1401 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1402
1403 ----
1404
1405 (% 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}}
1406
1407 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
1408
1409 ----
1410
1411 {{code language="yml" theme="RDark" title="Body"}}
1412 {"Users":{"Demo":{"6":"title1"}}}
1413 {{/code}}
1414
1415 ==== Example ====
1416
1417 ----
1418
1419 (% style="color:#6b6b6b" %)Request
1420
1421 {{code language="php" theme="RDark" title="Update User Request"}}
1422 <?php
1423
1424 $curl = curl_init();
1425
1426 curl_setopt_array($curl, array(
1427 CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}',
1428 CURLOPT_RETURNTRANSFER => true,
1429 CURLOPT_ENCODING => '',
1430 CURLOPT_MAXREDIRS => 10,
1431 CURLOPT_TIMEOUT => 0,
1432 CURLOPT_FOLLOWLOCATION => true,
1433 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1434 CURLOPT_CUSTOMREQUEST => 'PUT',
1435 CURLOPT_POSTFIELDS =>'{"Users":{"Demo":{"6":"title"}}}',
1436 CURLOPT_HTTPHEADER => array(
1437 'Appkey: {{ONECOUNT API KEY}}'
1438 ),
1439 ));
1440
1441 $response = curl_exec($curl);
1442
1443 curl_close($curl);
1444 echo $response;
1445
1446
1447 {{/code}}
1448
1449
1450 (% style="color:#6b6b6b" %)Response  200 OK
1451
1452 {{code language="yml" theme="RDark" collapse="true" title="Update user Response"}}
1453 {
1454 "result": {
1455 "success": "1",
1456 "error": {
1457 "code": "",
1458 "message": ""
1459 }
1460 },
1461 "Users": [
1462 {
1463 "Id": 1845823,
1464 "OCID_HASH": "fccaa8dc7afadccc5882528d47b27c2bb53e2788dd0ac1fe170abef77a9c4d5b"
1465 }
1466 ]
1467 }
1468 {{/code}}
1469
1470
1471 (% id="HCOMPONENT:Questions" class="western" %)
1472 === **COMPONENT: Questions** ===
1473
1474 (% class="western" %)
1475 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).
1476
1477 (% class="western" %)
1478 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.
1479
1480 (% class="western" %)
1481 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)
1482
1483 (% class="western" %)
1484 There can be 6 types of questions:
1485
1486 (% class="wrapped" %)
1487 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1488 (((
1489 (% class="western" style="text-align:center" %)
1490 **Type**
1491 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1492 (((
1493 (% class="western" %)
1494 **Description**
1495 )))
1496 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1497 (((
1498 (% class="western" style="text-align:center" %)
1499 0
1500 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1501 (((
1502 (% class="western" %)
1503 Text type questions or short response type question. The response length needs to be less than 255 characters.
1504 )))
1505 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1506 (((
1507 (% class="western" style="text-align:center" %)
1508 1
1509 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1510 (((
1511 (% class="western" %)
1512 Textarea type question or long response type question.
1513 )))
1514 |(% style="text-align:left; vertical-align:top" %)(((
1515 (% style="text-align: left;vertical-align: top;" %)
1516 (((
1517 (% class="western" style="text-align:center" %)
1518 2
1519 )))
1520
1521 (((
1522
1523 )))
1524 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1525 (((
1526 (% class="western" %)
1527 Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *.
1528 )))
1529 |(% style="text-align:left; vertical-align:top" %) 3|(% style="text-align:left; vertical-align:top" %)Numeric type question.
1530 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1531 (((
1532 (% class="western" style="text-align:center" %)
1533 4
1534 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1535 (((
1536 (% class="western" %)
1537 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.
1538 )))
1539 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1540 (((
1541 (% class="western" style="text-align:center" %)
1542 5
1543 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1544 (((
1545 (% class="western" %)
1546 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.
1547 )))
1548 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1549 (((
1550 (% class="western" style="text-align:center" %)
1551 6
1552 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1553 (((
1554 (% class="western" %)
1555 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.
1556 )))
1557 |(% style="text-align:left; vertical-align:top" %) 7  |(% style="text-align:left; vertical-align:top" %)Date type question.
1558
1559 (% class="wrapped" %)
1560 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1561 (((
1562 (% class="western" %)
1563 **Method**
1564 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1565 (((
1566 (% class="western" %)
1567 **Url**
1568 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1569 (((
1570 (% class="western" %)
1571 **Action**
1572 )))
1573 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1574 (((
1575 (% class="western" %)
1576 GET
1577 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1578 (((
1579 (% class="western" %)
1580 /questions
1581 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1582 (((
1583 (% class="western" %)
1584 List all questions
1585 )))
1586 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1587 (((
1588 (% class="western" %)
1589 GET
1590 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1591 (((
1592 (% class="western" %)
1593 /questions/1
1594 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1595 (((
1596 (% class="western" %)
1597 Returns question id 1
1598 )))
1599 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1600 (((
1601 (% class="western" %)
1602 GET
1603 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1604 (((
1605 (% class="western" %)
1606 /questions/lookup?Text=Email
1607 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1608 (((
1609 (% class="western" %)
1610 Returns all questions with “Email" in question text
1611 )))
1612 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1613 (((
1614 (% class="western" %)
1615 POST
1616 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1617 (((
1618 (% class="western" %)
1619 /questions
1620 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1621 (((
1622 (% class="western" %)
1623 Create a new question
1624
1625 (% class="western" %)
1626 JSON of the Questions type object needs to be sent as post data. Id field should not be sent.
1627 )))
1628 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1629 (((
1630 (% class="western" %)
1631 PUT
1632 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1633 (((
1634 (% class="western" %)
1635 /questions
1636 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
1637 (((
1638 (% class="western" %)
1639 Update a question
1640
1641 (% class="western" %)
1642 JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update.
1643
1644 (% class="western" %)
1645 NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body.
1646 )))
1647
1648 (% id="HGETAllQuestions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
1649 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Questions(%%) ==
1650
1651 ----
1652
1653 ----
1654
1655 {{panel bgColor="#D3D3D3" width="100%"}}
1656 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/(% style="color:#212121" %)questions
1657 {{/panel}}
1658
1659 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
1660
1661 ----
1662
1663 (% 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}}
1664
1665 ==== Example ====
1666
1667 ----
1668
1669 (% style="color:#6b6b6b" %)Request
1670
1671 {{code language="php" theme="RDark" title="Get All Questions Request"}}
1672 <?php
1673
1674 $curl = curl_init();
1675
1676 curl_setopt_array($curl, array(
1677 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
1678 CURLOPT_RETURNTRANSFER => true,
1679 CURLOPT_ENCODING => '',
1680 CURLOPT_MAXREDIRS => 10,
1681 CURLOPT_TIMEOUT => 0,
1682 CURLOPT_FOLLOWLOCATION => true,
1683 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
1684 CURLOPT_CUSTOMREQUEST => 'GET',
1685 CURLOPT_HTTPHEADER => array(
1686 'Appkey: 70856f83422599c8e36191098f1536ae06e7bbcd'
1687 ),
1688 ));
1689
1690 $response = curl_exec($curl);
1691
1692 curl_close($curl);
1693 echo $response;
1694
1695
1696
1697 {{/code}}
1698
1699
1700 (% style="color:#6b6b6b" %)Response  200 OK
1701
1702 {{code language="yml" theme="RDark" collapse="true" title="Get All Questions Response"}}
1703 {
1704 "result": {
1705 "success": "1",
1706 "error": {
1707 "code": "",
1708 "message": ""
1709 }
1710 },
1711 "Questions": [
1712 {
1713 "Id": 1,
1714 "Text": "Email",
1715 "Type": "0",
1716 "Alias": "Email"
1717 },
1718 {
1719 "Id": 2,
1720 "Text": "Username",
1721 "Type": "0",
1722 "Alias": "Username"
1723 },
1724 {
1725 "Id": 3,
1726 "Text": "Password",
1727 "Type": "2",
1728 "Alias": "Password"
1729 },
1730 {
1731 "Id": 4,
1732 "Text": "First Name",
1733 "Type": "0",
1734 "Alias": "First Name"
1735 },
1736 {
1737 "Id": 5,
1738 "Text": "Last Name",
1739 "Type": "0",
1740 "Alias": "Last Name"
1741 },
1742 {
1743 "Id": 6,
1744 "Text": "Title",
1745 "Type": "0",
1746 "Alias": "Title"
1747 },
1748 {
1749 "Id": 7,
1750 "Text": "Company Name",
1751 "Type": "0",
1752 "Alias": "Company Name"
1753 },
1754 {
1755 "Id": 8,
1756 "Text": "Company Address",
1757 "Type": "0",
1758 "Alias": "Company Address"
1759 },
1760 {
1761 "Id": 9,
1762 "Text": "Address2",
1763 "Type": "0",
1764 "Alias": "Address2"
1765 },
1766 {
1767 "Id": 10,
1768 "Text": "City",
1769 "Type": "0",
1770 "Alias": "City"
1771 },
1772 {
1773 "Id": 11,
1774 "Text": "State/Province",
1775 "Type": "4",
1776 "Alias": "State/Province",
1777 "Choices": [
1778 {
1779 "Id": 1554,
1780 "QuestionId": 11,
1781 "Text": "Select One",
1782 "Value": "",
1783 "Order": 1
1784 },
1785 {
1786 "Id": 1562,
1787 "QuestionId": 11,
1788 "Text": "Alabama",
1789 "Value": "AL",
1790 "Order": 2
1791 },
1792 {
1793 "Id": 1570,
1794 "QuestionId": 11,
1795 "Text": "Alaska",
1796 "Value": "AK",
1797 "Order": 3
1798 },
1799 {
1800 "Id": 1578,
1801 "QuestionId": 11,
1802 "Text": "Arizona",
1803 "Value": "AZ",
1804 "Order": 4
1805 },
1806 {
1807 "Id": 1586,
1808 "QuestionId": 11,
1809 "Text": "Arkansas",
1810 "Value": "AR",
1811 "Order": 5
1812 },
1813 {
1814 "Id": 1594,
1815 "QuestionId": 11,
1816 "Text": "California",
1817 "Value": "CA",
1818 "Order": 6
1819 },
1820 {
1821 "Id": 1602,
1822 "QuestionId": 11,
1823 "Text": "Colorado",
1824 "Value": "CO",
1825 "Order": 7
1826 },
1827 {
1828 "Id": 1610,
1829 "QuestionId": 11,
1830 "Text": "Connecticut",
1831 "Value": "CT",
1832 "Order": 8
1833 },
1834 {
1835 "Id": 1618,
1836 "QuestionId": 11,
1837 "Text": "Delaware",
1838 "Value": "DE",
1839 "Order": 9
1840 },
1841 {
1842 "Id": 1626,
1843 "QuestionId": 11,
1844 "Text": "District of Columbia",
1845 "Value": "DC",
1846 "Order": 10
1847 },
1848 {
1849 "Id": 1634,
1850 "QuestionId": 11,
1851 "Text": "Florida",
1852 "Value": "FL",
1853 "Order": 11
1854 },
1855 {
1856 "Id": 1642,
1857 "QuestionId": 11,
1858 "Text": "Georgia",
1859 "Value": "GA",
1860 "Order": 12
1861 },
1862 {
1863 "Id": 1650,
1864 "QuestionId": 11,
1865 "Text": "Hawaii",
1866 "Value": "HI",
1867 "Order": 13
1868 },
1869 {
1870 "Id": 1658,
1871 "QuestionId": 11,
1872 "Text": "Idaho",
1873 "Value": "ID",
1874 "Order": 14
1875 },
1876 {
1877 "Id": 1666,
1878 "QuestionId": 11,
1879 "Text": "Illinois",
1880 "Value": "IL",
1881 "Order": 15
1882 },
1883 {
1884 "Id": 1674,
1885 "QuestionId": 11,
1886 "Text": "Indiana",
1887 "Value": "IN",
1888 "Order": 16
1889 },
1890 {
1891 "Id": 1682,
1892 "QuestionId": 11,
1893 "Text": "Iowa",
1894 "Value": "IA",
1895 "Order": 17
1896 },
1897 {
1898 "Id": 1690,
1899 "QuestionId": 11,
1900 "Text": "Kansas",
1901 "Value": "KS",
1902 "Order": 18
1903 },
1904 {
1905 "Id": 1698,
1906 "QuestionId": 11,
1907 "Text": "Kentucky",
1908 "Value": "KY",
1909 "Order": 19
1910 },
1911 {
1912 "Id": 1706,
1913 "QuestionId": 11,
1914 "Text": "Louisiana",
1915 "Value": "LA",
1916 "Order": 20
1917 },
1918 {
1919 "Id": 1714,
1920 "QuestionId": 11,
1921 "Text": "Maine",
1922 "Value": "ME",
1923 "Order": 21
1924 },
1925 {
1926 "Id": 1722,
1927 "QuestionId": 11,
1928 "Text": "Maryland",
1929 "Value": "MD",
1930 "Order": 22
1931 },
1932 {
1933 "Id": 1730,
1934 "QuestionId": 11,
1935 "Text": "Massachusetts",
1936 "Value": "MA",
1937 "Order": 23
1938 },
1939 {
1940 "Id": 1738,
1941 "QuestionId": 11,
1942 "Text": "Michigan",
1943 "Value": "MI",
1944 "Order": 24
1945 },
1946 {
1947 "Id": 1746,
1948 "QuestionId": 11,
1949 "Text": "Minnesota",
1950 "Value": "MN",
1951 "Order": 25
1952 },
1953 {
1954 "Id": 1754,
1955 "QuestionId": 11,
1956 "Text": "Mississippi",
1957 "Value": "MS",
1958 "Order": 26
1959 },
1960 {
1961 "Id": 1762,
1962 "QuestionId": 11,
1963 "Text": "Missouri",
1964 "Value": "MO",
1965 "Order": 27
1966 },
1967 {
1968 "Id": 1770,
1969 "QuestionId": 11,
1970 "Text": "Montana",
1971 "Value": "MT",
1972 "Order": 28
1973 },
1974 {
1975 "Id": 1778,
1976 "QuestionId": 11,
1977 "Text": "Nebraska",
1978 "Value": "NE",
1979 "Order": 29
1980 },
1981 {
1982 "Id": 1786,
1983 "QuestionId": 11,
1984 "Text": "Nevada",
1985 "Value": "NV",
1986 "Order": 30
1987 },
1988 {
1989 "Id": 1794,
1990 "QuestionId": 11,
1991 "Text": "New Hampshire",
1992 "Value": "NH",
1993 "Order": 31
1994 },
1995 {
1996 "Id": 1802,
1997 "QuestionId": 11,
1998 "Text": "New Jersey",
1999 "Value": "NJ",
2000 "Order": 32
2001 },
2002 {
2003 "Id": 1810,
2004 "QuestionId": 11,
2005 "Text": "New Mexico",
2006 "Value": "NM",
2007 "Order": 33
2008 },
2009 {
2010 "Id": 1818,
2011 "QuestionId": 11,
2012 "Text": "New York",
2013 "Value": "NY",
2014 "Order": 34
2015 },
2016 {
2017 "Id": 1826,
2018 "QuestionId": 11,
2019 "Text": "North Carolina",
2020 "Value": "NC",
2021 "Order": 35
2022 },
2023 {
2024 "Id": 1834,
2025 "QuestionId": 11,
2026 "Text": "Ohio",
2027 "Value": "OH",
2028 "Order": 37
2029 },
2030 {
2031 "Id": 1842,
2032 "QuestionId": 11,
2033 "Text": "Oklahoma",
2034 "Value": "OK",
2035 "Order": 38
2036 },
2037 {
2038 "Id": 1850,
2039 "QuestionId": 11,
2040 "Text": "Oregon",
2041 "Value": "OR",
2042 "Order": 39
2043 },
2044 {
2045 "Id": 1858,
2046 "QuestionId": 11,
2047 "Text": "Pennsylvania",
2048 "Value": "PA",
2049 "Order": 40
2050 },
2051 {
2052 "Id": 1866,
2053 "QuestionId": 11,
2054 "Text": "Rhode Island",
2055 "Value": "RI",
2056 "Order": 41
2057 },
2058 {
2059 "Id": 1874,
2060 "QuestionId": 11,
2061 "Text": "South Carolina",
2062 "Value": "SC",
2063 "Order": 42
2064 },
2065 {
2066 "Id": 1882,
2067 "QuestionId": 11,
2068 "Text": "South Dakota",
2069 "Value": "SD",
2070 "Order": 43
2071 },
2072 {
2073 "Id": 1890,
2074 "QuestionId": 11,
2075 "Text": "Tennessee",
2076 "Value": "TN",
2077 "Order": 44
2078 },
2079 {
2080 "Id": 1898,
2081 "QuestionId": 11,
2082 "Text": "Texas",
2083 "Value": "TX",
2084 "Order": 45
2085 },
2086 {
2087 "Id": 1906,
2088 "QuestionId": 11,
2089 "Text": "Utah",
2090 "Value": "UT",
2091 "Order": 46
2092 },
2093 {
2094 "Id": 1914,
2095 "QuestionId": 11,
2096 "Text": "Vermont",
2097 "Value": "VT",
2098 "Order": 47
2099 },
2100 {
2101 "Id": 1922,
2102 "QuestionId": 11,
2103 "Text": "Virginia",
2104 "Value": "VA",
2105 "Order": 48
2106 },
2107 {
2108 "Id": 1930,
2109 "QuestionId": 11,
2110 "Text": "Washington",
2111 "Value": "WA",
2112 "Order": 49
2113 },
2114 {
2115 "Id": 1938,
2116 "QuestionId": 11,
2117 "Text": "West Virginia",
2118 "Value": "WV",
2119 "Order": 50
2120 },
2121 {
2122 "Id": 1946,
2123 "QuestionId": 11,
2124 "Text": "Wisconsin",
2125 "Value": "WI",
2126 "Order": 51
2127 },
2128 {
2129 "Id": 1954,
2130 "QuestionId": 11,
2131 "Text": "Wyoming",
2132 "Value": "WY",
2133 "Order": 52
2134 },
2135 {
2136 "Id": 1962,
2137 "QuestionId": 11,
2138 "Text": "American Samoa",
2139 "Value": "AS",
2140 "Order": 53
2141 },
2142 {
2143 "Id": 1970,
2144 "QuestionId": 11,
2145 "Text": "North Dakota",
2146 "Value": "ND",
2147 "Order": 36
2148 },
2149 {
2150 "Id": 1978,
2151 "QuestionId": 11,
2152 "Text": "Federated States of Micronesia",
2153 "Value": "FM",
2154 "Order": 54
2155 },
2156 {
2157 "Id": 1986,
2158 "QuestionId": 11,
2159 "Text": "Guam",
2160 "Value": "GU",
2161 "Order": 55
2162 },
2163 {
2164 "Id": 1994,
2165 "QuestionId": 11,
2166 "Text": "Marshall Islands",
2167 "Value": "MH",
2168 "Order": 56
2169 },
2170 {
2171 "Id": 2002,
2172 "QuestionId": 11,
2173 "Text": "Northern Mariana Islands",
2174 "Value": "MP",
2175 "Order": 57
2176 },
2177 {
2178 "Id": 2010,
2179 "QuestionId": 11,
2180 "Text": "Palau",
2181 "Value": "PW",
2182 "Order": 58
2183 },
2184 {
2185 "Id": 2018,
2186 "QuestionId": 11,
2187 "Text": "Puerto Rico",
2188 "Value": "PR",
2189 "Order": 59
2190 },
2191 {
2192 "Id": 2026,
2193 "QuestionId": 11,
2194 "Text": "U.S. Virgin Islands",
2195 "Value": "VI",
2196 "Order": 60
2197 },
2198 {
2199 "Id": 2034,
2200 "QuestionId": 11,
2201 "Text": "Armed Forces Africa",
2202 "Value": "AE",
2203 "Order": 61
2204 },
2205 {
2206 "Id": 2042,
2207 "QuestionId": 11,
2208 "Text": "Armed Forces Americas (except Canada)",
2209 "Value": "AA",
2210 "Order": 62
2211 },
2212 {
2213 "Id": 2050,
2214 "QuestionId": 11,
2215 "Text": "Armed Forces Canada",
2216 "Value": "AE",
2217 "Order": 63
2218 },
2219 {
2220 "Id": 2058,
2221 "QuestionId": 11,
2222 "Text": "Armed Forces Europe",
2223 "Value": "AE",
2224 "Order": 64
2225 },
2226 {
2227 "Id": 2066,
2228 "QuestionId": 11,
2229 "Text": "Armed Forces Middle East",
2230 "Value": "AE",
2231 "Order": 65
2232 },
2233 {
2234 "Id": 2074,
2235 "QuestionId": 11,
2236 "Text": "Armed Forces Pacific",
2237 "Value": "AP",
2238 "Order": 66
2239 },
2240 {
2241 "Id": 2082,
2242 "QuestionId": 11,
2243 "Text": "Non-US/Not Applicable",
2244 "Value": "Non-US/Not Applicable",
2245 "Order": 67
2246 },
2247 {
2248 "Id": 2090,
2249 "QuestionId": 11,
2250 "Text": "Ontario",
2251 "Value": "Ontario",
2252 "Order": 68
2253 },
2254 {
2255 "Id": 2098,
2256 "QuestionId": 11,
2257 "Text": "Quebec",
2258 "Value": "Quebec",
2259 "Order": 69
2260 },
2261 {
2262 "Id": 2106,
2263 "QuestionId": 11,
2264 "Text": "Nova Scotia",
2265 "Value": "Nova Scotia",
2266 "Order": 70
2267 },
2268 {
2269 "Id": 2114,
2270 "QuestionId": 11,
2271 "Text": "New Brunswick",
2272 "Value": "New Brunswick",
2273 "Order": 71
2274 },
2275 {
2276 "Id": 2122,
2277 "QuestionId": 11,
2278 "Text": "Manitoba",
2279 "Value": "Manitoba",
2280 "Order": 72
2281 },
2282 {
2283 "Id": 2130,
2284 "QuestionId": 11,
2285 "Text": "Brittish Columbia",
2286 "Value": "Brittish Columbia",
2287 "Order": 73
2288 },
2289 {
2290 "Id": 2138,
2291 "QuestionId": 11,
2292 "Text": "Prince Edward Island",
2293 "Value": "Prince Edward Island",
2294 "Order": 74
2295 },
2296 {
2297 "Id": 2146,
2298 "QuestionId": 11,
2299 "Text": "Saskatchewan",
2300 "Value": "Saskatchewan",
2301 "Order": 75
2302 },
2303 {
2304 "Id": 2154,
2305 "QuestionId": 11,
2306 "Text": "Alberta",
2307 "Value": "Alberta",
2308 "Order": 76
2309 },
2310 {
2311 "Id": 2162,
2312 "QuestionId": 11,
2313 "Text": "Newfoundland and Labrador",
2314 "Value": "Newfoundland and Labrador",
2315 "Order": 77
2316 },
2317 {
2318 "Id": 2170,
2319 "QuestionId": 11,
2320 "Text": "British Columbia",
2321 "Value": "British Columbia",
2322 "Order": 78
2323 },
2324 {
2325 "Id": 2178,
2326 "QuestionId": 11,
2327 "Text": "Ontario",
2328 "Value": "ON",
2329 "Order": 79
2330 }
2331 ]
2332 },
2333 {
2334 "Id": 12,
2335 "Text": "Zip/Postal Code",
2336 "Type": "0",
2337 "Alias": "Zip/Postal Code"
2338 },
2339 {
2340 "Id": 13,
2341 "Text": "Country",
2342 "Type": "4",
2343 "Alias": "Country",
2344 "Choices": [
2345 {
2346 "Id": 2,
2347 "QuestionId": 13,
2348 "Text": "Select One",
2349 "Value": "",
2350 "Order": 1
2351 },
2352 {
2353 "Id": 10,
2354 "QuestionId": 13,
2355 "Text": "Afghanistan",
2356 "Value": "Afghanistan",
2357 "Order": 3
2358 },
2359 {
2360 "Id": 18,
2361 "QuestionId": 13,
2362 "Text": "Albania",
2363 "Value": "Albania",
2364 "Order": 4
2365 },
2366 {
2367 "Id": 26,
2368 "QuestionId": 13,
2369 "Text": "Algeria",
2370 "Value": "Algeria",
2371 "Order": 5
2372 },
2373 {
2374 "Id": 34,
2375 "QuestionId": 13,
2376 "Text": "Andorra",
2377 "Value": "Andorra",
2378 "Order": 6
2379 },
2380 {
2381 "Id": 42,
2382 "QuestionId": 13,
2383 "Text": "Angola",
2384 "Value": "Angola",
2385 "Order": 7
2386 },
2387 {
2388 "Id": 50,
2389 "QuestionId": 13,
2390 "Text": "Antigua and Barbuda",
2391 "Value": "Antigua and Barbuda",
2392 "Order": 8
2393 },
2394 {
2395 "Id": 58,
2396 "QuestionId": 13,
2397 "Text": "Argentina",
2398 "Value": "Argentina",
2399 "Order": 9
2400 },
2401 {
2402 "Id": 66,
2403 "QuestionId": 13,
2404 "Text": "Armenia",
2405 "Value": "Armenia",
2406 "Order": 10
2407 },
2408 {
2409 "Id": 74,
2410 "QuestionId": 13,
2411 "Text": "Australia",
2412 "Value": "Australia",
2413 "Order": 11
2414 },
2415 {
2416 "Id": 82,
2417 "QuestionId": 13,
2418 "Text": "Austria",
2419 "Value": "Austria",
2420 "Order": 12
2421 },
2422 {
2423 "Id": 90,
2424 "QuestionId": 13,
2425 "Text": "Azerbaijan",
2426 "Value": "Azerbaijan",
2427 "Order": 13
2428 },
2429 {
2430 "Id": 98,
2431 "QuestionId": 13,
2432 "Text": "Bahamas",
2433 "Value": "Bahamas",
2434 "Order": 14
2435 },
2436 {
2437 "Id": 106,
2438 "QuestionId": 13,
2439 "Text": "Bahrain",
2440 "Value": "Bahrain",
2441 "Order": 15
2442 },
2443 {
2444 "Id": 114,
2445 "QuestionId": 13,
2446 "Text": "Bangladesh",
2447 "Value": "Bangladesh",
2448 "Order": 16
2449 },
2450 {
2451 "Id": 122,
2452 "QuestionId": 13,
2453 "Text": "Barbados",
2454 "Value": "Barbados",
2455 "Order": 17
2456 },
2457 {
2458 "Id": 130,
2459 "QuestionId": 13,
2460 "Text": "Belarus",
2461 "Value": "Belarus",
2462 "Order": 18
2463 },
2464 {
2465 "Id": 138,
2466 "QuestionId": 13,
2467 "Text": "Belgium",
2468 "Value": "Belgium",
2469 "Order": 19
2470 },
2471 {
2472 "Id": 146,
2473 "QuestionId": 13,
2474 "Text": "Belize",
2475 "Value": "Belize",
2476 "Order": 20
2477 },
2478 {
2479 "Id": 154,
2480 "QuestionId": 13,
2481 "Text": "Benin",
2482 "Value": "Benin",
2483 "Order": 21
2484 },
2485 {
2486 "Id": 162,
2487 "QuestionId": 13,
2488 "Text": "Bhutan",
2489 "Value": "Bhutan",
2490 "Order": 22
2491 },
2492 {
2493 "Id": 170,
2494 "QuestionId": 13,
2495 "Text": "Bolivia",
2496 "Value": "Bolivia",
2497 "Order": 23
2498 },
2499 {
2500 "Id": 178,
2501 "QuestionId": 13,
2502 "Text": "Bosnia and Herzegovina",
2503 "Value": "Bosnia and Herzegovina",
2504 "Order": 24
2505 },
2506 {
2507 "Id": 186,
2508 "QuestionId": 13,
2509 "Text": "Botswana",
2510 "Value": "Botswana",
2511 "Order": 25
2512 },
2513 {
2514 "Id": 194,
2515 "QuestionId": 13,
2516 "Text": "Brazil",
2517 "Value": "Brazil",
2518 "Order": 26
2519 },
2520 {
2521 "Id": 202,
2522 "QuestionId": 13,
2523 "Text": "Brunei",
2524 "Value": "Brunei",
2525 "Order": 27
2526 },
2527 {
2528 "Id": 210,
2529 "QuestionId": 13,
2530 "Text": "Bulgaria",
2531 "Value": "Bulgaria",
2532 "Order": 28
2533 },
2534 {
2535 "Id": 218,
2536 "QuestionId": 13,
2537 "Text": "Burkina Faso",
2538 "Value": "Burkina Faso",
2539 "Order": 29
2540 },
2541 {
2542 "Id": 226,
2543 "QuestionId": 13,
2544 "Text": "Burundi",
2545 "Value": "Burundi",
2546 "Order": 30
2547 },
2548 {
2549 "Id": 234,
2550 "QuestionId": 13,
2551 "Text": "Cambodia",
2552 "Value": "Cambodia",
2553 "Order": 31
2554 },
2555 {
2556 "Id": 242,
2557 "QuestionId": 13,
2558 "Text": "Cameroon",
2559 "Value": "Cameroon",
2560 "Order": 32
2561 },
2562 {
2563 "Id": 250,
2564 "QuestionId": 13,
2565 "Text": "Canada",
2566 "Value": "Canada",
2567 "Order": 33
2568 },
2569 {
2570 "Id": 258,
2571 "QuestionId": 13,
2572 "Text": "Cape Verde",
2573 "Value": "Cape Verde",
2574 "Order": 34
2575 },
2576 {
2577 "Id": 266,
2578 "QuestionId": 13,
2579 "Text": "Central African Republic",
2580 "Value": "Central African Republic",
2581 "Order": 35
2582 },
2583 {
2584 "Id": 274,
2585 "QuestionId": 13,
2586 "Text": "Chad",
2587 "Value": "Chad",
2588 "Order": 36
2589 },
2590 {
2591 "Id": 282,
2592 "QuestionId": 13,
2593 "Text": "Chile",
2594 "Value": "Chile",
2595 "Order": 37
2596 },
2597 {
2598 "Id": 290,
2599 "QuestionId": 13,
2600 "Text": "China",
2601 "Value": "China",
2602 "Order": 38
2603 },
2604 {
2605 "Id": 298,
2606 "QuestionId": 13,
2607 "Text": "Colombia",
2608 "Value": "Colombia",
2609 "Order": 39
2610 },
2611 {
2612 "Id": 306,
2613 "QuestionId": 13,
2614 "Text": "Comoros",
2615 "Value": "Comoros",
2616 "Order": 40
2617 },
2618 {
2619 "Id": 314,
2620 "QuestionId": 13,
2621 "Text": "Congo (Brazzaville)",
2622 "Value": "Congo (Brazzaville)",
2623 "Order": 41
2624 },
2625 {
2626 "Id": 322,
2627 "QuestionId": 13,
2628 "Text": "Congo",
2629 "Value": "Congo",
2630 "Order": 42
2631 },
2632 {
2633 "Id": 330,
2634 "QuestionId": 13,
2635 "Text": "Costa Rica",
2636 "Value": "Costa Rica",
2637 "Order": 43
2638 },
2639 {
2640 "Id": 338,
2641 "QuestionId": 13,
2642 "Text": "Cote d'Ivoire",
2643 "Value": "Cote d'Ivoire",
2644 "Order": 44
2645 },
2646 {
2647 "Id": 346,
2648 "QuestionId": 13,
2649 "Text": "Croatia",
2650 "Value": "Croatia",
2651 "Order": 45
2652 },
2653 {
2654 "Id": 354,
2655 "QuestionId": 13,
2656 "Text": "Cuba",
2657 "Value": "Cuba",
2658 "Order": 46
2659 },
2660 {
2661 "Id": 362,
2662 "QuestionId": 13,
2663 "Text": "Cyprus",
2664 "Value": "Cyprus",
2665 "Order": 47
2666 },
2667 {
2668 "Id": 370,
2669 "QuestionId": 13,
2670 "Text": "Czech Republic",
2671 "Value": "Czech Republic",
2672 "Order": 48
2673 },
2674 {
2675 "Id": 378,
2676 "QuestionId": 13,
2677 "Text": "Denmark",
2678 "Value": "Denmark",
2679 "Order": 49
2680 },
2681 {
2682 "Id": 386,
2683 "QuestionId": 13,
2684 "Text": "Djibouti",
2685 "Value": "Djibouti",
2686 "Order": 50
2687 },
2688 {
2689 "Id": 394,
2690 "QuestionId": 13,
2691 "Text": "Dominica",
2692 "Value": "Dominica",
2693 "Order": 51
2694 },
2695 {
2696 "Id": 402,
2697 "QuestionId": 13,
2698 "Text": "Dominican Republic",
2699 "Value": "Dominican Republic",
2700 "Order": 52
2701 },
2702 {
2703 "Id": 410,
2704 "QuestionId": 13,
2705 "Text": "East Timor",
2706 "Value": "East Timor",
2707 "Order": 53
2708 },
2709 {
2710 "Id": 418,
2711 "QuestionId": 13,
2712 "Text": "Ecuador",
2713 "Value": "Ecuador",
2714 "Order": 54
2715 },
2716 {
2717 "Id": 426,
2718 "QuestionId": 13,
2719 "Text": "Egypt",
2720 "Value": "Egypt",
2721 "Order": 55
2722 },
2723 {
2724 "Id": 434,
2725 "QuestionId": 13,
2726 "Text": "El Salvador",
2727 "Value": "El Salvador",
2728 "Order": 56
2729 },
2730 {
2731 "Id": 442,
2732 "QuestionId": 13,
2733 "Text": "Equatorial Guinea",
2734 "Value": "Equatorial Guinea",
2735 "Order": 57
2736 },
2737 {
2738 "Id": 450,
2739 "QuestionId": 13,
2740 "Text": "Eritrea",
2741 "Value": "Eritrea",
2742 "Order": 58
2743 },
2744 {
2745 "Id": 458,
2746 "QuestionId": 13,
2747 "Text": "Estonia",
2748 "Value": "Estonia",
2749 "Order": 59
2750 },
2751 {
2752 "Id": 466,
2753 "QuestionId": 13,
2754 "Text": "Ethiopia",
2755 "Value": "Ethiopia",
2756 "Order": 60
2757 },
2758 {
2759 "Id": 474,
2760 "QuestionId": 13,
2761 "Text": "Fiji",
2762 "Value": "Fiji",
2763 "Order": 61
2764 },
2765 {
2766 "Id": 482,
2767 "QuestionId": 13,
2768 "Text": "Finland",
2769 "Value": "Finland",
2770 "Order": 62
2771 },
2772 {
2773 "Id": 490,
2774 "QuestionId": 13,
2775 "Text": "France",
2776 "Value": "France",
2777 "Order": 63
2778 },
2779 {
2780 "Id": 498,
2781 "QuestionId": 13,
2782 "Text": "Gabon",
2783 "Value": "Gabon",
2784 "Order": 64
2785 },
2786 {
2787 "Id": 506,
2788 "QuestionId": 13,
2789 "Text": "Gambia, The",
2790 "Value": "Gambia, The",
2791 "Order": 65
2792 },
2793 {
2794 "Id": 514,
2795 "QuestionId": 13,
2796 "Text": "Georgia",
2797 "Value": "Georgia",
2798 "Order": 66
2799 },
2800 {
2801 "Id": 522,
2802 "QuestionId": 13,
2803 "Text": "Germany",
2804 "Value": "Germany",
2805 "Order": 67
2806 },
2807 {
2808 "Id": 530,
2809 "QuestionId": 13,
2810 "Text": "Ghana",
2811 "Value": "Ghana",
2812 "Order": 68
2813 },
2814 {
2815 "Id": 538,
2816 "QuestionId": 13,
2817 "Text": "Greece",
2818 "Value": "Greece",
2819 "Order": 69
2820 },
2821 {
2822 "Id": 546,
2823 "QuestionId": 13,
2824 "Text": "Grenada",
2825 "Value": "Grenada",
2826 "Order": 70
2827 },
2828 {
2829 "Id": 554,
2830 "QuestionId": 13,
2831 "Text": "Guatemala",
2832 "Value": "Guatemala",
2833 "Order": 71
2834 },
2835 {
2836 "Id": 562,
2837 "QuestionId": 13,
2838 "Text": "Guinea",
2839 "Value": "Guinea",
2840 "Order": 72
2841 },
2842 {
2843 "Id": 570,
2844 "QuestionId": 13,
2845 "Text": "Guinea-Bissau",
2846 "Value": "Guinea-Bissau",
2847 "Order": 73
2848 },
2849 {
2850 "Id": 578,
2851 "QuestionId": 13,
2852 "Text": "Guyana",
2853 "Value": "Guyana",
2854 "Order": 74
2855 },
2856 {
2857 "Id": 586,
2858 "QuestionId": 13,
2859 "Text": "Haiti",
2860 "Value": "Haiti",
2861 "Order": 75
2862 },
2863 {
2864 "Id": 594,
2865 "QuestionId": 13,
2866 "Text": "Honduras",
2867 "Value": "Honduras",
2868 "Order": 76
2869 },
2870 {
2871 "Id": 602,
2872 "QuestionId": 13,
2873 "Text": "Hungary",
2874 "Value": "Hungary",
2875 "Order": 77
2876 },
2877 {
2878 "Id": 610,
2879 "QuestionId": 13,
2880 "Text": "Iceland",
2881 "Value": "Iceland",
2882 "Order": 78
2883 },
2884 {
2885 "Id": 618,
2886 "QuestionId": 13,
2887 "Text": "India",
2888 "Value": "India",
2889 "Order": 79
2890 },
2891 {
2892 "Id": 626,
2893 "QuestionId": 13,
2894 "Text": "Indonesia",
2895 "Value": "Indonesia",
2896 "Order": 80
2897 },
2898 {
2899 "Id": 634,
2900 "QuestionId": 13,
2901 "Text": "Iran",
2902 "Value": "Iran",
2903 "Order": 81
2904 },
2905 {
2906 "Id": 642,
2907 "QuestionId": 13,
2908 "Text": "Iraq",
2909 "Value": "Iraq",
2910 "Order": 82
2911 },
2912 {
2913 "Id": 650,
2914 "QuestionId": 13,
2915 "Text": "Ireland",
2916 "Value": "Ireland",
2917 "Order": 83
2918 },
2919 {
2920 "Id": 658,
2921 "QuestionId": 13,
2922 "Text": "Israel",
2923 "Value": "Israel",
2924 "Order": 84
2925 },
2926 {
2927 "Id": 666,
2928 "QuestionId": 13,
2929 "Text": "Italy",
2930 "Value": "Italy",
2931 "Order": 85
2932 },
2933 {
2934 "Id": 674,
2935 "QuestionId": 13,
2936 "Text": "Jamaica",
2937 "Value": "Jamaica",
2938 "Order": 86
2939 },
2940 {
2941 "Id": 682,
2942 "QuestionId": 13,
2943 "Text": "Japan",
2944 "Value": "Japan",
2945 "Order": 87
2946 },
2947 {
2948 "Id": 690,
2949 "QuestionId": 13,
2950 "Text": "Jordan",
2951 "Value": "Jordan",
2952 "Order": 88
2953 },
2954 {
2955 "Id": 698,
2956 "QuestionId": 13,
2957 "Text": "Kazakhstan",
2958 "Value": "Kazakhstan",
2959 "Order": 89
2960 },
2961 {
2962 "Id": 706,
2963 "QuestionId": 13,
2964 "Text": "Kenya",
2965 "Value": "Kenya",
2966 "Order": 90
2967 },
2968 {
2969 "Id": 714,
2970 "QuestionId": 13,
2971 "Text": "Kiribati",
2972 "Value": "Kiribati",
2973 "Order": 91
2974 },
2975 {
2976 "Id": 722,
2977 "QuestionId": 13,
2978 "Text": "Korea, North",
2979 "Value": "Korea, North",
2980 "Order": 92
2981 },
2982 {
2983 "Id": 730,
2984 "QuestionId": 13,
2985 "Text": "Korea, South",
2986 "Value": "Korea, South",
2987 "Order": 93
2988 },
2989 {
2990 "Id": 738,
2991 "QuestionId": 13,
2992 "Text": "Kuwait",
2993 "Value": "Kuwait",
2994 "Order": 94
2995 },
2996 {
2997 "Id": 746,
2998 "QuestionId": 13,
2999 "Text": "Kyrgyzstan",
3000 "Value": "Kyrgyzstan",
3001 "Order": 95
3002 },
3003 {
3004 "Id": 754,
3005 "QuestionId": 13,
3006 "Text": "Laos",
3007 "Value": "Laos",
3008 "Order": 96
3009 },
3010 {
3011 "Id": 762,
3012 "QuestionId": 13,
3013 "Text": "Latvia",
3014 "Value": "Latvia",
3015 "Order": 97
3016 },
3017 {
3018 "Id": 770,
3019 "QuestionId": 13,
3020 "Text": "Lebanon",
3021 "Value": "Lebanon",
3022 "Order": 98
3023 },
3024 {
3025 "Id": 778,
3026 "QuestionId": 13,
3027 "Text": "Lesotho",
3028 "Value": "Lesotho",
3029 "Order": 99
3030 },
3031 {
3032 "Id": 786,
3033 "QuestionId": 13,
3034 "Text": "Liberia",
3035 "Value": "Liberia",
3036 "Order": 100
3037 },
3038 {
3039 "Id": 794,
3040 "QuestionId": 13,
3041 "Text": "Libya",
3042 "Value": "Libya",
3043 "Order": 101
3044 },
3045 {
3046 "Id": 802,
3047 "QuestionId": 13,
3048 "Text": "Liechtenstein",
3049 "Value": "Liechtenstein",
3050 "Order": 102
3051 },
3052 {
3053 "Id": 810,
3054 "QuestionId": 13,
3055 "Text": "Lithuania",
3056 "Value": "Lithuania",
3057 "Order": 103
3058 },
3059 {
3060 "Id": 818,
3061 "QuestionId": 13,
3062 "Text": "Luxembourg",
3063 "Value": "Luxembourg",
3064 "Order": 104
3065 },
3066 {
3067 "Id": 826,
3068 "QuestionId": 13,
3069 "Text": "Macedonia",
3070 "Value": "Macedonia",
3071 "Order": 105
3072 },
3073 {
3074 "Id": 834,
3075 "QuestionId": 13,
3076 "Text": "Madagascar",
3077 "Value": "Madagascar",
3078 "Order": 106
3079 },
3080 {
3081 "Id": 842,
3082 "QuestionId": 13,
3083 "Text": "Malawi",
3084 "Value": "Malawi",
3085 "Order": 107
3086 },
3087 {
3088 "Id": 850,
3089 "QuestionId": 13,
3090 "Text": "Malaysia",
3091 "Value": "Malaysia",
3092 "Order": 108
3093 },
3094 {
3095 "Id": 858,
3096 "QuestionId": 13,
3097 "Text": "Maldives",
3098 "Value": "Maldives",
3099 "Order": 109
3100 },
3101 {
3102 "Id": 866,
3103 "QuestionId": 13,
3104 "Text": "Mali",
3105 "Value": "Mali",
3106 "Order": 110
3107 },
3108 {
3109 "Id": 874,
3110 "QuestionId": 13,
3111 "Text": "Malta",
3112 "Value": "Malta",
3113 "Order": 111
3114 },
3115 {
3116 "Id": 882,
3117 "QuestionId": 13,
3118 "Text": "Marshall Islands",
3119 "Value": "Marshall Islands",
3120 "Order": 112
3121 },
3122 {
3123 "Id": 890,
3124 "QuestionId": 13,
3125 "Text": "Mauritania",
3126 "Value": "Mauritania",
3127 "Order": 113
3128 },
3129 {
3130 "Id": 898,
3131 "QuestionId": 13,
3132 "Text": "Mauritius",
3133 "Value": "Mauritius",
3134 "Order": 114
3135 },
3136 {
3137 "Id": 906,
3138 "QuestionId": 13,
3139 "Text": "Mexico",
3140 "Value": "Mexico",
3141 "Order": 115
3142 },
3143 {
3144 "Id": 914,
3145 "QuestionId": 13,
3146 "Text": "Micronesia",
3147 "Value": "Micronesia",
3148 "Order": 116
3149 },
3150 {
3151 "Id": 922,
3152 "QuestionId": 13,
3153 "Text": "Moldova",
3154 "Value": "Moldova",
3155 "Order": 117
3156 },
3157 {
3158 "Id": 930,
3159 "QuestionId": 13,
3160 "Text": "Monaco",
3161 "Value": "Monaco",
3162 "Order": 118
3163 },
3164 {
3165 "Id": 938,
3166 "QuestionId": 13,
3167 "Text": "Mongolia",
3168 "Value": "Mongolia",
3169 "Order": 119
3170 },
3171 {
3172 "Id": 946,
3173 "QuestionId": 13,
3174 "Text": "Morocco",
3175 "Value": "Morocco",
3176 "Order": 120
3177 },
3178 {
3179 "Id": 954,
3180 "QuestionId": 13,
3181 "Text": "Mozambique",
3182 "Value": "Mozambique",
3183 "Order": 121
3184 },
3185 {
3186 "Id": 962,
3187 "QuestionId": 13,
3188 "Text": "Myanmar",
3189 "Value": "Myanmar",
3190 "Order": 122
3191 },
3192 {
3193 "Id": 970,
3194 "QuestionId": 13,
3195 "Text": "Namibia",
3196 "Value": "Namibia",
3197 "Order": 123
3198 },
3199 {
3200 "Id": 978,
3201 "QuestionId": 13,
3202 "Text": "Nauru",
3203 "Value": "Nauru",
3204 "Order": 124
3205 },
3206 {
3207 "Id": 986,
3208 "QuestionId": 13,
3209 "Text": "Nepa",
3210 "Value": "Nepa",
3211 "Order": 125
3212 },
3213 {
3214 "Id": 994,
3215 "QuestionId": 13,
3216 "Text": "Netherlands",
3217 "Value": "Netherlands",
3218 "Order": 126
3219 },
3220 {
3221 "Id": 1002,
3222 "QuestionId": 13,
3223 "Text": "New Zealand",
3224 "Value": "New Zealand",
3225 "Order": 127
3226 },
3227 {
3228 "Id": 1010,
3229 "QuestionId": 13,
3230 "Text": "Nicaragua",
3231 "Value": "Nicaragua",
3232 "Order": 128
3233 },
3234 {
3235 "Id": 1018,
3236 "QuestionId": 13,
3237 "Text": "Niger",
3238 "Value": "Niger",
3239 "Order": 129
3240 },
3241 {
3242 "Id": 1026,
3243 "QuestionId": 13,
3244 "Text": "Nigeria",
3245 "Value": "Nigeria",
3246 "Order": 130
3247 },
3248 {
3249 "Id": 1034,
3250 "QuestionId": 13,
3251 "Text": "Norway",
3252 "Value": "Norway",
3253 "Order": 131
3254 },
3255 {
3256 "Id": 1042,
3257 "QuestionId": 13,
3258 "Text": "Oman",
3259 "Value": "Oman",
3260 "Order": 132
3261 },
3262 {
3263 "Id": 1050,
3264 "QuestionId": 13,
3265 "Text": "Pakistan",
3266 "Value": "Pakistan",
3267 "Order": 133
3268 },
3269 {
3270 "Id": 1058,
3271 "QuestionId": 13,
3272 "Text": "Palau",
3273 "Value": "Palau",
3274 "Order": 134
3275 },
3276 {
3277 "Id": 1066,
3278 "QuestionId": 13,
3279 "Text": "Panama",
3280 "Value": "Panama",
3281 "Order": 135
3282 },
3283 {
3284 "Id": 1074,
3285 "QuestionId": 13,
3286 "Text": "Papua New Guinea",
3287 "Value": "Papua New Guinea",
3288 "Order": 136
3289 },
3290 {
3291 "Id": 1082,
3292 "QuestionId": 13,
3293 "Text": "Paraguay",
3294 "Value": "Paraguay",
3295 "Order": 137
3296 },
3297 {
3298 "Id": 1090,
3299 "QuestionId": 13,
3300 "Text": "Peru",
3301 "Value": "Peru",
3302 "Order": 138
3303 },
3304 {
3305 "Id": 1098,
3306 "QuestionId": 13,
3307 "Text": "Philippines",
3308 "Value": "Philippines",
3309 "Order": 139
3310 },
3311 {
3312 "Id": 1106,
3313 "QuestionId": 13,
3314 "Text": "Poland",
3315 "Value": "Poland",
3316 "Order": 140
3317 },
3318 {
3319 "Id": 1114,
3320 "QuestionId": 13,
3321 "Text": "Portugal",
3322 "Value": "Portugal",
3323 "Order": 141
3324 },
3325 {
3326 "Id": 1122,
3327 "QuestionId": 13,
3328 "Text": "Qatar",
3329 "Value": "Qatar",
3330 "Order": 142
3331 },
3332 {
3333 "Id": 1130,
3334 "QuestionId": 13,
3335 "Text": "Romania",
3336 "Value": "Romania",
3337 "Order": 143
3338 },
3339 {
3340 "Id": 1138,
3341 "QuestionId": 13,
3342 "Text": "Russia",
3343 "Value": "Russia",
3344 "Order": 144
3345 },
3346 {
3347 "Id": 1146,
3348 "QuestionId": 13,
3349 "Text": "Rwanda",
3350 "Value": "Rwanda",
3351 "Order": 145
3352 },
3353 {
3354 "Id": 1154,
3355 "QuestionId": 13,
3356 "Text": "Saint Kitts and Nevis",
3357 "Value": "Saint Kitts and Nevis",
3358 "Order": 146
3359 },
3360 {
3361 "Id": 1162,
3362 "QuestionId": 13,
3363 "Text": "Saint Lucia",
3364 "Value": "Saint Lucia",
3365 "Order": 147
3366 },
3367 {
3368 "Id": 1170,
3369 "QuestionId": 13,
3370 "Text": "Saint Vincent",
3371 "Value": "Saint Vincent",
3372 "Order": 148
3373 },
3374 {
3375 "Id": 1178,
3376 "QuestionId": 13,
3377 "Text": "Samoa",
3378 "Value": "Samoa",
3379 "Order": 149
3380 },
3381 {
3382 "Id": 1186,
3383 "QuestionId": 13,
3384 "Text": "San Marino",
3385 "Value": "San Marino",
3386 "Order": 150
3387 },
3388 {
3389 "Id": 1194,
3390 "QuestionId": 13,
3391 "Text": "Sao Tome and Principe",
3392 "Value": "Sao Tome and Principe",
3393 "Order": 151
3394 },
3395 {
3396 "Id": 1202,
3397 "QuestionId": 13,
3398 "Text": "Saudi Arabia",
3399 "Value": "Saudi Arabia",
3400 "Order": 152
3401 },
3402 {
3403 "Id": 1210,
3404 "QuestionId": 13,
3405 "Text": "Senegal",
3406 "Value": "Senegal",
3407 "Order": 153
3408 },
3409 {
3410 "Id": 1218,
3411 "QuestionId": 13,
3412 "Text": "Serbia and Montenegro",
3413 "Value": "Serbia and Montenegro",
3414 "Order": 154
3415 },
3416 {
3417 "Id": 1226,
3418 "QuestionId": 13,
3419 "Text": "Seychelles",
3420 "Value": "Seychelles",
3421 "Order": 155
3422 },
3423 {
3424 "Id": 1234,
3425 "QuestionId": 13,
3426 "Text": "Sierra Leone",
3427 "Value": "Sierra Leone",
3428 "Order": 156
3429 },
3430 {
3431 "Id": 1242,
3432 "QuestionId": 13,
3433 "Text": "Singapore",
3434 "Value": "Singapore",
3435 "Order": 157
3436 },
3437 {
3438 "Id": 1250,
3439 "QuestionId": 13,
3440 "Text": "Slovakia",
3441 "Value": "Slovakia",
3442 "Order": 158
3443 },
3444 {
3445 "Id": 1258,
3446 "QuestionId": 13,
3447 "Text": "Slovenia",
3448 "Value": "Slovenia",
3449 "Order": 159
3450 },
3451 {
3452 "Id": 1266,
3453 "QuestionId": 13,
3454 "Text": "Solomon Islands",
3455 "Value": "Solomon Islands",
3456 "Order": 160
3457 },
3458 {
3459 "Id": 1274,
3460 "QuestionId": 13,
3461 "Text": "Somalia",
3462 "Value": "Somalia",
3463 "Order": 161
3464 },
3465 {
3466 "Id": 1282,
3467 "QuestionId": 13,
3468 "Text": "South Africa",
3469 "Value": "South Africa",
3470 "Order": 162
3471 },
3472 {
3473 "Id": 1290,
3474 "QuestionId": 13,
3475 "Text": "Spain",
3476 "Value": "Spain",
3477 "Order": 163
3478 },
3479 {
3480 "Id": 1298,
3481 "QuestionId": 13,
3482 "Text": "Sri Lanka",
3483 "Value": "Sri Lanka",
3484 "Order": 164
3485 },
3486 {
3487 "Id": 1306,
3488 "QuestionId": 13,
3489 "Text": "Sudan",
3490 "Value": "Sudan",
3491 "Order": 165
3492 },
3493 {
3494 "Id": 1314,
3495 "QuestionId": 13,
3496 "Text": "Suriname",
3497 "Value": "Suriname",
3498 "Order": 166
3499 },
3500 {
3501 "Id": 1322,
3502 "QuestionId": 13,
3503 "Text": "Swaziland",
3504 "Value": "Swaziland",
3505 "Order": 167
3506 },
3507 {
3508 "Id": 1330,
3509 "QuestionId": 13,
3510 "Text": "Sweden",
3511 "Value": "Sweden",
3512 "Order": 168
3513 },
3514 {
3515 "Id": 1338,
3516 "QuestionId": 13,
3517 "Text": "Switzerland",
3518 "Value": "Switzerland",
3519 "Order": 169
3520 },
3521 {
3522 "Id": 1346,
3523 "QuestionId": 13,
3524 "Text": "Syria",
3525 "Value": "Syria",
3526 "Order": 170
3527 },
3528 {
3529 "Id": 1354,
3530 "QuestionId": 13,
3531 "Text": "Taiwan",
3532 "Value": "Taiwan",
3533 "Order": 171
3534 },
3535 {
3536 "Id": 1362,
3537 "QuestionId": 13,
3538 "Text": "Tajikistan",
3539 "Value": "Tajikistan",
3540 "Order": 172
3541 },
3542 {
3543 "Id": 1370,
3544 "QuestionId": 13,
3545 "Text": "Tanzania",
3546 "Value": "Tanzania",
3547 "Order": 173
3548 },
3549 {
3550 "Id": 1378,
3551 "QuestionId": 13,
3552 "Text": "Thailand",
3553 "Value": "Thailand",
3554 "Order": 174
3555 },
3556 {
3557 "Id": 1386,
3558 "QuestionId": 13,
3559 "Text": "Togo",
3560 "Value": "Togo",
3561 "Order": 175
3562 },
3563 {
3564 "Id": 1394,
3565 "QuestionId": 13,
3566 "Text": "Tonga",
3567 "Value": "Tonga",
3568 "Order": 176
3569 },
3570 {
3571 "Id": 1402,
3572 "QuestionId": 13,
3573 "Text": "Trinidad and Tobago",
3574 "Value": "Trinidad and Tobago",
3575 "Order": 177
3576 },
3577 {
3578 "Id": 1410,
3579 "QuestionId": 13,
3580 "Text": "Tunisia",
3581 "Value": "Tunisia",
3582 "Order": 178
3583 },
3584 {
3585 "Id": 1418,
3586 "QuestionId": 13,
3587 "Text": "Turkey",
3588 "Value": "Turkey",
3589 "Order": 179
3590 },
3591 {
3592 "Id": 1426,
3593 "QuestionId": 13,
3594 "Text": "Turkmenistan",
3595 "Value": "Turkmenistan",
3596 "Order": 180
3597 },
3598 {
3599 "Id": 1434,
3600 "QuestionId": 13,
3601 "Text": "Tuvalu",
3602 "Value": "Tuvalu",
3603 "Order": 181
3604 },
3605 {
3606 "Id": 1442,
3607 "QuestionId": 13,
3608 "Text": "Uganda",
3609 "Value": "Uganda",
3610 "Order": 182
3611 },
3612 {
3613 "Id": 1450,
3614 "QuestionId": 13,
3615 "Text": "Ukraine",
3616 "Value": "Ukraine",
3617 "Order": 183
3618 },
3619 {
3620 "Id": 1458,
3621 "QuestionId": 13,
3622 "Text": "United Arab Emirates",
3623 "Value": "United Arab Emirates",
3624 "Order": 184
3625 },
3626 {
3627 "Id": 1466,
3628 "QuestionId": 13,
3629 "Text": "United Kingdom",
3630 "Value": "United Kingdom",
3631 "Order": 185
3632 },
3633 {
3634 "Id": 1474,
3635 "QuestionId": 13,
3636 "Text": "United States",
3637 "Value": "United States",
3638 "Order": 2
3639 },
3640 {
3641 "Id": 1482,
3642 "QuestionId": 13,
3643 "Text": "Uruguay",
3644 "Value": "Uruguay",
3645 "Order": 186
3646 },
3647 {
3648 "Id": 1490,
3649 "QuestionId": 13,
3650 "Text": "Uzbekistan",
3651 "Value": "Uzbekistan",
3652 "Order": 187
3653 },
3654 {
3655 "Id": 1498,
3656 "QuestionId": 13,
3657 "Text": "Vanuatu",
3658 "Value": "Vanuatu",
3659 "Order": 188
3660 },
3661 {
3662 "Id": 1506,
3663 "QuestionId": 13,
3664 "Text": "Vatican City",
3665 "Value": "Vatican City",
3666 "Order": 189
3667 },
3668 {
3669 "Id": 1514,
3670 "QuestionId": 13,
3671 "Text": "Venezuela",
3672 "Value": "Venezuela",
3673 "Order": 190
3674 },
3675 {
3676 "Id": 1522,
3677 "QuestionId": 13,
3678 "Text": "Vietnam",
3679 "Value": "Vietnam",
3680 "Order": 191
3681 },
3682 {
3683 "Id": 1530,
3684 "QuestionId": 13,
3685 "Text": "Yemen",
3686 "Value": "Yemen",
3687 "Order": 192
3688 },
3689 {
3690 "Id": 1538,
3691 "QuestionId": 13,
3692 "Text": "Zambia",
3693 "Value": "Zambia",
3694 "Order": 193
3695 },
3696 {
3697 "Id": 1546,
3698 "QuestionId": 13,
3699 "Text": "Zimbabwe",
3700 "Value": "Zimbabwe",
3701 "Order": 194
3702 },
3703 {
3704 "Id": 2186,
3705 "QuestionId": 13,
3706 "Text": "British Columbia",
3707 "Value": "British Columbia",
3708 "Order": 195
3709 }
3710 ]
3711 },
3712 {
3713 "Id": 14,
3714 "Text": "Phone",
3715 "Type": "0",
3716 "Alias": "Phone"
3717 },
3718 {
3719 "Id": 15,
3720 "Text": "Fax",
3721 "Type": "0",
3722 "Alias": "Fax"
3723 },
3724 {
3725 "Id": 18,
3726 "Text": " NEW QUESTION",
3727 "Type": "0",
3728 "Alias": ""
3729 },
3730 {
3731 "Id": 26,
3732 "Text": " NEW QUESTION",
3733 "Type": "0",
3734 "Alias": ""
3735 },
3736 {
3737 "Id": 34,
3738 "Text": " NEW QUESTION",
3739 "Type": "0",
3740 "Alias": ""
3741 },
3742 {
3743 "Id": 42,
3744 "Text": " NEW QUESTION",
3745 "Type": "0",
3746 "Alias": ""
3747 },
3748 {
3749 "Id": 50,
3750 "Text": " NEW QUESTION",
3751 "Type": "0",
3752 "Alias": ""
3753 },
3754 {
3755 "Id": 58,
3756 "Text": " NEW QUESTION",
3757 "Type": "0",
3758 "Alias": ""
3759 },
3760 {
3761 "Id": 66,
3762 "Text": " NEW QUESTION",
3763 "Type": "0",
3764 "Alias": ""
3765 },
3766 {
3767 "Id": 74,
3768 "Text": " NEW QUESTION",
3769 "Type": "0",
3770 "Alias": ""
3771 },
3772 {
3773 "Id": 82,
3774 "Text": " NEW QUESTION",
3775 "Type": "0",
3776 "Alias": ""
3777 },
3778 {
3779 "Id": 90,
3780 "Text": " NEW QUESTION",
3781 "Type": "0",
3782 "Alias": ""
3783 }
3784 ]
3785 }
3786 {{/code}}
3787
3788
3789 (% id="HGETspecificQuestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
3790 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Question(%%) ==
3791
3792 ----
3793
3794 {{panel bgColor="#D3D3D3" width="100%"}}
3795 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}}
3796 {{/panel}}
3797
3798 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
3799
3800 ----
3801
3802 (% 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}}
3803
3804 ==== Example ====
3805
3806 ----
3807
3808 (% style="color:#6b6b6b" %)Request
3809
3810 {{code language="php" theme="RDark" title="Get specific Question Request"}}
3811 <?php
3812
3813 $curl = curl_init();
3814
3815 curl_setopt_array($curl, array(
3816 CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}',
3817 CURLOPT_RETURNTRANSFER => true,
3818 CURLOPT_ENCODING => '',
3819 CURLOPT_MAXREDIRS => 10,
3820 CURLOPT_TIMEOUT => 0,
3821 CURLOPT_FOLLOWLOCATION => true,
3822 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
3823 CURLOPT_CUSTOMREQUEST => 'GET',
3824 CURLOPT_HTTPHEADER => array(
3825 'Appkey: {{ONECOUNT API KEY}}'
3826 ),
3827 ));
3828
3829 $response = curl_exec($curl);
3830
3831 curl_close($curl);
3832 echo $response;
3833 {{/code}}
3834
3835
3836 (% style="color:#6b6b6b" %)Response  200 OK
3837
3838 {{code language="yml" theme="RDark" collapse="true" title="Get specific question Response"}}
3839 {
3840 "result": {
3841 "success": "1",
3842 "error": {
3843 "code": "",
3844 "message": ""
3845 }
3846 },
3847 "Questions": [
3848 {
3849 "Id": 3,
3850 "Text": "Password",
3851 "Type": "2",
3852 "Alias": "Password"
3853 }
3854 ]
3855 }
3856 {{/code}}
3857
3858
3859 (% id="HGETlookupquestionbytext" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
3860 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by text(%%) ==
3861
3862 ----
3863
3864 {{panel bgColor="#D3D3D3" width="100%"}}
3865 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Text=COUNTRY
3866 {{/panel}}
3867
3868 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
3869
3870 ----
3871
3872 (% 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}}
3873
3874 === (% style="color:#212121" %)Query Params(%%) ===
3875
3876 ----
3877
3878 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Text  COUNTRY(%%)
3879
3880
3881 ==== Example ====
3882
3883 ----
3884
3885 (% style="color:#6b6b6b" %)Request
3886
3887 {{code language="php" theme="RDark" title="Lookup question by text Request"}}
3888 <?php
3889
3890 $curl = curl_init();
3891
3892 curl_setopt_array($curl, array(
3893 CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Text=COUNTRY',
3894 CURLOPT_RETURNTRANSFER => true,
3895 CURLOPT_ENCODING => '',
3896 CURLOPT_MAXREDIRS => 10,
3897 CURLOPT_TIMEOUT => 0,
3898 CURLOPT_FOLLOWLOCATION => true,
3899 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
3900 CURLOPT_CUSTOMREQUEST => 'GET',
3901 CURLOPT_HTTPHEADER => array(
3902 'Appkey: {{ONECOUNT API KEY}}'
3903 ),
3904 ));
3905
3906 $response = curl_exec($curl);
3907
3908 curl_close($curl);
3909 echo $response;
3910 {{/code}}
3911
3912
3913 (% style="color:#6b6b6b" %)Response  200 OK
3914
3915 {{code language="yml" theme="RDark" collapse="true" title="Lookup question by title Response"}}
3916 {
3917 "result": {
3918 "success": "1",
3919 "error": {
3920 "code": "",
3921 "message": ""
3922 }
3923 },
3924 "Questions": [
3925 {
3926 "Id": 13,
3927 "Text": "Country",
3928 "Type": "4",
3929 "Alias": "Country",
3930 "Choices": [
3931 {
3932 "Id": 2,
3933 "QuestionId": 13,
3934 "Text": "Select One",
3935 "Value": "",
3936 "Order": 1
3937 },
3938 {
3939 "Id": 10,
3940 "QuestionId": 13,
3941 "Text": "Afghanistan",
3942 "Value": "Afghanistan",
3943 "Order": 3
3944 },
3945 {
3946 "Id": 18,
3947 "QuestionId": 13,
3948 "Text": "Albania",
3949 "Value": "Albania",
3950 "Order": 4
3951 },
3952 {
3953 "Id": 26,
3954 "QuestionId": 13,
3955 "Text": "Algeria",
3956 "Value": "Algeria",
3957 "Order": 5
3958 },
3959 {
3960 "Id": 34,
3961 "QuestionId": 13,
3962 "Text": "Andorra",
3963 "Value": "Andorra",
3964 "Order": 6
3965 },
3966 {
3967 "Id": 42,
3968 "QuestionId": 13,
3969 "Text": "Angola",
3970 "Value": "Angola",
3971 "Order": 7
3972 },
3973 {
3974 "Id": 50,
3975 "QuestionId": 13,
3976 "Text": "Antigua and Barbuda",
3977 "Value": "Antigua and Barbuda",
3978 "Order": 8
3979 },
3980 {
3981 "Id": 58,
3982 "QuestionId": 13,
3983 "Text": "Argentina",
3984 "Value": "Argentina",
3985 "Order": 9
3986 },
3987 {
3988 "Id": 66,
3989 "QuestionId": 13,
3990 "Text": "Armenia",
3991 "Value": "Armenia",
3992 "Order": 10
3993 },
3994 {
3995 "Id": 74,
3996 "QuestionId": 13,
3997 "Text": "Australia",
3998 "Value": "Australia",
3999 "Order": 11
4000 },
4001 {
4002 "Id": 82,
4003 "QuestionId": 13,
4004 "Text": "Austria",
4005 "Value": "Austria",
4006 "Order": 12
4007 },
4008 {
4009 "Id": 90,
4010 "QuestionId": 13,
4011 "Text": "Azerbaijan",
4012 "Value": "Azerbaijan",
4013 "Order": 13
4014 },
4015 {
4016 "Id": 98,
4017 "QuestionId": 13,
4018 "Text": "Bahamas",
4019 "Value": "Bahamas",
4020 "Order": 14
4021 },
4022 {
4023 "Id": 106,
4024 "QuestionId": 13,
4025 "Text": "Bahrain",
4026 "Value": "Bahrain",
4027 "Order": 15
4028 },
4029 {
4030 "Id": 114,
4031 "QuestionId": 13,
4032 "Text": "Bangladesh",
4033 "Value": "Bangladesh",
4034 "Order": 16
4035 },
4036 {
4037 "Id": 122,
4038 "QuestionId": 13,
4039 "Text": "Barbados",
4040 "Value": "Barbados",
4041 "Order": 17
4042 },
4043 {
4044 "Id": 130,
4045 "QuestionId": 13,
4046 "Text": "Belarus",
4047 "Value": "Belarus",
4048 "Order": 18
4049 },
4050 {
4051 "Id": 138,
4052 "QuestionId": 13,
4053 "Text": "Belgium",
4054 "Value": "Belgium",
4055 "Order": 19
4056 },
4057 {
4058 "Id": 146,
4059 "QuestionId": 13,
4060 "Text": "Belize",
4061 "Value": "Belize",
4062 "Order": 20
4063 },
4064 {
4065 "Id": 154,
4066 "QuestionId": 13,
4067 "Text": "Benin",
4068 "Value": "Benin",
4069 "Order": 21
4070 },
4071 {
4072 "Id": 162,
4073 "QuestionId": 13,
4074 "Text": "Bhutan",
4075 "Value": "Bhutan",
4076 "Order": 22
4077 },
4078 {
4079 "Id": 170,
4080 "QuestionId": 13,
4081 "Text": "Bolivia",
4082 "Value": "Bolivia",
4083 "Order": 23
4084 },
4085 {
4086 "Id": 178,
4087 "QuestionId": 13,
4088 "Text": "Bosnia and Herzegovina",
4089 "Value": "Bosnia and Herzegovina",
4090 "Order": 24
4091 },
4092 {
4093 "Id": 186,
4094 "QuestionId": 13,
4095 "Text": "Botswana",
4096 "Value": "Botswana",
4097 "Order": 25
4098 },
4099 {
4100 "Id": 194,
4101 "QuestionId": 13,
4102 "Text": "Brazil",
4103 "Value": "Brazil",
4104 "Order": 26
4105 },
4106 {
4107 "Id": 202,
4108 "QuestionId": 13,
4109 "Text": "Brunei",
4110 "Value": "Brunei",
4111 "Order": 27
4112 },
4113 {
4114 "Id": 210,
4115 "QuestionId": 13,
4116 "Text": "Bulgaria",
4117 "Value": "Bulgaria",
4118 "Order": 28
4119 },
4120 {
4121 "Id": 218,
4122 "QuestionId": 13,
4123 "Text": "Burkina Faso",
4124 "Value": "Burkina Faso",
4125 "Order": 29
4126 },
4127 {
4128 "Id": 226,
4129 "QuestionId": 13,
4130 "Text": "Burundi",
4131 "Value": "Burundi",
4132 "Order": 30
4133 },
4134 {
4135 "Id": 234,
4136 "QuestionId": 13,
4137 "Text": "Cambodia",
4138 "Value": "Cambodia",
4139 "Order": 31
4140 },
4141 {
4142 "Id": 242,
4143 "QuestionId": 13,
4144 "Text": "Cameroon",
4145 "Value": "Cameroon",
4146 "Order": 32
4147 },
4148 {
4149 "Id": 250,
4150 "QuestionId": 13,
4151 "Text": "Canada",
4152 "Value": "Canada",
4153 "Order": 33
4154 },
4155 {
4156 "Id": 258,
4157 "QuestionId": 13,
4158 "Text": "Cape Verde",
4159 "Value": "Cape Verde",
4160 "Order": 34
4161 },
4162 {
4163 "Id": 266,
4164 "QuestionId": 13,
4165 "Text": "Central African Republic",
4166 "Value": "Central African Republic",
4167 "Order": 35
4168 },
4169 {
4170 "Id": 274,
4171 "QuestionId": 13,
4172 "Text": "Chad",
4173 "Value": "Chad",
4174 "Order": 36
4175 },
4176 {
4177 "Id": 282,
4178 "QuestionId": 13,
4179 "Text": "Chile",
4180 "Value": "Chile",
4181 "Order": 37
4182 },
4183 {
4184 "Id": 290,
4185 "QuestionId": 13,
4186 "Text": "China",
4187 "Value": "China",
4188 "Order": 38
4189 },
4190 {
4191 "Id": 298,
4192 "QuestionId": 13,
4193 "Text": "Colombia",
4194 "Value": "Colombia",
4195 "Order": 39
4196 },
4197 {
4198 "Id": 306,
4199 "QuestionId": 13,
4200 "Text": "Comoros",
4201 "Value": "Comoros",
4202 "Order": 40
4203 },
4204 {
4205 "Id": 314,
4206 "QuestionId": 13,
4207 "Text": "Congo (Brazzaville)",
4208 "Value": "Congo (Brazzaville)",
4209 "Order": 41
4210 },
4211 {
4212 "Id": 322,
4213 "QuestionId": 13,
4214 "Text": "Congo",
4215 "Value": "Congo",
4216 "Order": 42
4217 },
4218 {
4219 "Id": 330,
4220 "QuestionId": 13,
4221 "Text": "Costa Rica",
4222 "Value": "Costa Rica",
4223 "Order": 43
4224 },
4225 {
4226 "Id": 338,
4227 "QuestionId": 13,
4228 "Text": "Cote d'Ivoire",
4229 "Value": "Cote d'Ivoire",
4230 "Order": 44
4231 },
4232 {
4233 "Id": 346,
4234 "QuestionId": 13,
4235 "Text": "Croatia",
4236 "Value": "Croatia",
4237 "Order": 45
4238 },
4239 {
4240 "Id": 354,
4241 "QuestionId": 13,
4242 "Text": "Cuba",
4243 "Value": "Cuba",
4244 "Order": 46
4245 },
4246 {
4247 "Id": 362,
4248 "QuestionId": 13,
4249 "Text": "Cyprus",
4250 "Value": "Cyprus",
4251 "Order": 47
4252 },
4253 {
4254 "Id": 370,
4255 "QuestionId": 13,
4256 "Text": "Czech Republic",
4257 "Value": "Czech Republic",
4258 "Order": 48
4259 },
4260 {
4261 "Id": 378,
4262 "QuestionId": 13,
4263 "Text": "Denmark",
4264 "Value": "Denmark",
4265 "Order": 49
4266 },
4267 {
4268 "Id": 386,
4269 "QuestionId": 13,
4270 "Text": "Djibouti",
4271 "Value": "Djibouti",
4272 "Order": 50
4273 },
4274 {
4275 "Id": 394,
4276 "QuestionId": 13,
4277 "Text": "Dominica",
4278 "Value": "Dominica",
4279 "Order": 51
4280 },
4281 {
4282 "Id": 402,
4283 "QuestionId": 13,
4284 "Text": "Dominican Republic",
4285 "Value": "Dominican Republic",
4286 "Order": 52
4287 },
4288 {
4289 "Id": 410,
4290 "QuestionId": 13,
4291 "Text": "East Timor",
4292 "Value": "East Timor",
4293 "Order": 53
4294 },
4295 {
4296 "Id": 418,
4297 "QuestionId": 13,
4298 "Text": "Ecuador",
4299 "Value": "Ecuador",
4300 "Order": 54
4301 },
4302 {
4303 "Id": 426,
4304 "QuestionId": 13,
4305 "Text": "Egypt",
4306 "Value": "Egypt",
4307 "Order": 55
4308 },
4309 {
4310 "Id": 434,
4311 "QuestionId": 13,
4312 "Text": "El Salvador",
4313 "Value": "El Salvador",
4314 "Order": 56
4315 },
4316 {
4317 "Id": 442,
4318 "QuestionId": 13,
4319 "Text": "Equatorial Guinea",
4320 "Value": "Equatorial Guinea",
4321 "Order": 57
4322 },
4323 {
4324 "Id": 450,
4325 "QuestionId": 13,
4326 "Text": "Eritrea",
4327 "Value": "Eritrea",
4328 "Order": 58
4329 },
4330 {
4331 "Id": 458,
4332 "QuestionId": 13,
4333 "Text": "Estonia",
4334 "Value": "Estonia",
4335 "Order": 59
4336 },
4337 {
4338 "Id": 466,
4339 "QuestionId": 13,
4340 "Text": "Ethiopia",
4341 "Value": "Ethiopia",
4342 "Order": 60
4343 },
4344 {
4345 "Id": 474,
4346 "QuestionId": 13,
4347 "Text": "Fiji",
4348 "Value": "Fiji",
4349 "Order": 61
4350 },
4351 {
4352 "Id": 482,
4353 "QuestionId": 13,
4354 "Text": "Finland",
4355 "Value": "Finland",
4356 "Order": 62
4357 },
4358 {
4359 "Id": 490,
4360 "QuestionId": 13,
4361 "Text": "France",
4362 "Value": "France",
4363 "Order": 63
4364 },
4365 {
4366 "Id": 498,
4367 "QuestionId": 13,
4368 "Text": "Gabon",
4369 "Value": "Gabon",
4370 "Order": 64
4371 },
4372 {
4373 "Id": 506,
4374 "QuestionId": 13,
4375 "Text": "Gambia, The",
4376 "Value": "Gambia, The",
4377 "Order": 65
4378 },
4379 {
4380 "Id": 514,
4381 "QuestionId": 13,
4382 "Text": "Georgia",
4383 "Value": "Georgia",
4384 "Order": 66
4385 },
4386 {
4387 "Id": 522,
4388 "QuestionId": 13,
4389 "Text": "Germany",
4390 "Value": "Germany",
4391 "Order": 67
4392 },
4393 {
4394 "Id": 530,
4395 "QuestionId": 13,
4396 "Text": "Ghana",
4397 "Value": "Ghana",
4398 "Order": 68
4399 },
4400 {
4401 "Id": 538,
4402 "QuestionId": 13,
4403 "Text": "Greece",
4404 "Value": "Greece",
4405 "Order": 69
4406 },
4407 {
4408 "Id": 546,
4409 "QuestionId": 13,
4410 "Text": "Grenada",
4411 "Value": "Grenada",
4412 "Order": 70
4413 },
4414 {
4415 "Id": 554,
4416 "QuestionId": 13,
4417 "Text": "Guatemala",
4418 "Value": "Guatemala",
4419 "Order": 71
4420 },
4421 {
4422 "Id": 562,
4423 "QuestionId": 13,
4424 "Text": "Guinea",
4425 "Value": "Guinea",
4426 "Order": 72
4427 },
4428 {
4429 "Id": 570,
4430 "QuestionId": 13,
4431 "Text": "Guinea-Bissau",
4432 "Value": "Guinea-Bissau",
4433 "Order": 73
4434 },
4435 {
4436 "Id": 578,
4437 "QuestionId": 13,
4438 "Text": "Guyana",
4439 "Value": "Guyana",
4440 "Order": 74
4441 },
4442 {
4443 "Id": 586,
4444 "QuestionId": 13,
4445 "Text": "Haiti",
4446 "Value": "Haiti",
4447 "Order": 75
4448 },
4449 {
4450 "Id": 594,
4451 "QuestionId": 13,
4452 "Text": "Honduras",
4453 "Value": "Honduras",
4454 "Order": 76
4455 },
4456 {
4457 "Id": 602,
4458 "QuestionId": 13,
4459 "Text": "Hungary",
4460 "Value": "Hungary",
4461 "Order": 77
4462 },
4463 {
4464 "Id": 610,
4465 "QuestionId": 13,
4466 "Text": "Iceland",
4467 "Value": "Iceland",
4468 "Order": 78
4469 },
4470 {
4471 "Id": 618,
4472 "QuestionId": 13,
4473 "Text": "India",
4474 "Value": "India",
4475 "Order": 79
4476 },
4477 {
4478 "Id": 626,
4479 "QuestionId": 13,
4480 "Text": "Indonesia",
4481 "Value": "Indonesia",
4482 "Order": 80
4483 },
4484 {
4485 "Id": 634,
4486 "QuestionId": 13,
4487 "Text": "Iran",
4488 "Value": "Iran",
4489 "Order": 81
4490 },
4491 {
4492 "Id": 642,
4493 "QuestionId": 13,
4494 "Text": "Iraq",
4495 "Value": "Iraq",
4496 "Order": 82
4497 },
4498 {
4499 "Id": 650,
4500 "QuestionId": 13,
4501 "Text": "Ireland",
4502 "Value": "Ireland",
4503 "Order": 83
4504 },
4505 {
4506 "Id": 658,
4507 "QuestionId": 13,
4508 "Text": "Israel",
4509 "Value": "Israel",
4510 "Order": 84
4511 },
4512 {
4513 "Id": 666,
4514 "QuestionId": 13,
4515 "Text": "Italy",
4516 "Value": "Italy",
4517 "Order": 85
4518 },
4519 {
4520 "Id": 674,
4521 "QuestionId": 13,
4522 "Text": "Jamaica",
4523 "Value": "Jamaica",
4524 "Order": 86
4525 },
4526 {
4527 "Id": 682,
4528 "QuestionId": 13,
4529 "Text": "Japan",
4530 "Value": "Japan",
4531 "Order": 87
4532 },
4533 {
4534 "Id": 690,
4535 "QuestionId": 13,
4536 "Text": "Jordan",
4537 "Value": "Jordan",
4538 "Order": 88
4539 },
4540 {
4541 "Id": 698,
4542 "QuestionId": 13,
4543 "Text": "Kazakhstan",
4544 "Value": "Kazakhstan",
4545 "Order": 89
4546 },
4547 {
4548 "Id": 706,
4549 "QuestionId": 13,
4550 "Text": "Kenya",
4551 "Value": "Kenya",
4552 "Order": 90
4553 },
4554 {
4555 "Id": 714,
4556 "QuestionId": 13,
4557 "Text": "Kiribati",
4558 "Value": "Kiribati",
4559 "Order": 91
4560 },
4561 {
4562 "Id": 722,
4563 "QuestionId": 13,
4564 "Text": "Korea, North",
4565 "Value": "Korea, North",
4566 "Order": 92
4567 },
4568 {
4569 "Id": 730,
4570 "QuestionId": 13,
4571 "Text": "Korea, South",
4572 "Value": "Korea, South",
4573 "Order": 93
4574 },
4575 {
4576 "Id": 738,
4577 "QuestionId": 13,
4578 "Text": "Kuwait",
4579 "Value": "Kuwait",
4580 "Order": 94
4581 },
4582 {
4583 "Id": 746,
4584 "QuestionId": 13,
4585 "Text": "Kyrgyzstan",
4586 "Value": "Kyrgyzstan",
4587 "Order": 95
4588 },
4589 {
4590 "Id": 754,
4591 "QuestionId": 13,
4592 "Text": "Laos",
4593 "Value": "Laos",
4594 "Order": 96
4595 },
4596 {
4597 "Id": 762,
4598 "QuestionId": 13,
4599 "Text": "Latvia",
4600 "Value": "Latvia",
4601 "Order": 97
4602 },
4603 {
4604 "Id": 770,
4605 "QuestionId": 13,
4606 "Text": "Lebanon",
4607 "Value": "Lebanon",
4608 "Order": 98
4609 },
4610 {
4611 "Id": 778,
4612 "QuestionId": 13,
4613 "Text": "Lesotho",
4614 "Value": "Lesotho",
4615 "Order": 99
4616 },
4617 {
4618 "Id": 786,
4619 "QuestionId": 13,
4620 "Text": "Liberia",
4621 "Value": "Liberia",
4622 "Order": 100
4623 },
4624 {
4625 "Id": 794,
4626 "QuestionId": 13,
4627 "Text": "Libya",
4628 "Value": "Libya",
4629 "Order": 101
4630 },
4631 {
4632 "Id": 802,
4633 "QuestionId": 13,
4634 "Text": "Liechtenstein",
4635 "Value": "Liechtenstein",
4636 "Order": 102
4637 },
4638 {
4639 "Id": 810,
4640 "QuestionId": 13,
4641 "Text": "Lithuania",
4642 "Value": "Lithuania",
4643 "Order": 103
4644 },
4645 {
4646 "Id": 818,
4647 "QuestionId": 13,
4648 "Text": "Luxembourg",
4649 "Value": "Luxembourg",
4650 "Order": 104
4651 },
4652 {
4653 "Id": 826,
4654 "QuestionId": 13,
4655 "Text": "Macedonia",
4656 "Value": "Macedonia",
4657 "Order": 105
4658 },
4659 {
4660 "Id": 834,
4661 "QuestionId": 13,
4662 "Text": "Madagascar",
4663 "Value": "Madagascar",
4664 "Order": 106
4665 },
4666 {
4667 "Id": 842,
4668 "QuestionId": 13,
4669 "Text": "Malawi",
4670 "Value": "Malawi",
4671 "Order": 107
4672 },
4673 {
4674 "Id": 850,
4675 "QuestionId": 13,
4676 "Text": "Malaysia",
4677 "Value": "Malaysia",
4678 "Order": 108
4679 },
4680 {
4681 "Id": 858,
4682 "QuestionId": 13,
4683 "Text": "Maldives",
4684 "Value": "Maldives",
4685 "Order": 109
4686 },
4687 {
4688 "Id": 866,
4689 "QuestionId": 13,
4690 "Text": "Mali",
4691 "Value": "Mali",
4692 "Order": 110
4693 },
4694 {
4695 "Id": 874,
4696 "QuestionId": 13,
4697 "Text": "Malta",
4698 "Value": "Malta",
4699 "Order": 111
4700 },
4701 {
4702 "Id": 882,
4703 "QuestionId": 13,
4704 "Text": "Marshall Islands",
4705 "Value": "Marshall Islands",
4706 "Order": 112
4707 },
4708 {
4709 "Id": 890,
4710 "QuestionId": 13,
4711 "Text": "Mauritania",
4712 "Value": "Mauritania",
4713 "Order": 113
4714 },
4715 {
4716 "Id": 898,
4717 "QuestionId": 13,
4718 "Text": "Mauritius",
4719 "Value": "Mauritius",
4720 "Order": 114
4721 },
4722 {
4723 "Id": 906,
4724 "QuestionId": 13,
4725 "Text": "Mexico",
4726 "Value": "Mexico",
4727 "Order": 115
4728 },
4729 {
4730 "Id": 914,
4731 "QuestionId": 13,
4732 "Text": "Micronesia",
4733 "Value": "Micronesia",
4734 "Order": 116
4735 },
4736 {
4737 "Id": 922,
4738 "QuestionId": 13,
4739 "Text": "Moldova",
4740 "Value": "Moldova",
4741 "Order": 117
4742 },
4743 {
4744 "Id": 930,
4745 "QuestionId": 13,
4746 "Text": "Monaco",
4747 "Value": "Monaco",
4748 "Order": 118
4749 },
4750 {
4751 "Id": 938,
4752 "QuestionId": 13,
4753 "Text": "Mongolia",
4754 "Value": "Mongolia",
4755 "Order": 119
4756 },
4757 {
4758 "Id": 946,
4759 "QuestionId": 13,
4760 "Text": "Morocco",
4761 "Value": "Morocco",
4762 "Order": 120
4763 },
4764 {
4765 "Id": 954,
4766 "QuestionId": 13,
4767 "Text": "Mozambique",
4768 "Value": "Mozambique",
4769 "Order": 121
4770 },
4771 {
4772 "Id": 962,
4773 "QuestionId": 13,
4774 "Text": "Myanmar",
4775 "Value": "Myanmar",
4776 "Order": 122
4777 },
4778 {
4779 "Id": 970,
4780 "QuestionId": 13,
4781 "Text": "Namibia",
4782 "Value": "Namibia",
4783 "Order": 123
4784 },
4785 {
4786 "Id": 978,
4787 "QuestionId": 13,
4788 "Text": "Nauru",
4789 "Value": "Nauru",
4790 "Order": 124
4791 },
4792 {
4793 "Id": 986,
4794 "QuestionId": 13,
4795 "Text": "Nepa",
4796 "Value": "Nepa",
4797 "Order": 125
4798 },
4799 {
4800 "Id": 994,
4801 "QuestionId": 13,
4802 "Text": "Netherlands",
4803 "Value": "Netherlands",
4804 "Order": 126
4805 },
4806 {
4807 "Id": 1002,
4808 "QuestionId": 13,
4809 "Text": "New Zealand",
4810 "Value": "New Zealand",
4811 "Order": 127
4812 },
4813 {
4814 "Id": 1010,
4815 "QuestionId": 13,
4816 "Text": "Nicaragua",
4817 "Value": "Nicaragua",
4818 "Order": 128
4819 },
4820 {
4821 "Id": 1018,
4822 "QuestionId": 13,
4823 "Text": "Niger",
4824 "Value": "Niger",
4825 "Order": 129
4826 },
4827 {
4828 "Id": 1026,
4829 "QuestionId": 13,
4830 "Text": "Nigeria",
4831 "Value": "Nigeria",
4832 "Order": 130
4833 },
4834 {
4835 "Id": 1034,
4836 "QuestionId": 13,
4837 "Text": "Norway",
4838 "Value": "Norway",
4839 "Order": 131
4840 },
4841 {
4842 "Id": 1042,
4843 "QuestionId": 13,
4844 "Text": "Oman",
4845 "Value": "Oman",
4846 "Order": 132
4847 },
4848 {
4849 "Id": 1050,
4850 "QuestionId": 13,
4851 "Text": "Pakistan",
4852 "Value": "Pakistan",
4853 "Order": 133
4854 },
4855 {
4856 "Id": 1058,
4857 "QuestionId": 13,
4858 "Text": "Palau",
4859 "Value": "Palau",
4860 "Order": 134
4861 },
4862 {
4863 "Id": 1066,
4864 "QuestionId": 13,
4865 "Text": "Panama",
4866 "Value": "Panama",
4867 "Order": 135
4868 },
4869 {
4870 "Id": 1074,
4871 "QuestionId": 13,
4872 "Text": "Papua New Guinea",
4873 "Value": "Papua New Guinea",
4874 "Order": 136
4875 },
4876 {
4877 "Id": 1082,
4878 "QuestionId": 13,
4879 "Text": "Paraguay",
4880 "Value": "Paraguay",
4881 "Order": 137
4882 },
4883 {
4884 "Id": 1090,
4885 "QuestionId": 13,
4886 "Text": "Peru",
4887 "Value": "Peru",
4888 "Order": 138
4889 },
4890 {
4891 "Id": 1098,
4892 "QuestionId": 13,
4893 "Text": "Philippines",
4894 "Value": "Philippines",
4895 "Order": 139
4896 },
4897 {
4898 "Id": 1106,
4899 "QuestionId": 13,
4900 "Text": "Poland",
4901 "Value": "Poland",
4902 "Order": 140
4903 },
4904 {
4905 "Id": 1114,
4906 "QuestionId": 13,
4907 "Text": "Portugal",
4908 "Value": "Portugal",
4909 "Order": 141
4910 },
4911 {
4912 "Id": 1122,
4913 "QuestionId": 13,
4914 "Text": "Qatar",
4915 "Value": "Qatar",
4916 "Order": 142
4917 },
4918 {
4919 "Id": 1130,
4920 "QuestionId": 13,
4921 "Text": "Romania",
4922 "Value": "Romania",
4923 "Order": 143
4924 },
4925 {
4926 "Id": 1138,
4927 "QuestionId": 13,
4928 "Text": "Russia",
4929 "Value": "Russia",
4930 "Order": 144
4931 },
4932 {
4933 "Id": 1146,
4934 "QuestionId": 13,
4935 "Text": "Rwanda",
4936 "Value": "Rwanda",
4937 "Order": 145
4938 },
4939 {
4940 "Id": 1154,
4941 "QuestionId": 13,
4942 "Text": "Saint Kitts and Nevis",
4943 "Value": "Saint Kitts and Nevis",
4944 "Order": 146
4945 },
4946 {
4947 "Id": 1162,
4948 "QuestionId": 13,
4949 "Text": "Saint Lucia",
4950 "Value": "Saint Lucia",
4951 "Order": 147
4952 },
4953 {
4954 "Id": 1170,
4955 "QuestionId": 13,
4956 "Text": "Saint Vincent",
4957 "Value": "Saint Vincent",
4958 "Order": 148
4959 },
4960 {
4961 "Id": 1178,
4962 "QuestionId": 13,
4963 "Text": "Samoa",
4964 "Value": "Samoa",
4965 "Order": 149
4966 },
4967 {
4968 "Id": 1186,
4969 "QuestionId": 13,
4970 "Text": "San Marino",
4971 "Value": "San Marino",
4972 "Order": 150
4973 },
4974 {
4975 "Id": 1194,
4976 "QuestionId": 13,
4977 "Text": "Sao Tome and Principe",
4978 "Value": "Sao Tome and Principe",
4979 "Order": 151
4980 },
4981 {
4982 "Id": 1202,
4983 "QuestionId": 13,
4984 "Text": "Saudi Arabia",
4985 "Value": "Saudi Arabia",
4986 "Order": 152
4987 },
4988 {
4989 "Id": 1210,
4990 "QuestionId": 13,
4991 "Text": "Senegal",
4992 "Value": "Senegal",
4993 "Order": 153
4994 },
4995 {
4996 "Id": 1218,
4997 "QuestionId": 13,
4998 "Text": "Serbia and Montenegro",
4999 "Value": "Serbia and Montenegro",
5000 "Order": 154
5001 },
5002 {
5003 "Id": 1226,
5004 "QuestionId": 13,
5005 "Text": "Seychelles",
5006 "Value": "Seychelles",
5007 "Order": 155
5008 },
5009 {
5010 "Id": 1234,
5011 "QuestionId": 13,
5012 "Text": "Sierra Leone",
5013 "Value": "Sierra Leone",
5014 "Order": 156
5015 },
5016 {
5017 "Id": 1242,
5018 "QuestionId": 13,
5019 "Text": "Singapore",
5020 "Value": "Singapore",
5021 "Order": 157
5022 },
5023 {
5024 "Id": 1250,
5025 "QuestionId": 13,
5026 "Text": "Slovakia",
5027 "Value": "Slovakia",
5028 "Order": 158
5029 },
5030 {
5031 "Id": 1258,
5032 "QuestionId": 13,
5033 "Text": "Slovenia",
5034 "Value": "Slovenia",
5035 "Order": 159
5036 },
5037 {
5038 "Id": 1266,
5039 "QuestionId": 13,
5040 "Text": "Solomon Islands",
5041 "Value": "Solomon Islands",
5042 "Order": 160
5043 },
5044 {
5045 "Id": 1274,
5046 "QuestionId": 13,
5047 "Text": "Somalia",
5048 "Value": "Somalia",
5049 "Order": 161
5050 },
5051 {
5052 "Id": 1282,
5053 "QuestionId": 13,
5054 "Text": "South Africa",
5055 "Value": "South Africa",
5056 "Order": 162
5057 },
5058 {
5059 "Id": 1290,
5060 "QuestionId": 13,
5061 "Text": "Spain",
5062 "Value": "Spain",
5063 "Order": 163
5064 },
5065 {
5066 "Id": 1298,
5067 "QuestionId": 13,
5068 "Text": "Sri Lanka",
5069 "Value": "Sri Lanka",
5070 "Order": 164
5071 },
5072 {
5073 "Id": 1306,
5074 "QuestionId": 13,
5075 "Text": "Sudan",
5076 "Value": "Sudan",
5077 "Order": 165
5078 },
5079 {
5080 "Id": 1314,
5081 "QuestionId": 13,
5082 "Text": "Suriname",
5083 "Value": "Suriname",
5084 "Order": 166
5085 },
5086 {
5087 "Id": 1322,
5088 "QuestionId": 13,
5089 "Text": "Swaziland",
5090 "Value": "Swaziland",
5091 "Order": 167
5092 },
5093 {
5094 "Id": 1330,
5095 "QuestionId": 13,
5096 "Text": "Sweden",
5097 "Value": "Sweden",
5098 "Order": 168
5099 },
5100 {
5101 "Id": 1338,
5102 "QuestionId": 13,
5103 "Text": "Switzerland",
5104 "Value": "Switzerland",
5105 "Order": 169
5106 },
5107 {
5108 "Id": 1346,
5109 "QuestionId": 13,
5110 "Text": "Syria",
5111 "Value": "Syria",
5112 "Order": 170
5113 },
5114 {
5115 "Id": 1354,
5116 "QuestionId": 13,
5117 "Text": "Taiwan",
5118 "Value": "Taiwan",
5119 "Order": 171
5120 },
5121 {
5122 "Id": 1362,
5123 "QuestionId": 13,
5124 "Text": "Tajikistan",
5125 "Value": "Tajikistan",
5126 "Order": 172
5127 },
5128 {
5129 "Id": 1370,
5130 "QuestionId": 13,
5131 "Text": "Tanzania",
5132 "Value": "Tanzania",
5133 "Order": 173
5134 },
5135 {
5136 "Id": 1378,
5137 "QuestionId": 13,
5138 "Text": "Thailand",
5139 "Value": "Thailand",
5140 "Order": 174
5141 },
5142 {
5143 "Id": 1386,
5144 "QuestionId": 13,
5145 "Text": "Togo",
5146 "Value": "Togo",
5147 "Order": 175
5148 },
5149 {
5150 "Id": 1394,
5151 "QuestionId": 13,
5152 "Text": "Tonga",
5153 "Value": "Tonga",
5154 "Order": 176
5155 },
5156 {
5157 "Id": 1402,
5158 "QuestionId": 13,
5159 "Text": "Trinidad and Tobago",
5160 "Value": "Trinidad and Tobago",
5161 "Order": 177
5162 },
5163 {
5164 "Id": 1410,
5165 "QuestionId": 13,
5166 "Text": "Tunisia",
5167 "Value": "Tunisia",
5168 "Order": 178
5169 },
5170 {
5171 "Id": 1418,
5172 "QuestionId": 13,
5173 "Text": "Turkey",
5174 "Value": "Turkey",
5175 "Order": 179
5176 },
5177 {
5178 "Id": 1426,
5179 "QuestionId": 13,
5180 "Text": "Turkmenistan",
5181 "Value": "Turkmenistan",
5182 "Order": 180
5183 },
5184 {
5185 "Id": 1434,
5186 "QuestionId": 13,
5187 "Text": "Tuvalu",
5188 "Value": "Tuvalu",
5189 "Order": 181
5190 },
5191 {
5192 "Id": 1442,
5193 "QuestionId": 13,
5194 "Text": "Uganda",
5195 "Value": "Uganda",
5196 "Order": 182
5197 },
5198 {
5199 "Id": 1450,
5200 "QuestionId": 13,
5201 "Text": "Ukraine",
5202 "Value": "Ukraine",
5203 "Order": 183
5204 },
5205 {
5206 "Id": 1458,
5207 "QuestionId": 13,
5208 "Text": "United Arab Emirates",
5209 "Value": "United Arab Emirates",
5210 "Order": 184
5211 },
5212 {
5213 "Id": 1466,
5214 "QuestionId": 13,
5215 "Text": "United Kingdom",
5216 "Value": "United Kingdom",
5217 "Order": 185
5218 },
5219 {
5220 "Id": 1474,
5221 "QuestionId": 13,
5222 "Text": "United States",
5223 "Value": "United States",
5224 "Order": 2
5225 },
5226 {
5227 "Id": 1482,
5228 "QuestionId": 13,
5229 "Text": "Uruguay",
5230 "Value": "Uruguay",
5231 "Order": 186
5232 },
5233 {
5234 "Id": 1490,
5235 "QuestionId": 13,
5236 "Text": "Uzbekistan",
5237 "Value": "Uzbekistan",
5238 "Order": 187
5239 },
5240 {
5241 "Id": 1498,
5242 "QuestionId": 13,
5243 "Text": "Vanuatu",
5244 "Value": "Vanuatu",
5245 "Order": 188
5246 },
5247 {
5248 "Id": 1506,
5249 "QuestionId": 13,
5250 "Text": "Vatican City",
5251 "Value": "Vatican City",
5252 "Order": 189
5253 },
5254 {
5255 "Id": 1514,
5256 "QuestionId": 13,
5257 "Text": "Venezuela",
5258 "Value": "Venezuela",
5259 "Order": 190
5260 },
5261 {
5262 "Id": 1522,
5263 "QuestionId": 13,
5264 "Text": "Vietnam",
5265 "Value": "Vietnam",
5266 "Order": 191
5267 },
5268 {
5269 "Id": 1530,
5270 "QuestionId": 13,
5271 "Text": "Yemen",
5272 "Value": "Yemen",
5273 "Order": 192
5274 },
5275 {
5276 "Id": 1538,
5277 "QuestionId": 13,
5278 "Text": "Zambia",
5279 "Value": "Zambia",
5280 "Order": 193
5281 },
5282 {
5283 "Id": 1546,
5284 "QuestionId": 13,
5285 "Text": "Zimbabwe",
5286 "Value": "Zimbabwe",
5287 "Order": 194
5288 },
5289 {
5290 "Id": 2186,
5291 "QuestionId": 13,
5292 "Text": "British Columbia",
5293 "Value": "British Columbia",
5294 "Order": 195
5295 }
5296 ]
5297 }
5298 ]
5299 }
5300 {{/code}}
5301
5302
5303 (% id="HGETlookupquestionbyType" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
5304 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by Type(%%) ==
5305
5306 ----
5307
5308 {{panel bgColor="#D3D3D3" width="100%"}}
5309 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Type=4
5310 {{/panel}}
5311
5312 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
5313
5314 ----
5315
5316 (% 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}}
5317
5318 === (% style="color:#212121" %)Query Params(%%) ===
5319
5320 ----
5321
5322 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Type  4(%%)
5323
5324
5325 ==== Example ====
5326
5327 ----
5328
5329 (% style="color:#6b6b6b" %)Request
5330
5331 {{code language="php" theme="RDark" title="Lookup question by Type Request"}}
5332 <?php
5333
5334 $curl = curl_init();
5335
5336 curl_setopt_array($curl, array(
5337 CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Type=4',
5338 CURLOPT_RETURNTRANSFER => true,
5339 CURLOPT_ENCODING => '',
5340 CURLOPT_MAXREDIRS => 10,
5341 CURLOPT_TIMEOUT => 0,
5342 CURLOPT_FOLLOWLOCATION => true,
5343 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
5344 CURLOPT_CUSTOMREQUEST => 'GET',
5345 CURLOPT_HTTPHEADER => array(
5346 'Appkey: {{ONECOUNT API KEY}}'
5347 ),
5348 ));
5349
5350 $response = curl_exec($curl);
5351
5352 curl_close($curl);
5353 echo $response;
5354 {{/code}}
5355
5356
5357 (% style="color:#6b6b6b" %)Response  200 OK
5358
5359 {{code language="yml" theme="RDark" collapse="true" title="Lookup question by type Response"}}
5360 {
5361 "result": {
5362 "success": "1",
5363 "error": {
5364 "code": "",
5365 "message": ""
5366 }
5367 },
5368 "Questions": [
5369 {
5370 "Id": 11,
5371 "Text": "State/Province",
5372 "Type": "4",
5373 "Alias": "State/Province",
5374 "Choices": [
5375 {
5376 "Id": 1554,
5377 "QuestionId": 11,
5378 "Text": "Select One",
5379 "Value": "",
5380 "Order": 1
5381 },
5382 {
5383 "Id": 1562,
5384 "QuestionId": 11,
5385 "Text": "Alabama",
5386 "Value": "AL",
5387 "Order": 2
5388 },
5389 {
5390 "Id": 1570,
5391 "QuestionId": 11,
5392 "Text": "Alaska",
5393 "Value": "AK",
5394 "Order": 3
5395 },
5396 {
5397 "Id": 1578,
5398 "QuestionId": 11,
5399 "Text": "Arizona",
5400 "Value": "AZ",
5401 "Order": 4
5402 },
5403 {
5404 "Id": 1586,
5405 "QuestionId": 11,
5406 "Text": "Arkansas",
5407 "Value": "AR",
5408 "Order": 5
5409 },
5410 {
5411 "Id": 1594,
5412 "QuestionId": 11,
5413 "Text": "California",
5414 "Value": "CA",
5415 "Order": 6
5416 },
5417 {
5418 "Id": 1602,
5419 "QuestionId": 11,
5420 "Text": "Colorado",
5421 "Value": "CO",
5422 "Order": 7
5423 },
5424 {
5425 "Id": 1610,
5426 "QuestionId": 11,
5427 "Text": "Connecticut",
5428 "Value": "CT",
5429 "Order": 8
5430 },
5431 {
5432 "Id": 1618,
5433 "QuestionId": 11,
5434 "Text": "Delaware",
5435 "Value": "DE",
5436 "Order": 9
5437 },
5438 {
5439 "Id": 1626,
5440 "QuestionId": 11,
5441 "Text": "District of Columbia",
5442 "Value": "DC",
5443 "Order": 10
5444 },
5445 {
5446 "Id": 1634,
5447 "QuestionId": 11,
5448 "Text": "Florida",
5449 "Value": "FL",
5450 "Order": 11
5451 },
5452 {
5453 "Id": 1642,
5454 "QuestionId": 11,
5455 "Text": "Georgia",
5456 "Value": "GA",
5457 "Order": 12
5458 },
5459 {
5460 "Id": 1650,
5461 "QuestionId": 11,
5462 "Text": "Hawaii",
5463 "Value": "HI",
5464 "Order": 13
5465 },
5466 {
5467 "Id": 1658,
5468 "QuestionId": 11,
5469 "Text": "Idaho",
5470 "Value": "ID",
5471 "Order": 14
5472 },
5473 {
5474 "Id": 1666,
5475 "QuestionId": 11,
5476 "Text": "Illinois",
5477 "Value": "IL",
5478 "Order": 15
5479 },
5480 {
5481 "Id": 1674,
5482 "QuestionId": 11,
5483 "Text": "Indiana",
5484 "Value": "IN",
5485 "Order": 16
5486 },
5487 {
5488 "Id": 1682,
5489 "QuestionId": 11,
5490 "Text": "Iowa",
5491 "Value": "IA",
5492 "Order": 17
5493 },
5494 {
5495 "Id": 1690,
5496 "QuestionId": 11,
5497 "Text": "Kansas",
5498 "Value": "KS",
5499 "Order": 18
5500 },
5501 {
5502 "Id": 1698,
5503 "QuestionId": 11,
5504 "Text": "Kentucky",
5505 "Value": "KY",
5506 "Order": 19
5507 },
5508 {
5509 "Id": 1706,
5510 "QuestionId": 11,
5511 "Text": "Louisiana",
5512 "Value": "LA",
5513 "Order": 20
5514 },
5515 {
5516 "Id": 1714,
5517 "QuestionId": 11,
5518 "Text": "Maine",
5519 "Value": "ME",
5520 "Order": 21
5521 },
5522 {
5523 "Id": 1722,
5524 "QuestionId": 11,
5525 "Text": "Maryland",
5526 "Value": "MD",
5527 "Order": 22
5528 },
5529 {
5530 "Id": 1730,
5531 "QuestionId": 11,
5532 "Text": "Massachusetts",
5533 "Value": "MA",
5534 "Order": 23
5535 },
5536 {
5537 "Id": 1738,
5538 "QuestionId": 11,
5539 "Text": "Michigan",
5540 "Value": "MI",
5541 "Order": 24
5542 },
5543 {
5544 "Id": 1746,
5545 "QuestionId": 11,
5546 "Text": "Minnesota",
5547 "Value": "MN",
5548 "Order": 25
5549 },
5550 {
5551 "Id": 1754,
5552 "QuestionId": 11,
5553 "Text": "Mississippi",
5554 "Value": "MS",
5555 "Order": 26
5556 },
5557 {
5558 "Id": 1762,
5559 "QuestionId": 11,
5560 "Text": "Missouri",
5561 "Value": "MO",
5562 "Order": 27
5563 },
5564 {
5565 "Id": 1770,
5566 "QuestionId": 11,
5567 "Text": "Montana",
5568 "Value": "MT",
5569 "Order": 28
5570 },
5571 {
5572 "Id": 1778,
5573 "QuestionId": 11,
5574 "Text": "Nebraska",
5575 "Value": "NE",
5576 "Order": 29
5577 },
5578 {
5579 "Id": 1786,
5580 "QuestionId": 11,
5581 "Text": "Nevada",
5582 "Value": "NV",
5583 "Order": 30
5584 },
5585 {
5586 "Id": 1794,
5587 "QuestionId": 11,
5588 "Text": "New Hampshire",
5589 "Value": "NH",
5590 "Order": 31
5591 },
5592 {
5593 "Id": 1802,
5594 "QuestionId": 11,
5595 "Text": "New Jersey",
5596 "Value": "NJ",
5597 "Order": 32
5598 },
5599 {
5600 "Id": 1810,
5601 "QuestionId": 11,
5602 "Text": "New Mexico",
5603 "Value": "NM",
5604 "Order": 33
5605 },
5606 {
5607 "Id": 1818,
5608 "QuestionId": 11,
5609 "Text": "New York",
5610 "Value": "NY",
5611 "Order": 34
5612 },
5613 {
5614 "Id": 1826,
5615 "QuestionId": 11,
5616 "Text": "North Carolina",
5617 "Value": "NC",
5618 "Order": 35
5619 },
5620 {
5621 "Id": 1834,
5622 "QuestionId": 11,
5623 "Text": "Ohio",
5624 "Value": "OH",
5625 "Order": 37
5626 },
5627 {
5628 "Id": 1842,
5629 "QuestionId": 11,
5630 "Text": "Oklahoma",
5631 "Value": "OK",
5632 "Order": 38
5633 },
5634 {
5635 "Id": 1850,
5636 "QuestionId": 11,
5637 "Text": "Oregon",
5638 "Value": "OR",
5639 "Order": 39
5640 },
5641 {
5642 "Id": 1858,
5643 "QuestionId": 11,
5644 "Text": "Pennsylvania",
5645 "Value": "PA",
5646 "Order": 40
5647 },
5648 {
5649 "Id": 1866,
5650 "QuestionId": 11,
5651 "Text": "Rhode Island",
5652 "Value": "RI",
5653 "Order": 41
5654 },
5655 {
5656 "Id": 1874,
5657 "QuestionId": 11,
5658 "Text": "South Carolina",
5659 "Value": "SC",
5660 "Order": 42
5661 },
5662 {
5663 "Id": 1882,
5664 "QuestionId": 11,
5665 "Text": "South Dakota",
5666 "Value": "SD",
5667 "Order": 43
5668 },
5669 {
5670 "Id": 1890,
5671 "QuestionId": 11,
5672 "Text": "Tennessee",
5673 "Value": "TN",
5674 "Order": 44
5675 },
5676 {
5677 "Id": 1898,
5678 "QuestionId": 11,
5679 "Text": "Texas",
5680 "Value": "TX",
5681 "Order": 45
5682 },
5683 {
5684 "Id": 1906,
5685 "QuestionId": 11,
5686 "Text": "Utah",
5687 "Value": "UT",
5688 "Order": 46
5689 },
5690 {
5691 "Id": 1914,
5692 "QuestionId": 11,
5693 "Text": "Vermont",
5694 "Value": "VT",
5695 "Order": 47
5696 },
5697 {
5698 "Id": 1922,
5699 "QuestionId": 11,
5700 "Text": "Virginia",
5701 "Value": "VA",
5702 "Order": 48
5703 },
5704 {
5705 "Id": 1930,
5706 "QuestionId": 11,
5707 "Text": "Washington",
5708 "Value": "WA",
5709 "Order": 49
5710 },
5711 {
5712 "Id": 1938,
5713 "QuestionId": 11,
5714 "Text": "West Virginia",
5715 "Value": "WV",
5716 "Order": 50
5717 },
5718 {
5719 "Id": 1946,
5720 "QuestionId": 11,
5721 "Text": "Wisconsin",
5722 "Value": "WI",
5723 "Order": 51
5724 },
5725 {
5726 "Id": 1954,
5727 "QuestionId": 11,
5728 "Text": "Wyoming",
5729 "Value": "WY",
5730 "Order": 52
5731 },
5732 {
5733 "Id": 1962,
5734 "QuestionId": 11,
5735 "Text": "American Samoa",
5736 "Value": "AS",
5737 "Order": 53
5738 },
5739 {
5740 "Id": 1970,
5741 "QuestionId": 11,
5742 "Text": "North Dakota",
5743 "Value": "ND",
5744 "Order": 36
5745 },
5746 {
5747 "Id": 1978,
5748 "QuestionId": 11,
5749 "Text": "Federated States of Micronesia",
5750 "Value": "FM",
5751 "Order": 54
5752 },
5753 {
5754 "Id": 1986,
5755 "QuestionId": 11,
5756 "Text": "Guam",
5757 "Value": "GU",
5758 "Order": 55
5759 },
5760 {
5761 "Id": 1994,
5762 "QuestionId": 11,
5763 "Text": "Marshall Islands",
5764 "Value": "MH",
5765 "Order": 56
5766 },
5767 {
5768 "Id": 2002,
5769 "QuestionId": 11,
5770 "Text": "Northern Mariana Islands",
5771 "Value": "MP",
5772 "Order": 57
5773 },
5774 {
5775 "Id": 2010,
5776 "QuestionId": 11,
5777 "Text": "Palau",
5778 "Value": "PW",
5779 "Order": 58
5780 },
5781 {
5782 "Id": 2018,
5783 "QuestionId": 11,
5784 "Text": "Puerto Rico",
5785 "Value": "PR",
5786 "Order": 59
5787 },
5788 {
5789 "Id": 2026,
5790 "QuestionId": 11,
5791 "Text": "U.S. Virgin Islands",
5792 "Value": "VI",
5793 "Order": 60
5794 },
5795 {
5796 "Id": 2034,
5797 "QuestionId": 11,
5798 "Text": "Armed Forces Africa",
5799 "Value": "AE",
5800 "Order": 61
5801 },
5802 {
5803 "Id": 2042,
5804 "QuestionId": 11,
5805 "Text": "Armed Forces Americas (except Canada)",
5806 "Value": "AA",
5807 "Order": 62
5808 },
5809 {
5810 "Id": 2050,
5811 "QuestionId": 11,
5812 "Text": "Armed Forces Canada",
5813 "Value": "AE",
5814 "Order": 63
5815 },
5816 {
5817 "Id": 2058,
5818 "QuestionId": 11,
5819 "Text": "Armed Forces Europe",
5820 "Value": "AE",
5821 "Order": 64
5822 },
5823 {
5824 "Id": 2066,
5825 "QuestionId": 11,
5826 "Text": "Armed Forces Middle East",
5827 "Value": "AE",
5828 "Order": 65
5829 },
5830 {
5831 "Id": 2074,
5832 "QuestionId": 11,
5833 "Text": "Armed Forces Pacific",
5834 "Value": "AP",
5835 "Order": 66
5836 },
5837 {
5838 "Id": 2082,
5839 "QuestionId": 11,
5840 "Text": "Non-US/Not Applicable",
5841 "Value": "Non-US/Not Applicable",
5842 "Order": 67
5843 },
5844 {
5845 "Id": 2090,
5846 "QuestionId": 11,
5847 "Text": "Ontario",
5848 "Value": "Ontario",
5849 "Order": 68
5850 },
5851 {
5852 "Id": 2098,
5853 "QuestionId": 11,
5854 "Text": "Quebec",
5855 "Value": "Quebec",
5856 "Order": 69
5857 },
5858 {
5859 "Id": 2106,
5860 "QuestionId": 11,
5861 "Text": "Nova Scotia",
5862 "Value": "Nova Scotia",
5863 "Order": 70
5864 },
5865 {
5866 "Id": 2114,
5867 "QuestionId": 11,
5868 "Text": "New Brunswick",
5869 "Value": "New Brunswick",
5870 "Order": 71
5871 },
5872 {
5873 "Id": 2122,
5874 "QuestionId": 11,
5875 "Text": "Manitoba",
5876 "Value": "Manitoba",
5877 "Order": 72
5878 },
5879 {
5880 "Id": 2130,
5881 "QuestionId": 11,
5882 "Text": "Brittish Columbia",
5883 "Value": "Brittish Columbia",
5884 "Order": 73
5885 },
5886 {
5887 "Id": 2138,
5888 "QuestionId": 11,
5889 "Text": "Prince Edward Island",
5890 "Value": "Prince Edward Island",
5891 "Order": 74
5892 },
5893 {
5894 "Id": 2146,
5895 "QuestionId": 11,
5896 "Text": "Saskatchewan",
5897 "Value": "Saskatchewan",
5898 "Order": 75
5899 },
5900 {
5901 "Id": 2154,
5902 "QuestionId": 11,
5903 "Text": "Alberta",
5904 "Value": "Alberta",
5905 "Order": 76
5906 },
5907 {
5908 "Id": 2162,
5909 "QuestionId": 11,
5910 "Text": "Newfoundland and Labrador",
5911 "Value": "Newfoundland and Labrador",
5912 "Order": 77
5913 },
5914 {
5915 "Id": 2170,
5916 "QuestionId": 11,
5917 "Text": "British Columbia",
5918 "Value": "British Columbia",
5919 "Order": 78
5920 },
5921 {
5922 "Id": 2178,
5923 "QuestionId": 11,
5924 "Text": "Ontario",
5925 "Value": "ON",
5926 "Order": 79
5927 }
5928 ]
5929 },
5930 {
5931 "Id": 13,
5932 "Text": "Country",
5933 "Type": "4",
5934 "Alias": "Country",
5935 "Choices": [
5936 {
5937 "Id": 2,
5938 "QuestionId": 13,
5939 "Text": "Select One",
5940 "Value": "",
5941 "Order": 1
5942 },
5943 {
5944 "Id": 10,
5945 "QuestionId": 13,
5946 "Text": "Afghanistan",
5947 "Value": "Afghanistan",
5948 "Order": 3
5949 },
5950 {
5951 "Id": 18,
5952 "QuestionId": 13,
5953 "Text": "Albania",
5954 "Value": "Albania",
5955 "Order": 4
5956 },
5957 {
5958 "Id": 26,
5959 "QuestionId": 13,
5960 "Text": "Algeria",
5961 "Value": "Algeria",
5962 "Order": 5
5963 },
5964 {
5965 "Id": 34,
5966 "QuestionId": 13,
5967 "Text": "Andorra",
5968 "Value": "Andorra",
5969 "Order": 6
5970 },
5971 {
5972 "Id": 42,
5973 "QuestionId": 13,
5974 "Text": "Angola",
5975 "Value": "Angola",
5976 "Order": 7
5977 },
5978 {
5979 "Id": 50,
5980 "QuestionId": 13,
5981 "Text": "Antigua and Barbuda",
5982 "Value": "Antigua and Barbuda",
5983 "Order": 8
5984 },
5985 {
5986 "Id": 58,
5987 "QuestionId": 13,
5988 "Text": "Argentina",
5989 "Value": "Argentina",
5990 "Order": 9
5991 },
5992 {
5993 "Id": 66,
5994 "QuestionId": 13,
5995 "Text": "Armenia",
5996 "Value": "Armenia",
5997 "Order": 10
5998 },
5999 {
6000 "Id": 74,
6001 "QuestionId": 13,
6002 "Text": "Australia",
6003 "Value": "Australia",
6004 "Order": 11
6005 },
6006 {
6007 "Id": 82,
6008 "QuestionId": 13,
6009 "Text": "Austria",
6010 "Value": "Austria",
6011 "Order": 12
6012 },
6013 {
6014 "Id": 90,
6015 "QuestionId": 13,
6016 "Text": "Azerbaijan",
6017 "Value": "Azerbaijan",
6018 "Order": 13
6019 },
6020 {
6021 "Id": 98,
6022 "QuestionId": 13,
6023 "Text": "Bahamas",
6024 "Value": "Bahamas",
6025 "Order": 14
6026 },
6027 {
6028 "Id": 106,
6029 "QuestionId": 13,
6030 "Text": "Bahrain",
6031 "Value": "Bahrain",
6032 "Order": 15
6033 },
6034 {
6035 "Id": 114,
6036 "QuestionId": 13,
6037 "Text": "Bangladesh",
6038 "Value": "Bangladesh",
6039 "Order": 16
6040 },
6041 {
6042 "Id": 122,
6043 "QuestionId": 13,
6044 "Text": "Barbados",
6045 "Value": "Barbados",
6046 "Order": 17
6047 },
6048 {
6049 "Id": 130,
6050 "QuestionId": 13,
6051 "Text": "Belarus",
6052 "Value": "Belarus",
6053 "Order": 18
6054 },
6055 {
6056 "Id": 138,
6057 "QuestionId": 13,
6058 "Text": "Belgium",
6059 "Value": "Belgium",
6060 "Order": 19
6061 },
6062 {
6063 "Id": 146,
6064 "QuestionId": 13,
6065 "Text": "Belize",
6066 "Value": "Belize",
6067 "Order": 20
6068 },
6069 {
6070 "Id": 154,
6071 "QuestionId": 13,
6072 "Text": "Benin",
6073 "Value": "Benin",
6074 "Order": 21
6075 },
6076 {
6077 "Id": 162,
6078 "QuestionId": 13,
6079 "Text": "Bhutan",
6080 "Value": "Bhutan",
6081 "Order": 22
6082 },
6083 {
6084 "Id": 170,
6085 "QuestionId": 13,
6086 "Text": "Bolivia",
6087 "Value": "Bolivia",
6088 "Order": 23
6089 },
6090 {
6091 "Id": 178,
6092 "QuestionId": 13,
6093 "Text": "Bosnia and Herzegovina",
6094 "Value": "Bosnia and Herzegovina",
6095 "Order": 24
6096 },
6097 {
6098 "Id": 186,
6099 "QuestionId": 13,
6100 "Text": "Botswana",
6101 "Value": "Botswana",
6102 "Order": 25
6103 },
6104 {
6105 "Id": 194,
6106 "QuestionId": 13,
6107 "Text": "Brazil",
6108 "Value": "Brazil",
6109 "Order": 26
6110 },
6111 {
6112 "Id": 202,
6113 "QuestionId": 13,
6114 "Text": "Brunei",
6115 "Value": "Brunei",
6116 "Order": 27
6117 },
6118 {
6119 "Id": 210,
6120 "QuestionId": 13,
6121 "Text": "Bulgaria",
6122 "Value": "Bulgaria",
6123 "Order": 28
6124 },
6125 {
6126 "Id": 218,
6127 "QuestionId": 13,
6128 "Text": "Burkina Faso",
6129 "Value": "Burkina Faso",
6130 "Order": 29
6131 },
6132 {
6133 "Id": 226,
6134 "QuestionId": 13,
6135 "Text": "Burundi",
6136 "Value": "Burundi",
6137 "Order": 30
6138 },
6139 {
6140 "Id": 234,
6141 "QuestionId": 13,
6142 "Text": "Cambodia",
6143 "Value": "Cambodia",
6144 "Order": 31
6145 },
6146 {
6147 "Id": 242,
6148 "QuestionId": 13,
6149 "Text": "Cameroon",
6150 "Value": "Cameroon",
6151 "Order": 32
6152 },
6153 {
6154 "Id": 250,
6155 "QuestionId": 13,
6156 "Text": "Canada",
6157 "Value": "Canada",
6158 "Order": 33
6159 },
6160 {
6161 "Id": 258,
6162 "QuestionId": 13,
6163 "Text": "Cape Verde",
6164 "Value": "Cape Verde",
6165 "Order": 34
6166 },
6167 {
6168 "Id": 266,
6169 "QuestionId": 13,
6170 "Text": "Central African Republic",
6171 "Value": "Central African Republic",
6172 "Order": 35
6173 },
6174 {
6175 "Id": 274,
6176 "QuestionId": 13,
6177 "Text": "Chad",
6178 "Value": "Chad",
6179 "Order": 36
6180 },
6181 {
6182 "Id": 282,
6183 "QuestionId": 13,
6184 "Text": "Chile",
6185 "Value": "Chile",
6186 "Order": 37
6187 },
6188 {
6189 "Id": 290,
6190 "QuestionId": 13,
6191 "Text": "China",
6192 "Value": "China",
6193 "Order": 38
6194 },
6195 {
6196 "Id": 298,
6197 "QuestionId": 13,
6198 "Text": "Colombia",
6199 "Value": "Colombia",
6200 "Order": 39
6201 },
6202 {
6203 "Id": 306,
6204 "QuestionId": 13,
6205 "Text": "Comoros",
6206 "Value": "Comoros",
6207 "Order": 40
6208 },
6209 {
6210 "Id": 314,
6211 "QuestionId": 13,
6212 "Text": "Congo (Brazzaville)",
6213 "Value": "Congo (Brazzaville)",
6214 "Order": 41
6215 },
6216 {
6217 "Id": 322,
6218 "QuestionId": 13,
6219 "Text": "Congo",
6220 "Value": "Congo",
6221 "Order": 42
6222 },
6223 {
6224 "Id": 330,
6225 "QuestionId": 13,
6226 "Text": "Costa Rica",
6227 "Value": "Costa Rica",
6228 "Order": 43
6229 },
6230 {
6231 "Id": 338,
6232 "QuestionId": 13,
6233 "Text": "Cote d'Ivoire",
6234 "Value": "Cote d'Ivoire",
6235 "Order": 44
6236 },
6237 {
6238 "Id": 346,
6239 "QuestionId": 13,
6240 "Text": "Croatia",
6241 "Value": "Croatia",
6242 "Order": 45
6243 },
6244 {
6245 "Id": 354,
6246 "QuestionId": 13,
6247 "Text": "Cuba",
6248 "Value": "Cuba",
6249 "Order": 46
6250 },
6251 {
6252 "Id": 362,
6253 "QuestionId": 13,
6254 "Text": "Cyprus",
6255 "Value": "Cyprus",
6256 "Order": 47
6257 },
6258 {
6259 "Id": 370,
6260 "QuestionId": 13,
6261 "Text": "Czech Republic",
6262 "Value": "Czech Republic",
6263 "Order": 48
6264 },
6265 {
6266 "Id": 378,
6267 "QuestionId": 13,
6268 "Text": "Denmark",
6269 "Value": "Denmark",
6270 "Order": 49
6271 },
6272 {
6273 "Id": 386,
6274 "QuestionId": 13,
6275 "Text": "Djibouti",
6276 "Value": "Djibouti",
6277 "Order": 50
6278 },
6279 {
6280 "Id": 394,
6281 "QuestionId": 13,
6282 "Text": "Dominica",
6283 "Value": "Dominica",
6284 "Order": 51
6285 },
6286 {
6287 "Id": 402,
6288 "QuestionId": 13,
6289 "Text": "Dominican Republic",
6290 "Value": "Dominican Republic",
6291 "Order": 52
6292 },
6293 {
6294 "Id": 410,
6295 "QuestionId": 13,
6296 "Text": "East Timor",
6297 "Value": "East Timor",
6298 "Order": 53
6299 },
6300 {
6301 "Id": 418,
6302 "QuestionId": 13,
6303 "Text": "Ecuador",
6304 "Value": "Ecuador",
6305 "Order": 54
6306 },
6307 {
6308 "Id": 426,
6309 "QuestionId": 13,
6310 "Text": "Egypt",
6311 "Value": "Egypt",
6312 "Order": 55
6313 },
6314 {
6315 "Id": 434,
6316 "QuestionId": 13,
6317 "Text": "El Salvador",
6318 "Value": "El Salvador",
6319 "Order": 56
6320 },
6321 {
6322 "Id": 442,
6323 "QuestionId": 13,
6324 "Text": "Equatorial Guinea",
6325 "Value": "Equatorial Guinea",
6326 "Order": 57
6327 },
6328 {
6329 "Id": 450,
6330 "QuestionId": 13,
6331 "Text": "Eritrea",
6332 "Value": "Eritrea",
6333 "Order": 58
6334 },
6335 {
6336 "Id": 458,
6337 "QuestionId": 13,
6338 "Text": "Estonia",
6339 "Value": "Estonia",
6340 "Order": 59
6341 },
6342 {
6343 "Id": 466,
6344 "QuestionId": 13,
6345 "Text": "Ethiopia",
6346 "Value": "Ethiopia",
6347 "Order": 60
6348 },
6349 {
6350 "Id": 474,
6351 "QuestionId": 13,
6352 "Text": "Fiji",
6353 "Value": "Fiji",
6354 "Order": 61
6355 },
6356 {
6357 "Id": 482,
6358 "QuestionId": 13,
6359 "Text": "Finland",
6360 "Value": "Finland",
6361 "Order": 62
6362 },
6363 {
6364 "Id": 490,
6365 "QuestionId": 13,
6366 "Text": "France",
6367 "Value": "France",
6368 "Order": 63
6369 },
6370 {
6371 "Id": 498,
6372 "QuestionId": 13,
6373 "Text": "Gabon",
6374 "Value": "Gabon",
6375 "Order": 64
6376 },
6377 {
6378 "Id": 506,
6379 "QuestionId": 13,
6380 "Text": "Gambia, The",
6381 "Value": "Gambia, The",
6382 "Order": 65
6383 },
6384 {
6385 "Id": 514,
6386 "QuestionId": 13,
6387 "Text": "Georgia",
6388 "Value": "Georgia",
6389 "Order": 66
6390 },
6391 {
6392 "Id": 522,
6393 "QuestionId": 13,
6394 "Text": "Germany",
6395 "Value": "Germany",
6396 "Order": 67
6397 },
6398 {
6399 "Id": 530,
6400 "QuestionId": 13,
6401 "Text": "Ghana",
6402 "Value": "Ghana",
6403 "Order": 68
6404 },
6405 {
6406 "Id": 538,
6407 "QuestionId": 13,
6408 "Text": "Greece",
6409 "Value": "Greece",
6410 "Order": 69
6411 },
6412 {
6413 "Id": 546,
6414 "QuestionId": 13,
6415 "Text": "Grenada",
6416 "Value": "Grenada",
6417 "Order": 70
6418 },
6419 {
6420 "Id": 554,
6421 "QuestionId": 13,
6422 "Text": "Guatemala",
6423 "Value": "Guatemala",
6424 "Order": 71
6425 },
6426 {
6427 "Id": 562,
6428 "QuestionId": 13,
6429 "Text": "Guinea",
6430 "Value": "Guinea",
6431 "Order": 72
6432 },
6433 {
6434 "Id": 570,
6435 "QuestionId": 13,
6436 "Text": "Guinea-Bissau",
6437 "Value": "Guinea-Bissau",
6438 "Order": 73
6439 },
6440 {
6441 "Id": 578,
6442 "QuestionId": 13,
6443 "Text": "Guyana",
6444 "Value": "Guyana",
6445 "Order": 74
6446 },
6447 {
6448 "Id": 586,
6449 "QuestionId": 13,
6450 "Text": "Haiti",
6451 "Value": "Haiti",
6452 "Order": 75
6453 },
6454 {
6455 "Id": 594,
6456 "QuestionId": 13,
6457 "Text": "Honduras",
6458 "Value": "Honduras",
6459 "Order": 76
6460 },
6461 {
6462 "Id": 602,
6463 "QuestionId": 13,
6464 "Text": "Hungary",
6465 "Value": "Hungary",
6466 "Order": 77
6467 },
6468 {
6469 "Id": 610,
6470 "QuestionId": 13,
6471 "Text": "Iceland",
6472 "Value": "Iceland",
6473 "Order": 78
6474 },
6475 {
6476 "Id": 618,
6477 "QuestionId": 13,
6478 "Text": "India",
6479 "Value": "India",
6480 "Order": 79
6481 },
6482 {
6483 "Id": 626,
6484 "QuestionId": 13,
6485 "Text": "Indonesia",
6486 "Value": "Indonesia",
6487 "Order": 80
6488 },
6489 {
6490 "Id": 634,
6491 "QuestionId": 13,
6492 "Text": "Iran",
6493 "Value": "Iran",
6494 "Order": 81
6495 },
6496 {
6497 "Id": 642,
6498 "QuestionId": 13,
6499 "Text": "Iraq",
6500 "Value": "Iraq",
6501 "Order": 82
6502 },
6503 {
6504 "Id": 650,
6505 "QuestionId": 13,
6506 "Text": "Ireland",
6507 "Value": "Ireland",
6508 "Order": 83
6509 },
6510 {
6511 "Id": 658,
6512 "QuestionId": 13,
6513 "Text": "Israel",
6514 "Value": "Israel",
6515 "Order": 84
6516 },
6517 {
6518 "Id": 666,
6519 "QuestionId": 13,
6520 "Text": "Italy",
6521 "Value": "Italy",
6522 "Order": 85
6523 },
6524 {
6525 "Id": 674,
6526 "QuestionId": 13,
6527 "Text": "Jamaica",
6528 "Value": "Jamaica",
6529 "Order": 86
6530 },
6531 {
6532 "Id": 682,
6533 "QuestionId": 13,
6534 "Text": "Japan",
6535 "Value": "Japan",
6536 "Order": 87
6537 },
6538 {
6539 "Id": 690,
6540 "QuestionId": 13,
6541 "Text": "Jordan",
6542 "Value": "Jordan",
6543 "Order": 88
6544 },
6545 {
6546 "Id": 698,
6547 "QuestionId": 13,
6548 "Text": "Kazakhstan",
6549 "Value": "Kazakhstan",
6550 "Order": 89
6551 },
6552 {
6553 "Id": 706,
6554 "QuestionId": 13,
6555 "Text": "Kenya",
6556 "Value": "Kenya",
6557 "Order": 90
6558 },
6559 {
6560 "Id": 714,
6561 "QuestionId": 13,
6562 "Text": "Kiribati",
6563 "Value": "Kiribati",
6564 "Order": 91
6565 },
6566 {
6567 "Id": 722,
6568 "QuestionId": 13,
6569 "Text": "Korea, North",
6570 "Value": "Korea, North",
6571 "Order": 92
6572 },
6573 {
6574 "Id": 730,
6575 "QuestionId": 13,
6576 "Text": "Korea, South",
6577 "Value": "Korea, South",
6578 "Order": 93
6579 },
6580 {
6581 "Id": 738,
6582 "QuestionId": 13,
6583 "Text": "Kuwait",
6584 "Value": "Kuwait",
6585 "Order": 94
6586 },
6587 {
6588 "Id": 746,
6589 "QuestionId": 13,
6590 "Text": "Kyrgyzstan",
6591 "Value": "Kyrgyzstan",
6592 "Order": 95
6593 },
6594 {
6595 "Id": 754,
6596 "QuestionId": 13,
6597 "Text": "Laos",
6598 "Value": "Laos",
6599 "Order": 96
6600 },
6601 {
6602 "Id": 762,
6603 "QuestionId": 13,
6604 "Text": "Latvia",
6605 "Value": "Latvia",
6606 "Order": 97
6607 },
6608 {
6609 "Id": 770,
6610 "QuestionId": 13,
6611 "Text": "Lebanon",
6612 "Value": "Lebanon",
6613 "Order": 98
6614 },
6615 {
6616 "Id": 778,
6617 "QuestionId": 13,
6618 "Text": "Lesotho",
6619 "Value": "Lesotho",
6620 "Order": 99
6621 },
6622 {
6623 "Id": 786,
6624 "QuestionId": 13,
6625 "Text": "Liberia",
6626 "Value": "Liberia",
6627 "Order": 100
6628 },
6629 {
6630 "Id": 794,
6631 "QuestionId": 13,
6632 "Text": "Libya",
6633 "Value": "Libya",
6634 "Order": 101
6635 },
6636 {
6637 "Id": 802,
6638 "QuestionId": 13,
6639 "Text": "Liechtenstein",
6640 "Value": "Liechtenstein",
6641 "Order": 102
6642 },
6643 {
6644 "Id": 810,
6645 "QuestionId": 13,
6646 "Text": "Lithuania",
6647 "Value": "Lithuania",
6648 "Order": 103
6649 },
6650 {
6651 "Id": 818,
6652 "QuestionId": 13,
6653 "Text": "Luxembourg",
6654 "Value": "Luxembourg",
6655 "Order": 104
6656 },
6657 {
6658 "Id": 826,
6659 "QuestionId": 13,
6660 "Text": "Macedonia",
6661 "Value": "Macedonia",
6662 "Order": 105
6663 },
6664 {
6665 "Id": 834,
6666 "QuestionId": 13,
6667 "Text": "Madagascar",
6668 "Value": "Madagascar",
6669 "Order": 106
6670 },
6671 {
6672 "Id": 842,
6673 "QuestionId": 13,
6674 "Text": "Malawi",
6675 "Value": "Malawi",
6676 "Order": 107
6677 },
6678 {
6679 "Id": 850,
6680 "QuestionId": 13,
6681 "Text": "Malaysia",
6682 "Value": "Malaysia",
6683 "Order": 108
6684 },
6685 {
6686 "Id": 858,
6687 "QuestionId": 13,
6688 "Text": "Maldives",
6689 "Value": "Maldives",
6690 "Order": 109
6691 },
6692 {
6693 "Id": 866,
6694 "QuestionId": 13,
6695 "Text": "Mali",
6696 "Value": "Mali",
6697 "Order": 110
6698 },
6699 {
6700 "Id": 874,
6701 "QuestionId": 13,
6702 "Text": "Malta",
6703 "Value": "Malta",
6704 "Order": 111
6705 },
6706 {
6707 "Id": 882,
6708 "QuestionId": 13,
6709 "Text": "Marshall Islands",
6710 "Value": "Marshall Islands",
6711 "Order": 112
6712 },
6713 {
6714 "Id": 890,
6715 "QuestionId": 13,
6716 "Text": "Mauritania",
6717 "Value": "Mauritania",
6718 "Order": 113
6719 },
6720 {
6721 "Id": 898,
6722 "QuestionId": 13,
6723 "Text": "Mauritius",
6724 "Value": "Mauritius",
6725 "Order": 114
6726 },
6727 {
6728 "Id": 906,
6729 "QuestionId": 13,
6730 "Text": "Mexico",
6731 "Value": "Mexico",
6732 "Order": 115
6733 },
6734 {
6735 "Id": 914,
6736 "QuestionId": 13,
6737 "Text": "Micronesia",
6738 "Value": "Micronesia",
6739 "Order": 116
6740 },
6741 {
6742 "Id": 922,
6743 "QuestionId": 13,
6744 "Text": "Moldova",
6745 "Value": "Moldova",
6746 "Order": 117
6747 },
6748 {
6749 "Id": 930,
6750 "QuestionId": 13,
6751 "Text": "Monaco",
6752 "Value": "Monaco",
6753 "Order": 118
6754 },
6755 {
6756 "Id": 938,
6757 "QuestionId": 13,
6758 "Text": "Mongolia",
6759 "Value": "Mongolia",
6760 "Order": 119
6761 },
6762 {
6763 "Id": 946,
6764 "QuestionId": 13,
6765 "Text": "Morocco",
6766 "Value": "Morocco",
6767 "Order": 120
6768 },
6769 {
6770 "Id": 954,
6771 "QuestionId": 13,
6772 "Text": "Mozambique",
6773 "Value": "Mozambique",
6774 "Order": 121
6775 },
6776 {
6777 "Id": 962,
6778 "QuestionId": 13,
6779 "Text": "Myanmar",
6780 "Value": "Myanmar",
6781 "Order": 122
6782 },
6783 {
6784 "Id": 970,
6785 "QuestionId": 13,
6786 "Text": "Namibia",
6787 "Value": "Namibia",
6788 "Order": 123
6789 },
6790 {
6791 "Id": 978,
6792 "QuestionId": 13,
6793 "Text": "Nauru",
6794 "Value": "Nauru",
6795 "Order": 124
6796 },
6797 {
6798 "Id": 986,
6799 "QuestionId": 13,
6800 "Text": "Nepa",
6801 "Value": "Nepa",
6802 "Order": 125
6803 },
6804 {
6805 "Id": 994,
6806 "QuestionId": 13,
6807 "Text": "Netherlands",
6808 "Value": "Netherlands",
6809 "Order": 126
6810 },
6811 {
6812 "Id": 1002,
6813 "QuestionId": 13,
6814 "Text": "New Zealand",
6815 "Value": "New Zealand",
6816 "Order": 127
6817 },
6818 {
6819 "Id": 1010,
6820 "QuestionId": 13,
6821 "Text": "Nicaragua",
6822 "Value": "Nicaragua",
6823 "Order": 128
6824 },
6825 {
6826 "Id": 1018,
6827 "QuestionId": 13,
6828 "Text": "Niger",
6829 "Value": "Niger",
6830 "Order": 129
6831 },
6832 {
6833 "Id": 1026,
6834 "QuestionId": 13,
6835 "Text": "Nigeria",
6836 "Value": "Nigeria",
6837 "Order": 130
6838 },
6839 {
6840 "Id": 1034,
6841 "QuestionId": 13,
6842 "Text": "Norway",
6843 "Value": "Norway",
6844 "Order": 131
6845 },
6846 {
6847 "Id": 1042,
6848 "QuestionId": 13,
6849 "Text": "Oman",
6850 "Value": "Oman",
6851 "Order": 132
6852 },
6853 {
6854 "Id": 1050,
6855 "QuestionId": 13,
6856 "Text": "Pakistan",
6857 "Value": "Pakistan",
6858 "Order": 133
6859 },
6860 {
6861 "Id": 1058,
6862 "QuestionId": 13,
6863 "Text": "Palau",
6864 "Value": "Palau",
6865 "Order": 134
6866 },
6867 {
6868 "Id": 1066,
6869 "QuestionId": 13,
6870 "Text": "Panama",
6871 "Value": "Panama",
6872 "Order": 135
6873 },
6874 {
6875 "Id": 1074,
6876 "QuestionId": 13,
6877 "Text": "Papua New Guinea",
6878 "Value": "Papua New Guinea",
6879 "Order": 136
6880 },
6881 {
6882 "Id": 1082,
6883 "QuestionId": 13,
6884 "Text": "Paraguay",
6885 "Value": "Paraguay",
6886 "Order": 137
6887 },
6888 {
6889 "Id": 1090,
6890 "QuestionId": 13,
6891 "Text": "Peru",
6892 "Value": "Peru",
6893 "Order": 138
6894 },
6895 {
6896 "Id": 1098,
6897 "QuestionId": 13,
6898 "Text": "Philippines",
6899 "Value": "Philippines",
6900 "Order": 139
6901 },
6902 {
6903 "Id": 1106,
6904 "QuestionId": 13,
6905 "Text": "Poland",
6906 "Value": "Poland",
6907 "Order": 140
6908 },
6909 {
6910 "Id": 1114,
6911 "QuestionId": 13,
6912 "Text": "Portugal",
6913 "Value": "Portugal",
6914 "Order": 141
6915 },
6916 {
6917 "Id": 1122,
6918 "QuestionId": 13,
6919 "Text": "Qatar",
6920 "Value": "Qatar",
6921 "Order": 142
6922 },
6923 {
6924 "Id": 1130,
6925 "QuestionId": 13,
6926 "Text": "Romania",
6927 "Value": "Romania",
6928 "Order": 143
6929 },
6930 {
6931 "Id": 1138,
6932 "QuestionId": 13,
6933 "Text": "Russia",
6934 "Value": "Russia",
6935 "Order": 144
6936 },
6937 {
6938 "Id": 1146,
6939 "QuestionId": 13,
6940 "Text": "Rwanda",
6941 "Value": "Rwanda",
6942 "Order": 145
6943 },
6944 {
6945 "Id": 1154,
6946 "QuestionId": 13,
6947 "Text": "Saint Kitts and Nevis",
6948 "Value": "Saint Kitts and Nevis",
6949 "Order": 146
6950 },
6951 {
6952 "Id": 1162,
6953 "QuestionId": 13,
6954 "Text": "Saint Lucia",
6955 "Value": "Saint Lucia",
6956 "Order": 147
6957 },
6958 {
6959 "Id": 1170,
6960 "QuestionId": 13,
6961 "Text": "Saint Vincent",
6962 "Value": "Saint Vincent",
6963 "Order": 148
6964 },
6965 {
6966 "Id": 1178,
6967 "QuestionId": 13,
6968 "Text": "Samoa",
6969 "Value": "Samoa",
6970 "Order": 149
6971 },
6972 {
6973 "Id": 1186,
6974 "QuestionId": 13,
6975 "Text": "San Marino",
6976 "Value": "San Marino",
6977 "Order": 150
6978 },
6979 {
6980 "Id": 1194,
6981 "QuestionId": 13,
6982 "Text": "Sao Tome and Principe",
6983 "Value": "Sao Tome and Principe",
6984 "Order": 151
6985 },
6986 {
6987 "Id": 1202,
6988 "QuestionId": 13,
6989 "Text": "Saudi Arabia",
6990 "Value": "Saudi Arabia",
6991 "Order": 152
6992 },
6993 {
6994 "Id": 1210,
6995 "QuestionId": 13,
6996 "Text": "Senegal",
6997 "Value": "Senegal",
6998 "Order": 153
6999 },
7000 {
7001 "Id": 1218,
7002 "QuestionId": 13,
7003 "Text": "Serbia and Montenegro",
7004 "Value": "Serbia and Montenegro",
7005 "Order": 154
7006 },
7007 {
7008 "Id": 1226,
7009 "QuestionId": 13,
7010 "Text": "Seychelles",
7011 "Value": "Seychelles",
7012 "Order": 155
7013 },
7014 {
7015 "Id": 1234,
7016 "QuestionId": 13,
7017 "Text": "Sierra Leone",
7018 "Value": "Sierra Leone",
7019 "Order": 156
7020 },
7021 {
7022 "Id": 1242,
7023 "QuestionId": 13,
7024 "Text": "Singapore",
7025 "Value": "Singapore",
7026 "Order": 157
7027 },
7028 {
7029 "Id": 1250,
7030 "QuestionId": 13,
7031 "Text": "Slovakia",
7032 "Value": "Slovakia",
7033 "Order": 158
7034 },
7035 {
7036 "Id": 1258,
7037 "QuestionId": 13,
7038 "Text": "Slovenia",
7039 "Value": "Slovenia",
7040 "Order": 159
7041 },
7042 {
7043 "Id": 1266,
7044 "QuestionId": 13,
7045 "Text": "Solomon Islands",
7046 "Value": "Solomon Islands",
7047 "Order": 160
7048 },
7049 {
7050 "Id": 1274,
7051 "QuestionId": 13,
7052 "Text": "Somalia",
7053 "Value": "Somalia",
7054 "Order": 161
7055 },
7056 {
7057 "Id": 1282,
7058 "QuestionId": 13,
7059 "Text": "South Africa",
7060 "Value": "South Africa",
7061 "Order": 162
7062 },
7063 {
7064 "Id": 1290,
7065 "QuestionId": 13,
7066 "Text": "Spain",
7067 "Value": "Spain",
7068 "Order": 163
7069 },
7070 {
7071 "Id": 1298,
7072 "QuestionId": 13,
7073 "Text": "Sri Lanka",
7074 "Value": "Sri Lanka",
7075 "Order": 164
7076 },
7077 {
7078 "Id": 1306,
7079 "QuestionId": 13,
7080 "Text": "Sudan",
7081 "Value": "Sudan",
7082 "Order": 165
7083 },
7084 {
7085 "Id": 1314,
7086 "QuestionId": 13,
7087 "Text": "Suriname",
7088 "Value": "Suriname",
7089 "Order": 166
7090 },
7091 {
7092 "Id": 1322,
7093 "QuestionId": 13,
7094 "Text": "Swaziland",
7095 "Value": "Swaziland",
7096 "Order": 167
7097 },
7098 {
7099 "Id": 1330,
7100 "QuestionId": 13,
7101 "Text": "Sweden",
7102 "Value": "Sweden",
7103 "Order": 168
7104 },
7105 {
7106 "Id": 1338,
7107 "QuestionId": 13,
7108 "Text": "Switzerland",
7109 "Value": "Switzerland",
7110 "Order": 169
7111 },
7112 {
7113 "Id": 1346,
7114 "QuestionId": 13,
7115 "Text": "Syria",
7116 "Value": "Syria",
7117 "Order": 170
7118 },
7119 {
7120 "Id": 1354,
7121 "QuestionId": 13,
7122 "Text": "Taiwan",
7123 "Value": "Taiwan",
7124 "Order": 171
7125 },
7126 {
7127 "Id": 1362,
7128 "QuestionId": 13,
7129 "Text": "Tajikistan",
7130 "Value": "Tajikistan",
7131 "Order": 172
7132 },
7133 {
7134 "Id": 1370,
7135 "QuestionId": 13,
7136 "Text": "Tanzania",
7137 "Value": "Tanzania",
7138 "Order": 173
7139 },
7140 {
7141 "Id": 1378,
7142 "QuestionId": 13,
7143 "Text": "Thailand",
7144 "Value": "Thailand",
7145 "Order": 174
7146 },
7147 {
7148 "Id": 1386,
7149 "QuestionId": 13,
7150 "Text": "Togo",
7151 "Value": "Togo",
7152 "Order": 175
7153 },
7154 {
7155 "Id": 1394,
7156 "QuestionId": 13,
7157 "Text": "Tonga",
7158 "Value": "Tonga",
7159 "Order": 176
7160 },
7161 {
7162 "Id": 1402,
7163 "QuestionId": 13,
7164 "Text": "Trinidad and Tobago",
7165 "Value": "Trinidad and Tobago",
7166 "Order": 177
7167 },
7168 {
7169 "Id": 1410,
7170 "QuestionId": 13,
7171 "Text": "Tunisia",
7172 "Value": "Tunisia",
7173 "Order": 178
7174 },
7175 {
7176 "Id": 1418,
7177 "QuestionId": 13,
7178 "Text": "Turkey",
7179 "Value": "Turkey",
7180 "Order": 179
7181 },
7182 {
7183 "Id": 1426,
7184 "QuestionId": 13,
7185 "Text": "Turkmenistan",
7186 "Value": "Turkmenistan",
7187 "Order": 180
7188 },
7189 {
7190 "Id": 1434,
7191 "QuestionId": 13,
7192 "Text": "Tuvalu",
7193 "Value": "Tuvalu",
7194 "Order": 181
7195 },
7196 {
7197 "Id": 1442,
7198 "QuestionId": 13,
7199 "Text": "Uganda",
7200 "Value": "Uganda",
7201 "Order": 182
7202 },
7203 {
7204 "Id": 1450,
7205 "QuestionId": 13,
7206 "Text": "Ukraine",
7207 "Value": "Ukraine",
7208 "Order": 183
7209 },
7210 {
7211 "Id": 1458,
7212 "QuestionId": 13,
7213 "Text": "United Arab Emirates",
7214 "Value": "United Arab Emirates",
7215 "Order": 184
7216 },
7217 {
7218 "Id": 1466,
7219 "QuestionId": 13,
7220 "Text": "United Kingdom",
7221 "Value": "United Kingdom",
7222 "Order": 185
7223 },
7224 {
7225 "Id": 1474,
7226 "QuestionId": 13,
7227 "Text": "United States",
7228 "Value": "United States",
7229 "Order": 2
7230 },
7231 {
7232 "Id": 1482,
7233 "QuestionId": 13,
7234 "Text": "Uruguay",
7235 "Value": "Uruguay",
7236 "Order": 186
7237 },
7238 {
7239 "Id": 1490,
7240 "QuestionId": 13,
7241 "Text": "Uzbekistan",
7242 "Value": "Uzbekistan",
7243 "Order": 187
7244 },
7245 {
7246 "Id": 1498,
7247 "QuestionId": 13,
7248 "Text": "Vanuatu",
7249 "Value": "Vanuatu",
7250 "Order": 188
7251 },
7252 {
7253 "Id": 1506,
7254 "QuestionId": 13,
7255 "Text": "Vatican City",
7256 "Value": "Vatican City",
7257 "Order": 189
7258 },
7259 {
7260 "Id": 1514,
7261 "QuestionId": 13,
7262 "Text": "Venezuela",
7263 "Value": "Venezuela",
7264 "Order": 190
7265 },
7266 {
7267 "Id": 1522,
7268 "QuestionId": 13,
7269 "Text": "Vietnam",
7270 "Value": "Vietnam",
7271 "Order": 191
7272 },
7273 {
7274 "Id": 1530,
7275 "QuestionId": 13,
7276 "Text": "Yemen",
7277 "Value": "Yemen",
7278 "Order": 192
7279 },
7280 {
7281 "Id": 1538,
7282 "QuestionId": 13,
7283 "Text": "Zambia",
7284 "Value": "Zambia",
7285 "Order": 193
7286 },
7287 {
7288 "Id": 1546,
7289 "QuestionId": 13,
7290 "Text": "Zimbabwe",
7291 "Value": "Zimbabwe",
7292 "Order": 194
7293 },
7294 {
7295 "Id": 2186,
7296 "QuestionId": 13,
7297 "Text": "British Columbia",
7298 "Value": "British Columbia",
7299 "Order": 195
7300 }
7301 ]
7302 },
7303 {
7304 "Id": 178,
7305 "Text": "Job Function",
7306 "Type": "4",
7307 "Alias": "Job Function",
7308 "Choices": [
7309 {
7310 "Id": 2266,
7311 "QuestionId": 178,
7312 "Text": "Select One",
7313 "Value": "",
7314 "Order": 1
7315 },
7316 {
7317 "Id": 2274,
7318 "QuestionId": 178,
7319 "Text": "Sales",
7320 "Value": "Sales",
7321 "Order": 2
7322 },
7323 {
7324 "Id": 2282,
7325 "QuestionId": 178,
7326 "Text": "Marketing",
7327 "Value": "Marketing",
7328 "Order": 3
7329 },
7330 {
7331 "Id": 2290,
7332 "QuestionId": 178,
7333 "Text": "New Media",
7334 "Value": "New Media",
7335 "Order": 4
7336 },
7337 {
7338 "Id": 2298,
7339 "QuestionId": 178,
7340 "Text": "Audience Development",
7341 "Value": "Audience Development",
7342 "Order": 5
7343 },
7344 {
7345 "Id": 2306,
7346 "QuestionId": 178,
7347 "Text": "Editorial",
7348 "Value": "Editorial",
7349 "Order": 6
7350 },
7351 {
7352 "Id": 2314,
7353 "QuestionId": 178,
7354 "Text": "Information Technology",
7355 "Value": "IT",
7356 "Order": 7
7357 },
7358 {
7359 "Id": 2322,
7360 "QuestionId": 178,
7361 "Text": "Corporate",
7362 "Value": "Corporate",
7363 "Order": 8
7364 },
7365 {
7366 "Id": 2418,
7367 "QuestionId": 178,
7368 "Text": "Other",
7369 "Value": "Other",
7370 "Order": 9
7371 }
7372 ]
7373 },
7374 {
7375 "Id": 202,
7376 "Text": "Type of Publication",
7377 "Type": "4",
7378 "Alias": "Type of Publication",
7379 "Choices": [
7380 {
7381 "Id": 2330,
7382 "QuestionId": 202,
7383 "Text": "Select One",
7384 "Value": "",
7385 "Order": 1
7386 },
7387 {
7388 "Id": 2338,
7389 "QuestionId": 202,
7390 "Text": "Magazine",
7391 "Value": "Magazine",
7392 "Order": 2
7393 },
7394 {
7395 "Id": 2346,
7396 "QuestionId": 202,
7397 "Text": "Newspaper",
7398 "Value": "Newspaper",
7399 "Order": 3
7400 },
7401 {
7402 "Id": 2354,
7403 "QuestionId": 202,
7404 "Text": "Digital Publisher",
7405 "Value": "Digital Publisher",
7406 "Order": 4
7407 },
7408 {
7409 "Id": 2362,
7410 "QuestionId": 202,
7411 "Text": "Book Publisher",
7412 "Value": "Book Publisher",
7413 "Order": 5
7414 },
7415 {
7416 "Id": 2370,
7417 "QuestionId": 202,
7418 "Text": "Newsletter/Email",
7419 "Value": "Newsletter/Email",
7420 "Order": 6
7421 }
7422 ]
7423 },
7424 {
7425 "Id": 226,
7426 "Text": "What is your time frame for deployment?",
7427 "Type": "4",
7428 "Alias": "What is your time frame for deployment?",
7429 "Choices": [
7430 {
7431 "Id": 2378,
7432 "QuestionId": 226,
7433 "Text": "Select One",
7434 "Value": "",
7435 "Order": 1
7436 },
7437 {
7438 "Id": 2386,
7439 "QuestionId": 226,
7440 "Text": "0-3 months",
7441 "Value": "0-3",
7442 "Order": 2
7443 },
7444 {
7445 "Id": 2394,
7446 "QuestionId": 226,
7447 "Text": "3-6 months",
7448 "Value": "3-6",
7449 "Order": 3
7450 },
7451 {
7452 "Id": 2402,
7453 "QuestionId": 226,
7454 "Text": "6-12 months",
7455 "Value": "6-12",
7456 "Order": 4
7457 },
7458 {
7459 "Id": 2410,
7460 "QuestionId": 226,
7461 "Text": "No Formal Plans",
7462 "Value": "No Formal Plans",
7463 "Order": 5
7464 }
7465 ]
7466 },
7467 {
7468 "Id": 250,
7469 "Text": "Industry",
7470 "Type": "4",
7471 "Alias": "Industry",
7472 "Choices": [
7473 {
7474 "Id": 2426,
7475 "QuestionId": 250,
7476 "Text": "Agency",
7477 "Value": "Agency",
7478 "Order": 2
7479 },
7480 {
7481 "Id": 2434,
7482 "QuestionId": 250,
7483 "Text": "Association",
7484 "Value": "Association",
7485 "Order": 3
7486 },
7487 {
7488 "Id": 2442,
7489 "QuestionId": 250,
7490 "Text": "Direct Marketing",
7491 "Value": "Direct Marketing",
7492 "Order": 4
7493 },
7494 {
7495 "Id": 2450,
7496 "QuestionId": 250,
7497 "Text": "Publisher",
7498 "Value": "Publisher",
7499 "Order": 5
7500 },
7501 {
7502 "Id": 2458,
7503 "QuestionId": 250,
7504 "Text": "Service Bureau",
7505 "Value": "Service Bureau",
7506 "Order": 6
7507 },
7508 {
7509 "Id": 2466,
7510 "QuestionId": 250,
7511 "Text": "Select One",
7512 "Value": "Government",
7513 "Order": 1
7514 },
7515 {
7516 "Id": 2737,
7517 "QuestionId": 250,
7518 "Text": "Other",
7519 "Value": "Other",
7520 "Order": 7
7521 },
7522 {
7523 "Id": 3051,
7524 "QuestionId": 250,
7525 "Text": "Business Services",
7526 "Value": "Business Services",
7527 "Order": 8
7528 },
7529 {
7530 "Id": 3059,
7531 "QuestionId": 250,
7532 "Text": "Business Services, Media & Internet",
7533 "Value": "Business Services, Media & Internet",
7534 "Order": 9
7535 },
7536 {
7537 "Id": 3067,
7538 "QuestionId": 250,
7539 "Text": "Business Services,Consumer Services",
7540 "Value": "Business Services,Consumer Services",
7541 "Order": 10
7542 },
7543 {
7544 "Id": 3075,
7545 "QuestionId": 250,
7546 "Text": "Business Services,Finance",
7547 "Value": "Business Services,Finance",
7548 "Order": 11
7549 },
7550 {
7551 "Id": 3083,
7552 "QuestionId": 250,
7553 "Text": "Business Services,Retail,Media & Internet",
7554 "Value": "Business Services,Retail,Media & Internet",
7555 "Order": 12
7556 },
7557 {
7558 "Id": 3091,
7559 "QuestionId": 250,
7560 "Text": "Business Services,Telecommunications",
7561 "Value": "Business Services,Telecommunications",
7562 "Order": 13
7563 },
7564 {
7565 "Id": 3099,
7566 "QuestionId": 250,
7567 "Text": "Energy, Utilities & Waste Treatment",
7568 "Value": "Energy, Utilities & Waste Treatment",
7569 "Order": 14
7570 },
7571 {
7572 "Id": 3107,
7573 "QuestionId": 250,
7574 "Text": "Finance",
7575 "Value": "Finance",
7576 "Order": 15
7577 },
7578 {
7579 "Id": 3115,
7580 "QuestionId": 250,
7581 "Text": "Hospitality",
7582 "Value": "Hospitality",
7583 "Order": 16
7584 },
7585 {
7586 "Id": 3123,
7587 "QuestionId": 250,
7588 "Text": "Hospitality,Media & Internet",
7589 "Value": "Hospitality,Media & Internet",
7590 "Order": 17
7591 },
7592 {
7593 "Id": 3131,
7594 "QuestionId": 250,
7595 "Text": "Insurance",
7596 "Value": "Insurance",
7597 "Order": 18
7598 },
7599 {
7600 "Id": 3139,
7601 "QuestionId": 250,
7602 "Text": "Insurance, Finance",
7603 "Value": "Insurance, Finance",
7604 "Order": 19
7605 },
7606 {
7607 "Id": 3147,
7608 "QuestionId": 250,
7609 "Text": "Manufacturing",
7610 "Value": "Manufacturing",
7611 "Order": 20
7612 },
7613 {
7614 "Id": 3155,
7615 "QuestionId": 250,
7616 "Text": "Manufacturing,Business Services",
7617 "Value": "Manufacturing,Business Services",
7618 "Order": 21
7619 },
7620 {
7621 "Id": 3163,
7622 "QuestionId": 250,
7623 "Text": "Manufacturing,Retail,Healthcare",
7624 "Value": "Manufacturing,Retail,Healthcare",
7625 "Order": 22
7626 },
7627 {
7628 "Id": 3171,
7629 "QuestionId": 250,
7630 "Text": "Media & Internet",
7631 "Value": "Media & Internet",
7632 "Order": 23
7633 },
7634 {
7635 "Id": 3179,
7636 "QuestionId": 250,
7637 "Text": "Media & Internet,Business Services",
7638 "Value": "Media & Internet,Business Services",
7639 "Order": 24
7640 },
7641 {
7642 "Id": 3187,
7643 "QuestionId": 250,
7644 "Text": "Organizations",
7645 "Value": "Organizations",
7646 "Order": 25
7647 },
7648 {
7649 "Id": 3195,
7650 "QuestionId": 250,
7651 "Text": "Real Estate",
7652 "Value": "Real Estate",
7653 "Order": 26
7654 },
7655 {
7656 "Id": 3203,
7657 "QuestionId": 250,
7658 "Text": "Retail",
7659 "Value": "Retail",
7660 "Order": 27
7661 },
7662 {
7663 "Id": 3211,
7664 "QuestionId": 250,
7665 "Text": "Retail,Software,Consumer Services",
7666 "Value": "Retail,Software,Consumer Services",
7667 "Order": 28
7668 },
7669 {
7670 "Id": 3219,
7671 "QuestionId": 250,
7672 "Text": "Software",
7673 "Value": "Software",
7674 "Order": 29
7675 },
7676 {
7677 "Id": 3227,
7678 "QuestionId": 250,
7679 "Text": "Retail, Manufacturing",
7680 "Value": "Retail, Manufacturing",
7681 "Order": 30
7682 },
7683 {
7684 "Id": 3235,
7685 "QuestionId": 250,
7686 "Text": "Software,Manufacturing,Retail",
7687 "Value": "Software,Manufacturing,Retail",
7688 "Order": 31
7689 },
7690 {
7691 "Id": 3243,
7692 "QuestionId": 250,
7693 "Text": "Business Services,Media & Internet",
7694 "Value": "Business Services,Media & Internet",
7695 "Order": 32
7696 },
7697 {
7698 "Id": 3251,
7699 "QuestionId": 250,
7700 "Text": "Telecommunications",
7701 "Value": "Telecommunications",
7702 "Order": 33
7703 }
7704 ]
7705 },
7706 {
7707 "Id": 274,
7708 "Text": "How many employees work at your company?_Copy",
7709 "Type": "4",
7710 "Alias": "ALL",
7711 "Choices": [
7712 {
7713 "Id": 2698,
7714 "QuestionId": 274,
7715 "Text": "1-25",
7716 "Value": "01",
7717 "Order": 1
7718 },
7719 {
7720 "Id": 2706,
7721 "QuestionId": 274,
7722 "Text": "26-100",
7723 "Value": "02",
7724 "Order": 2
7725 },
7726 {
7727 "Id": 2714,
7728 "QuestionId": 274,
7729 "Text": "101-250",
7730 "Value": "03",
7731 "Order": 3
7732 },
7733 {
7734 "Id": 2722,
7735 "QuestionId": 274,
7736 "Text": "251-500",
7737 "Value": "04",
7738 "Order": 4
7739 },
7740 {
7741 "Id": 2730,
7742 "QuestionId": 274,
7743 "Text": "500+",
7744 "Value": "05",
7745 "Order": 5
7746 }
7747 ]
7748 },
7749 {
7750 "Id": 281,
7751 "Text": "How many employees work at your company?_Copy",
7752 "Type": "4",
7753 "Alias": "How many employees work at your company?_Copy",
7754 "Choices": [
7755 {
7756 "Id": 2745,
7757 "QuestionId": 281,
7758 "Text": "1-25",
7759 "Value": "01",
7760 "Order": 1
7761 },
7762 {
7763 "Id": 2753,
7764 "QuestionId": 281,
7765 "Text": "26-100",
7766 "Value": "02",
7767 "Order": 2
7768 },
7769 {
7770 "Id": 2761,
7771 "QuestionId": 281,
7772 "Text": "101-250",
7773 "Value": "03",
7774 "Order": 3
7775 },
7776 {
7777 "Id": 2769,
7778 "QuestionId": 281,
7779 "Text": "251-500",
7780 "Value": "04",
7781 "Order": 4
7782 },
7783 {
7784 "Id": 2777,
7785 "QuestionId": 281,
7786 "Text": "500+",
7787 "Value": "05",
7788 "Order": 5
7789 }
7790 ]
7791 },
7792 {
7793 "Id": 291,
7794 "Text": "DAS Question Update",
7795 "Type": "4",
7796 "Alias": "DAS Question Update",
7797 "Choices": [
7798 {
7799 "Id": 2859,
7800 "QuestionId": 291,
7801 "Text": "Choice a Update",
7802 "Value": "a Update",
7803 "Order": 1
7804 },
7805 {
7806 "Id": 2867,
7807 "QuestionId": 291,
7808 "Text": "Choice b Update",
7809 "Value": "b Update",
7810 "Order": 2
7811 }
7812 ]
7813 },
7814 {
7815 "Id": 363,
7816 "Text": "Group Size",
7817 "Type": "4",
7818 "Alias": "Group Size",
7819 "Choices": [
7820 {
7821 "Id": 3027,
7822 "QuestionId": 363,
7823 "Text": "NA",
7824 "Value": "NA",
7825 "Order": 1
7826 },
7827 {
7828 "Id": 3035,
7829 "QuestionId": 363,
7830 "Text": "0-10",
7831 "Value": "0-10",
7832 "Order": 2
7833 },
7834 {
7835 "Id": 3043,
7836 "QuestionId": 363,
7837 "Text": "10-25",
7838 "Value": "10-25",
7839 "Order": 3
7840 }
7841 ]
7842 },
7843 {
7844 "Id": 399,
7845 "Text": "What best describes your job title?",
7846 "Type": "4",
7847 "Alias": "1105-title",
7848 "Choices": [
7849 {
7850 "Id": 3255,
7851 "QuestionId": 399,
7852 "Text": "CIO, CTO, CKO, Technical/VP",
7853 "Value": "CIO",
7854 "Order": 1
7855 },
7856 {
7857 "Id": 3263,
7858 "QuestionId": 399,
7859 "Text": "Corporate Management",
7860 "Value": "corporate",
7861 "Order": 2
7862 },
7863 {
7864 "Id": 3271,
7865 "QuestionId": 399,
7866 "Text": "IS/IT Director/Manager",
7867 "Value": "it",
7868 "Order": 3
7869 },
7870 {
7871 "Id": 3279,
7872 "QuestionId": 399,
7873 "Text": "Director of Softare Development",
7874 "Value": "software director",
7875 "Order": 4
7876 },
7877 {
7878 "Id": 3287,
7879 "QuestionId": 399,
7880 "Text": "Application Development Manager",
7881 "Value": "ADM",
7882 "Order": 5
7883 }
7884 ]
7885 },
7886 {
7887 "Id": 407,
7888 "Text": "What is your organization's (or largest client, if you are a consultant) primary business at this location?",
7889 "Type": "4",
7890 "Alias": "1105 largest client",
7891 "Choices": [
7892 {
7893 "Id": 3295,
7894 "QuestionId": 407,
7895 "Text": "Aerospace",
7896 "Value": "aerospace",
7897 "Order": 1
7898 },
7899 {
7900 "Id": 3303,
7901 "QuestionId": 407,
7902 "Text": "Agriculture/Mining/Gas/Oil",
7903 "Value": "ag",
7904 "Order": 2
7905 },
7906 {
7907 "Id": 3311,
7908 "QuestionId": 407,
7909 "Text": "Business Services/Consultants",
7910 "Value": "bs",
7911 "Order": 3
7912 },
7913 {
7914 "Id": 3319,
7915 "QuestionId": 407,
7916 "Text": "Construction/Architecture/Engineering",
7917 "Value": "construction",
7918 "Order": 4
7919 },
7920 {
7921 "Id": 3327,
7922 "QuestionId": 407,
7923 "Text": "Education/Training",
7924 "Value": "education",
7925 "Order": 5
7926 }
7927 ]
7928 },
7929 {
7930 "Id": 415,
7931 "Text": "What is the total number of employees in your entire organzation?",
7932 "Type": "4",
7933 "Alias": "1105 num employees",
7934 "Choices": [
7935 {
7936 "Id": 3335,
7937 "QuestionId": 415,
7938 "Text": "10,000 or more",
7939 "Value": "10000",
7940 "Order": 1
7941 },
7942 {
7943 "Id": 3343,
7944 "QuestionId": 415,
7945 "Text": "5,000 - 9,999",
7946 "Value": "5000",
7947 "Order": 2
7948 },
7949 {
7950 "Id": 3351,
7951 "QuestionId": 415,
7952 "Text": "1,000 - 4,999",
7953 "Value": "1000",
7954 "Order": 3
7955 },
7956 {
7957 "Id": 3359,
7958 "QuestionId": 415,
7959 "Text": "500 - 999",
7960 "Value": "500",
7961 "Order": 4
7962 },
7963 {
7964 "Id": 3367,
7965 "QuestionId": 415,
7966 "Text": "100 - 499",
7967 "Value": "100",
7968 "Order": 5
7969 },
7970 {
7971 "Id": 3375,
7972 "QuestionId": 415,
7973 "Text": "Under 100",
7974 "Value": "Under 100",
7975 "Order": 6
7976 }
7977 ]
7978 },
7979 {
7980 "Id": 423,
7981 "Text": "saaa",
7982 "Type": "4",
7983 "Alias": "test",
7984 "Choices": [
7985 {
7986 "Id": 3383,
7987 "QuestionId": 423,
7988 "Text": "1",
7989 "Value": "1",
7990 "Order": 1
7991 },
7992 {
7993 "Id": 3391,
7994 "QuestionId": 423,
7995 "Text": "3",
7996 "Value": "3",
7997 "Order": 2
7998 }
7999 ]
8000 }
8001 ]
8002 }
8003 {{/code}}
8004
8005
8006 (% id="HPOSTCreatequestiontypenumeric2Ctext2Cpassword2Ctextareaanddate" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8007 == (% 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(%%) ==
8008
8009 ----
8010
8011 {{panel bgColor="#D3D3D3" width="100%"}}
8012 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions
8013 {{/panel}}
8014
8015 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8016
8017 ----
8018
8019 (% 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}}
8020
8021 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8022
8023 ----
8024
8025 {{code language="yml" theme="RDark" title="Body"}}
8026 {"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}
8027 {{/code}}
8028
8029 ==== Example ====
8030
8031 ----
8032
8033 (% style="color:#6b6b6b" %)Request
8034
8035 {{code language="php" theme="RDark" title="Create Question Request"}}
8036 <?php
8037
8038 $curl = curl_init();
8039
8040 curl_setopt_array($curl, array(
8041 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
8042 CURLOPT_RETURNTRANSFER => true,
8043 CURLOPT_ENCODING => '',
8044 CURLOPT_MAXREDIRS => 10,
8045 CURLOPT_TIMEOUT => 0,
8046 CURLOPT_FOLLOWLOCATION => true,
8047 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8048 CURLOPT_CUSTOMREQUEST => 'POST',
8049 CURLOPT_POSTFIELDS =>'{"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}',
8050 CURLOPT_HTTPHEADER => array(
8051 'Appkey: {{ONECOUNT API KEY}}'
8052 ),
8053 ));
8054
8055 $response = curl_exec($curl);
8056
8057 curl_close($curl);
8058 echo $response;
8059 {{/code}}
8060
8061
8062 (% style="color:#6b6b6b" %)Response  200 OK
8063
8064 {{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}
8065 {
8066 "result": {
8067 "success": "1",
8068 "error": {
8069 "code": "",
8070 "message": ""
8071 }
8072 },
8073 "Questions": [
8074 {
8075 "Id": 455
8076 }
8077 ]
8078 }
8079 {{/code}}
8080
8081
8082 (% id="HPOSTCreatequestiontypeselect2Cradioandcheckbox" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8083 == (% 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(%%) ==
8084
8085 ----
8086
8087 {{panel bgColor="#D3D3D3" width="100%"}}
8088 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions
8089 {{/panel}}
8090
8091 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8092
8093 ----
8094
8095 (% 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}}
8096
8097 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8098
8099 ----
8100
8101 {{code language="yml" theme="RDark" title="Body"}}
8102 {"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"}]}
8103 {{/code}}
8104
8105 ==== Example ====
8106
8107 ----
8108
8109 (% style="color:#6b6b6b" %)Request
8110
8111 {{code language="php" theme="RDark" title="Create Question Request"}}
8112 <?php
8113
8114 $curl = curl_init();
8115
8116 curl_setopt_array($curl, array(
8117 CURLOPT_URL => 'https://api.onecount.net/v2/questions',
8118 CURLOPT_RETURNTRANSFER => true,
8119 CURLOPT_ENCODING => '',
8120 CURLOPT_MAXREDIRS => 10,
8121 CURLOPT_TIMEOUT => 0,
8122 CURLOPT_FOLLOWLOCATION => true,
8123 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8124 CURLOPT_CUSTOMREQUEST => 'POST',
8125 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"}]}',
8126 CURLOPT_HTTPHEADER => array(
8127 'Appkey: {{ONECOUNT API KEY}}'
8128 ),
8129 ));
8130
8131 $response = curl_exec($curl);
8132
8133 curl_close($curl);
8134 echo $response;
8135 {{/code}}
8136
8137
8138 (% style="color:#6b6b6b" %)Response  200 OK
8139
8140 {{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}
8141 {
8142 "result": {
8143 "success": "1",
8144 "error": {
8145 "code": "",
8146 "message": ""
8147 }
8148 },
8149 "Questions": [
8150 {
8151 "Id": 495
8152 }
8153 ]
8154 }
8155 {{/code}}
8156
8157
8158 (% id="HPUTUpdatequestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8159 == (% 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(%%) ==
8160
8161
8162 NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body.
8163
8164 {{panel bgColor="#D3D3D3" width="100%"}}
8165 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}}
8166 {{/panel}}
8167
8168 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8169
8170 ----
8171
8172 (% 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}}
8173
8174 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8175
8176 ----
8177
8178 {{code language="yml" theme="RDark" title="Body"}}
8179 {"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 {{/code}}
8181
8182 ==== Example ====
8183
8184 ----
8185
8186 (% style="color:#6b6b6b" %)Request
8187
8188 {{code language="php" theme="RDark" title="Update Question Request"}}
8189 <?php
8190
8191 $curl = curl_init();
8192
8193 curl_setopt_array($curl, array(
8194 CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}',
8195 CURLOPT_RETURNTRANSFER => true,
8196 CURLOPT_ENCODING => '',
8197 CURLOPT_MAXREDIRS => 10,
8198 CURLOPT_TIMEOUT => 0,
8199 CURLOPT_FOLLOWLOCATION => true,
8200 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8201 CURLOPT_CUSTOMREQUEST => 'PUT',
8202 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"}]}',
8203 CURLOPT_HTTPHEADER => array(
8204 'Appkey: {{ONECOUNT API KEY}}'
8205 ),
8206 ));
8207
8208 $response = curl_exec($curl);
8209
8210 curl_close($curl);
8211 echo $response;
8212
8213
8214 {{/code}}
8215
8216
8217 (% style="color:#6b6b6b" %)Response  200 OK
8218
8219 {{code language="yml" theme="RDark" collapse="true" title="Update Question Response"}}
8220 {
8221 "result": {
8222 "success": "1",
8223 "error": {
8224 "code": "",
8225 "message": ""
8226 }
8227 },
8228 "Questions": [
8229 {
8230 "Id": 503
8231 }
8232 ]
8233 }
8234 {{/code}}
8235
8236
8237 (% id="HCOMPONENT:Products" class="western" %)
8238 === **COMPONENT: Products** ===
8239
8240 (% class="western" %)
8241 This resource is for manipulating products resource. A product can be created, updated or searched.
8242
8243 (% class="wrapped" %)
8244 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8245 (((
8246 (% class="western" %)
8247 **Method**
8248 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8249 (((
8250 (% class="western" %)
8251 **Url**
8252 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8253 (((
8254 (% class="western" %)
8255 **Action**
8256 )))
8257 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8258 (((
8259 (% class="western" %)
8260 GET
8261 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8262 (((
8263 (% class="western" %)
8264 /products
8265 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8266 (((
8267 (% class="western" %)
8268 Get all product details
8269 )))
8270 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8271 (((
8272 (% class="western" %)
8273 GET
8274 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8275 (((
8276 (% class="western" %)
8277 /products/5
8278 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8279 (((
8280 (% class="western" %)
8281 Get product id 5
8282 )))
8283 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8284 (((
8285 (% class="western" %)
8286 GET
8287 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8288 (((
8289 (% class="western" %)
8290 /products/lookup?Title=productname
8291 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8292 (((
8293 (% class="western" %)
8294 Lookup products by Title
8295 )))
8296 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8297 (((
8298 (% class="western" %)
8299 POST
8300 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8301 (((
8302 (% class="western" %)
8303 /products
8304 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8305 (((
8306 (% class="western" %)
8307 JSON of the Products type object needs to be sent as post data. Id field should not be sent.
8308 )))
8309 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8310 (((
8311 (% class="western" %)
8312 PUT
8313 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8314 (((
8315 (% class="western" %)
8316 /products/5
8317 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8318 (((
8319 (% class="western" %)
8320 JSON of the Products type object needs to be sent as post data. Id field is mandatory for update.
8321 )))
8322 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8323 (((
8324 (% class="western" %)
8325 POST
8326 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8327 (((
8328 (% class="western" %)
8329 /products/attachResource
8330 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
8331 (((
8332 (% class="western" %)
8333 JSON of the Product and Resource ids to be sent as post data.
8334
8335 (% class="western" %)
8336 Both fields are mandatory.
8337
8338 (% class="western" %)
8339 Example:
8340
8341 (% class="western" %)
8342 {"ProductID":"65","ResourceID":”121"}
8343 )))
8344
8345 (% id="HGETAllProducts" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8346 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Products(%%) ==
8347
8348 ----
8349
8350 ----
8351
8352 {{panel bgColor="#D3D3D3" width="100%"}}
8353 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products
8354 {{/panel}}
8355
8356 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8357
8358 ----
8359
8360 (% 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}}
8361
8362 ==== Example ====
8363
8364 ----
8365
8366 (% style="color:#6b6b6b" %)Request
8367
8368 {{code language="php" theme="RDark" title="Get All Products Request"}}
8369 <?php
8370
8371 $curl = curl_init();
8372
8373 curl_setopt_array($curl, array(
8374 CURLOPT_URL => 'https://api.onecount.net/v2/products',
8375 CURLOPT_RETURNTRANSFER => true,
8376 CURLOPT_ENCODING => '',
8377 CURLOPT_MAXREDIRS => 10,
8378 CURLOPT_TIMEOUT => 0,
8379 CURLOPT_FOLLOWLOCATION => true,
8380 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8381 CURLOPT_CUSTOMREQUEST => 'GET',
8382 CURLOPT_HTTPHEADER => array(
8383 'Appkey: {{ONECOUNT API KEY}}'
8384 ),
8385 ));
8386
8387 $response = curl_exec($curl);
8388
8389 curl_close($curl);
8390 echo $response;
8391
8392
8393 {{/code}}
8394
8395
8396 (% style="color:#6b6b6b" %)Response  200 OK
8397
8398 {{code language="yml" theme="RDark" collapse="true" title="Get All Products Response"}}
8399 {
8400 "result": {
8401 "success": "1",
8402 "error": {
8403 "code": "",
8404 "message": ""
8405 }
8406 },
8407 "Products": [
8408 {
8409 "ProductId": 26,
8410 "Title": "ONEcount Product Demo",
8411 "Description": "",
8412 "ResourceIDs": [],
8413 "PrimaryFormID": [
8414 "307",
8415 "34"
8416 ],
8417 "Terms": {
8418 "Id": 26,
8419 "Name": "Please contact me to arrange a demo",
8420 "Description": "",
8421 "Duration": 1,
8422 "DurationUnit": "I",
8423 "Price": "0",
8424 "ProductId": 26
8425 }
8426 },
8427 {
8428 "ProductId": 34,
8429 "Title": "ONEcount Promotional Emails",
8430 "Description": "Master List of ONEcount prospects to receive promotional emails, etc.",
8431 "ResourceIDs": [
8432 98,
8433 114
8434 ],
8435 "PrimaryFormID": [
8436 "194"
8437 ],
8438 "Terms": {
8439 "Id": 34,
8440 "Name": "ONEcount Promotional Emails",
8441 "Description": "ONEcount promotional emails",
8442 "Duration": 1,
8443 "DurationUnit": "I",
8444 "Price": "0",
8445 "ProductId": 34
8446 }
8447 },
8448 {
8449 "ProductId": 42,
8450 "Title": "ONEcount Staff",
8451 "Description": "ONEcount/GCN Media Staff",
8452 "ResourceIDs": [
8453 18
8454 ],
8455 "PrimaryFormID": [
8456 "186"
8457 ],
8458 "Terms": {
8459 "Id": 42,
8460 "Name": "ONEcount Staff List",
8461 "Description": "List of ONEcount/GCN Media Staff",
8462 "Duration": 1,
8463 "DurationUnit": "I",
8464 "Price": "0",
8465 "ProductId": 42
8466 }
8467 },
8468 {
8469 "ProductId": 49,
8470 "Title": "ONEcount Medical Publishers",
8471 "Description": "For blasts to medical publishers and associations",
8472 "ResourceIDs": [
8473 137
8474 ],
8475 "PrimaryFormID": [
8476 "170"
8477 ],
8478 "Terms": {
8479 "Id": 49,
8480 "Name": "ONEcount Medical Publishers",
8481 "Description": "ONEcount Medical Publishers and Associations",
8482 "Duration": 1,
8483 "DurationUnit": "I",
8484 "Price": "0",
8485 "ProductId": 49
8486 }
8487 },
8488 {
8489 "ProductId": 57,
8490 "Title": "000 Pop-Up Form",
8491 "Description": "",
8492 "ResourceIDs": [
8493 145
8494 ],
8495 "PrimaryFormID": [
8496 "170"
8497 ],
8498 "Terms": {
8499 "Id": 57,
8500 "Name": "000 Pop-Up Term",
8501 "Description": "",
8502 "Duration": 1,
8503 "DurationUnit": "I",
8504 "Price": "0",
8505 "ProductId": 57
8506 }
8507 },
8508 {
8509 "ProductId": 65,
8510 "Title": "TEST",
8511 "Description": "",
8512 "ResourceIDs": [],
8513 "PrimaryFormID": [
8514 "194"
8515 ],
8516 "Terms": {}
8517 },
8518 {
8519 "ProductId": 67,
8520 "Title": "Gated Product Example PKG",
8521 "Description": "",
8522 "ResourceIDs": [],
8523 "PrimaryFormID": [
8524 "195"
8525 ],
8526 "Terms": {
8527 "Id": 59,
8528 "Name": "Get it for free",
8529 "Description": "",
8530 "Duration": 1,
8531 "DurationUnit": "I",
8532 "Price": "0",
8533 "ProductId": 67
8534 }
8535 },
8536 {
8537 "ProductId": 75,
8538 "Title": "SB: Apple Moves To Limit Tracking in Safari: Prove",
8539 "Description": "",
8540 "ResourceIDs": [],
8541 "PrimaryFormID": [],
8542 "Terms": {}
8543 },
8544 {
8545 "ProductId": 83,
8546 "Title": "SB: Audience Extension: Turning Identity Into Cash",
8547 "Description": "",
8548 "ResourceIDs": [],
8549 "PrimaryFormID": [],
8550 "Terms": {}
8551 },
8552 {
8553 "ProductId": 91,
8554 "Title": "DAS_freepass_00",
8555 "Description": "",
8556 "ResourceIDs": [
8557 187
8558 ],
8559 "PrimaryFormID": [
8560 "267"
8561 ],
8562 "Terms": {
8563 "Id": 67,
8564 "Name": "DAS_freepass_00",
8565 "Description": "",
8566 "Duration": 30,
8567 "DurationUnit": "D",
8568 "Price": "0",
8569 "ProductId": 91
8570 }
8571 },
8572 {
8573 "ProductId": 99,
8574 "Title": "Test12311111",
8575 "Description": "Testss",
8576 "ResourceIDs": [],
8577 "PrimaryFormID": [
8578 "10"
8579 ],
8580 "Terms": {
8581 "Id": 75,
8582 "Name": "Product123",
8583 "Description": null,
8584 "Duration": 0,
8585 "DurationUnit": "",
8586 "Price": "0",
8587 "ProductId": 99
8588 }
8589 },
8590 {
8591 "ProductId": 107,
8592 "Title": "Test123-456",
8593 "Description": "Testss updated",
8594 "ResourceIDs": [
8595 98
8596 ],
8597 "PrimaryFormID": [
8598 "10"
8599 ],
8600 "Terms": {
8601 "Id": 83,
8602 "Name": "Product123",
8603 "Description": null,
8604 "Duration": 0,
8605 "DurationUnit": "",
8606 "Price": "0",
8607 "ProductId": 107
8608 }
8609 },
8610 {
8611 "ProductId": 109,
8612 "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM",
8613 "Description": "",
8614 "ResourceIDs": [
8615 197
8616 ],
8617 "PrimaryFormID": [],
8618 "Terms": {
8619 "Id": 93,
8620 "Name": "Enhanced Analytics Webinar",
8621 "Description": "Check the box to register for the February 26th webinar.",
8622 "Duration": 1,
8623 "DurationUnit": "I",
8624 "Price": "0",
8625 "ProductId": 109
8626 }
8627 }
8628 ]
8629 }
8630 {{/code}}
8631
8632
8633 (% id="HGETspecificProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8634 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Product(%%) ==
8635
8636 ----
8637
8638 {{panel bgColor="#D3D3D3" width="100%"}}
8639 (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color:#212121" %)/products/~{~{product id}}
8640 {{/panel}}
8641
8642 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8643
8644 ----
8645
8646 (% 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}}
8647
8648 ==== Example ====
8649
8650 ----
8651
8652 (% style="color:#6b6b6b" %)Request
8653
8654 {{code language="php" theme="RDark" title="Get specific Product Request"}}
8655 <?php
8656
8657 $curl = curl_init();
8658
8659 curl_setopt_array($curl, array(
8660 CURLOPT_URL => 'https://api.onecount.net/v2/users/products/{{product id}}',
8661 CURLOPT_RETURNTRANSFER => true,
8662 CURLOPT_ENCODING => '',
8663 CURLOPT_MAXREDIRS => 10,
8664 CURLOPT_TIMEOUT => 0,
8665 CURLOPT_FOLLOWLOCATION => true,
8666 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8667 CURLOPT_CUSTOMREQUEST => 'GET',
8668 CURLOPT_HTTPHEADER => array(
8669 'Appkey: {{ONECOUNT API KEY}}'
8670 ),
8671 ));
8672
8673 $response = curl_exec($curl);
8674
8675 curl_close($curl);
8676 echo $response;
8677 {{/code}}
8678
8679
8680 (% style="color:#6b6b6b" %)Response  200 OK
8681
8682 {{code language="yml" theme="RDark" collapse="true" title="Get specific Product Response"}}
8683 {
8684 "result": {
8685 "success": "1",
8686 "error": {
8687 "code": "",
8688 "message": ""
8689 }
8690 },
8691 "Products": [
8692 {
8693 "ProductId": 109,
8694 "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM",
8695 "Description": "",
8696 "ResourceIDs": [
8697 197
8698 ],
8699 "PrimaryFormID": [],
8700 "Terms": {
8701 "Id": 93,
8702 "Name": "Enhanced Analytics Webinar",
8703 "Description": "Check the box to register for the February 26th webinar.",
8704 "Duration": 1,
8705 "DurationUnit": "I",
8706 "Price": "0",
8707 "ProductId": 109
8708 }
8709 }
8710 ]
8711 }
8712 {{/code}}
8713
8714
8715 (% id="HGETlookupProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8716 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Product(%%) ==
8717
8718 ----
8719
8720 {{panel bgColor="#D3D3D3" width="100%"}}
8721 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/lookup?Title=~{~{Product Name}}
8722 {{/panel}}
8723
8724 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8725
8726 ----
8727
8728 (% 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}}
8729
8730 === (% style="color:#212121" %)Query Params(%%) ===
8731
8732 ----
8733
8734 (% 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" %)
8735
8736 ==== Example ====
8737
8738 ----
8739
8740 (% style="color:#6b6b6b" %)Request
8741
8742 {{code language="php" theme="RDark" title="Lookup Product Request"}}
8743 <?php
8744
8745 $curl = curl_init();
8746
8747 curl_setopt_array($curl, array(
8748 CURLOPT_URL => 'https://api.onecount.net/v2/products/lookup?Title={{Product Name}}',
8749 CURLOPT_RETURNTRANSFER => true,
8750 CURLOPT_ENCODING => '',
8751 CURLOPT_MAXREDIRS => 10,
8752 CURLOPT_TIMEOUT => 0,
8753 CURLOPT_FOLLOWLOCATION => true,
8754 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8755 CURLOPT_CUSTOMREQUEST => 'GET',
8756 CURLOPT_HTTPHEADER => array(
8757 'Appkey: {{ONECOUNT API KEY}}'
8758 ),
8759 ));
8760
8761 $response = curl_exec($curl);
8762
8763 curl_close($curl);
8764 echo $response;
8765 {{/code}}
8766
8767
8768 (% style="color:#6b6b6b" %)Response  200 OK
8769
8770 {{code language="yml" theme="RDark" collapse="true" title="Lookup Product Response"}}
8771 {
8772 "result": {
8773 "success": "1",
8774 "error": {
8775 "code": "",
8776 "message": ""
8777 }
8778 },
8779 "Products": [
8780 {
8781 "ProductId": 107,
8782 "Title": "Test123-456",
8783 "Description": "Testss updated",
8784 "Terms": {
8785 "Id": 83,
8786 "Name": "Product123",
8787 "Description": null,
8788 "Duration": 0,
8789 "DurationUnit": "",
8790 "Price": "0",
8791 "ProductId": 107
8792 }
8793 }
8794 ]
8795 }
8796 {{/code}}
8797
8798
8799 (% id="HPOSTCreateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8800 == (% 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(%%) ==
8801
8802 ----
8803
8804 {{panel bgColor="#D3D3D3" width="100%"}}
8805 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products
8806 {{/panel}}
8807
8808 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8809
8810 ----
8811
8812 (% 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}}
8813
8814 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8815
8816 ----
8817
8818 {{code language="yml" theme="RDark" title="Body"}}
8819 {"Title":"Test API package creation 2","Description": "Test API package creation 2","Terms":{"Name":"Test term for API 2"},"PrimaryFormId":0}
8820 {{/code}}
8821
8822 ==== Example ====
8823
8824 ----
8825
8826 (% style="color:#6b6b6b" %)Request
8827
8828 {{code language="php" theme="RDark" title="Create Product Request"}}
8829 <?php
8830
8831 $curl = curl_init();
8832
8833 curl_setopt_array($curl, array(
8834 CURLOPT_URL => 'https://api.onecount.net/v2/products',
8835 CURLOPT_RETURNTRANSFER => true,
8836 CURLOPT_ENCODING => '',
8837 CURLOPT_MAXREDIRS => 10,
8838 CURLOPT_TIMEOUT => 0,
8839 CURLOPT_FOLLOWLOCATION => true,
8840 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8841 CURLOPT_CUSTOMREQUEST => 'POST',
8842 CURLOPT_POSTFIELDS =>'{"Title":"Test API package creation 1","Description": "Test API package creation 1","Terms":{"Name":"Test term for API 1"},"PrimaryFormId":0}',
8843 CURLOPT_HTTPHEADER => array(
8844 'Appkey: {{ONECOUNT API KEY}}'
8845 ),
8846 ));
8847
8848 $response = curl_exec($curl);
8849
8850 curl_close($curl);
8851 echo $response;
8852 {{/code}}
8853
8854
8855 (% style="color:#6b6b6b" %)Response  200 OK
8856
8857 {{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}}
8858 {
8859 "result": {
8860 "success": "1",
8861 "error": {
8862 "code": "",
8863 "message": ""
8864 }
8865 },
8866 "Products": [
8867 {
8868 "ProductId": 599
8869 }
8870 ]
8871 }
8872 {{/code}}
8873
8874
8875 (% id="HPUTUpdateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8876 == (% 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(%%) ==
8877
8878 ----
8879
8880 {{panel bgColor="#D3D3D3" width="100%"}}
8881 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/~{~{Product id}}
8882 {{/panel}}
8883
8884 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8885
8886 ----
8887
8888 (% 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}}
8889
8890 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8891
8892 ----
8893
8894 {{code language="yml" theme="RDark" title="Body"}}
8895 {"Title":"Test API package 23","Description": "Test API package 23","PrimaryFormId":0}
8896 {{/code}}
8897
8898 ==== Example ====
8899
8900 ----
8901
8902 (% style="color:#6b6b6b" %)Request
8903
8904 {{code language="php" theme="RDark" title="Update Product Request"}}
8905 <?php
8906
8907 $curl = curl_init();
8908
8909 curl_setopt_array($curl, array(
8910 CURLOPT_URL => 'https://api.onecount.net/v2/products/{{Product id}}',
8911 CURLOPT_RETURNTRANSFER => true,
8912 CURLOPT_ENCODING => '',
8913 CURLOPT_MAXREDIRS => 10,
8914 CURLOPT_TIMEOUT => 0,
8915 CURLOPT_FOLLOWLOCATION => true,
8916 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8917 CURLOPT_CUSTOMREQUEST => 'PUT',
8918 CURLOPT_POSTFIELDS =>'{"Title":"Test API package 1","Description": "Test API package 1","PrimaryFormId":0}',
8919 CURLOPT_HTTPHEADER => array(
8920 'Appkey: {{ONECOUNT API KEY}}'
8921 ),
8922 ));
8923
8924 $response = curl_exec($curl);
8925
8926 curl_close($curl);
8927 echo $response;
8928
8929 {{/code}}
8930
8931
8932 (% style="color:#6b6b6b" %)Response  200 OK
8933
8934 {{code language="yml" theme="RDark" collapse="true" title="Update Product Response"}}
8935 {
8936 "result": {
8937 "success": "1",
8938 "error": {
8939 "code": "",
8940 "message": ""
8941 }
8942 },
8943 "Products": [
8944 {
8945 "ProductId": 599,
8946 "Title": "Test API package 1",
8947 "Description": "Test API package 1"
8948 }
8949 ]
8950 }
8951 {{/code}}
8952
8953
8954 (% id="HPOSTAttachResourcetoProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
8955 == (% 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(%%) ==
8956
8957 ----
8958
8959 {{panel bgColor="#D3D3D3" width="100%"}}
8960 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/attachResource
8961 {{/panel}}
8962
8963 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
8964
8965 ----
8966
8967 (% 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}}
8968
8969 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
8970
8971 ----
8972
8973 {{code language="yml" theme="RDark" title="Body"}}
8974 {"ProductID":"599","ResourceID":"903"}
8975 {{/code}}
8976
8977 ==== Example ====
8978
8979 ----
8980
8981 (% style="color:#6b6b6b" %)Request
8982
8983 {{code language="php" theme="RDark" title="Attach Resource to Product Request"}}
8984 <?php
8985
8986 $curl = curl_init();
8987
8988 curl_setopt_array($curl, array(
8989 CURLOPT_URL => 'https://api.onecount.net/v2/products/attachResource',
8990 CURLOPT_RETURNTRANSFER => true,
8991 CURLOPT_ENCODING => '',
8992 CURLOPT_MAXREDIRS => 10,
8993 CURLOPT_TIMEOUT => 0,
8994 CURLOPT_FOLLOWLOCATION => true,
8995 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
8996 CURLOPT_CUSTOMREQUEST => 'POST',
8997 CURLOPT_POSTFIELDS =>'{"ProductID":"599","ResourceID":"903"}',
8998 CURLOPT_HTTPHEADER => array(
8999 'Appkey: {{ONECOUNT API KEY}}'
9000 ),
9001 ));
9002
9003 $response = curl_exec($curl);
9004
9005 curl_close($curl);
9006 echo $response;
9007 {{/code}}
9008
9009
9010 (% style="color:#6b6b6b" %)Response  200 OK
9011
9012 {{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}}
9013 {
9014 "result": {
9015 "success": "1",
9016 "error": {
9017 "code": "",
9018 "message": ""
9019 }
9020 },
9021 "Products": "599"
9022 }
9023 {{/code}}
9024
9025 (% id="HCOMPONENT:Terms" class="western" %)
9026 === **COMPONENT: Terms** ===
9027
9028 (% class="western" %)
9029 This resource is for manipulating terms resource. A term can be created, updated or searched.
9030
9031 (% class="wrapped" %)
9032 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9033 (((
9034 (% class="western" %)
9035 **Method**
9036 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9037 (((
9038 (% class="western" %)
9039 **Url**
9040 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9041 (((
9042 (% class="western" %)
9043 **Action**
9044 )))
9045 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9046 (((
9047 (% class="western" %)
9048 GET
9049 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9050 (((
9051 (% class="western" %)
9052 /terms/5
9053 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9054 (((
9055 (% class="western" %)
9056 Get term id 5
9057 )))
9058 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9059 (((
9060 (% class="western" %)
9061 GET
9062 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9063 (((
9064 (% class="western" %)
9065 /terms/lookup?Name=termname
9066 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9067 (((
9068 (% class="western" %)
9069 Lookup terms by Name
9070 )))
9071 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9072 (((
9073 (% class="western" %)
9074 POST
9075 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9076 (((
9077 (% class="western" %)
9078 /terms
9079 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9080 (((
9081 (% class="western" %)
9082 JSON of the terms type object needs to be sent as post data. Id field should not be sent.
9083 )))
9084 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9085 (((
9086 (% class="western" %)
9087 PUT
9088 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9089 (((
9090 (% class="western" %)
9091 /terms/5
9092 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9093 (((
9094 (% class="western" %)
9095 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update.
9096 )))
9097
9098 (% id="HGETAllTerms" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9099 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Terms(%%) ==
9100
9101 ----
9102
9103 ----
9104
9105 {{panel bgColor="#D3D3D3" width="100%"}}
9106 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms
9107 {{/panel}}
9108
9109 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9110
9111 ----
9112
9113 (% 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}}
9114
9115 ==== Example ====
9116
9117 ----
9118
9119 (% style="color:#6b6b6b" %)Request
9120
9121 {{code language="php" theme="RDark" title="Get All Terms Request"}}
9122 <?php
9123
9124 $curl = curl_init();
9125
9126 curl_setopt_array($curl, array(
9127 CURLOPT_URL => 'https://api.onecount.net/v2/terms',
9128 CURLOPT_RETURNTRANSFER => true,
9129 CURLOPT_ENCODING => '',
9130 CURLOPT_MAXREDIRS => 10,
9131 CURLOPT_TIMEOUT => 0,
9132 CURLOPT_FOLLOWLOCATION => true,
9133 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9134 CURLOPT_CUSTOMREQUEST => 'GET',
9135 CURLOPT_HTTPHEADER => array(
9136 'Appkey: {{ONECOUNT API KEY}}'
9137 ),
9138 ));
9139
9140 $response = curl_exec($curl);
9141
9142 curl_close($curl);
9143 echo $response;
9144 {{/code}}
9145
9146
9147 (% style="color:#6b6b6b" %)Response  200 OK
9148
9149 {{code language="yml" theme="RDark" collapse="true" title="Get All Terms Response"}}
9150 {
9151 "result": {
9152 "success": "1",
9153 "error": {
9154 "code": "",
9155 "message": ""
9156 }
9157 },
9158 "Terms": [
9159 {
9160 "Id": 26,
9161 "Name": "Please contact me to arrange a demo",
9162 "Description": "",
9163 "Duration": 1,
9164 "DurationUnit": "I",
9165 "Price": "0",
9166 "ProductId": 26
9167 },
9168 {
9169 "Id": 34,
9170 "Name": "ONEcount Promotional Emails",
9171 "Description": "ONEcount promotional emails",
9172 "Duration": 1,
9173 "DurationUnit": "I",
9174 "Price": "0",
9175 "ProductId": 34
9176 },
9177 {
9178 "Id": 42,
9179 "Name": "ONEcount Staff List",
9180 "Description": "List of ONEcount/GCN Media Staff",
9181 "Duration": 1,
9182 "DurationUnit": "I",
9183 "Price": "0",
9184 "ProductId": 42
9185 },
9186 {
9187 "Id": 49,
9188 "Name": "ONEcount Medical Publishers",
9189 "Description": "ONEcount Medical Publishers and Associations",
9190 "Duration": 1,
9191 "DurationUnit": "I",
9192 "Price": "0",
9193 "ProductId": 49
9194 },
9195 {
9196 "Id": 57,
9197 "Name": "000 Pop-Up Term",
9198 "Description": "",
9199 "Duration": 1,
9200 "DurationUnit": "I",
9201 "Price": "0",
9202 "ProductId": 57
9203 },
9204 {
9205 "Id": 59,
9206 "Name": "Get it for free",
9207 "Description": "",
9208 "Duration": 1,
9209 "DurationUnit": "I",
9210 "Price": "0",
9211 "ProductId": 67
9212 },
9213 {
9214 "Id": 67,
9215 "Name": "DAS_freepass_00",
9216 "Description": "",
9217 "Duration": 30,
9218 "DurationUnit": "D",
9219 "Price": "0",
9220 "ProductId": 91
9221 },
9222 {
9223 "Id": 75,
9224 "Name": "Product123",
9225 "Description": null,
9226 "Duration": 0,
9227 "DurationUnit": "",
9228 "Price": "0",
9229 "ProductId": 99
9230 },
9231 {
9232 "Id": 83,
9233 "Name": "Product123",
9234 "Description": null,
9235 "Duration": 0,
9236 "DurationUnit": "",
9237 "Price": "0",
9238 "ProductId": 107
9239 },
9240 {
9241 "Id": 91,
9242 "Name": "Test123 update ",
9243 "Description": "Testss updated",
9244 "Duration": 10,
9245 "DurationUnit": "",
9246 "Price": "0",
9247 "ProductId": 107
9248 },
9249 {
9250 "Id": 93,
9251 "Name": "Enhanced Analytics Webinar",
9252 "Description": "Check the box to register for the February 26th webinar.",
9253 "Duration": 1,
9254 "DurationUnit": "I",
9255 "Price": "0",
9256 "ProductId": 109
9257 },
9258 {
9259 "Id": 423,
9260 "Name": "Test term for API",
9261 "Description": null,
9262 "Duration": 0,
9263 "DurationUnit": "",
9264 "Price": "0.00",
9265 "ProductId": 591
9266 },
9267 {
9268 "Id": 431,
9269 "Name": "Test term for API 1",
9270 "Description": null,
9271 "Duration": 0,
9272 "DurationUnit": "",
9273 "Price": "0.00",
9274 "ProductId": 599
9275 }
9276 ]
9277 }
9278 {{/code}}
9279
9280
9281 (% id="HGETspecificTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9282 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Term(%%) ==
9283
9284 ----
9285
9286 {{panel bgColor="#D3D3D3" width="100%"}}
9287 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}}
9288 {{/panel}}
9289
9290 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9291
9292 ----
9293
9294 (% 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}}
9295
9296 ==== Example ====
9297
9298 ----
9299
9300 (% style="color:#6b6b6b" %)Request
9301
9302 {{code language="php" theme="RDark" title="Get specific Term Request"}}
9303 <?php
9304
9305 $curl = curl_init();
9306
9307 curl_setopt_array($curl, array(
9308 CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}',
9309 CURLOPT_RETURNTRANSFER => true,
9310 CURLOPT_ENCODING => '',
9311 CURLOPT_MAXREDIRS => 10,
9312 CURLOPT_TIMEOUT => 0,
9313 CURLOPT_FOLLOWLOCATION => true,
9314 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9315 CURLOPT_CUSTOMREQUEST => 'GET',
9316 CURLOPT_HTTPHEADER => array(
9317 'Appkey: {{ONECOUNT API KEY}}'
9318 ),
9319 ));
9320
9321 $response = curl_exec($curl);
9322
9323 curl_close($curl);
9324 echo $response;
9325 {{/code}}
9326
9327
9328 (% style="color:#6b6b6b" %)Response  200 OK
9329
9330 {{code language="yml" theme="RDark" collapse="true" title="Get specific Term Response"}}
9331 {
9332 "result": {
9333 "success": "1",
9334 "error": {
9335 "code": "",
9336 "message": ""
9337 }
9338 },
9339 "Terms": [
9340 {
9341 "Id": 431,
9342 "Name": "Test term for API 1",
9343 "Description": null,
9344 "Duration": 0,
9345 "DurationUnit": "",
9346 "Price": "0.00",
9347 "ProductId": 599
9348 }
9349 ]
9350 }
9351 {{/code}}
9352
9353
9354 (% id="HGETlookupTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9355 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Term(%%) ==
9356
9357 ----
9358
9359 {{panel bgColor="#D3D3D3" width="100%"}}
9360 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/lookup?Name={(%%){Term Name}}
9361 {{/panel}}
9362
9363 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9364
9365 ----
9366
9367 (% 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}}
9368
9369 === (% style="color:#212121" %)Query Params(%%) ===
9370
9371 ----
9372
9373 (% 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}}
9374
9375 ==== Example ====
9376
9377 ----
9378
9379 (% style="color:#6b6b6b" %)Request
9380
9381 {{code language="php" theme="RDark" title="Lookup Term Request"}}
9382 <?php
9383
9384 $curl = curl_init();
9385
9386 curl_setopt_array($curl, array(
9387 CURLOPT_URL => 'https://api.onecount.net/v2/terms/lookup?Name={{Term Name}}',
9388 CURLOPT_RETURNTRANSFER => true,
9389 CURLOPT_ENCODING => '',
9390 CURLOPT_MAXREDIRS => 10,
9391 CURLOPT_TIMEOUT => 0,
9392 CURLOPT_FOLLOWLOCATION => true,
9393 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9394 CURLOPT_CUSTOMREQUEST => 'GET',
9395 CURLOPT_HTTPHEADER => array(
9396 'Appkey: {{ONECOUNT API KEY}}'
9397 ),
9398 ));
9399
9400 $response = curl_exec($curl);
9401
9402 curl_close($curl);
9403 echo $response;
9404 {{/code}}
9405
9406
9407 (% style="color:#6b6b6b" %)Response  200 OK
9408
9409 {{code language="yml" theme="RDark" collapse="true" title="Lookup Term Response"}}
9410 {
9411 "result": {
9412 "success": "1",
9413 "error": {
9414 "code": "",
9415 "message": ""
9416 }
9417 },
9418 "Terms": [
9419 {
9420 "Id": 431,
9421 "Name": "Test term for API 1",
9422 "Description": null,
9423 "Duration": 0,
9424 "DurationUnit": "",
9425 "Price": "0.00",
9426 "ProductId": 599
9427 }
9428 ]
9429 }
9430 {{/code}}
9431
9432
9433 (% id="HPOSTCreateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9434 == (% 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(%%) ==
9435
9436 ----
9437
9438 {{panel bgColor="#D3D3D3" width="100%"}}
9439 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms
9440 {{/panel}}
9441
9442 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9443
9444 ----
9445
9446 (% 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}}
9447
9448 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9449
9450 ----
9451
9452 {{code language="yml" theme="RDark" title="Body"}}
9453 {"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599}
9454 {{/code}}
9455
9456 ==== Example ====
9457
9458 ----
9459
9460 (% style="color:#6b6b6b" %)Request
9461
9462 {{code language="php" theme="RDark" title="Create Term Request"}}
9463 <?php
9464
9465 $curl = curl_init();
9466
9467 curl_setopt_array($curl, array(
9468 CURLOPT_URL => 'https://api.onecount.net/v2/terms',
9469 CURLOPT_RETURNTRANSFER => true,
9470 CURLOPT_ENCODING => '',
9471 CURLOPT_MAXREDIRS => 10,
9472 CURLOPT_TIMEOUT => 0,
9473 CURLOPT_FOLLOWLOCATION => true,
9474 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9475 CURLOPT_CUSTOMREQUEST => 'POST',
9476 CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599}
9477
9478 ',
9479 CURLOPT_HTTPHEADER => array(
9480 'Appkey: {{ONECOUNT API KEY}}'
9481 ),
9482 ));
9483
9484 $response = curl_exec($curl);
9485
9486 curl_close($curl);
9487 echo $response;
9488
9489
9490 {{/code}}
9491
9492
9493 (% style="color:#6b6b6b" %)Response  200 OK
9494
9495 {{code language="yml" theme="RDark" collapse="true" title="Create Term Response"}}
9496 {
9497 "result": {
9498 "success": "1",
9499 "error": {
9500 "code": "",
9501 "message": ""
9502 }
9503 },
9504 "Terms": [
9505 {
9506 "Id": 447
9507 }
9508 ]
9509 }
9510 {{/code}}
9511
9512
9513 (% id="HPUTUpdateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9514 == (% 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(%%) ==
9515
9516 ----
9517
9518 {{panel bgColor="#D3D3D3" width="100%"}}
9519 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}}
9520 {{/panel}}
9521
9522 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9523
9524 ----
9525
9526 (% 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}}
9527
9528 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
9529
9530 ----
9531
9532 {{code language="yml" theme="RDark" title="Body"}}
9533 {"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}
9534 {{/code}}
9535
9536 ==== Example ====
9537
9538 ----
9539
9540 (% style="color:#6b6b6b" %)Request
9541
9542 {{code language="php" theme="RDark" title="Update Term Request"}}
9543 <?php
9544
9545 $curl = curl_init();
9546
9547 curl_setopt_array($curl, array(
9548 CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}',
9549 CURLOPT_RETURNTRANSFER => true,
9550 CURLOPT_ENCODING => '',
9551 CURLOPT_MAXREDIRS => 10,
9552 CURLOPT_TIMEOUT => 0,
9553 CURLOPT_FOLLOWLOCATION => true,
9554 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9555 CURLOPT_CUSTOMREQUEST => 'PUT',
9556 CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}',
9557 CURLOPT_HTTPHEADER => array(
9558 'Appkey: {{ONECOUNT API KEY}}'
9559 ),
9560 ));
9561
9562 $response = curl_exec($curl);
9563
9564 curl_close($curl);
9565 echo $response;
9566 {{/code}}
9567
9568
9569 (% style="color:#6b6b6b" %)Response  200 OK
9570
9571 {{code language="yml" theme="RDark" collapse="true" title="Update Term Response"}}
9572 {
9573 "result": {
9574 "success": "1",
9575 "error": {
9576 "code": "",
9577 "message": ""
9578 }
9579 },
9580 "Terms": [
9581 {
9582 "Id": 447,
9583 "Name": "Test API term creation update",
9584 "Description": "Test API term creation update",
9585 "Duration": 10,
9586 "DurationUnit": "",
9587 "Price": "0.00",
9588 "ProductId": 599
9589 }
9590 ]
9591 }
9592 {{/code}}
9593
9594
9595 (% id="HCOMPONENT:Resources" class="western" %)
9596 === **COMPONENT: Resources** ===
9597
9598 (% class="western" %)
9599 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.
9600
9601 * (((
9602 (% class="western" %)
9603 questions
9604 )))
9605 * (((
9606 (% class="western" %)
9607 users
9608 )))
9609 * (((
9610 (% class="western" %)
9611 products
9612 )))
9613 * (((
9614 (% class="western" %)
9615 terms
9616 )))
9617 * (((
9618 (% class="western" %)
9619 resources
9620 )))
9621 * (((
9622 (% class="western" %)
9623 sources
9624 )))
9625 * (((
9626 (% class="western" %)
9627 transactions
9628 )))
9629
9630 (% class="western" %)
9631 **~ **
9632
9633 (% class="western" %)
9634 This resource is for manipulating resources resource. A resource can be created, updated or searched.
9635
9636 (% class="wrapped" %)
9637 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9638 (((
9639 (% class="western" %)
9640 **Method**
9641 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9642 (((
9643 (% class="western" %)
9644 **Url**
9645 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9646 (((
9647 (% class="western" %)
9648 **Action**
9649 )))
9650 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9651 (((
9652 (% class="western" %)
9653 GET
9654 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9655 (((
9656 (% class="western" %)
9657 /resources/5
9658 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9659 (((
9660 (% class="western" %)
9661 Get resource id 5
9662 )))
9663 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9664 (((
9665 (% class="western" %)
9666 GET
9667 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9668 (((
9669 (% class="western" %)
9670 /resources/lookup?Name=resourcename
9671 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9672 (((
9673 (% class="western" %)
9674 Lookup resources by Name
9675 )))
9676 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9677 (((
9678 (% class="western" %)
9679 POST
9680 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9681 (((
9682 (% class="western" %)
9683 /resources
9684 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9685 (((
9686 (% class="western" %)
9687 JSON of the resources type object needs to be sent as post data. Id field should not be sent.
9688 )))
9689 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9690 (((
9691 (% class="western" %)
9692 PUT
9693 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9694 (((
9695 (% class="western" %)
9696 /resources/5
9697 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
9698 (((
9699 (% class="western" %)
9700 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update.
9701 )))
9702
9703 (% id="HGETAllResources" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9704 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Resources(%%) ==
9705
9706 ----
9707
9708 ----
9709
9710 {{panel bgColor="#D3D3D3" width="100%"}}
9711 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources
9712 {{/panel}}
9713
9714 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9715
9716 ----
9717
9718 (% 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}}
9719
9720 ==== Example ====
9721
9722 ----
9723
9724 (% style="color:#6b6b6b" %)Request
9725
9726 {{code language="php" theme="RDark" title="Get All Resource Request"}}
9727 <?php
9728
9729 $curl = curl_init();
9730
9731 curl_setopt_array($curl, array(
9732 CURLOPT_URL => 'https://api.onecount.net/v2/resources',
9733 CURLOPT_RETURNTRANSFER => true,
9734 CURLOPT_ENCODING => '',
9735 CURLOPT_MAXREDIRS => 10,
9736 CURLOPT_TIMEOUT => 0,
9737 CURLOPT_FOLLOWLOCATION => true,
9738 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9739 CURLOPT_CUSTOMREQUEST => 'GET',
9740 CURLOPT_HTTPHEADER => array(
9741 'Appkey: {{ONECOUNT API KEY}}'
9742 ),
9743 ));
9744
9745 $response = curl_exec($curl);
9746
9747 curl_close($curl);
9748 echo $response;
9749 {{/code}}
9750
9751
9752 (% style="color:#6b6b6b" %)Response  200 OK
9753
9754 {{code language="yml" theme="RDark" collapse="true" title="Get All Resource Response"}}
9755 {
9756 "result": {
9757 "success": "1",
9758 "error": {
9759 "code": "",
9760 "message": ""
9761 }
9762 },
9763 "Resources": [
9764 {
9765 "Id": 18,
9766 "Name": "ONEcount/GCN Staff Newsletter Resource",
9767 "Description": "ONEcount/GCN Staff Newsletter List",
9768 "Type": "2",
9769 "Value": "57|53|55",
9770 "FreePass": 0
9771 },
9772 {
9773 "Id": 26,
9774 "Name": "GCN TEST GROUP",
9775 "Description": "THESE USER WILL GET TEST MESSAGE",
9776 "Type": "2",
9777 "Value": "47",
9778 "FreePass": 0
9779 },
9780 {
9781 "Id": 98,
9782 "Name": "ONEcount Prospects List",
9783 "Description": "Newsletter List of ONEcount Prospects",
9784 "Type": "2",
9785 "Value": "55",
9786 "FreePass": 0
9787 },
9788 {
9789 "Id": 106,
9790 "Name": "Google Ads Form",
9791 "Description": "",
9792 "Type": "3",
9793 "Value": "http://ocreg.one-count.com/onecount/reg/registerForm.cgi?form=186&brand=OC",
9794 "FreePass": 0
9795 },
9796 {
9797 "Id": 114,
9798 "Name": "secure files",
9799 "Description": "",
9800 "Type": "3",
9801 "Value": "/download.php",
9802 "FreePass": 0
9803 },
9804 {
9805 "Id": 130,
9806 "Name": "REQUEST A DEMO",
9807 "Description": "",
9808 "Type": "3",
9809 "Value": "http://ocreg.one-count.com/onecount/flexreg/displayform.cgi?g=0&form=34",
9810 "FreePass": 0
9811 },
9812 {
9813 "Id": 137,
9814 "Name": "ONEcount Medical Publishers",
9815 "Description": "ONEcount Medical Publishers and Associations",
9816 "Type": "2",
9817 "Value": "61",
9818 "FreePass": 0
9819 },
9820 {
9821 "Id": 145,
9822 "Name": "Pop-Up Test Page",
9823 "Description": "",
9824 "Type": "3",
9825 "Value": "http://omar.gcnmedia.com/projects/form/gated.html",
9826 "FreePass": 0
9827 },
9828 {
9829 "Id": 146,
9830 "Name": "Platform Resource",
9831 "Description": "Test Resource",
9832 "Type": "3",
9833 "Value": "/Platform",
9834 "FreePass": 0
9835 },
9836 {
9837 "Id": 153,
9838 "Name": "Submitted",
9839 "Description": "",
9840 "Type": "3",
9841 "Value": "http://gcn-reg.onecount.net/onecount/reg/tSuccessView.php?brand=oc",
9842 "FreePass": 0
9843 }
9844 ]
9845 }
9846 {{/code}}
9847
9848
9849 (% id="HGETspecificResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9850 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Resource(%%) ==
9851
9852 ----
9853
9854 {{panel bgColor="#D3D3D3" width="100%"}}
9855 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/{(%%){Resource ID}}
9856 {{/panel}}
9857
9858 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9859
9860 ----
9861
9862 (% 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}}
9863
9864 ==== Example ====
9865
9866 ----
9867
9868 (% style="color:#6b6b6b" %)Request
9869
9870 {{code language="php" theme="RDark" title="Get specific Resource Request"}}
9871 <?php
9872
9873 $curl = curl_init();
9874
9875 curl_setopt_array($curl, array(
9876 CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{Resource ID}}',
9877 CURLOPT_RETURNTRANSFER => true,
9878 CURLOPT_ENCODING => '',
9879 CURLOPT_MAXREDIRS => 10,
9880 CURLOPT_TIMEOUT => 0,
9881 CURLOPT_FOLLOWLOCATION => true,
9882 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9883 CURLOPT_CUSTOMREQUEST => 'GET',
9884 CURLOPT_HTTPHEADER => array(
9885 'Appkey: {{ONECOUNT API KEY}}'
9886 ),
9887 ));
9888
9889 $response = curl_exec($curl);
9890
9891 curl_close($curl);
9892 echo $response;
9893 {{/code}}
9894
9895
9896 (% style="color:#6b6b6b" %)Response  200 OK
9897
9898 {{code language="yml" theme="RDark" collapse="true" title="Get specific Resource Response"}}
9899 {
9900 "result": {
9901 "success": "1",
9902 "error": {
9903 "code": "",
9904 "message": ""
9905 }
9906 },
9907 "Resources": [
9908 {
9909 "Id": 623,
9910 "Name": "TOP 3 THINGS - NonStop Local News",
9911 "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.",
9912 "Type": "2",
9913 "Value": "",
9914 "FreePass": 0
9915 }
9916 ]
9917 }
9918 {{/code}}
9919
9920
9921 (% id="HGETlookupResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
9922 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Resource(%%) ==
9923
9924 ----
9925
9926 {{panel bgColor="#D3D3D3" width="100%"}}
9927 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/lookup?Name={(%%){Resource Name}}
9928 {{/panel}}
9929
9930 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
9931
9932 ----
9933
9934 (% 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}}
9935
9936 === (% style="color:#212121" %)Query Params(%%) ===
9937
9938 ----
9939
9940 (% 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}}
9941
9942 ==== Example ====
9943
9944 ----
9945
9946 (% style="color:#6b6b6b" %)Request
9947
9948 {{code language="php" theme="RDark" title="Lookup Resource Request"}}
9949 <?php
9950
9951 $curl = curl_init();
9952
9953 curl_setopt_array($curl, array(
9954 CURLOPT_URL => 'https://api.onecount.net/v2/resources/lookup?Name={{Resource Name}}',
9955 CURLOPT_RETURNTRANSFER => true,
9956 CURLOPT_ENCODING => '',
9957 CURLOPT_MAXREDIRS => 10,
9958 CURLOPT_TIMEOUT => 0,
9959 CURLOPT_FOLLOWLOCATION => true,
9960 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
9961 CURLOPT_CUSTOMREQUEST => 'GET',
9962 CURLOPT_HTTPHEADER => array(
9963 'Appkey: {{ONECOUNT API KEY}}'
9964 ),
9965 ));
9966
9967 $response = curl_exec($curl);
9968
9969 curl_close($curl);
9970 echo $response;
9971 {{/code}}
9972
9973
9974 (% style="color:#6b6b6b" %)Response  200 OK
9975
9976 {{code language="yml" theme="RDark" collapse="true" title="Lookup Resource Response"}}
9977 {
9978 "result": {
9979 "success": "1",
9980 "error": {
9981 "code": "",
9982 "message": ""
9983 }
9984 },
9985 "Resources": [
9986 {
9987 "Id": 479,
9988 "Name": "Virtualization Review",
9989 "Description": "",
9990 "Type": "0",
9991 "Value": "",
9992 "FreePass": 0
9993 }
9994 ]
9995 }
9996 {{/code}}
9997
9998
9999 (% id="HPOSTCreateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10000 == (% 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(%%) ==
10001
10002 ----
10003
10004 {{panel bgColor="#D3D3D3" width="100%"}}
10005 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources
10006 {{/panel}}
10007
10008 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10009
10010 ----
10011
10012 (% 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}}
10013
10014 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10015
10016 ----
10017
10018 {{code language="yml" theme="RDark" title="Body"}}
10019 {"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}
10020 {{/code}}
10021
10022 ==== Example ====
10023
10024 ----
10025
10026 (% style="color:#6b6b6b" %)Request
10027
10028 {{code language="php" theme="RDark" title="Create Resource Request"}}
10029 <?php
10030
10031 $curl = curl_init();
10032
10033 curl_setopt_array($curl, array(
10034 CURLOPT_URL => 'https://api.onecount.net/v2/resources',
10035 CURLOPT_RETURNTRANSFER => true,
10036 CURLOPT_ENCODING => '',
10037 CURLOPT_MAXREDIRS => 10,
10038 CURLOPT_TIMEOUT => 0,
10039 CURLOPT_FOLLOWLOCATION => true,
10040 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10041 CURLOPT_CUSTOMREQUEST => 'POST',
10042 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}',
10043 CURLOPT_HTTPHEADER => array(
10044 'Appkey: {{ONECOUNT API KEY}}'
10045 ),
10046 ));
10047
10048 $response = curl_exec($curl);
10049
10050 curl_close($curl);
10051 echo $response;
10052 {{/code}}
10053
10054
10055 (% style="color:#6b6b6b" %)Response  200 OK
10056
10057 {{code language="yml" theme="RDark" collapse="true" title="Create Resource Response"}}
10058 {
10059 "result": {
10060 "success": "1",
10061 "error": {
10062 "code": "",
10063 "message": ""
10064 }
10065 },
10066 "Resources": [
10067 {
10068 "Id": 871,
10069 "Name": "Test API product creation 21",
10070 "Description": "Test API product creation 21",
10071 "Type": "3",
10072 "Value": "http://one-count.com",
10073 "FreePass": 1
10074 }
10075 ]
10076 }
10077 {{/code}}
10078
10079
10080 (% id="HPUTUpdateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10081 == (% 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(%%) ==
10082
10083 ----
10084
10085 {{panel bgColor="#D3D3D3" width="100%"}}
10086 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/~{~{resource id}}
10087 {{/panel}}
10088
10089 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10090
10091 ----
10092
10093 (% 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}}
10094
10095 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10096
10097 ----
10098
10099 {{code language="yml" theme="RDark" title="Body"}}
10100 {"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 {{/code}}
10102
10103 ==== Example ====
10104
10105 ----
10106
10107 (% style="color:#6b6b6b" %)Request
10108
10109 {{code language="php" theme="RDark" title="Update Resource Request"}}
10110 <?php
10111
10112 $curl = curl_init();
10113
10114 curl_setopt_array($curl, array(
10115 CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{resource id}}',
10116 CURLOPT_RETURNTRANSFER => true,
10117 CURLOPT_ENCODING => '',
10118 CURLOPT_MAXREDIRS => 10,
10119 CURLOPT_TIMEOUT => 0,
10120 CURLOPT_FOLLOWLOCATION => true,
10121 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10122 CURLOPT_CUSTOMREQUEST => 'PUT',
10123 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}',
10124 CURLOPT_HTTPHEADER => array(
10125 'Appkey: {{ONECOUNT API KEY}}'
10126 ),
10127 ));
10128
10129 $response = curl_exec($curl);
10130
10131 curl_close($curl);
10132 echo $response;
10133 {{/code}}
10134
10135
10136 (% style="color:#6b6b6b" %)Response  200 OK
10137
10138 {{code language="yml" theme="RDark" collapse="true" title="Update Resource Response"}}
10139 {
10140 "result": {
10141 "success": "1",
10142 "error": {
10143 "code": "",
10144 "message": ""
10145 }
10146 },
10147 "Resources": [
10148 {
10149 "Id": 903,
10150 "Name": "Test API product creation 23",
10151 "Description": "Test API product creation 23",
10152 "Type": "3",
10153 "Value": "http://one-count.com",
10154 "FreePass": 1
10155 },
10156 {
10157 "Id": 903,
10158 "Name": "Test API product creation 23",
10159 "Description": "Test API product creation 23",
10160 "Type": "3",
10161 "Value": "onecount.net",
10162 "FreePass": 1
10163 }
10164 ]
10165 }
10166 {{/code}}
10167
10168
10169 (% id="HCOMPONENT:SourceCodes" class="western" %)
10170 === **COMPONENT: Source Codes** ===
10171
10172 *
10173 ** ===
10174
10175 (% class="western" %)
10176 This resource is for manipulating source code for a resource. A source code can be created, updated or searched.
10177
10178 (% class="wrapped" %)
10179 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10180 (((
10181 (% class="western" %)
10182 **Method**
10183 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10184 (((
10185 (% class="western" %)
10186 **Url**
10187 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10188 (((
10189 (% class="western" %)
10190 **Action**
10191 )))
10192 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10193 (((
10194 (% class="western" %)
10195 GET
10196 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10197 (((
10198 (% class="western" %)
10199 /sources/1
10200 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10201 (((
10202 (% class="western" %)
10203 Get source id 1.
10204 )))
10205 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10206 (((
10207 (% class="western" %)
10208 GET
10209 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10210 (((
10211 (% class="western" %)
10212 /sources/lookup?Source=sourcename
10213 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10214 (((
10215 (% class="western" %)
10216 Lookup sources by source.
10217 )))
10218 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10219 (((
10220 (% class="western" %)
10221 POST
10222 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10223 (((
10224 (% class="western" %)
10225 /sources
10226 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10227 (((
10228 (% class="western" %)
10229 JSON of the Sources type object needs to be sent as post data. Id field should not be sent.
10230 )))
10231 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10232 (((
10233 (% class="western" %)
10234 PUT
10235 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10236 (((
10237 (% class="western" %)
10238 /sources
10239 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10240 (((
10241 (% class="western" %)
10242 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update.
10243 )))
10244
10245 (% id="HGETAllSourcecodes" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10246 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Source codes(%%) ==
10247
10248 ----
10249
10250 ----
10251
10252 {{panel bgColor="#D3D3D3" width="100%"}}
10253 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources
10254 {{/panel}}
10255
10256 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10257
10258 ----
10259
10260 (% 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}}
10261
10262 ==== Example ====
10263
10264 ----
10265
10266 (% style="color:#6b6b6b" %)Request
10267
10268 {{code language="php" theme="RDark" title="Get All Source code Request"}}
10269 <?php
10270
10271 $curl = curl_init();
10272
10273 curl_setopt_array($curl, array(
10274 CURLOPT_URL => 'https://api.onecount.net/v2/sources',
10275 CURLOPT_RETURNTRANSFER => true,
10276 CURLOPT_ENCODING => '',
10277 CURLOPT_MAXREDIRS => 10,
10278 CURLOPT_TIMEOUT => 0,
10279 CURLOPT_FOLLOWLOCATION => true,
10280 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10281 CURLOPT_CUSTOMREQUEST => 'GET',
10282 CURLOPT_HTTPHEADER => array(
10283 'Appkey: {{ONECOUNT API KEY}}'
10284 ),
10285 ));
10286
10287 $response = curl_exec($curl);
10288
10289 curl_close($curl);
10290 echo $response;
10291 {{/code}}
10292
10293
10294 (% style="color:#6b6b6b" %)Response  200 OK
10295
10296 {{code language="yml" theme="RDark" collapse="true" title="Get All Source code Response"}}
10297 {
10298 "result": {
10299 "success": "1",
10300 "error": {
10301 "code": "",
10302 "message": ""
10303 }
10304 },
10305 "Sources": [
10306 {
10307 "Id": 26,
10308 "Source": "GCN-Member",
10309 "Description": "Uploaded from Reston VA",
10310 "Parent": 0
10311 },
10312 {
10313 "Id": 34,
10314 "Source": "SugarID",
10315 "Description": "Sugar IDs cleaned contacts list and cleaned leads list sent by Sean Fulton for upload.",
10316 "Parent": 0
10317 },
10318 {
10319 "Id": 42,
10320 "Source": "DEMOFORM",
10321 "Description": "\"Request a Demo\" form from one-count.com",
10322 "Parent": 0
10323 },
10324 {
10325 "Id": 50,
10326 "Source": "ABM ANNUAL 2014",
10327 "Description": "ABM Annual 2014 - Registration List for Sponsors",
10328 "Parent": 0
10329 },
10330 {
10331 "Id": 58,
10332 "Source": "BIMS REG LIST",
10333 "Description": "BIMS Registration List for Sponsors (2013/2014)",
10334 "Parent": 0
10335 },
10336 {
10337 "Id": 66,
10338 "Source": "SIPA 13",
10339 "Description": "SIPA 2013 - sponsor - attendees",
10340 "Parent": 0
10341 },
10342 {
10343 "Id": 74,
10344 "Source": "Google Ads",
10345 "Description": "From Google Banner Ads",
10346 "Parent": 0
10347 },
10348 {
10349 "Id": 82,
10350 "Source": "EDIT PROFILE",
10351 "Description": "FOR EDIT PROFILE FORM",
10352 "Parent": 0
10353 },
10354 {
10355 "Id": 83,
10356 "Source": "Test Source Code",
10357 "Description": "",
10358 "Parent": 0
10359 },
10360 {
10361 "Id": 91,
10362 "Source": "NEWSLETTER",
10363 "Description": "Newsletter",
10364 "Parent": 0
10365 },
10366 {
10367 "Id": 99,
10368 "Source": "INFOTANKS-comps-only_12032019",
10369 "Description": "",
10370 "Parent": 0
10371 },
10372 {
10373 "Id": 107,
10374 "Source": "INFOTANKS-DMP-only_12102019",
10375 "Description": "",
10376 "Parent": 0
10377 },
10378 {
10379 "Id": 109,
10380 "Source": "BMVM",
10381 "Description": "Active Attendees",
10382 "Parent": 0
10383 },
10384 {
10385 "Id": 115,
10386 "Source": "USECASES",
10387 "Description": "Use Case PDF",
10388 "Parent": 0
10389 },
10390 {
10391 "Id": 123,
10392 "Source": "Borrell Miami 2022",
10393 "Description": "",
10394 "Parent": 0
10395 },
10396 {
10397 "Id": 131,
10398 "Source": "05092022-telemarketing",
10399 "Description": "",
10400 "Parent": 0
10401 },
10402 {
10403 "Id": 139,
10404 "Source": "WEBINAR6.15.22",
10405 "Description": "Live Webinar Series June 15, 2022",
10406 "Parent": 0
10407 },
10408 {
10409 "Id": 147,
10410 "Source": "LMA Show List",
10411 "Description": "",
10412 "Parent": 0
10413 },
10414 {
10415 "Id": 155,
10416 "Source": "AAA",
10417 "Description": "",
10418 "Parent": 0
10419 },
10420 {
10421 "Id": 163,
10422 "Source": "MGS2022",
10423 "Description": "",
10424 "Parent": 0
10425 },
10426 {
10427 "Id": 171,
10428 "Source": "MGS2023",
10429 "Description": "",
10430 "Parent": 0
10431 },
10432 {
10433 "Id": 179,
10434 "Source": "Sugar Leads",
10435 "Description": "",
10436 "Parent": 0
10437 },
10438 {
10439 "Id": 187,
10440 "Source": "seansbox",
10441 "Description": "",
10442 "Parent": 0
10443 },
10444 {
10445 "Id": 191,
10446 "Source": "SEEITLIVE",
10447 "Description": "Lunch & Learn Webinar Series with Special Partner Guests",
10448 "Parent": 0
10449 },
10450 {
10451 "Id": 199,
10452 "Source": "80-percent-conversion-rates",
10453 "Description": "",
10454 "Parent": 0
10455 }
10456 ]
10457 }
10458 {{/code}}
10459
10460
10461 (% id="HGETspecificSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10462 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Source code(%%) ==
10463
10464 ----
10465
10466 {{panel bgColor="#D3D3D3" width="100%"}}
10467 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}}
10468 {{/panel}}
10469
10470 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10471
10472 ----
10473
10474 (% 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}}
10475
10476 ==== Example ====
10477
10478 ----
10479
10480 (% style="color:#6b6b6b" %)Request
10481
10482 {{code language="php" theme="RDark" title="Get specific Source Request"}}
10483 <?php
10484
10485 $curl = curl_init();
10486
10487 curl_setopt_array($curl, array(
10488 CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}',
10489 CURLOPT_RETURNTRANSFER => true,
10490 CURLOPT_ENCODING => '',
10491 CURLOPT_MAXREDIRS => 10,
10492 CURLOPT_TIMEOUT => 0,
10493 CURLOPT_FOLLOWLOCATION => true,
10494 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10495 CURLOPT_CUSTOMREQUEST => 'GET',
10496 CURLOPT_HTTPHEADER => array(
10497 'Appkey: {{ONECOUNT API KEY}}'
10498 ),
10499 ));
10500
10501 $response = curl_exec($curl);
10502
10503 curl_close($curl);
10504 echo $response;
10505 {{/code}}
10506
10507
10508 (% style="color:#6b6b6b" %)Response  200 OK
10509
10510 {{code language="yml" theme="RDark" collapse="true" title="Get specific Source Response"}}
10511 {
10512 "result": {
10513 "success": "1",
10514 "error": {
10515 "code": "",
10516 "message": ""
10517 }
10518 },
10519 "Sources": [
10520 {
10521 "Id": 26,
10522 "Source": "GCN-Member",
10523 "Description": "Uploaded from Reston VA",
10524 "Parent": 0
10525 }
10526 ]
10527 }
10528 {{/code}}
10529
10530
10531 (% id="HGETlookupSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10532 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Source code(%%) ==
10533
10534 ----
10535
10536 {{panel bgColor="#D3D3D3" width="100%"}}
10537 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/lookup?Source={(%%){Source code Name}}
10538 {{/panel}}
10539
10540 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10541
10542 ----
10543
10544 (% 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}}
10545
10546 === (% style="color:#212121" %)Query Params(%%) ===
10547
10548 ----
10549
10550 (% 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}}
10551
10552 ==== Example ====
10553
10554 ----
10555
10556 (% style="color:#6b6b6b" %)Request
10557
10558 {{code language="php" theme="RDark" title="Lookup Source code Request"}}
10559 <?php
10560
10561 $curl = curl_init();
10562
10563 curl_setopt_array($curl, array(
10564 CURLOPT_URL => 'https://api.onecount.net/v2/sources/lookup?Source={{Source code Name}}',
10565 CURLOPT_RETURNTRANSFER => true,
10566 CURLOPT_ENCODING => '',
10567 CURLOPT_MAXREDIRS => 10,
10568 CURLOPT_TIMEOUT => 0,
10569 CURLOPT_FOLLOWLOCATION => true,
10570 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10571 CURLOPT_CUSTOMREQUEST => 'GET',
10572 CURLOPT_HTTPHEADER => array(
10573 'Appkey: {{ONECOUNT API KEY}}'
10574 ),
10575 ));
10576
10577 $response = curl_exec($curl);
10578
10579 curl_close($curl);
10580 echo $response;
10581 {{/code}}
10582
10583
10584 (% style="color:#6b6b6b" %)Response  200 OK
10585
10586 {{code language="yml" theme="RDark" collapse="true" title="Lookup Source code Response"}}
10587 {
10588 "result": {
10589 "success": "1",
10590 "error": {
10591 "code": "",
10592 "message": ""
10593 }
10594 },
10595 "Sources": [
10596 {
10597 "Id": 26,
10598 "Source": "GCN-Member",
10599 "Description": "Uploaded from Reston VA",
10600 "Parent": 0
10601 }
10602 ]
10603 }
10604 {{/code}}
10605
10606
10607 (% id="HPOSTCreateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10608 == (% 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(%%) ==
10609
10610 ----
10611
10612 {{panel bgColor="#D3D3D3" width="100%"}}
10613 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources
10614 {{/panel}}
10615
10616 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10617
10618 ----
10619
10620 (% 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}}
10621
10622 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10623
10624 ----
10625
10626 {{code language="yml" theme="RDark" title="Body"}}
10627 {"Source":"Test source code from API"}
10628 {{/code}}
10629
10630 ==== Example ====
10631
10632 ----
10633
10634 (% style="color:#6b6b6b" %)Request
10635
10636 {{code language="php" theme="RDark" title="Create Source code Request"}}
10637 <?php
10638
10639 $curl = curl_init();
10640
10641 curl_setopt_array($curl, array(
10642 CURLOPT_URL => 'https://api.onecount.net/v2/sources',
10643 CURLOPT_RETURNTRANSFER => true,
10644 CURLOPT_ENCODING => '',
10645 CURLOPT_MAXREDIRS => 10,
10646 CURLOPT_TIMEOUT => 0,
10647 CURLOPT_FOLLOWLOCATION => true,
10648 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10649 CURLOPT_CUSTOMREQUEST => 'POST',
10650 CURLOPT_POSTFIELDS =>'{"Source":"Test source code from API"}',
10651 CURLOPT_HTTPHEADER => array(
10652 'Appkey: {{ONECOUNT API KEY}}'
10653 ),
10654 ));
10655
10656 $response = curl_exec($curl);
10657
10658 curl_close($curl);
10659 echo $response;
10660 {{/code}}
10661
10662
10663 (% style="color:#6b6b6b" %)Response  200 OK
10664
10665 {{code language="yml" theme="RDark" collapse="true" title="Create Source code Response"}}
10666 {
10667 "result": {
10668 "success": "1",
10669 "error": {
10670 "code": "",
10671 "message": ""
10672 }
10673 },
10674 "Sources": [
10675 {
10676 "Id": 223,
10677 "Source": "Test source code from API",
10678 "Description": "",
10679 "Parent": 0
10680 }
10681 ]
10682 }
10683 {{/code}}
10684
10685
10686 (% id="HPUTUpdateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10687 == (% 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(%%) ==
10688
10689 ----
10690
10691 {{panel bgColor="#D3D3D3" width="100%"}}
10692 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}}
10693 {{/panel}}
10694
10695 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10696
10697 ----
10698
10699 (% 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}}
10700
10701 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
10702
10703 ----
10704
10705 {{code language="yml" theme="RDark" title="Body"}}
10706 {"Source":"Test API","Parent":215}
10707 {{/code}}
10708
10709 ==== Example ====
10710
10711 ----
10712
10713 (% style="color:#6b6b6b" %)Request
10714
10715 {{code language="php" theme="RDark" title="Update Source code Request"}}
10716 <?php
10717
10718 $curl = curl_init();
10719
10720 curl_setopt_array($curl, array(
10721 CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}',
10722 CURLOPT_RETURNTRANSFER => true,
10723 CURLOPT_ENCODING => '',
10724 CURLOPT_MAXREDIRS => 10,
10725 CURLOPT_TIMEOUT => 0,
10726 CURLOPT_FOLLOWLOCATION => true,
10727 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10728 CURLOPT_CUSTOMREQUEST => 'PUT',
10729 CURLOPT_POSTFIELDS =>'{"Source":"Test API","Parent":215}',
10730 CURLOPT_HTTPHEADER => array(
10731 'Appkey: {{ONECOUNT API KEY}}'
10732 ),
10733 ));
10734
10735 $response = curl_exec($curl);
10736
10737 curl_close($curl);
10738 echo $response;
10739 {{/code}}
10740
10741
10742 (% style="color:#6b6b6b" %)Response  200 OK
10743
10744 {{code language="yml" theme="RDark" collapse="true" title="Update Source code Response"}}
10745 {
10746 "result": {
10747 "success": "1",
10748 "error": {
10749 "code": "",
10750 "message": ""
10751 }
10752 },
10753 "Sources": [
10754 {
10755 "Id": 223,
10756 "Source": "Test API",
10757 "Description": "",
10758 "Parent": 215
10759 }
10760 ]
10761 }
10762 {{/code}}
10763
10764
10765 (% id="HCOMPONENT:Transactions" class="western" %)
10766 === **COMPONENT: Transactions** ===
10767
10768 (% class="western" %)
10769 This resource is for manipulating transactions resource. A transaction can be created or searched.
10770
10771 (% class="wrapped" %)
10772 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10773 (((
10774 (% class="western" %)
10775 **Method**
10776 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10777 (((
10778 (% class="western" %)
10779 **Url**
10780 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10781 (((
10782 (% class="western" %)
10783 **Action**
10784 )))
10785 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10786 (((
10787 (% class="western" %)
10788 GET
10789 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10790 (((
10791 (% class="western" %)
10792 /transactions
10793 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10794 (((
10795 (% class="western" %)
10796 List all transactions
10797 )))
10798 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10799 (((
10800 (% class="western" %)
10801 GET
10802 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10803 (((
10804 (% class="western" %)
10805 /transactions/lookup?UserId=1
10806 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10807 (((
10808 (% class="western" %)
10809 Lookup all transaction of UserId = 1
10810 )))
10811 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10812 (((
10813 (% class="western" %)
10814 POST
10815 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10816 (((
10817 (% class="western" %)
10818 /transactions
10819 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
10820 (((
10821 (% class="western" %)
10822 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent.
10823 )))
10824
10825 (% id="HGETAllTransactions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
10826 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Transactions(%%) ==
10827
10828 ----
10829
10830 ----
10831
10832 {{panel bgColor="#D3D3D3" width="100%"}}
10833 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions
10834 {{/panel}}
10835
10836 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
10837
10838 ----
10839
10840 (% 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}}
10841
10842 ==== Example ====
10843
10844 ----
10845
10846 (% style="color:#6b6b6b" %)Request
10847
10848 {{code language="php" theme="RDark" title="Get All Transaction Request"}}
10849 <?php
10850
10851 $curl = curl_init();
10852
10853 curl_setopt_array($curl, array(
10854 CURLOPT_URL => 'https://api.onecount.net/v2/transactions',
10855 CURLOPT_RETURNTRANSFER => true,
10856 CURLOPT_ENCODING => '',
10857 CURLOPT_MAXREDIRS => 10,
10858 CURLOPT_TIMEOUT => 0,
10859 CURLOPT_FOLLOWLOCATION => true,
10860 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
10861 CURLOPT_CUSTOMREQUEST => 'GET',
10862 CURLOPT_HTTPHEADER => array(
10863 'Appkey: {{ONECOUNT API KEY}}'
10864 ),
10865 ));
10866
10867 $response = curl_exec($curl);
10868
10869 curl_close($curl);
10870 echo $response;
10871 {{/code}}
10872
10873
10874 (% style="color:#6b6b6b" %)Response  200 OK
10875
10876 {{code language="yml" theme="RDark" collapse="true" title="Get All Transaction Response"}}
10877 {
10878 "result": {
10879 "success": "1",
10880 "error": {
10881 "code": "",
10882 "message": ""
10883 }
10884 },
10885 "Transactions": [
10886 {
10887 "Id": 10,
10888 "UserId": 10,
10889 "TermId": 2,
10890 "TransactionDate": "2014-07-17",
10891 "TransactionTime": "10:02:13",
10892 "RequestDate": "2014-07-17",
10893 "UserIP": "74.201.38.1",
10894 "SubscriptionType": "n",
10895 "ProductId": 2,
10896 "Source": 10,
10897 "ProductStatus": 2,
10898 "MediaFilePath": "",
10899 "Amount": ""
10900 },
10901 {
10902 "Id": 26,
10903 "UserId": 10,
10904 "TermId": 2,
10905 "TransactionDate": "2014-07-17",
10906 "TransactionTime": "10:41:59",
10907 "RequestDate": "2014-07-17",
10908 "UserIP": "74.201.38.1",
10909 "SubscriptionType": "r",
10910 "ProductId": 2,
10911 "Source": 10,
10912 "ProductStatus": 2,
10913 "MediaFilePath": "",
10914 "Amount": ""
10915 },
10916 {
10917 "Id": 50,
10918 "UserId": 26,
10919 "TermId": 2,
10920 "TransactionDate": "2014-07-17",
10921 "TransactionTime": "12:25:38",
10922 "RequestDate": "2014-07-17",
10923 "UserIP": "74.201.38.1",
10924 "SubscriptionType": "n",
10925 "ProductId": 2,
10926 "Source": 10,
10927 "ProductStatus": 2,
10928 "MediaFilePath": "",
10929 "Amount": ""
10930 },
10931 {
10932 "Id": 58,
10933 "UserId": 10,
10934 "TermId": 2,
10935 "TransactionDate": "2014-07-17",
10936 "TransactionTime": "12:25:43",
10937 "RequestDate": "2014-07-17",
10938 "UserIP": "74.201.38.1",
10939 "SubscriptionType": "r",
10940 "ProductId": 2,
10941 "Source": 10,
10942 "ProductStatus": 2,
10943 "MediaFilePath": "",
10944 "Amount": ""
10945 },
10946 {
10947 "Id": 66,
10948 "UserId": 42,
10949 "TermId": 2,
10950 "TransactionDate": "2014-07-17",
10951 "TransactionTime": "12:57:11",
10952 "RequestDate": "2014-07-17",
10953 "UserIP": "74.201.38.1",
10954 "SubscriptionType": "n",
10955 "ProductId": 2,
10956 "Source": 26,
10957 "ProductStatus": 2,
10958 "MediaFilePath": "",
10959 "Amount": ""
10960 },
10961 {
10962 "Id": 74,
10963 "UserId": 50,
10964 "TermId": 2,
10965 "TransactionDate": "2014-07-17",
10966 "TransactionTime": "12:57:11",
10967 "RequestDate": "2014-07-17",
10968 "UserIP": "74.201.38.1",
10969 "SubscriptionType": "n",
10970 "ProductId": 2,
10971 "Source": 26,
10972 "ProductStatus": 2,
10973 "MediaFilePath": "",
10974 "Amount": ""
10975 },
10976 {
10977 "Id": 82,
10978 "UserId": 58,
10979 "TermId": 2,
10980 "TransactionDate": "2014-07-17",
10981 "TransactionTime": "12:57:11",
10982 "RequestDate": "2014-07-17",
10983 "UserIP": "74.201.38.1",
10984 "SubscriptionType": "n",
10985 "ProductId": 2,
10986 "Source": 26,
10987 "ProductStatus": 2,
10988 "MediaFilePath": "",
10989 "Amount": ""
10990 },
10991 {
10992 "Id": 90,
10993 "UserId": 66,
10994 "TermId": 2,
10995 "TransactionDate": "2014-07-17",
10996 "TransactionTime": "12:57:11",
10997 "RequestDate": "2014-07-17",
10998 "UserIP": "74.201.38.1",
10999 "SubscriptionType": "n",
11000 "ProductId": 2,
11001 "Source": 26,
11002 "ProductStatus": 2,
11003 "MediaFilePath": "",
11004 "Amount": ""
11005 },
11006 {
11007 "Id": 98,
11008 "UserId": 74,
11009 "TermId": 2,
11010 "TransactionDate": "2014-07-17",
11011 "TransactionTime": "12:57:11",
11012 "RequestDate": "2014-07-17",
11013 "UserIP": "74.201.38.1",
11014 "SubscriptionType": "n",
11015 "ProductId": 2,
11016 "Source": 26,
11017 "ProductStatus": 2,
11018 "MediaFilePath": "",
11019 "Amount": ""
11020 },
11021 {
11022 "Id": 106,
11023 "UserId": 82,
11024 "TermId": 2,
11025 "TransactionDate": "2014-07-17",
11026 "TransactionTime": "12:57:11",
11027 "RequestDate": "2014-07-17",
11028 "UserIP": "74.201.38.1",
11029 "SubscriptionType": "n",
11030 "ProductId": 2,
11031 "Source": 26,
11032 "ProductStatus": 2,
11033 "MediaFilePath": "",
11034 "Amount": ""
11035 },
11036 {
11037 "Id": 114,
11038 "UserId": 90,
11039 "TermId": 2,
11040 "TransactionDate": "2014-07-17",
11041 "TransactionTime": "12:57:11",
11042 "RequestDate": "2014-07-17",
11043 "UserIP": "74.201.38.1",
11044 "SubscriptionType": "n",
11045 "ProductId": 2,
11046 "Source": 26,
11047 "ProductStatus": 2,
11048 "MediaFilePath": "",
11049 "Amount": ""
11050 },
11051 {
11052 "Id": 122,
11053 "UserId": 98,
11054 "TermId": 2,
11055 "TransactionDate": "2014-07-17",
11056 "TransactionTime": "12:57:11",
11057 "RequestDate": "2014-07-17",
11058 "UserIP": "74.201.38.1",
11059 "SubscriptionType": "n",
11060 "ProductId": 2,
11061 "Source": 26,
11062 "ProductStatus": 2,
11063 "MediaFilePath": "",
11064 "Amount": ""
11065 },
11066 {
11067 "Id": 130,
11068 "UserId": 42,
11069 "TermId": 2,
11070 "TransactionDate": "2014-07-17",
11071 "TransactionTime": "12:59:10",
11072 "RequestDate": "2014-07-17",
11073 "UserIP": "74.201.38.1",
11074 "SubscriptionType": "r",
11075 "ProductId": 2,
11076 "Source": 10,
11077 "ProductStatus": 2,
11078 "MediaFilePath": "",
11079 "Amount": ""
11080 },
11081 {
11082 "Id": 138,
11083 "UserId": 50,
11084 "TermId": 2,
11085 "TransactionDate": "2014-07-17",
11086 "TransactionTime": "12:59:10",
11087 "RequestDate": "2014-07-17",
11088 "UserIP": "74.201.38.1",
11089 "SubscriptionType": "r",
11090 "ProductId": 2,
11091 "Source": 10,
11092 "ProductStatus": 2,
11093 "MediaFilePath": "",
11094 "Amount": ""
11095 },
11096 {
11097 "Id": 146,
11098 "UserId": 58,
11099 "TermId": 2,
11100 "TransactionDate": "2014-07-17",
11101 "TransactionTime": "12:59:10",
11102 "RequestDate": "2014-07-17",
11103 "UserIP": "74.201.38.1",
11104 "SubscriptionType": "r",
11105 "ProductId": 2,
11106 "Source": 10,
11107 "ProductStatus": 2,
11108 "MediaFilePath": "",
11109 "Amount": ""
11110 },
11111 {
11112 "Id": 154,
11113 "UserId": 66,
11114 "TermId": 2,
11115 "TransactionDate": "2014-07-17",
11116 "TransactionTime": "12:59:10",
11117 "RequestDate": "2014-07-17",
11118 "UserIP": "74.201.38.1",
11119 "SubscriptionType": "r",
11120 "ProductId": 2,
11121 "Source": 10,
11122 "ProductStatus": 2,
11123 "MediaFilePath": "",
11124 "Amount": ""
11125 },
11126 {
11127 "Id": 162,
11128 "UserId": 74,
11129 "TermId": 2,
11130 "TransactionDate": "2014-07-17",
11131 "TransactionTime": "12:59:10",
11132 "RequestDate": "2014-07-17",
11133 "UserIP": "74.201.38.1",
11134 "SubscriptionType": "r",
11135 "ProductId": 2,
11136 "Source": 10,
11137 "ProductStatus": 2,
11138 "MediaFilePath": "",
11139 "Amount": ""
11140 },
11141 {
11142 "Id": 170,
11143 "UserId": 82,
11144 "TermId": 2,
11145 "TransactionDate": "2014-07-17",
11146 "TransactionTime": "12:59:10",
11147 "RequestDate": "2014-07-17",
11148 "UserIP": "74.201.38.1",
11149 "SubscriptionType": "r",
11150 "ProductId": 2,
11151 "Source": 10,
11152 "ProductStatus": 2,
11153 "MediaFilePath": "",
11154 "Amount": ""
11155 },
11156 {
11157 "Id": 178,
11158 "UserId": 90,
11159 "TermId": 2,
11160 "TransactionDate": "2014-07-17",
11161 "TransactionTime": "12:59:10",
11162 "RequestDate": "2014-07-17",
11163 "UserIP": "74.201.38.1",
11164 "SubscriptionType": "r",
11165 "ProductId": 2,
11166 "Source": 10,
11167 "ProductStatus": 2,
11168 "MediaFilePath": "",
11169 "Amount": ""
11170 },
11171 {
11172 "Id": 186,
11173 "UserId": 98,
11174 "TermId": 2,
11175 "TransactionDate": "2014-07-17",
11176 "TransactionTime": "12:59:10",
11177 "RequestDate": "2014-07-17",
11178 "UserIP": "74.201.38.1",
11179 "SubscriptionType": "r",
11180 "ProductId": 2,
11181 "Source": 10,
11182 "ProductStatus": 2,
11183 "MediaFilePath": "",
11184 "Amount": ""
11185 },
11186 {
11187 "Id": 194,
11188 "UserId": 162,
11189 "TermId": 2,
11190 "TransactionDate": "2014-07-17",
11191 "TransactionTime": "13:00:42",
11192 "RequestDate": "2014-07-17",
11193 "UserIP": "74.201.38.1",
11194 "SubscriptionType": "n",
11195 "ProductId": 2,
11196 "Source": 10,
11197 "ProductStatus": 2,
11198 "MediaFilePath": "",
11199 "Amount": ""
11200 },
11201 {
11202 "Id": 202,
11203 "UserId": 170,
11204 "TermId": 2,
11205 "TransactionDate": "2014-07-17",
11206 "TransactionTime": "13:00:42",
11207 "RequestDate": "2014-07-17",
11208 "UserIP": "74.201.38.1",
11209 "SubscriptionType": "n",
11210 "ProductId": 2,
11211 "Source": 10,
11212 "ProductStatus": 2,
11213 "MediaFilePath": "",
11214 "Amount": ""
11215 },
11216 {
11217 "Id": 210,
11218 "UserId": 178,
11219 "TermId": 2,
11220 "TransactionDate": "2014-07-17",
11221 "TransactionTime": "13:00:42",
11222 "RequestDate": "2014-07-17",
11223 "UserIP": "74.201.38.1",
11224 "SubscriptionType": "n",
11225 "ProductId": 2,
11226 "Source": 10,
11227 "ProductStatus": 2,
11228 "MediaFilePath": "",
11229 "Amount": ""
11230 },
11231 {
11232 "Id": 218,
11233 "UserId": 186,
11234 "TermId": 2,
11235 "TransactionDate": "2014-07-17",
11236 "TransactionTime": "13:00:42",
11237 "RequestDate": "2014-07-17",
11238 "UserIP": "74.201.38.1",
11239 "SubscriptionType": "n",
11240 "ProductId": 2,
11241 "Source": 10,
11242 "ProductStatus": 2,
11243 "MediaFilePath": "",
11244 "Amount": ""
11245 },
11246 {
11247 "Id": 226,
11248 "UserId": 194,
11249 "TermId": 2,
11250 "TransactionDate": "2014-07-17",
11251 "TransactionTime": "13:00:42",
11252 "RequestDate": "2014-07-17",
11253 "UserIP": "74.201.38.1",
11254 "SubscriptionType": "n",
11255 "ProductId": 2,
11256 "Source": 10,
11257 "ProductStatus": 2,
11258 "MediaFilePath": "",
11259 "Amount": ""
11260 },
11261 {
11262 "Id": 234,
11263 "UserId": 202,
11264 "TermId": 2,
11265 "TransactionDate": "2014-07-17",
11266 "TransactionTime": "13:00:42",
11267 "RequestDate": "2014-07-17",
11268 "UserIP": "74.201.38.1",
11269 "SubscriptionType": "n",
11270 "ProductId": 2,
11271 "Source": 10,
11272 "ProductStatus": 2,
11273 "MediaFilePath": "",
11274 "Amount": ""
11275 },
11276 {
11277 "Id": 242,
11278 "UserId": 210,
11279 "TermId": 2,
11280 "TransactionDate": "2014-07-17",
11281 "TransactionTime": "13:00:42",
11282 "RequestDate": "2014-07-17",
11283 "UserIP": "74.201.38.1",
11284 "SubscriptionType": "n",
11285 "ProductId": 2,
11286 "Source": 10,
11287 "ProductStatus": 2,
11288 "MediaFilePath": "",
11289 "Amount": ""
11290 },
11291 {
11292 "Id": 250,
11293 "UserId": 218,
11294 "TermId": 2,
11295 "TransactionDate": "2014-07-17",
11296 "TransactionTime": "13:00:42",
11297 "RequestDate": "2014-07-17",
11298 "UserIP": "74.201.38.1",
11299 "SubscriptionType": "n",
11300 "ProductId": 2,
11301 "Source": 10,
11302 "ProductStatus": 2,
11303 "MediaFilePath": "",
11304 "Amount": ""
11305 },
11306 {
11307 "Id": 258,
11308 "UserId": 282,
11309 "TermId": 2,
11310 "TransactionDate": "2014-07-17",
11311 "TransactionTime": "13:02:19",
11312 "RequestDate": "2014-07-17",
11313 "UserIP": "74.201.38.1",
11314 "SubscriptionType": "n",
11315 "ProductId": 2,
11316 "Source": 10,
11317 "ProductStatus": 2,
11318 "MediaFilePath": "",
11319 "Amount": ""
11320 },
11321 {
11322 "Id": 266,
11323 "UserId": 290,
11324 "TermId": 2,
11325 "TransactionDate": "2014-07-17",
11326 "TransactionTime": "13:02:19",
11327 "RequestDate": "2014-07-17",
11328 "UserIP": "74.201.38.1",
11329 "SubscriptionType": "n",
11330 "ProductId": 2,
11331 "Source": 10,
11332 "ProductStatus": 2,
11333 "MediaFilePath": "",
11334 "Amount": ""
11335 },
11336 {
11337 "Id": 274,
11338 "UserId": 298,
11339 "TermId": 2,
11340 "TransactionDate": "2014-07-17",
11341 "TransactionTime": "13:02:19",
11342 "RequestDate": "2014-07-17",
11343 "UserIP": "74.201.38.1",
11344 "SubscriptionType": "n",
11345 "ProductId": 2,
11346 "Source": 10,
11347 "ProductStatus": 2,
11348 "MediaFilePath": "",
11349 "Amount": ""
11350 },
11351 {
11352 "Id": 282,
11353 "UserId": 306,
11354 "TermId": 2,
11355 "TransactionDate": "2014-07-17",
11356 "TransactionTime": "13:02:19",
11357 "RequestDate": "2014-07-17",
11358 "UserIP": "74.201.38.1",
11359 "SubscriptionType": "n",
11360 "ProductId": 2,
11361 "Source": 10,
11362 "ProductStatus": 2,
11363 "MediaFilePath": "",
11364 "Amount": ""
11365 },
11366 {
11367 "Id": 290,
11368 "UserId": 314,
11369 "TermId": 2,
11370 "TransactionDate": "2014-07-17",
11371 "TransactionTime": "13:02:19",
11372 "RequestDate": "2014-07-17",
11373 "UserIP": "74.201.38.1",
11374 "SubscriptionType": "n",
11375 "ProductId": 2,
11376 "Source": 10,
11377 "ProductStatus": 2,
11378 "MediaFilePath": "",
11379 "Amount": ""
11380 },
11381 {
11382 "Id": 298,
11383 "UserId": 322,
11384 "TermId": 2,
11385 "TransactionDate": "2014-07-17",
11386 "TransactionTime": "13:02:19",
11387 "RequestDate": "2014-07-17",
11388 "UserIP": "74.201.38.1",
11389 "SubscriptionType": "n",
11390 "ProductId": 2,
11391 "Source": 10,
11392 "ProductStatus": 2,
11393 "MediaFilePath": "",
11394 "Amount": ""
11395 },
11396 {
11397 "Id": 306,
11398 "UserId": 330,
11399 "TermId": 2,
11400 "TransactionDate": "2014-07-17",
11401 "TransactionTime": "13:02:19",
11402 "RequestDate": "2014-07-17",
11403 "UserIP": "74.201.38.1",
11404 "SubscriptionType": "n",
11405 "ProductId": 2,
11406 "Source": 10,
11407 "ProductStatus": 2,
11408 "MediaFilePath": "",
11409 "Amount": ""
11410 },
11411 {
11412 "Id": 466,
11413 "UserId": 698,
11414 "TermId": 2,
11415 "TransactionDate": "2014-07-17",
11416 "TransactionTime": "13:13:06",
11417 "RequestDate": "2014-07-17",
11418 "UserIP": "74.201.38.1",
11419 "SubscriptionType": "n",
11420 "ProductId": 2,
11421 "Source": 26,
11422 "ProductStatus": 2,
11423 "MediaFilePath": "",
11424 "Amount": ""
11425 },
11426 {
11427 "Id": 474,
11428 "UserId": 706,
11429 "TermId": 2,
11430 "TransactionDate": "2014-07-17",
11431 "TransactionTime": "13:13:06",
11432 "RequestDate": "2014-07-17",
11433 "UserIP": "74.201.38.1",
11434 "SubscriptionType": "n",
11435 "ProductId": 2,
11436 "Source": 26,
11437 "ProductStatus": 2,
11438 "MediaFilePath": "",
11439 "Amount": ""
11440 },
11441 {
11442 "Id": 482,
11443 "UserId": 714,
11444 "TermId": 2,
11445 "TransactionDate": "2014-07-17",
11446 "TransactionTime": "13:13:06",
11447 "RequestDate": "2014-07-17",
11448 "UserIP": "74.201.38.1",
11449 "SubscriptionType": "n",
11450 "ProductId": 2,
11451 "Source": 26,
11452 "ProductStatus": 2,
11453 "MediaFilePath": "",
11454 "Amount": ""
11455 },
11456 {
11457 "Id": 490,
11458 "UserId": 722,
11459 "TermId": 2,
11460 "TransactionDate": "2014-07-17",
11461 "TransactionTime": "13:13:06",
11462 "RequestDate": "2014-07-17",
11463 "UserIP": "74.201.38.1",
11464 "SubscriptionType": "n",
11465 "ProductId": 2,
11466 "Source": 26,
11467 "ProductStatus": 2,
11468 "MediaFilePath": "",
11469 "Amount": ""
11470 },
11471 {
11472 "Id": 498,
11473 "UserId": 730,
11474 "TermId": 2,
11475 "TransactionDate": "2014-07-17",
11476 "TransactionTime": "13:13:06",
11477 "RequestDate": "2014-07-17",
11478 "UserIP": "74.201.38.1",
11479 "SubscriptionType": "n",
11480 "ProductId": 2,
11481 "Source": 26,
11482 "ProductStatus": 2,
11483 "MediaFilePath": "",
11484 "Amount": ""
11485 },
11486 {
11487 "Id": 506,
11488 "UserId": 738,
11489 "TermId": 2,
11490 "TransactionDate": "2014-07-17",
11491 "TransactionTime": "13:13:06",
11492 "RequestDate": "2014-07-17",
11493 "UserIP": "74.201.38.1",
11494 "SubscriptionType": "n",
11495 "ProductId": 2,
11496 "Source": 26,
11497 "ProductStatus": 2,
11498 "MediaFilePath": "",
11499 "Amount": ""
11500 },
11501 {
11502 "Id": 522,
11503 "UserId": 754,
11504 "TermId": 18,
11505 "TransactionDate": "2014-08-19",
11506 "TransactionTime": "11:18:55",
11507 "RequestDate": "2014-08-19",
11508 "UserIP": "74.201.38.1",
11509 "SubscriptionType": "n",
11510 "ProductId": 18,
11511 "Source": 34,
11512 "ProductStatus": 2,
11513 "MediaFilePath": "",
11514 "Amount": ""
11515 },
11516 {
11517 "Id": 530,
11518 "UserId": 762,
11519 "TermId": 18,
11520 "TransactionDate": "2014-08-19",
11521 "TransactionTime": "11:18:55",
11522 "RequestDate": "2014-08-19",
11523 "UserIP": "74.201.38.1",
11524 "SubscriptionType": "n",
11525 "ProductId": 18,
11526 "Source": 34,
11527 "ProductStatus": 2,
11528 "MediaFilePath": "",
11529 "Amount": ""
11530 },
11531 {
11532 "Id": 538,
11533 "UserId": 770,
11534 "TermId": 18,
11535 "TransactionDate": "2014-08-19",
11536 "TransactionTime": "11:18:55",
11537 "RequestDate": "2014-08-19",
11538 "UserIP": "74.201.38.1",
11539 "SubscriptionType": "n",
11540 "ProductId": 18,
11541 "Source": 34,
11542 "ProductStatus": 2,
11543 "MediaFilePath": "",
11544 "Amount": ""
11545 },
11546 {
11547 "Id": 546,
11548 "UserId": 778,
11549 "TermId": 18,
11550 "TransactionDate": "2014-08-19",
11551 "TransactionTime": "11:18:55",
11552 "RequestDate": "2014-08-19",
11553 "UserIP": "74.201.38.1",
11554 "SubscriptionType": "n",
11555 "ProductId": 18,
11556 "Source": 34,
11557 "ProductStatus": 2,
11558 "MediaFilePath": "",
11559 "Amount": ""
11560 },
11561 {
11562 "Id": 554,
11563 "UserId": 786,
11564 "TermId": 18,
11565 "TransactionDate": "2014-08-19",
11566 "TransactionTime": "11:18:55",
11567 "RequestDate": "2014-08-19",
11568 "UserIP": "74.201.38.1",
11569 "SubscriptionType": "n",
11570 "ProductId": 18,
11571 "Source": 34,
11572 "ProductStatus": 2,
11573 "MediaFilePath": "",
11574 "Amount": ""
11575 },
11576 {
11577 "Id": 570,
11578 "UserId": 802,
11579 "TermId": 18,
11580 "TransactionDate": "2014-08-19",
11581 "TransactionTime": "11:18:55",
11582 "RequestDate": "2014-08-19",
11583 "UserIP": "74.201.38.1",
11584 "SubscriptionType": "n",
11585 "ProductId": 18,
11586 "Source": 34,
11587 "ProductStatus": 2,
11588 "MediaFilePath": "",
11589 "Amount": ""
11590 },
11591 {
11592 "Id": 578,
11593 "UserId": 810,
11594 "TermId": 18,
11595 "TransactionDate": "2014-08-19",
11596 "TransactionTime": "11:18:55",
11597 "RequestDate": "2014-08-19",
11598 "UserIP": "74.201.38.1",
11599 "SubscriptionType": "n",
11600 "ProductId": 18,
11601 "Source": 34,
11602 "ProductStatus": 2,
11603 "MediaFilePath": "",
11604 "Amount": ""
11605 },
11606 {
11607 "Id": 586,
11608 "UserId": 818,
11609 "TermId": 18,
11610 "TransactionDate": "2014-08-19",
11611 "TransactionTime": "11:18:55",
11612 "RequestDate": "2014-08-19",
11613 "UserIP": "74.201.38.1",
11614 "SubscriptionType": "n",
11615 "ProductId": 18,
11616 "Source": 34,
11617 "ProductStatus": 2,
11618 "MediaFilePath": "",
11619 "Amount": ""
11620 },
11621 {
11622 "Id": 602,
11623 "UserId": 834,
11624 "TermId": 18,
11625 "TransactionDate": "2014-08-19",
11626 "TransactionTime": "11:18:55",
11627 "RequestDate": "2014-08-19",
11628 "UserIP": "74.201.38.1",
11629 "SubscriptionType": "n",
11630 "ProductId": 18,
11631 "Source": 34,
11632 "ProductStatus": 2,
11633 "MediaFilePath": "",
11634 "Amount": ""
11635 },
11636 {
11637 "Id": 610,
11638 "UserId": 842,
11639 "TermId": 18,
11640 "TransactionDate": "2014-08-19",
11641 "TransactionTime": "11:18:55",
11642 "RequestDate": "2014-08-19",
11643 "UserIP": "74.201.38.1",
11644 "SubscriptionType": "n",
11645 "ProductId": 18,
11646 "Source": 34,
11647 "ProductStatus": 2,
11648 "MediaFilePath": "",
11649 "Amount": ""
11650 },
11651 {
11652 "Id": 618,
11653 "UserId": 850,
11654 "TermId": 18,
11655 "TransactionDate": "2014-08-19",
11656 "TransactionTime": "11:18:55",
11657 "RequestDate": "2014-08-19",
11658 "UserIP": "74.201.38.1",
11659 "SubscriptionType": "n",
11660 "ProductId": 18,
11661 "Source": 34,
11662 "ProductStatus": 2,
11663 "MediaFilePath": "",
11664 "Amount": ""
11665 },
11666 {
11667 "Id": 626,
11668 "UserId": 858,
11669 "TermId": 18,
11670 "TransactionDate": "2014-08-19",
11671 "TransactionTime": "11:18:55",
11672 "RequestDate": "2014-08-19",
11673 "UserIP": "74.201.38.1",
11674 "SubscriptionType": "n",
11675 "ProductId": 18,
11676 "Source": 34,
11677 "ProductStatus": 2,
11678 "MediaFilePath": "",
11679 "Amount": ""
11680 },
11681 {
11682 "Id": 634,
11683 "UserId": 866,
11684 "TermId": 18,
11685 "TransactionDate": "2014-08-19",
11686 "TransactionTime": "11:18:55",
11687 "RequestDate": "2014-08-19",
11688 "UserIP": "74.201.38.1",
11689 "SubscriptionType": "n",
11690 "ProductId": 18,
11691 "Source": 34,
11692 "ProductStatus": 2,
11693 "MediaFilePath": "",
11694 "Amount": ""
11695 },
11696 {
11697 "Id": 642,
11698 "UserId": 874,
11699 "TermId": 18,
11700 "TransactionDate": "2014-08-19",
11701 "TransactionTime": "11:18:55",
11702 "RequestDate": "2014-08-19",
11703 "UserIP": "74.201.38.1",
11704 "SubscriptionType": "n",
11705 "ProductId": 18,
11706 "Source": 34,
11707 "ProductStatus": 2,
11708 "MediaFilePath": "",
11709 "Amount": ""
11710 },
11711 {
11712 "Id": 650,
11713 "UserId": 882,
11714 "TermId": 18,
11715 "TransactionDate": "2014-08-19",
11716 "TransactionTime": "11:18:55",
11717 "RequestDate": "2014-08-19",
11718 "UserIP": "74.201.38.1",
11719 "SubscriptionType": "n",
11720 "ProductId": 18,
11721 "Source": 34,
11722 "ProductStatus": 2,
11723 "MediaFilePath": "",
11724 "Amount": ""
11725 },
11726 {
11727 "Id": 658,
11728 "UserId": 890,
11729 "TermId": 18,
11730 "TransactionDate": "2014-08-19",
11731 "TransactionTime": "11:18:55",
11732 "RequestDate": "2014-08-19",
11733 "UserIP": "74.201.38.1",
11734 "SubscriptionType": "n",
11735 "ProductId": 18,
11736 "Source": 34,
11737 "ProductStatus": 2,
11738 "MediaFilePath": "",
11739 "Amount": ""
11740 },
11741 {
11742 "Id": 666,
11743 "UserId": 898,
11744 "TermId": 18,
11745 "TransactionDate": "2014-08-19",
11746 "TransactionTime": "11:18:55",
11747 "RequestDate": "2014-08-19",
11748 "UserIP": "74.201.38.1",
11749 "SubscriptionType": "n",
11750 "ProductId": 18,
11751 "Source": 34,
11752 "ProductStatus": 2,
11753 "MediaFilePath": "",
11754 "Amount": ""
11755 },
11756 {
11757 "Id": 674,
11758 "UserId": 906,
11759 "TermId": 18,
11760 "TransactionDate": "2014-08-19",
11761 "TransactionTime": "11:18:55",
11762 "RequestDate": "2014-08-19",
11763 "UserIP": "74.201.38.1",
11764 "SubscriptionType": "n",
11765 "ProductId": 18,
11766 "Source": 34,
11767 "ProductStatus": 2,
11768 "MediaFilePath": "",
11769 "Amount": ""
11770 },
11771 {
11772 "Id": 682,
11773 "UserId": 914,
11774 "TermId": 18,
11775 "TransactionDate": "2014-08-19",
11776 "TransactionTime": "11:18:55",
11777 "RequestDate": "2014-08-19",
11778 "UserIP": "74.201.38.1",
11779 "SubscriptionType": "n",
11780 "ProductId": 18,
11781 "Source": 34,
11782 "ProductStatus": 2,
11783 "MediaFilePath": "",
11784 "Amount": ""
11785 },
11786 {
11787 "Id": 690,
11788 "UserId": 922,
11789 "TermId": 18,
11790 "TransactionDate": "2014-08-19",
11791 "TransactionTime": "11:18:55",
11792 "RequestDate": "2014-08-19",
11793 "UserIP": "74.201.38.1",
11794 "SubscriptionType": "n",
11795 "ProductId": 18,
11796 "Source": 34,
11797 "ProductStatus": 2,
11798 "MediaFilePath": "",
11799 "Amount": ""
11800 },
11801 {
11802 "Id": 698,
11803 "UserId": 930,
11804 "TermId": 18,
11805 "TransactionDate": "2014-08-19",
11806 "TransactionTime": "11:18:55",
11807 "RequestDate": "2014-08-19",
11808 "UserIP": "74.201.38.1",
11809 "SubscriptionType": "n",
11810 "ProductId": 18,
11811 "Source": 34,
11812 "ProductStatus": 2,
11813 "MediaFilePath": "",
11814 "Amount": ""
11815 },
11816 {
11817 "Id": 706,
11818 "UserId": 938,
11819 "TermId": 18,
11820 "TransactionDate": "2014-08-19",
11821 "TransactionTime": "11:18:55",
11822 "RequestDate": "2014-08-19",
11823 "UserIP": "74.201.38.1",
11824 "SubscriptionType": "n",
11825 "ProductId": 18,
11826 "Source": 34,
11827 "ProductStatus": 2,
11828 "MediaFilePath": "",
11829 "Amount": ""
11830 },
11831 {
11832 "Id": 714,
11833 "UserId": 946,
11834 "TermId": 18,
11835 "TransactionDate": "2014-08-19",
11836 "TransactionTime": "11:18:55",
11837 "RequestDate": "2014-08-19",
11838 "UserIP": "74.201.38.1",
11839 "SubscriptionType": "n",
11840 "ProductId": 18,
11841 "Source": 34,
11842 "ProductStatus": 2,
11843 "MediaFilePath": "",
11844 "Amount": ""
11845 },
11846 {
11847 "Id": 722,
11848 "UserId": 954,
11849 "TermId": 18,
11850 "TransactionDate": "2014-08-19",
11851 "TransactionTime": "11:18:55",
11852 "RequestDate": "2014-08-19",
11853 "UserIP": "74.201.38.1",
11854 "SubscriptionType": "n",
11855 "ProductId": 18,
11856 "Source": 34,
11857 "ProductStatus": 2,
11858 "MediaFilePath": "",
11859 "Amount": ""
11860 },
11861 {
11862 "Id": 730,
11863 "UserId": 962,
11864 "TermId": 18,
11865 "TransactionDate": "2014-08-19",
11866 "TransactionTime": "11:18:55",
11867 "RequestDate": "2014-08-19",
11868 "UserIP": "74.201.38.1",
11869 "SubscriptionType": "n",
11870 "ProductId": 18,
11871 "Source": 34,
11872 "ProductStatus": 2,
11873 "MediaFilePath": "",
11874 "Amount": ""
11875 },
11876 {
11877 "Id": 738,
11878 "UserId": 970,
11879 "TermId": 18,
11880 "TransactionDate": "2014-08-19",
11881 "TransactionTime": "11:18:55",
11882 "RequestDate": "2014-08-19",
11883 "UserIP": "74.201.38.1",
11884 "SubscriptionType": "n",
11885 "ProductId": 18,
11886 "Source": 34,
11887 "ProductStatus": 2,
11888 "MediaFilePath": "",
11889 "Amount": ""
11890 },
11891 {
11892 "Id": 746,
11893 "UserId": 978,
11894 "TermId": 18,
11895 "TransactionDate": "2014-08-19",
11896 "TransactionTime": "11:18:55",
11897 "RequestDate": "2014-08-19",
11898 "UserIP": "74.201.38.1",
11899 "SubscriptionType": "n",
11900 "ProductId": 18,
11901 "Source": 34,
11902 "ProductStatus": 2,
11903 "MediaFilePath": "",
11904 "Amount": ""
11905 },
11906 {
11907 "Id": 754,
11908 "UserId": 986,
11909 "TermId": 18,
11910 "TransactionDate": "2014-08-19",
11911 "TransactionTime": "11:18:55",
11912 "RequestDate": "2014-08-19",
11913 "UserIP": "74.201.38.1",
11914 "SubscriptionType": "n",
11915 "ProductId": 18,
11916 "Source": 34,
11917 "ProductStatus": 2,
11918 "MediaFilePath": "",
11919 "Amount": ""
11920 },
11921 {
11922 "Id": 762,
11923 "UserId": 994,
11924 "TermId": 18,
11925 "TransactionDate": "2014-08-19",
11926 "TransactionTime": "11:18:55",
11927 "RequestDate": "2014-08-19",
11928 "UserIP": "74.201.38.1",
11929 "SubscriptionType": "n",
11930 "ProductId": 18,
11931 "Source": 34,
11932 "ProductStatus": 2,
11933 "MediaFilePath": "",
11934 "Amount": ""
11935 },
11936 {
11937 "Id": 770,
11938 "UserId": 1002,
11939 "TermId": 18,
11940 "TransactionDate": "2014-08-19",
11941 "TransactionTime": "11:18:55",
11942 "RequestDate": "2014-08-19",
11943 "UserIP": "74.201.38.1",
11944 "SubscriptionType": "n",
11945 "ProductId": 18,
11946 "Source": 34,
11947 "ProductStatus": 2,
11948 "MediaFilePath": "",
11949 "Amount": ""
11950 },
11951 {
11952 "Id": 778,
11953 "UserId": 1010,
11954 "TermId": 18,
11955 "TransactionDate": "2014-08-19",
11956 "TransactionTime": "11:18:55",
11957 "RequestDate": "2014-08-19",
11958 "UserIP": "74.201.38.1",
11959 "SubscriptionType": "n",
11960 "ProductId": 18,
11961 "Source": 34,
11962 "ProductStatus": 2,
11963 "MediaFilePath": "",
11964 "Amount": ""
11965 },
11966 {
11967 "Id": 786,
11968 "UserId": 1018,
11969 "TermId": 18,
11970 "TransactionDate": "2014-08-19",
11971 "TransactionTime": "11:18:55",
11972 "RequestDate": "2014-08-19",
11973 "UserIP": "74.201.38.1",
11974 "SubscriptionType": "n",
11975 "ProductId": 18,
11976 "Source": 34,
11977 "ProductStatus": 2,
11978 "MediaFilePath": "",
11979 "Amount": ""
11980 },
11981 {
11982 "Id": 794,
11983 "UserId": 1026,
11984 "TermId": 18,
11985 "TransactionDate": "2014-08-19",
11986 "TransactionTime": "11:18:55",
11987 "RequestDate": "2014-08-19",
11988 "UserIP": "74.201.38.1",
11989 "SubscriptionType": "n",
11990 "ProductId": 18,
11991 "Source": 34,
11992 "ProductStatus": 2,
11993 "MediaFilePath": "",
11994 "Amount": ""
11995 },
11996 {
11997 "Id": 802,
11998 "UserId": 1034,
11999 "TermId": 18,
12000 "TransactionDate": "2014-08-19",
12001 "TransactionTime": "11:18:55",
12002 "RequestDate": "2014-08-19",
12003 "UserIP": "74.201.38.1",
12004 "SubscriptionType": "n",
12005 "ProductId": 18,
12006 "Source": 34,
12007 "ProductStatus": 2,
12008 "MediaFilePath": "",
12009 "Amount": ""
12010 },
12011 {
12012 "Id": 810,
12013 "UserId": 1042,
12014 "TermId": 18,
12015 "TransactionDate": "2014-08-19",
12016 "TransactionTime": "11:18:55",
12017 "RequestDate": "2014-08-19",
12018 "UserIP": "74.201.38.1",
12019 "SubscriptionType": "n",
12020 "ProductId": 18,
12021 "Source": 34,
12022 "ProductStatus": 2,
12023 "MediaFilePath": "",
12024 "Amount": ""
12025 },
12026 {
12027 "Id": 818,
12028 "UserId": 1050,
12029 "TermId": 18,
12030 "TransactionDate": "2014-08-19",
12031 "TransactionTime": "11:18:55",
12032 "RequestDate": "2014-08-19",
12033 "UserIP": "74.201.38.1",
12034 "SubscriptionType": "n",
12035 "ProductId": 18,
12036 "Source": 34,
12037 "ProductStatus": 2,
12038 "MediaFilePath": "",
12039 "Amount": ""
12040 },
12041 {
12042 "Id": 826,
12043 "UserId": 1058,
12044 "TermId": 18,
12045 "TransactionDate": "2014-08-19",
12046 "TransactionTime": "11:18:55",
12047 "RequestDate": "2014-08-19",
12048 "UserIP": "74.201.38.1",
12049 "SubscriptionType": "n",
12050 "ProductId": 18,
12051 "Source": 34,
12052 "ProductStatus": 2,
12053 "MediaFilePath": "",
12054 "Amount": ""
12055 },
12056 {
12057 "Id": 834,
12058 "UserId": 1066,
12059 "TermId": 18,
12060 "TransactionDate": "2014-08-19",
12061 "TransactionTime": "11:18:55",
12062 "RequestDate": "2014-08-19",
12063 "UserIP": "74.201.38.1",
12064 "SubscriptionType": "n",
12065 "ProductId": 18,
12066 "Source": 34,
12067 "ProductStatus": 2,
12068 "MediaFilePath": "",
12069 "Amount": ""
12070 },
12071 {
12072 "Id": 842,
12073 "UserId": 1074,
12074 "TermId": 18,
12075 "TransactionDate": "2014-08-19",
12076 "TransactionTime": "11:18:55",
12077 "RequestDate": "2014-08-19",
12078 "UserIP": "74.201.38.1",
12079 "SubscriptionType": "n",
12080 "ProductId": 18,
12081 "Source": 34,
12082 "ProductStatus": 2,
12083 "MediaFilePath": "",
12084 "Amount": ""
12085 },
12086 {
12087 "Id": 850,
12088 "UserId": 1082,
12089 "TermId": 18,
12090 "TransactionDate": "2014-08-19",
12091 "TransactionTime": "11:18:55",
12092 "RequestDate": "2014-08-19",
12093 "UserIP": "74.201.38.1",
12094 "SubscriptionType": "n",
12095 "ProductId": 18,
12096 "Source": 34,
12097 "ProductStatus": 2,
12098 "MediaFilePath": "",
12099 "Amount": ""
12100 },
12101 {
12102 "Id": 858,
12103 "UserId": 1090,
12104 "TermId": 18,
12105 "TransactionDate": "2014-08-19",
12106 "TransactionTime": "11:18:55",
12107 "RequestDate": "2014-08-19",
12108 "UserIP": "74.201.38.1",
12109 "SubscriptionType": "n",
12110 "ProductId": 18,
12111 "Source": 34,
12112 "ProductStatus": 2,
12113 "MediaFilePath": "",
12114 "Amount": ""
12115 },
12116 {
12117 "Id": 866,
12118 "UserId": 1098,
12119 "TermId": 18,
12120 "TransactionDate": "2014-08-19",
12121 "TransactionTime": "11:18:55",
12122 "RequestDate": "2014-08-19",
12123 "UserIP": "74.201.38.1",
12124 "SubscriptionType": "n",
12125 "ProductId": 18,
12126 "Source": 34,
12127 "ProductStatus": 2,
12128 "MediaFilePath": "",
12129 "Amount": ""
12130 },
12131 {
12132 "Id": 874,
12133 "UserId": 1106,
12134 "TermId": 18,
12135 "TransactionDate": "2014-08-19",
12136 "TransactionTime": "11:18:55",
12137 "RequestDate": "2014-08-19",
12138 "UserIP": "74.201.38.1",
12139 "SubscriptionType": "n",
12140 "ProductId": 18,
12141 "Source": 34,
12142 "ProductStatus": 2,
12143 "MediaFilePath": "",
12144 "Amount": ""
12145 },
12146 {
12147 "Id": 882,
12148 "UserId": 1114,
12149 "TermId": 18,
12150 "TransactionDate": "2014-08-19",
12151 "TransactionTime": "11:18:55",
12152 "RequestDate": "2014-08-19",
12153 "UserIP": "74.201.38.1",
12154 "SubscriptionType": "n",
12155 "ProductId": 18,
12156 "Source": 34,
12157 "ProductStatus": 2,
12158 "MediaFilePath": "",
12159 "Amount": ""
12160 },
12161 {
12162 "Id": 890,
12163 "UserId": 1122,
12164 "TermId": 18,
12165 "TransactionDate": "2014-08-19",
12166 "TransactionTime": "11:18:55",
12167 "RequestDate": "2014-08-19",
12168 "UserIP": "74.201.38.1",
12169 "SubscriptionType": "n",
12170 "ProductId": 18,
12171 "Source": 34,
12172 "ProductStatus": 2,
12173 "MediaFilePath": "",
12174 "Amount": ""
12175 },
12176 {
12177 "Id": 898,
12178 "UserId": 1130,
12179 "TermId": 18,
12180 "TransactionDate": "2014-08-19",
12181 "TransactionTime": "11:18:55",
12182 "RequestDate": "2014-08-19",
12183 "UserIP": "74.201.38.1",
12184 "SubscriptionType": "n",
12185 "ProductId": 18,
12186 "Source": 34,
12187 "ProductStatus": 2,
12188 "MediaFilePath": "",
12189 "Amount": ""
12190 },
12191 {
12192 "Id": 906,
12193 "UserId": 1138,
12194 "TermId": 18,
12195 "TransactionDate": "2014-08-19",
12196 "TransactionTime": "11:18:55",
12197 "RequestDate": "2014-08-19",
12198 "UserIP": "74.201.38.1",
12199 "SubscriptionType": "n",
12200 "ProductId": 18,
12201 "Source": 34,
12202 "ProductStatus": 2,
12203 "MediaFilePath": "",
12204 "Amount": ""
12205 },
12206 {
12207 "Id": 914,
12208 "UserId": 1146,
12209 "TermId": 18,
12210 "TransactionDate": "2014-08-19",
12211 "TransactionTime": "11:18:55",
12212 "RequestDate": "2014-08-19",
12213 "UserIP": "74.201.38.1",
12214 "SubscriptionType": "n",
12215 "ProductId": 18,
12216 "Source": 34,
12217 "ProductStatus": 2,
12218 "MediaFilePath": "",
12219 "Amount": ""
12220 },
12221 {
12222 "Id": 922,
12223 "UserId": 1154,
12224 "TermId": 18,
12225 "TransactionDate": "2014-08-19",
12226 "TransactionTime": "11:18:55",
12227 "RequestDate": "2014-08-19",
12228 "UserIP": "74.201.38.1",
12229 "SubscriptionType": "n",
12230 "ProductId": 18,
12231 "Source": 34,
12232 "ProductStatus": 2,
12233 "MediaFilePath": "",
12234 "Amount": ""
12235 },
12236 {
12237 "Id": 930,
12238 "UserId": 1162,
12239 "TermId": 18,
12240 "TransactionDate": "2014-08-19",
12241 "TransactionTime": "11:18:55",
12242 "RequestDate": "2014-08-19",
12243 "UserIP": "74.201.38.1",
12244 "SubscriptionType": "n",
12245 "ProductId": 18,
12246 "Source": 34,
12247 "ProductStatus": 2,
12248 "MediaFilePath": "",
12249 "Amount": ""
12250 },
12251 {
12252 "Id": 938,
12253 "UserId": 1170,
12254 "TermId": 18,
12255 "TransactionDate": "2014-08-19",
12256 "TransactionTime": "11:18:55",
12257 "RequestDate": "2014-08-19",
12258 "UserIP": "74.201.38.1",
12259 "SubscriptionType": "n",
12260 "ProductId": 18,
12261 "Source": 34,
12262 "ProductStatus": 2,
12263 "MediaFilePath": "",
12264 "Amount": ""
12265 },
12266 {
12267 "Id": 946,
12268 "UserId": 1178,
12269 "TermId": 18,
12270 "TransactionDate": "2014-08-19",
12271 "TransactionTime": "11:18:55",
12272 "RequestDate": "2014-08-19",
12273 "UserIP": "74.201.38.1",
12274 "SubscriptionType": "n",
12275 "ProductId": 18,
12276 "Source": 34,
12277 "ProductStatus": 2,
12278 "MediaFilePath": "",
12279 "Amount": ""
12280 },
12281 {
12282 "Id": 954,
12283 "UserId": 1186,
12284 "TermId": 18,
12285 "TransactionDate": "2014-08-19",
12286 "TransactionTime": "11:18:55",
12287 "RequestDate": "2014-08-19",
12288 "UserIP": "74.201.38.1",
12289 "SubscriptionType": "n",
12290 "ProductId": 18,
12291 "Source": 34,
12292 "ProductStatus": 2,
12293 "MediaFilePath": "",
12294 "Amount": ""
12295 },
12296 {
12297 "Id": 962,
12298 "UserId": 1194,
12299 "TermId": 18,
12300 "TransactionDate": "2014-08-19",
12301 "TransactionTime": "11:18:55",
12302 "RequestDate": "2014-08-19",
12303 "UserIP": "74.201.38.1",
12304 "SubscriptionType": "n",
12305 "ProductId": 18,
12306 "Source": 34,
12307 "ProductStatus": 2,
12308 "MediaFilePath": "",
12309 "Amount": ""
12310 },
12311 {
12312 "Id": 970,
12313 "UserId": 1202,
12314 "TermId": 18,
12315 "TransactionDate": "2014-08-19",
12316 "TransactionTime": "11:18:55",
12317 "RequestDate": "2014-08-19",
12318 "UserIP": "74.201.38.1",
12319 "SubscriptionType": "n",
12320 "ProductId": 18,
12321 "Source": 34,
12322 "ProductStatus": 2,
12323 "MediaFilePath": "",
12324 "Amount": ""
12325 },
12326 {
12327 "Id": 978,
12328 "UserId": 1210,
12329 "TermId": 18,
12330 "TransactionDate": "2014-08-19",
12331 "TransactionTime": "11:18:55",
12332 "RequestDate": "2014-08-19",
12333 "UserIP": "74.201.38.1",
12334 "SubscriptionType": "n",
12335 "ProductId": 18,
12336 "Source": 34,
12337 "ProductStatus": 2,
12338 "MediaFilePath": "",
12339 "Amount": ""
12340 },
12341 {
12342 "Id": 986,
12343 "UserId": 1218,
12344 "TermId": 18,
12345 "TransactionDate": "2014-08-19",
12346 "TransactionTime": "11:18:55",
12347 "RequestDate": "2014-08-19",
12348 "UserIP": "74.201.38.1",
12349 "SubscriptionType": "n",
12350 "ProductId": 18,
12351 "Source": 34,
12352 "ProductStatus": 2,
12353 "MediaFilePath": "",
12354 "Amount": ""
12355 },
12356 {
12357 "Id": 994,
12358 "UserId": 1226,
12359 "TermId": 18,
12360 "TransactionDate": "2014-08-19",
12361 "TransactionTime": "11:18:55",
12362 "RequestDate": "2014-08-19",
12363 "UserIP": "74.201.38.1",
12364 "SubscriptionType": "n",
12365 "ProductId": 18,
12366 "Source": 34,
12367 "ProductStatus": 2,
12368 "MediaFilePath": "",
12369 "Amount": ""
12370 },
12371 {
12372 "Id": 1002,
12373 "UserId": 1234,
12374 "TermId": 18,
12375 "TransactionDate": "2014-08-19",
12376 "TransactionTime": "11:18:55",
12377 "RequestDate": "2014-08-19",
12378 "UserIP": "74.201.38.1",
12379 "SubscriptionType": "n",
12380 "ProductId": 18,
12381 "Source": 34,
12382 "ProductStatus": 2,
12383 "MediaFilePath": "",
12384 "Amount": ""
12385 }
12386 ]
12387 }
12388 {{/code}}
12389
12390
12391 (% id="HGETspecificTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12392 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Transaction(%%) ==
12393
12394 ----
12395
12396 {{panel bgColor="#D3D3D3" width="100%"}}
12397 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/~{~{Transaction id}}
12398 {{/panel}}
12399
12400 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12401
12402 ----
12403
12404 (% 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}}
12405
12406 ==== Example ====
12407
12408 ----
12409
12410 (% style="color:#6b6b6b" %)Request
12411
12412 {{code language="php" theme="RDark" title="Get specific Transaction Request"}}
12413 <?php
12414
12415 $curl = curl_init();
12416
12417 curl_setopt_array($curl, array(
12418 CURLOPT_URL => 'https://api.onecount.net/v2/transactions/{{Transaction id}}',
12419 CURLOPT_RETURNTRANSFER => true,
12420 CURLOPT_ENCODING => '',
12421 CURLOPT_MAXREDIRS => 10,
12422 CURLOPT_TIMEOUT => 0,
12423 CURLOPT_FOLLOWLOCATION => true,
12424 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12425 CURLOPT_CUSTOMREQUEST => 'GET',
12426 CURLOPT_HTTPHEADER => array(
12427 'Appkey: {{ONECOUNT API KEY}}'
12428 ),
12429 ));
12430
12431 $response = curl_exec($curl);
12432
12433 curl_close($curl);
12434 echo $response;
12435 {{/code}}
12436
12437
12438 (% style="color:#6b6b6b" %)Response  200 OK
12439
12440 {{code language="yml" theme="RDark" collapse="true" title="Get specific Transaction Response"}}
12441 {
12442 "result": {
12443 "success": "1",
12444 "error": {
12445 "code": "",
12446 "message": ""
12447 }
12448 },
12449 "Transactions": [
12450 {
12451 "Id": 1002,
12452 "UserId": 1234,
12453 "TermId": 18,
12454 "TransactionDate": "2014-08-19",
12455 "TransactionTime": "11:18:55",
12456 "RequestDate": "2014-08-19",
12457 "UserIP": "74.201.38.1",
12458 "SubscriptionType": "n",
12459 "ProductId": 18,
12460 "Source": 34,
12461 "ProductStatus": 2,
12462 "MediaFilePath": "",
12463 "Amount": ""
12464 }
12465 ]
12466 }
12467 {{/code}}
12468
12469
12470 (% id="HGETlookupTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12471 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Transaction(%%) ==
12472
12473 ----
12474
12475 {{panel bgColor="#D3D3D3" width="100%"}}
12476 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/lookup?UserId=~{~{OCID}}
12477 {{/panel}}
12478
12479 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12480
12481 ----
12482
12483 (% 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}}
12484
12485 === (% style="color:#212121" %)Query Params(%%) ===
12486
12487 ----
12488
12489 (% 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}}
12490
12491 ==== Example ====
12492
12493 ----
12494
12495 (% style="color:#6b6b6b" %)Request
12496
12497 {{code language="php" theme="RDark" title="Lookup Transaction Request"}}
12498 <?php
12499
12500 $curl = curl_init();
12501
12502 curl_setopt_array($curl, array(
12503 CURLOPT_URL => 'https://api.onecount.net/v2/transactions/lookup?UserId={{OCID}}',
12504 CURLOPT_RETURNTRANSFER => true,
12505 CURLOPT_ENCODING => '',
12506 CURLOPT_MAXREDIRS => 10,
12507 CURLOPT_TIMEOUT => 0,
12508 CURLOPT_FOLLOWLOCATION => true,
12509 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12510 CURLOPT_CUSTOMREQUEST => 'GET',
12511 CURLOPT_HTTPHEADER => array(
12512 'Appkey: {{ONECOUNT API KEY}}'
12513 ),
12514 ));
12515
12516 $response = curl_exec($curl);
12517
12518 curl_close($curl);
12519 echo $response;
12520 {{/code}}
12521
12522
12523 (% style="color:#6b6b6b" %)Response  200 OK
12524
12525 {{code language="yml" theme="RDark" collapse="true" title="Lookup Transaction Response"}}
12526 {
12527 "result": {
12528 "success": "1",
12529 "error": {
12530 "code": "",
12531 "message": ""
12532 }
12533 },
12534 "Transactions": [
12535 {
12536 "Id": 52494786,
12537 "UserId": 1234,
12538 "TermId": 34,
12539 "TransactionDate": "2016-01-19",
12540 "TransactionTime": "15:30:04",
12541 "RequestDate": "2016-01-19",
12542 "UserIP": "12.226.247.2",
12543 "SubscriptionType": "u",
12544 "ProductId": 34,
12545 "Source": 0,
12546 "ProductStatus": 0,
12547 "MediaFilePath": "",
12548 "Amount": ""
12549 },
12550 {
12551 "Id": 42654041,
12552 "UserId": 1234,
12553 "TermId": 34,
12554 "TransactionDate": "2015-09-09",
12555 "TransactionTime": "11:20:39",
12556 "RequestDate": "2015-09-09",
12557 "UserIP": "24.187.236.98",
12558 "SubscriptionType": "n",
12559 "ProductId": 34,
12560 "Source": 0,
12561 "ProductStatus": 2,
12562 "MediaFilePath": "",
12563 "Amount": ""
12564 },
12565 {
12566 "Id": 97251022,
12567 "UserId": 1234,
12568 "TermId": 34,
12569 "TransactionDate": "2015-06-04",
12570 "TransactionTime": "14:59:42",
12571 "RequestDate": "2015-06-04",
12572 "UserIP": "12.226.247.2",
12573 "SubscriptionType": "u",
12574 "ProductId": 34,
12575 "Source": 0,
12576 "ProductStatus": 0,
12577 "MediaFilePath": "",
12578 "Amount": ""
12579 },
12580 {
12581 "Id": 55492559,
12582 "UserId": 1234,
12583 "TermId": 34,
12584 "TransactionDate": "2015-04-03",
12585 "TransactionTime": "16:32:04",
12586 "RequestDate": "2015-04-03",
12587 "UserIP": "24.187.236.98",
12588 "SubscriptionType": "r",
12589 "ProductId": 34,
12590 "Source": 58,
12591 "ProductStatus": 106,
12592 "MediaFilePath": "",
12593 "Amount": ""
12594 },
12595 {
12596 "Id": 98173391,
12597 "UserId": 1234,
12598 "TermId": 34,
12599 "TransactionDate": "2015-04-03",
12600 "TransactionTime": "15:50:45",
12601 "RequestDate": "2014-08-19",
12602 "UserIP": "24.187.236.98",
12603 "SubscriptionType": "n",
12604 "ProductId": 34,
12605 "Source": 34,
12606 "ProductStatus": 106,
12607 "MediaFilePath": "",
12608 "Amount": ""
12609 },
12610 {
12611 "Id": 91711793,
12612 "UserId": 1234,
12613 "TermId": 18,
12614 "TransactionDate": "2015-04-27",
12615 "TransactionTime": "14:24:51",
12616 "RequestDate": "2015-04-27",
12617 "UserIP": "24.187.236.98",
12618 "SubscriptionType": "u",
12619 "ProductId": 18,
12620 "Source": 0,
12621 "ProductStatus": 106,
12622 "MediaFilePath": "",
12623 "Amount": ""
12624 },
12625 {
12626 "Id": 74936400,
12627 "UserId": 1234,
12628 "TermId": 18,
12629 "TransactionDate": "2015-04-27",
12630 "TransactionTime": "12:35:18",
12631 "RequestDate": "2015-04-27",
12632 "UserIP": "68.196.187.74",
12633 "SubscriptionType": "n",
12634 "ProductId": 18,
12635 "Source": 34,
12636 "ProductStatus": 106,
12637 "MediaFilePath": "",
12638 "Amount": ""
12639 },
12640 {
12641 "Id": 21664714,
12642 "UserId": 1234,
12643 "TermId": 18,
12644 "TransactionDate": "2015-04-03",
12645 "TransactionTime": "15:50:46",
12646 "RequestDate": "2015-04-03",
12647 "UserIP": "24.187.236.98",
12648 "SubscriptionType": "u",
12649 "ProductId": 18,
12650 "Source": 0,
12651 "ProductStatus": 2,
12652 "MediaFilePath": "",
12653 "Amount": ""
12654 },
12655 {
12656 "Id": 81129263,
12657 "UserId": 1234,
12658 "TermId": 18,
12659 "TransactionDate": "2014-08-19",
12660 "TransactionTime": "11:18:55",
12661 "RequestDate": "2014-08-19",
12662 "UserIP": "74.201.38.1",
12663 "SubscriptionType": "n",
12664 "ProductId": 18,
12665 "Source": 34,
12666 "ProductStatus": 2,
12667 "MediaFilePath": "",
12668 "Amount": ""
12669 },
12670 {
12671 "Id": 30461748,
12672 "UserId": 1234,
12673 "ResourceId": 459,
12674 "TransactionDate": "2023-03-15",
12675 "TransactionTime": "12:07:55",
12676 "RequestDate": "2023-03-15",
12677 "UserIP": "74.201.38.12",
12678 "SubscriptionType": "n",
12679 "SourceCode": 0,
12680 "ProductStatus": 0,
12681 "MediaFilePath": "",
12682 "Amount": ""
12683 },
12684 {
12685 "Id": 25858253,
12686 "UserId": 1234,
12687 "ResourceId": 451,
12688 "TransactionDate": "2023-03-15",
12689 "TransactionTime": "11:45:19",
12690 "RequestDate": "2023-03-15",
12691 "UserIP": "74.201.38.12",
12692 "SubscriptionType": "n",
12693 "SourceCode": 0,
12694 "ProductStatus": 0,
12695 "MediaFilePath": "",
12696 "Amount": ""
12697 },
12698 {
12699 "Id": 69453260,
12700 "UserId": 1234,
12701 "ResourceId": 411,
12702 "TransactionDate": "2022-06-07",
12703 "TransactionTime": "17:03:14",
12704 "RequestDate": "2022-06-07",
12705 "UserIP": "74.201.38.12",
12706 "SubscriptionType": "n",
12707 "SourceCode": 0,
12708 "ProductStatus": 0,
12709 "MediaFilePath": "",
12710 "Amount": ""
12711 },
12712 {
12713 "Id": 51354425,
12714 "UserId": 1234,
12715 "ResourceId": 355,
12716 "TransactionDate": "2020-04-06",
12717 "TransactionTime": "12:24:08",
12718 "RequestDate": "2020-04-06",
12719 "UserIP": "74.201.38.12",
12720 "SubscriptionType": "n",
12721 "SourceCode": 0,
12722 "ProductStatus": 0,
12723 "MediaFilePath": "",
12724 "Amount": ""
12725 }
12726 ]
12727 }
12728 {{/code}}
12729
12730
12731 (% id="HPOSTCreateTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12732 == (% 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(%%) ==
12733
12734 ----
12735
12736 {{panel bgColor="#D3D3D3" width="100%"}}
12737 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions
12738 {{/panel}}
12739
12740 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12741
12742 ----
12743
12744 (% 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}}
12745
12746 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
12747
12748 ----
12749
12750 {{code language="yml" theme="RDark" title="Body"}}
12751 {"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 {{/code}}
12753
12754 ==== Example ====
12755
12756 ----
12757
12758 (% style="color:#6b6b6b" %)Request
12759
12760 {{code language="php" theme="RDark" title="Create Transaction Request"}}
12761 <?php
12762
12763 $curl = curl_init();
12764
12765 curl_setopt_array($curl, array(
12766 CURLOPT_URL => 'https://api.onecount.net/v2/transactions',
12767 CURLOPT_RETURNTRANSFER => true,
12768 CURLOPT_ENCODING => '',
12769 CURLOPT_MAXREDIRS => 10,
12770 CURLOPT_TIMEOUT => 0,
12771 CURLOPT_FOLLOWLOCATION => true,
12772 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12773 CURLOPT_CUSTOMREQUEST => 'POST',
12774 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" }',
12775 CURLOPT_HTTPHEADER => array(
12776 'Appkey: {{ONECOUNT API KEY}}'
12777 ),
12778 ));
12779
12780 $response = curl_exec($curl);
12781
12782 curl_close($curl);
12783 echo $response;
12784 {{/code}}
12785
12786
12787 (% style="color:#6b6b6b" %)Response  200 OK
12788
12789 {{code language="yml" theme="RDark" collapse="true" title="Create Transaction Response"}}
12790 {
12791 "result": {
12792 "success": "1",
12793 "error": {
12794 "code": "",
12795 "message": ""
12796 }
12797 },
12798 "Transactions": {
12799 "Id": "1234",
12800 "UserId": 1845775,
12801 "TermId": 447,
12802 "TransactionDate": "20231211",
12803 "TransactionTime": "09:34:26",
12804 "RequestDate": "20231211",
12805 "UserIP": "192.168.0.1",
12806 "SubscriptionType": "n",
12807 "ProductId": 599,
12808 "Source": 83,
12809 "ProductStatus": 2,
12810 "MediaFilePath": "",
12811 "Amount": "0.00"
12812 }
12813 }
12814 {{/code}}
12815
12816
12817 === **COMPONENT: Engagements** ===
12818
12819 (% class="western" %)
12820 Engagement can be added, updated and searched for using the engagements resource from the api.
12821
12822
12823 (% class="wrapped" %)
12824 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12825 (((
12826 (% class="western" %)
12827 **Method**
12828 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12829 (((
12830 (% class="western" %)
12831 **Url**
12832 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12833 (((
12834 (% class="western" %)
12835 **Action**
12836 )))
12837 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12838 (((
12839 (% class="western" %)
12840 GET
12841 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12842 (((
12843 (% class="western" %)
12844 /(% style="color:#212121" %)engagements
12845 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12846 (((
12847 (% class="western" %)
12848 Get engagement data limiting 25.
12849 )))
12850 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12851 (((
12852 (% class="western" %)
12853 GET
12854 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12855 (((
12856 (% class="western" %)
12857 /(% style="color:#212121" %)engagements(%%)/<engagement id>
12858 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12859 (((
12860 (% class="western" %)
12861 Get data for engagement id. The engagement id is a string
12862 )))
12863 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12864 (((
12865 (% class="western" %)
12866 POST
12867 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12868 (((
12869 (% class="western" %)
12870 /(% style="color:#212121" %)engagements
12871 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12872 (((
12873 (% class="western" %)
12874 Create a new engagement
12875
12876 (% class="western" %)
12877 Parameters required to create the engagement needs to be sent as post data in JSON format.
12878 )))
12879 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12880 (((
12881 (% class="western" %)
12882 PUT
12883 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12884 (((
12885 (% class="western" %)
12886 /(% style="color:#212121" %)engagements(%%)/<engagement id>
12887 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12888 (((
12889 (% class="western" %)
12890 Update engagement by engagement id. The engagement id string
12891
12892 (% class="western" %)
12893 Parameters required to update the engagement needs to be sent as post data in JSON format.
12894
12895 (% class="western" %)
12896 NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body.
12897 )))
12898 |(% style="text-align:left; vertical-align:top" %)POST|(% style="text-align:left; vertical-align:top" %)/engagements/metric/<engagement id>|(% style="text-align:left; vertical-align:top" %)(((
12899 Add options to specific metric in an engagement without passing all options and overriding existing options.
12900
12901 Parameters required to update the engagement needs to be sent as post data in JSON format.
12902 \\This API is used to add options only for select and checkbox metrics.
12903 )))
12904 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12905 (((
12906 (% class="western" %)
12907 POST
12908 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12909 (((
12910 (% class="western" %)
12911 (% style="color:#212121" %)/engagements/addUser
12912 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
12913 (((
12914 (% class="western" %)
12915 Add user to engagement
12916
12917 (% class="western" %)
12918 Parameters required to add user to the engagement needs to be sent as post data in JSON format.
12919 )))
12920
12921 (% id="HGETAllEngagements" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
12922 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Engagements(%%) ==
12923
12924 ----
12925
12926 ----
12927
12928 {{panel bgColor="#D3D3D3" width="100%"}}
12929 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements
12930 {{/panel}}
12931
12932 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
12933
12934 ----
12935
12936 (% 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}}
12937
12938 ==== Example ====
12939
12940 ----
12941
12942 (% style="color:#6b6b6b" %)Request
12943
12944 {{code language="php" theme="RDark" title="Get All Engagement Request"}}
12945 <?php
12946
12947 $curl = curl_init();
12948
12949 curl_setopt_array($curl, array(
12950 CURLOPT_URL => 'https://api.onecount.net/v2/engagements',
12951 CURLOPT_RETURNTRANSFER => true,
12952 CURLOPT_ENCODING => '',
12953 CURLOPT_MAXREDIRS => 10,
12954 CURLOPT_TIMEOUT => 0,
12955 CURLOPT_FOLLOWLOCATION => true,
12956 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12957 CURLOPT_CUSTOMREQUEST => 'GET',
12958 CURLOPT_HTTPHEADER => array(
12959 'Appkey: {{ONECOUNT API KEY}}'
12960 ),
12961 ));
12962
12963 $response = curl_exec($curl);
12964
12965 curl_close($curl);
12966 echo $response;
12967
12968
12969 {{/code}}
12970
12971
12972 (% style="color:#6b6b6b" %)Response  200 OK
12973
12974 {{code language="yml" theme="RDark" collapse="true" title="Get all engagements Response"}}
12975 {
12976 "result": {
12977 "success": "1",
12978 "error": {
12979 "code": "",
12980 "message": ""
12981 }
12982 },
12983 "Engagements": [
12984 {
12985 "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
12986 "Name": "Test Engagement 1",
12987 "Engagement Fields": [
12988 {
12989 "Name": "id",
12990 "Type": "text"
12991 },
12992 {
12993 "Name": "activity_time",
12994 "Type": "text"
12995 },
12996 {
12997 "Name": "Name",
12998 "Type": "text"
12999 },
13000 {
13001 "Name": "Test Field",
13002 "Type": "select",
13003 "Values": [
13004 {
13005 "text": "Test 1",
13006 "value": "Test1"
13007 }
13008 ]
13009 }
13010 ]
13011 }
13012 ]
13013 }
13014 {{/code}}
13015
13016
13017 (% id="HGETSpecificEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13018 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Specific Engagement(%%) ==
13019
13020 ----
13021
13022 ----
13023
13024 {{panel bgColor="#D3D3D3" width="100%"}}
13025 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement ID}}
13026 {{/panel}}
13027
13028 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13029
13030 ----
13031
13032 (% 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}}
13033
13034 ==== Example ====
13035
13036 ----
13037
13038 (% style="color:#6b6b6b" %)Request
13039
13040 {{code language="php" theme="RDark" title="Get Specific Engagement Request"}}
13041 <?php
13042
13043 $curl = curl_init();
13044
13045 curl_setopt_array($curl, array(
13046 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement ID}}',
13047 CURLOPT_RETURNTRANSFER => true,
13048 CURLOPT_ENCODING => '',
13049 CURLOPT_MAXREDIRS => 10,
13050 CURLOPT_TIMEOUT => 0,
13051 CURLOPT_FOLLOWLOCATION => true,
13052 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13053 CURLOPT_CUSTOMREQUEST => 'GET',
13054 CURLOPT_HTTPHEADER => array(
13055 'Appkey: {{ONECOUNT API KEY}}'
13056 ),
13057 ));
13058
13059 $response = curl_exec($curl);
13060
13061 curl_close($curl);
13062 echo $response;
13063
13064
13065 {{/code}}
13066
13067
13068 (% style="color:#6b6b6b" %)Response  200 OK
13069
13070 {{code language="yml" theme="RDark" collapse="true" title="Get specific engagement Response"}}
13071 {
13072 "result": {
13073 "success": "1",
13074 "error": {
13075 "code": "",
13076 "message": ""
13077 }
13078 },
13079 "Engagements": [
13080 {
13081 "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
13082 "Name": "Test Engagement 1",
13083 "Engagement Fields": [
13084 {
13085 "Name": "id",
13086 "Type": "text"
13087 },
13088 {
13089 "Name": "activity_time",
13090 "Type": "text"
13091 },
13092 {
13093 "Name": "Name",
13094 "Type": "text"
13095 },
13096 {
13097 "Name": "Test Field",
13098 "Type": "select",
13099 "Values": [
13100 {
13101 "text": "Test 1",
13102 "value": "Test1"
13103 }
13104 ]
13105 }
13106 ]
13107 }
13108 ]
13109 }
13110 {{/code}}
13111
13112
13113 (% id="HPOSTCreateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13114 == (% 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(%%) ==
13115
13116 ----
13117
13118 {{panel bgColor="#D3D3D3" width="100%"}}
13119 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements
13120 {{/panel}}
13121
13122 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13123
13124 ----
13125
13126 (% 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}}
13127
13128 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13129
13130 ----
13131
13132 {{code language="yml" theme="RDark" title="Body"}}
13133 {"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[
13134 {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"},
13135 {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"},
13136 {"Price":[],"Type": "numeric"},
13137 {"Transaction Date":[],"Type": "date"}
13138 ]}
13139 {{/code}}
13140
13141 ==== Example ====
13142
13143 ----
13144
13145 (% style="color:#6b6b6b" %)Request
13146
13147 {{code language="php" theme="RDark" title="Create Engagement Request"}}
13148 <?php
13149
13150 $curl = curl_init();
13151
13152 curl_setopt_array($curl, array(
13153 CURLOPT_URL => 'https://api.onecount.net/v2/engagements',
13154 CURLOPT_RETURNTRANSFER => true,
13155 CURLOPT_ENCODING => '',
13156 CURLOPT_MAXREDIRS => 10,
13157 CURLOPT_TIMEOUT => 0,
13158 CURLOPT_FOLLOWLOCATION => true,
13159 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13160 CURLOPT_CUSTOMREQUEST => 'POST',
13161 CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[
13162 {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"},
13163 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13164 {"Price":[],"Type": "numeric"},
13165 {"Transaction Date":[],"Type": "text"}
13166 ]}',
13167 CURLOPT_HTTPHEADER => array(
13168 'Appkey: {{ONECOUNT API KEY}}',
13169 'Content-Type: application/json'
13170 ),
13171 ));
13172
13173 $response = curl_exec($curl);
13174
13175 curl_close($curl);
13176 echo $response;
13177
13178
13179 {{/code}}
13180
13181
13182 (% style="color:#6b6b6b" %)Response  200 OK
13183
13184 {{code language="yml" theme="RDark" collapse="true" title="Create Engagement Response"}}
13185 {
13186 "result": {
13187 "success": "1",
13188 "error": {
13189 "code": "",
13190 "message": ""
13191 }
13192 },
13193 "Engagements": [
13194 {
13195 "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565",
13196 "Name": "Test engagement 2",
13197 "Metrics": [
13198 {
13199 "Name": "Name",
13200 "Type": "select",
13201 "Values": [
13202 {
13203 "text": "Webinar 1",
13204 "value": "Webinar_1"
13205 },
13206 {
13207 "text": "Webinar 2",
13208 "value": "Webinar_2"
13209 }
13210 ]
13211 },
13212 {
13213 "Name": "Attendance Status",
13214 "Type": "select",
13215 "Values": [
13216 {
13217 "text": "Attended",
13218 "value": "attended"
13219 },
13220 {
13221 "text": "Not Attended",
13222 "value": "not_attended"
13223 }
13224 ]
13225 },
13226 {
13227 "Name": "Price",
13228 "Type": "numeric"
13229 },
13230 {
13231 "Name": "Transaction Date",
13232 "Type": "text"
13233 },
13234 {
13235 "Name": "id",
13236 "Type": "text"
13237 },
13238 {
13239 "Name": "activity_time",
13240 "Type": "text"
13241 }
13242 ]
13243 }
13244 ]
13245 }
13246 {{/code}}
13247
13248
13249 (% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13250 == (% 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(%%) ==
13251
13252 ----
13253
13254 {{panel bgColor="#D3D3D3" width="100%"}}
13255 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement Id}}
13256 {{/panel}}
13257
13258 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13259
13260 ----
13261
13262 (% 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}}
13263
13264 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13265
13266 ----
13267
13268 {{code language="yml" theme="RDark" title="Body"}}
13269 {"Name":"Test engagement 3", "Metrics":[
13270 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13271 {"Price":[],"Type": "text"}
13272 ]}
13273 {{/code}}
13274
13275 ==== Example ====
13276
13277 ----
13278
13279 (% style="color:#6b6b6b" %)Request
13280
13281 {{code language="php" theme="RDark" title="Update Engagement Request"}}
13282 <?php
13283
13284 $curl = curl_init();
13285
13286 curl_setopt_array($curl, array(
13287 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement Id}}',
13288 CURLOPT_RETURNTRANSFER => true,
13289 CURLOPT_ENCODING => '',
13290 CURLOPT_MAXREDIRS => 10,
13291 CURLOPT_TIMEOUT => 0,
13292 CURLOPT_FOLLOWLOCATION => true,
13293 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13294 CURLOPT_CUSTOMREQUEST => 'PUT',
13295 CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[
13296 {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13297 {"Price":[],"Type": "text"}
13298 ]}',
13299 CURLOPT_HTTPHEADER => array(
13300 'Appkey: {{ONECOUNT API KEY}}',
13301 'Content-Type: application/json'
13302 ),
13303 ));
13304
13305 $response = curl_exec($curl);
13306
13307 curl_close($curl);
13308 echo $response;
13309
13310 {{/code}}
13311
13312
13313 (% style="color:#6b6b6b" %)Response  200 OK
13314
13315 {{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}}
13316 {
13317 "result": {
13318 "success": "1",
13319 "error": {
13320 "code": "",
13321 "message": ""
13322 }
13323 },
13324 "Engagements": [
13325 {
13326 "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357",
13327 "Name": "Test engagement 3",
13328 "Metrics": [
13329 {
13330 "Name": "Attendance Status",
13331 "Type": "select",
13332 "Values": [
13333 {
13334 "text": "Attended",
13335 "value": "attended"
13336 },
13337 {
13338 "text": "Not Attended",
13339 "value": "not_attended"
13340 }
13341 ]
13342 },
13343 {
13344 "Name": "Price",
13345 "Type": "text"
13346 },
13347 {
13348 "Name": "Name",
13349 "Type": "select",
13350 "Values": [
13351 {
13352 "text": "Webinar 1",
13353 "value": "Webinar_1"
13354 },
13355 {
13356 "text": "Webinar 2",
13357 "value": "Webinar_2"
13358 }
13359 ]
13360 },
13361 {
13362 "Name": "Transaction Date",
13363 "Type": "text"
13364 },
13365 {
13366 "Name": "id",
13367 "Type": "text"
13368 },
13369 {
13370 "Name": "activity_time",
13371 "Type": "text"
13372 }
13373 ]
13374 }
13375 ]
13376 }
13377 {{/code}}
13378
13379
13380 (% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13381 == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" id="cke_bm_7146126S" style="color:#0053b8; display:none" %) (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %) (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Add options to metric(%%) ==
13382
13383 ----
13384
13385 {{panel bgColor="#D3D3D3" width="100%"}}
13386 (% class="nolink" %)https:~/~/api.onecount.net/v2(%%)/engagements/metric/(% style="color:#212121" %)~{~{Engagement Id}}
13387 {{/panel}}
13388
13389 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13390
13391 ----
13392
13393 (% 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}}
13394
13395 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13396
13397 ----
13398
13399 {{code language="yml" title="Body"}}
13400 {"Metrics":[
13401 {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]},
13402 {"lagacy status":[{"text":"c","value":"c"}]}
13403 ]}
13404 {{/code}}
13405
13406 ==== Example ====
13407
13408 ----
13409
13410 (% style="color:#6b6b6b" %)Request
13411
13412 {{code language="php" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}}
13413 <?php
13414
13415 $curl = curl_init();
13416
13417 curl_setopt_array($curl, array(
13418 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/metric/{{Engagement Id}}',
13419 CURLOPT_RETURNTRANSFER => true,
13420 CURLOPT_ENCODING => '',
13421 CURLOPT_MAXREDIRS => 10,
13422 CURLOPT_TIMEOUT => 0,
13423 CURLOPT_FOLLOWLOCATION => true,
13424 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13425 CURLOPT_CUSTOMREQUEST => 'PUT',
13426 CURLOPT_POSTFIELDS =>'{"Metrics":[
13427 {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]},
13428 {"lagacy status":[{"text":"c","value":"c"}]}
13429 ]}',
13430 CURLOPT_HTTPHEADER => array(
13431 'Appkey: {{ONECOUNT API KEY}}',
13432 'Content-Type: application/json'
13433 ),
13434 ));
13435
13436 $response = curl_exec($curl);
13437
13438 curl_close($curl);
13439 echo $response;
13440
13441 {{/code}}
13442
13443
13444 (% style="color:#6b6b6b" %)Response  200 OK
13445
13446 {{code language="yml" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}}
13447 {
13448 "result": {
13449 "success": "1",
13450 "error": {
13451 "code": "",
13452 "message": ""
13453 }
13454 },
13455 "Engagements": [
13456 {
13457 "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357",
13458 "Name": "Test engagement 3",
13459 "Metrics": [
13460 {
13461 "Name": "Attendance Status",
13462 "Type": "select",
13463 "Values": [
13464 {
13465 "text": "Attended",
13466 "value": "attended"
13467 },
13468 {
13469 "text": "Not Attended",
13470 "value": "not_attended"
13471 },
13472 {
13473 "text":"checks",
13474 "value":"checks"
13475 },
13476 {
13477 "text":"c",
13478 "value":"c"
13479 }
13480 ]
13481 },
13482 {
13483 "Name": "Price",
13484 "Type": "text"
13485 },
13486 {
13487 "Name": "Name",
13488 "Type": "select",
13489 "Values": [
13490 {
13491 "text": "Webinar 1",
13492 "value": "Webinar_1"
13493 },
13494 {
13495 "text": "Webinar 2",
13496 "value": "Webinar_2"
13497 }
13498 ]
13499 },
13500 {
13501 "Name": "Transaction Date",
13502 "Type": "text"
13503 },
13504 {
13505 "Name": "id",
13506 "Type": "text"
13507 },
13508 {
13509 "Name": "activity_time",
13510 "Type": "text"
13511 }
13512 ]
13513 }
13514 ]
13515 }
13516 {{/code}}
13517
13518
13519
13520
13521
13522
13523 (% id="HPOSTAddUsertoEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13524 == (% 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(%%) ==
13525
13526 ----
13527
13528 {{panel bgColor="#D3D3D3" width="100%"}}
13529 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/addUser
13530 {{/panel}}
13531
13532 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13533
13534 ----
13535
13536 (% 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}}
13537
13538 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
13539
13540 ----
13541
13542 {{code language="yml" title="Body"}}
13543 {"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":{}}
13544 {{/code}}
13545
13546 ==== Example ====
13547
13548 ----
13549
13550 (% style="color:#6b6b6b" %)Request
13551
13552 {{code language="php" title="Add User to Engagement Request"}}
13553 <?php
13554
13555 $curl = curl_init();
13556
13557 curl_setopt_array($curl, array(
13558 CURLOPT_URL => 'https://api.onecount.net/v2/engagements/addUser',
13559 CURLOPT_RETURNTRANSFER => true,
13560 CURLOPT_ENCODING => '',
13561 CURLOPT_MAXREDIRS => 10,
13562 CURLOPT_TIMEOUT => 0,
13563 CURLOPT_FOLLOWLOCATION => true,
13564 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13565 CURLOPT_CUSTOMREQUEST => 'POST',
13566 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":{}}',
13567 CURLOPT_HTTPHEADER => array(
13568 'Appkey: {{ONECOUNT API KEY}}'
13569 ),
13570 ));
13571
13572 $response = curl_exec($curl);
13573
13574 curl_close($curl);
13575 echo $response;
13576 {{/code}}
13577
13578
13579 (% style="color:#6b6b6b" %)Response  200 OK
13580
13581 {{code language="yml" theme="RDark" collapse="true" title="Add Users to Engagement Response"}}
13582 {
13583 "result": {
13584 "success": "1",
13585 "error": {
13586 "code": "",
13587 "message": ""
13588 }
13589 },
13590 "Users": {
13591 "ocid": 1845775,
13592 "uuid": {
13593 "type": {
13594 "name": "uuid"
13595 },
13596 "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7",
13597 "version": 4
13598 },
13599 "blacklisted": null,
13600 "demo": {
13601 "1": "rayaan@one-count.com",
13602 "2": "user_1701788987",
13603 "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5"
13604 },
13605 "email": "rayaan@one-count.com",
13606 "espid": null,
13607 "known": {
13608 "type": {
13609 "name": "smallint"
13610 },
13611 "value": "1"
13612 },
13613 "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b",
13614 "partners_hash": null,
13615 "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5",
13616 "payment_cc_exp": null,
13617 "payment_vendor_token": null,
13618 "products": {
13619 "599": "447"
13620 },
13621 "remarks": null,
13622 "resources": null,
13623 "smartlink_hash": null,
13624 "subscription_active_resource_info": null,
13625 "subscription_active_term_info": {
13626 "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}"
13627 },
13628 "subscription_log": {
13629 "type": {
13630 "valueType": {
13631 "name": "varchar"
13632 }
13633 },
13634 "values": [
13635 "{\"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\"}",
13636 "{\"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\"}",
13637 "{\"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\"}"
13638 ]
13639 },
13640 "subscription_log_by_resource": null,
13641 "subscription_source_code": [
13642 "83"
13643 ],
13644 "targets": null,
13645 "timestamp": {
13646 "type": {
13647 "name": "bigint"
13648 },
13649 "value": "1701788987"
13650 },
13651 "unconfirmed": null,
13652 "update_time": null,
13653 "username": "user_1701788987",
13654 "vendor_blacklisted": null,
13655 "vendor_esp": null,
13656 "vendor_unconfirmed": null
13657 }
13658 }
13659 {{/code}}
13660
13661
13662 (% id="HCOMPONENT:Segments" class="western" %)
13663 === **COMPONENT: Segments** ===
13664
13665 *
13666 ** ===
13667
13668 (% class="western" %)
13669 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.
13670
13671 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13672 (((
13673 (% class="western" %)
13674 **Method**
13675 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13676 (((
13677 (% class="western" %)
13678 **Url**
13679 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13680 (((
13681 (% class="western" %)
13682 **Action**
13683 )))
13684 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13685 (((
13686 (% class="western" %)
13687 GET
13688 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13689 (((
13690 (% class="western" %)
13691 /(% style="color:#212121" %)segments
13692 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13693 (((
13694 (% class="western" %)
13695 Get all segments.
13696 )))
13697 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13698 (((
13699 (% class="western" %)
13700 GET
13701 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13702 (((
13703 (% class="western" %)
13704 /(% style="color:#212121" %)segments(%%)/(% class="resolvedVariable" style="text-decoration:none" %)~{~{Segment id}}
13705 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13706 (((
13707 (% class="western" %)
13708 Get specific segment based on segment id.
13709 )))
13710 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13711 (((
13712 (% class="western" %)
13713 POST
13714 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13715 (((
13716 (% class="western" %)
13717 /(% style="color:#212121" %)segments/addUsers
13718 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13719 (((
13720 (% class="western" %)
13721 Add users to segment.
13722 )))
13723 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13724 (((
13725 (% class="western" %)
13726 GET
13727 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13728 (((
13729 (% class="western" %)
13730 /(% style="color:#212121" %)segments/users/(% class="resolvedVariable" style="text-decoration:none" %)~{~{ocid}}
13731 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
13732 (((
13733 (% class="western" %)
13734 Get all segment user has be subscribed based on user id.
13735 )))
13736
13737 (% id="HGETAllSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13738 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Segments(%%) ==
13739
13740 ----
13741
13742 ----
13743
13744 {{panel bgColor="#D3D3D3" width="100%"}}
13745 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments
13746 {{/panel}}
13747
13748 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13749
13750 ----
13751
13752 (% 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}}
13753
13754 ==== Example ====
13755
13756 ----
13757
13758 (% style="color:#6b6b6b" %)Request
13759
13760 {{code language="php" theme="RDark" title="Get All Segments Request"}}
13761 <?php
13762
13763 $curl = curl_init();
13764
13765 curl_setopt_array($curl, array(
13766 CURLOPT_URL => 'https://api.onecount.net/v2/segments',
13767 CURLOPT_RETURNTRANSFER => true,
13768 CURLOPT_ENCODING => '',
13769 CURLOPT_MAXREDIRS => 10,
13770 CURLOPT_TIMEOUT => 0,
13771 CURLOPT_FOLLOWLOCATION => true,
13772 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13773 CURLOPT_CUSTOMREQUEST => 'GET',
13774 CURLOPT_HTTPHEADER => array(
13775 'Appkey: {{ONECOUNT API KEY}}'
13776 ),
13777 ));
13778
13779 $response = curl_exec($curl);
13780
13781 curl_close($curl);
13782 echo $response;
13783 {{/code}}
13784
13785
13786 (% style="color:#6b6b6b" %)Response  200 OK
13787
13788 {{code language="yml" theme="RDark" collapse="true" title="Get All Segments Response"}}
13789 {
13790 "result": {
13791 "success": "1",
13792 "error": {
13793 "code": "",
13794 "message": ""
13795 }
13796 },
13797 "Segments": [
13798 {
13799 "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43",
13800 "Name": "2022 Use Cases PDF Download"
13801 },
13802 {
13803 "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
13804 "Name": "58-percent conversion-rate"
13805 },
13806 {
13807 "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138",
13808 "Name": "Audience Marketing Pop-Up"
13809 },
13810 {
13811 "Id": "68219b37-c155-4459-a5ce-497261286ffe",
13812 "Name": "Bold Minds Reminders"
13813 },
13814 {
13815 "Id": "6450defc-7658-4182-9c2a-a8f8420f801e",
13816 "Name": "Demo - Aviator's Guide - NL Popup"
13817 },
13818 {
13819 "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0",
13820 "Name": "Getting 80-Percent Conversion Rates Pop-up"
13821 },
13822 {
13823 "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
13824 "Name": "Holiday Special Offer - 3 mo. Pilot"
13825 },
13826 {
13827 "Id": "16305ad0-8e65-4085-942e-04d99fd39207",
13828 "Name": "Identity Resolution Test II"
13829 },
13830 {
13831 "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3",
13832 "Name": "Live ONEcount Popup Example Segment"
13833 },
13834 {
13835 "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a",
13836 "Name": "Live webinar - June 15 - Accelerate Revenue"
13837 },
13838 {
13839 "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de",
13840 "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign"
13841 },
13842 {
13843 "Id": "d883ecdb-5307-416d-9558-c196472021c9",
13844 "Name": "New Year - Increase Revenue 30-Percent"
13845 },
13846 {
13847 "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73",
13848 "Name": "OC Test"
13849 },
13850 {
13851 "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
13852 "Name": "Something big"
13853 },
13854 {
13855 "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
13856 "Name": "Something No Other Platform Has"
13857 },
13858 {
13859 "Id": "5eaa0345-a825-4ba0-a787-336312a77744",
13860 "Name": "Something Revolutionary"
13861 },
13862 {
13863 "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
13864 "Name": "Something that will change your life"
13865 },
13866 {
13867 "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
13868 "Name": "Something You Have Always Wanted"
13869 },
13870 {
13871 "Id": "28361c73-e253-49bb-a791-5481be2070a0",
13872 "Name": "Something You Never Thought Possible"
13873 },
13874 {
13875 "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814",
13876 "Name": "Test behaviour "
13877 },
13878 {
13879 "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13880 "Name": "Test behaviour banner segment"
13881 },
13882 {
13883 "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561",
13884 "Name": "Test behaviour combo"
13885 },
13886 {
13887 "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a",
13888 "Name": "Test behaviour content"
13889 },
13890 {
13891 "Id": "89424642-1363-476e-9842-4f0a2544151f",
13892 "Name": "Test behaviour email"
13893 },
13894 {
13895 "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c",
13896 "Name": "Test demographic segments"
13897 },
13898 {
13899 "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd",
13900 "Name": "Test with unknown only selecting all filters"
13901 }
13902 ]
13903 }
13904 {{/code}}
13905
13906
13907 (% id="HGETspecificSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13908 == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Segments(%%) ==
13909
13910 ----
13911
13912 {{panel bgColor="#D3D3D3" width="100%"}}
13913 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments/~{~{segment id}}
13914 {{/panel}}
13915
13916 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
13917
13918 ----
13919
13920 (% 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}}
13921
13922 ==== Example ====
13923
13924 ----
13925
13926 (% style="color:#6b6b6b" %)Request
13927
13928 {{code language="php" theme="RDark" title="Get specific Segment Request"}}
13929 <?php
13930
13931 $curl = curl_init();
13932
13933 curl_setopt_array($curl, array(
13934 CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}',
13935 CURLOPT_RETURNTRANSFER => true,
13936 CURLOPT_ENCODING => '',
13937 CURLOPT_MAXREDIRS => 10,
13938 CURLOPT_TIMEOUT => 0,
13939 CURLOPT_FOLLOWLOCATION => true,
13940 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13941 CURLOPT_CUSTOMREQUEST => 'GET',
13942 CURLOPT_HTTPHEADER => array(
13943 'Appkey: {{ONECOUNT API KEY}}'
13944 ),
13945 ));
13946
13947 $response = curl_exec($curl);
13948
13949 curl_close($curl);
13950 echo $response;
13951 {{/code}}
13952
13953
13954 (% style="color:#6b6b6b" %)Response  200 OK
13955
13956 {{code language="yml" theme="RDark" collapse="true" title="Get specific Segments Response"}}
13957 {
13958 "result": {
13959 "success": "1",
13960 "error": {
13961 "code": "",
13962 "message": ""
13963 }
13964 },
13965 "Segments": {
13966 "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13967 "Demos": {
13968 "_empty_": [],
13969 "type": ""
13970 },
13971 "Description": "",
13972 "Action": {
13973 "action": {}
13974 },
13975 "Name": "Test behaviour banner segment",
13976 "Behaviours": [
13977 {
13978 "end_date": "05/26/2022",
13979 "date_type": "Future",
13980 "sub_category_values": [],
13981 "sub_category": "clicked",
13982 "category": "1",
13983 "targets": [
13984 "all"
13985 ],
13986 "joining_logic": "AND",
13987 "frequency": "1",
13988 "start_date": "04/26/2022",
13989 "day_count": "100"
13990 }
13991 ],
13992 "Accounts": []
13993 }
13994 }
13995 {{/code}}
13996
13997
13998 (% id="HPOSTAdduserstosegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13999 == (% 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(%%) ==
14000
14001 ----
14002
14003 {{panel bgColor="#D3D3D3" width="100%"}}
14004 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/addUsers
14005 {{/panel}}
14006
14007 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
14008
14009 ----
14010
14011 (% 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}}
14012
14013 === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===
14014
14015 ----
14016
14017 {{code language="yml" theme="RDark" title="Body"}}
14018 {"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}
14019 {{/code}}
14020
14021 ==== Example ====
14022
14023 ----
14024
14025 (% style="color:#6b6b6b" %)Request
14026
14027 {{code language="php" theme="RDark" title="Add users to Segment Request"}}
14028 <?php
14029
14030 $curl = curl_init();
14031
14032 curl_setopt_array($curl, array(
14033 CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers',
14034 CURLOPT_RETURNTRANSFER => true,
14035 CURLOPT_ENCODING => '',
14036 CURLOPT_MAXREDIRS => 10,
14037 CURLOPT_TIMEOUT => 0,
14038 CURLOPT_FOLLOWLOCATION => true,
14039 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
14040 CURLOPT_CUSTOMREQUEST => 'POST',
14041 CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}',
14042 CURLOPT_HTTPHEADER => array(
14043 'Appkey: {{ONECOUNT API KEY}}',
14044 'Content-Type: application/json'
14045 ),
14046 ));
14047
14048 $response = curl_exec($curl);
14049
14050 curl_close($curl);
14051 echo $response;
14052 {{/code}}
14053
14054
14055 (% style="color:#6b6b6b" %)Response  200 OK
14056
14057 {{code language="yml" theme="RDark" collapse="true" title="Add users to segment Response"}}
14058 {
14059 "result": {
14060 "success": "1",
14061 "error": {
14062 "code": "",
14063 "message": ""
14064 }
14065 },
14066 "Segments": {
14067 "Error user ids": [
14068 676172,
14069 2134321
14070 ],
14071 "Inserted user ids": [
14072 164499
14073 ]
14074 }
14075 }
14076 {{/code}}
14077
14078
14079 (% id="HGETallsegmentsforaUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
14080 == (% 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(%%) ==
14081
14082 ----
14083
14084 {{panel bgColor="#D3D3D3" width="100%"}}
14085 (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration:none" %)~{~{ocid}}
14086 {{/panel}}
14087
14088 === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===
14089
14090 ----
14091
14092 (% 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}}
14093
14094 ==== Example ====
14095
14096 ----
14097
14098 (% style="color:#6b6b6b" %)Request
14099
14100 {{code language="php" theme="RDark" title="Get all segments for a user Request"}}
14101 <?php
14102
14103 $curl = curl_init();
14104
14105 curl_setopt_array($curl, array(
14106 CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••',
14107 CURLOPT_RETURNTRANSFER => true,
14108 CURLOPT_ENCODING => '',
14109 CURLOPT_MAXREDIRS => 10,
14110 CURLOPT_TIMEOUT => 0,
14111 CURLOPT_FOLLOWLOCATION => true,
14112 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
14113 CURLOPT_CUSTOMREQUEST => 'GET',
14114 CURLOPT_HTTPHEADER => array(
14115 'Appkey: {{ONECOUNT API KEY}}'
14116 ),
14117 ));
14118
14119 $response = curl_exec($curl);
14120
14121 curl_close($curl);
14122 echo $response;
14123 {{/code}}
14124
14125
14126 (% style="color:#6b6b6b" %)Response  200 OK
14127
14128 {{code language="yml" theme="RDark" collapse="true" title="Get all Segments for a user Response"}}
14129 {
14130 "result": {
14131 "success": "1",
14132 "error": {
14133 "code": "",
14134 "message": ""
14135 }
14136 },
14137 "Segments": [
14138 "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
14139 "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
14140 "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
14141 "28361c73-e253-49bb-a791-5481be2070a0",
14142 "28774f7c-9fd3-4dff-a42e-683460f437c0",
14143 "5eaa0345-a825-4ba0-a787-336312a77744",
14144 "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
14145 "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
14146 "bcb403a2-c0a1-414f-90c1-277a41009c97",
14147 "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
14148 "d883ecdb-5307-416d-9558-c196472021c9",
14149 "d8d1bc9d-ede2-4c82-a747-10ab9fb979de"
14150 ]
14151 }
14152 {{/code}}
14153
14154
14155 (% id="HCOMPONENT:Leads" class="western" %)
14156 === **COMPONENT: Leads** ===
14157
14158 *
14159 ** ===
14160
14161 (% class="western" %)
14162 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.
14163
14164 (% class="western" %)
14165 **Telemarketing Leads**
14166
14167
14168 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed.
14169
14170 (% class="wrapped" %)
14171 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14172 (((
14173 (% class="western" %)
14174 **Method**
14175 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14176 (((
14177 (% class="western" %)
14178 **Url**
14179 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14180 (((
14181 (% class="western" %)
14182 **Action**
14183 )))
14184 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14185 (((
14186 (% class="western" %)
14187 GET
14188 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14189 (((
14190 (% class="western" %)
14191 /stats/telemarketing
14192 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14193 (((
14194 (% class="western" %)
14195 List telemarketing stats
14196 )))
14197 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14198 (((
14199 (% class="western" %)
14200 GET
14201 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14202 (((
14203 (% class="western" %)
14204 /stats/telemarketing/1000
14205 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14206 (((
14207 (% class="western" %)
14208 Get telemarketing stat whose id is 1000 in the system.
14209 )))
14210 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14211 (((
14212 (% class="western" %)
14213 POST
14214 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14215 (((
14216 (% class="western" %)
14217 /stats/telemarketing
14218 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14219 (((
14220 (% class="western" %)
14221 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent.
14222 )))
14223
14224 (% class="western" %)
14225 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.
14226
14227 (% class="wrapped" %)
14228 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14229 (((
14230 (% class="western" %)
14231 **Request**
14232 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14233 (((
14234 (% class="western" %)
14235 **Type**
14236 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14237 (((
14238 (% class="western" %)
14239 **Description**
14240 )))
14241 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14242 (((
14243 (% class="western" %)
14244 Telemarketing
14245 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14246 (((
14247 (% class="western" %)
14248 Telemarketing
14249 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14250 (((
14251 (% class="western" %)
14252 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section.
14253
14254 (% class="western" %)
14255 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.
14256
14257 (% class="western" %)
14258 E.g
14259
14260 (% class="western" %)
14261 {
14262
14263 (% class="western" %)
14264 "Telemarketing":[
14265
14266 (% class="western" %)
14267 {
14268
14269 (% class="western" %)
14270 "OCID":"5000",
14271
14272 (% class="western" %)
14273 "Date": "2016-01-01",
14274
14275 (% class="western" %)
14276 "Time": "10:10:10",
14277
14278 (% class="western" %)
14279 "ResourceId":"250",
14280
14281 (% class="western" %)
14282 "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"]]",
14283
14284 (% class="western" %)
14285 "PageTitle":"tests"
14286
14287 (% class="western" %)
14288 }
14289
14290 (% class="western" %)
14291 ]
14292
14293 (% class="western" %)
14294 }
14295 )))
14296 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14297 (((
14298 (% class="western" %)
14299
14300 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14301 (((
14302 (% class="western" %)
14303
14304 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14305 (((
14306 (% class="western" %)
14307
14308 )))
14309
14310 (% class="wrapped" %)
14311 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14312 (((
14313 (% class="western" %)
14314 **Response**
14315 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14316 (((
14317 (% class="western" %)
14318 **Type**
14319 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14320 (((
14321 (% class="western" %)
14322 **Description**
14323 )))
14324 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14325 (((
14326 (% class="western" %)
14327 Ids
14328 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14329 (((
14330 (% class="western" %)
14331 String
14332 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14333 (((
14334 (% class="western" %)
14335 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format.
14336 )))
14337
14338 (% class="western" %)
14339 **API REFERENCE**
14340
14341 (% class="western" %)
14342 **Type: Questions**
14343
14344 (% class="wrapped" %)
14345 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14346 (((
14347 (% class="western" %)
14348 **Property Name**
14349 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14350 (((
14351 (% class="western" %)
14352 **Type**
14353 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14354 (((
14355 (% class="western" %)
14356 **Description**
14357 )))
14358 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14359 (((
14360 (% class="western" %)
14361 Id
14362 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14363 (((
14364 (% class="western" %)
14365 Int
14366 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14367 (((
14368 (% class="western" %)
14369 Id of the question.
14370 )))
14371 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14372 (((
14373 (% class="western" %)
14374 Text
14375 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14376 (((
14377 (% class="western" %)
14378 String
14379 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14380 (((
14381 (% class="western" %)
14382 Text of the question.
14383 )))
14384 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14385 (((
14386 (% class="western" %)
14387 Type
14388 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14389 (((
14390 (% class="western" %)
14391 Int
14392 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14393 (((
14394 (% class="western" %)
14395 Determines which type of question it is. Textbox, checkbox, select, radio.
14396 There can be 6 types of questions.
14397 type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
14398 type=2 means textarea type question or long response type question.
14399 type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
14400 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.
14401 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.
14402 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.
14403 )))
14404 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14405 (((
14406 (% class="western" %)
14407 Choices
14408 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14409 (((
14410 (% class="western" %)
14411 choices
14412 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14413 (((
14414 (% class="western" %)
14415 If multiple choice question this field will have the choices.
14416 )))
14417 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14418 (((
14419 (% class="western" %)
14420 Alias
14421 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14422 (((
14423 (% class="western" %)
14424 String
14425 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14426 (((
14427 (% class="western" %)
14428 Alias for admin purpose.
14429 )))
14430
14431 (% class="western" %)
14432 **Type: Choices**
14433
14434 (% class="wrapped" %)
14435 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14436 (((
14437 (% class="western" %)
14438 **Property Name**
14439 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14440 (((
14441 (% class="western" %)
14442 **Type**
14443 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14444 (((
14445 (% class="western" %)
14446 **Description**
14447 )))
14448 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14449 (((
14450 (% class="western" %)
14451 Id
14452 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14453 (((
14454 (% class="western" %)
14455 int
14456 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14457 (((
14458 (% class="western" %)
14459 Id of the choice.
14460 )))
14461 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14462 (((
14463 (% class="western" %)
14464 Text
14465 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14466 (((
14467 (% class="western" %)
14468 string
14469 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14470 (((
14471 (% class="western" %)
14472 Display text of choice.
14473 )))
14474 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14475 (((
14476 (% class="western" %)
14477 Value
14478 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14479 (((
14480 (% class="western" %)
14481 String
14482 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14483 (((
14484 (% class="western" %)
14485 Value stored in db.
14486 )))
14487 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14488 (((
14489 (% class="western" %)
14490 Order
14491 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14492 (((
14493 (% class="western" %)
14494 Int
14495 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14496 (((
14497 (% class="western" %)
14498 Display order.
14499 )))
14500 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14501 (((
14502 (% class="western" %)
14503 QuestionId
14504 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14505 (((
14506 (% class="western" %)
14507 Int
14508 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14509 (((
14510 (% class="western" %)
14511 Tied to which question id.
14512 )))
14513
14514 (% class="western" %)
14515 **Type: Users**
14516
14517 (% class="wrapped" %)
14518 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14519 (((
14520 (% class="western" %)
14521 **Property Name**
14522 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14523 (((
14524 (% class="western" %)
14525 **Type**
14526 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14527 (((
14528 (% class="western" %)
14529 **Description**
14530 )))
14531 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14532 (((
14533 (% class="western" %)
14534 Id
14535 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14536 (((
14537 (% class="western" %)
14538 Int
14539 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14540 (((
14541 (% class="western" %)
14542 ID of the user in ONEcount.
14543 )))
14544 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14545 (((
14546 (% class="western" %)
14547 PartnerId
14548 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14549 (((
14550 (% class="western" %)
14551 Int
14552 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14553 (((
14554 (% class="western" %)
14555 ID of the user in partners system (e.g. id of your system).
14556 )))
14557 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14558 (((
14559 (% class="western" %)
14560 Demo
14561 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14562 (((
14563 (% class="western" %)
14564 Demo
14565 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14566 (((
14567 (% class="western" %)
14568 Object of user's demo question ids and respective response values.
14569 )))
14570 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14571 (((
14572 (% class="western" %)
14573 RequestDate
14574 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14575 (((
14576 (% class="western" %)
14577 Date
14578 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14579 (((
14580 (% class="western" %)
14581 Request date.
14582 )))
14583
14584 (% class="western" %)
14585 **Type: Demo**
14586
14587 (% class="wrapped" %)
14588 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14589 (((
14590 (% class="western" %)
14591 **Property Name**
14592 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14593 (((
14594 (% class="western" %)
14595 **Type**
14596 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14597 (((
14598 (% class="western" %)
14599 **Description**
14600 )))
14601 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14602 (((
14603 (% class="western" %)
14604 QuestionId (e.g 6)
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 6 is the value of “Id” property of question resource(Text = “First Name”)
14613 )))
14614 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14615 (((
14616 (% class="western" %)
14617 QuestionId (e.g 7)
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 7 is the value of “Id” property of question resource(Text = “Last Name”)
14626 )))
14627 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14628 (((
14629 (% class="western" %)
14630 ...
14631 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14632 (((
14633 (% class="western" %)
14634 ...
14635 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14636 (((
14637 (% class="western" %)
14638 ...
14639 )))
14640
14641 (% class="western" %)
14642 **Type: Transactions**
14643
14644 (% class="wrapped" %)
14645 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14646 (((
14647 (% class="western" %)
14648 **Property Name**
14649 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14650 (((
14651 (% class="western" %)
14652 **Type**
14653 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14654 (((
14655 (% class="western" %)
14656 **Description**
14657 )))
14658 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14659 (((
14660 (% class="western" %)
14661 Id
14662 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14663 (((
14664 (% class="western" %)
14665 Int
14666 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14667 (((
14668 (% class="western" %)
14669 ID of the transaction.
14670 )))
14671 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14672 (((
14673 (% class="western" %)
14674 UserId
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 user in ONEcount.
14683 )))
14684 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14685 (((
14686 (% class="western" %)
14687 TermId
14688 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14689 (((
14690 (% class="western" %)
14691 Int
14692 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14693 (((
14694 (% class="western" %)
14695 TermId in ONEcount.
14696 )))
14697 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14698 (((
14699 (% class="western" %)
14700 ProductStatus
14701 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14702 (((
14703 (% class="western" %)
14704 Int
14705 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14706 (((
14707 (% class="western" %)
14708 Status ID.
14709 )))
14710 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14711 (((
14712 (% class="western" %)
14713 SubscriptionType
14714 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14715 (((
14716 (% class="western" %)
14717 Char
14718 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14719 (((
14720 (% class="western" %)
14721 Can be n,r or u for new, renew or unsubscribe.
14722 )))
14723 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14724 (((
14725 (% class="western" %)
14726 TransactionDate
14727 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14728 (((
14729 (% class="western" %)
14730 Date
14731 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14732 (((
14733 (% class="western" %)
14734 Date when the transaction occurred.
14735 )))
14736 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14737 (((
14738 (% class="western" %)
14739 TransactionTime
14740 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14741 (((
14742 (% class="western" %)
14743 Time
14744 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14745 (((
14746 (% class="western" %)
14747 Time of transaction.
14748 )))
14749 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14750 (((
14751 (% class="western" %)
14752 RequestDate
14753 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14754 (((
14755 (% class="western" %)
14756 Date
14757 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14758 (((
14759 (% class="western" %)
14760 The effective request date for the transaction.
14761 )))
14762 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14763 (((
14764 (% class="western" %)
14765 UserIP
14766 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14767 (((
14768 (% class="western" %)
14769 String
14770 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14771 (((
14772 (% class="western" %)
14773 IP of the user.
14774 )))
14775 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14776 (((
14777 (% class="western" %)
14778 Source
14779 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14780 (((
14781 (% class="western" %)
14782 String
14783 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14784 (((
14785 (% class="western" %)
14786 The transaction needs to be tied to a source code this will define it.
14787 )))
14788 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14789 (((
14790 (% class="western" %)
14791 MediaFilePath
14792 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14793 (((
14794 (% class="western" %)
14795 String
14796 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14797 (((
14798 (% class="western" %)
14799 The url of media associated with that transaction. Eg image, audio.
14800 )))
14801 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14802 (((
14803 (% class="western" %)
14804 ExpireDate
14805 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14806 (((
14807 (% class="western" %)
14808 Date
14809 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14810 (((
14811 (% class="western" %)
14812 Date when the subscription expires.
14813 )))
14814 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14815 (((
14816 (% class="western" %)
14817 Amount
14818 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14819 (((
14820 (% class="western" %)
14821 Float
14822 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14823 (((
14824 (% class="western" %)
14825 If there is amount (USD) included in transaction.
14826 )))
14827
14828 (% class="western" %)
14829 **Type: Sources**
14830
14831 (% class="wrapped" %)
14832 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14833 (((
14834 (% class="western" %)
14835 **Property Name**
14836 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14837 (((
14838 (% class="western" %)
14839 **Type**
14840 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14841 (((
14842 (% class="western" %)
14843 **Description**
14844 )))
14845 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14846 (((
14847 (% class="western" %)
14848 Id
14849 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14850 (((
14851 (% class="western" %)
14852 Int
14853 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14854 (((
14855 (% class="western" %)
14856 Id of the source.
14857 )))
14858 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14859 (((
14860 (% class="western" %)
14861 Source
14862 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14863 (((
14864 (% class="western" %)
14865 String
14866 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14867 (((
14868 (% class="western" %)
14869 Value of the source.
14870 )))
14871 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14872 (((
14873 (% class="western" %)
14874 Description
14875 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14876 (((
14877 (% class="western" %)
14878 Text
14879 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14880 (((
14881 (% class="western" %)
14882 Description of the source.
14883 )))
14884 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14885 (((
14886 (% class="western" %)
14887 ParentId
14888 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14889 (((
14890 (% class="western" %)
14891 int
14892 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14893 (((
14894 (% class="western" %)
14895 If this is a child source then list the parent source id.
14896 )))
14897
14898 (% class="western" %)
14899 **Type: Products**
14900
14901 (% class="wrapped" %)
14902 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14903 (((
14904 (% class="western" %)
14905 **Property Name**
14906 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14907 (((
14908 (% class="western" %)
14909 **Type**
14910 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14911 (((
14912 (% class="western" %)
14913 **Description**
14914 )))
14915 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14916 (((
14917 (% class="western" %)
14918 Id
14919 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14920 (((
14921 (% class="western" %)
14922 Int
14923 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14924 (((
14925 (% class="western" %)
14926 Specify only for update.
14927 )))
14928 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14929 (((
14930 (% class="western" %)
14931 Name
14932 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14933 (((
14934 (% class="western" %)
14935 String
14936 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14937 (((
14938 (% class="western" %)
14939 Name of the Product.
14940 )))
14941 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14942 (((
14943 (% class="western" %)
14944 Description
14945 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14946 (((
14947 (% class="western" %)
14948 Text
14949 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14950 (((
14951 (% class="western" %)
14952 Description of the product.
14953 )))
14954 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14955 (((
14956 (% class="western" %)
14957 Terms
14958 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14959 (((
14960 (% class="western" %)
14961 Terms
14962 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14963 (((
14964 (% class="western" %)
14965 (Array of) Terms associated with the product.
14966 )))
14967
14968 (% class="western" %)
14969 **Type: Terms**
14970
14971 (% class="wrapped" %)
14972 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14973 (((
14974 (% class="western" %)
14975 **Property Name**
14976 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14977 (((
14978 (% class="western" %)
14979 **Type**
14980 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14981 (((
14982 (% class="western" %)
14983 **Description**
14984 )))
14985 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14986 (((
14987 (% class="western" %)
14988 Id
14989 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14990 (((
14991 (% class="western" %)
14992 int
14993 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14994 (((
14995 (% class="western" %)
14996 Id of the term.
14997 )))
14998 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
14999 (((
15000 (% class="western" %)
15001 Name
15002 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15003 (((
15004 (% class="western" %)
15005 string
15006 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15007 (((
15008 (% class="western" %)
15009 Name of the Term.
15010 )))
15011 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15012 (((
15013 (% class="western" %)
15014 Description
15015 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15016 (((
15017 (% class="western" %)
15018 text
15019 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15020 (((
15021 (% class="western" %)
15022 Description of the term.
15023 )))
15024 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15025 (((
15026 (% class="western" %)
15027 Duration
15028 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15029 (((
15030 (% class="western" %)
15031 int
15032 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15033 (((
15034 (% class="western" %)
15035 Duration of term validity.
15036 )))
15037 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15038 (((
15039 (% class="western" %)
15040 DurationUnit
15041 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15042 (((
15043 (% class="western" %)
15044 sting
15045 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15046 (((
15047 (% class="western" %)
15048 Y (year), M (Month), D (Days).
15049 )))
15050 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15051 (((
15052 (% class="western" %)
15053 ProductId
15054 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15055 (((
15056 (% class="western" %)
15057 int
15058 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15059 (((
15060 (% class="western" %)
15061 Id of the product the term is tied to.
15062 )))
15063 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15064 (((
15065 (% class="western" %)
15066 Price
15067 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15068 (((
15069 (% class="western" %)
15070 float
15071 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15072 (((
15073 (% class="western" %)
15074 If there is price (USD) for the term.
15075 )))
15076
15077 (% class="western" %)
15078 **Type: Resources**
15079
15080 (% class="wrapped" %)
15081 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15082 (((
15083 (% class="western" %)
15084 **Property Name**
15085 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15086 (((
15087 (% class="western" %)
15088 **Type**
15089 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15090 (((
15091 (% class="western" %)
15092 **Description**
15093 )))
15094 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15095 (((
15096 (% class="western" %)
15097 Id
15098 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15099 (((
15100 (% class="western" %)
15101 Int
15102 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15103 (((
15104 (% class="western" %)
15105 Specify only for update.
15106 )))
15107 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15108 (((
15109 (% class="western" %)
15110 Name
15111 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15112 (((
15113 (% class="western" %)
15114 String
15115 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15116 (((
15117 (% class="western" %)
15118 Name of the Resource.
15119 )))
15120 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15121 (((
15122 (% class="western" %)
15123 Description
15124 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15125 (((
15126 (% class="western" %)
15127 Text
15128 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15129 (((
15130 (% class="western" %)
15131 Description of the Resource.
15132 )))
15133 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15134 (((
15135 (% class="western" %)
15136 Type
15137 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15138 (((
15139 (% class="western" %)
15140 Int
15141 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15142 (((
15143 (% class="western" %)
15144 Type Options
15145
15146 (% class="western" %)
15147 **0** : File
15148
15149 (% class="western" %)
15150 **2 : **Newsletter
15151
15152 (% class="western" %)
15153 **3 : **Section
15154
15155 (% class="western" %)
15156 **4 : **Page
15157
15158 (% class="western" %)
15159 **5 : **Function
15160 )))
15161 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15162 (((
15163 (% class="western" %)
15164 Value
15165 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15166 (((
15167 (% class="western" %)
15168 String
15169
15170 (% class="western" %)
15171 or
15172
15173 (% class="western" %)
15174 Array
15175 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15176 (((
15177 (% class="western" %)
15178 Value of Resource Type:
15179
15180 (% class="western" %)
15181 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.
15182
15183 (% class="western" %)
15184 For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests.
15185
15186 (% class="western" %)
15187 Example :
15188
15189 (% class="western" %)
15190 if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].**
15191 if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"]
15192
15193 (% class="western" %)
15194 For Function type resource leave it blank.
15195 )))
15196 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15197 (((
15198 (% class="western" %)
15199 limit
15200 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15201 (((
15202 (% class="western" %)
15203 Int
15204 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15205 (((
15206 (% class="western" %)
15207 Default limit is 25 but if all the data needs to be pulled then pass limit=0.
15208 )))
15209 |(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15210 (((
15211 FreePass
15212 )))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15213 (((
15214 Int
15215 )))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)
15216 (((
15217 Default value is 0. This parameter is used to provide access to protected content.
15218 )))
15219
15220 (% class="western" %)
15221 **Type: Telemarketing**
15222
15223 (% class="wrapped" %)
15224 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15225 (((
15226 (% class="western" %)
15227 **Property Name**
15228 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15229 (((
15230 (% class="western" %)
15231 **Type**
15232 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15233 (((
15234 (% class="western" %)
15235 **Description**
15236 )))
15237 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15238 (((
15239 (% class="western" %)
15240 Id
15241 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15242 (((
15243 (% class="western" %)
15244 int
15245 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15246 (((
15247 (% class="western" %)
15248 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat.
15249 )))
15250 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15251 (((
15252 (% class="western" %)
15253 OCID
15254 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15255 (((
15256 (% class="western" %)
15257 int
15258 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15259 (((
15260 (% class="western" %)
15261 Onecount ID of the user.
15262 )))
15263 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15264 (((
15265 (% class="western" %)
15266 Date
15267 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15268 (((
15269 (% class="western" %)
15270 Date
15271 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15272 (((
15273 (% class="western" %)
15274 Date when the stat occurred. Format: yyyy-mm-dd
15275 )))
15276 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15277 (((
15278 (% class="western" %)
15279 Time
15280 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15281 (((
15282 (% class="western" %)
15283 Time
15284 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15285 (((
15286 (% class="western" %)
15287 Time of stat. Format: h:m:s (24 hour format)
15288 )))
15289 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15290 (((
15291 (% class="western" %)
15292 ResourceId
15293 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15294 (((
15295 (% class="western" %)
15296 int
15297 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15298 (((
15299 (% class="western" %)
15300 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send
15301
15302 (% class="western" %)
15303 PageTitle otherwise it will follow the process described in PageTitle.
15304 )))
15305 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15306 (((
15307 (% class="western" %)
15308 PageUrl
15309 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15310 (((
15311 (% class="western" %)
15312 string
15313 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15314 (((
15315 (% class="western" %)
15316 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.
15317 )))
15318 |(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15319 (((
15320 (% class="western" %)
15321 PageTitle
15322 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15323 (((
15324 (% class="western" %)
15325 string
15326 )))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %)
15327 (((
15328 (% class="western" %)
15329 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.
15330
15331
15332 (% class="western" %)
15333 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.
15334 )))