Wiki source code of ONEcount API Documentation

Version 13.1 by ayush on 2017/05/01 13:25

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 1. (((
11 (% class="western" %)
12 **GET** - Used for lookup of resourcesresources
13 )))
14 1. (((
15 (% class="western" %)
16 **PUT** - Used to update a resource
17 )))
18 1. (((
19 (% class="western" %)
20 **POST** - Used to create a new resource
21 )))
22
23 (% class="western" %)
24 Specifically, the ONEcount API provides to the following components:
25
26 1. User data
27 11. List users
28 11. Lookup users
29 11. Create users
30 11. Update users
31 1. Questions
32 11. Lookup questions
33 11. List questions
34 11. Create questions
35 1. Product data
36 11. Lookup products
37 11. Create products
38 11. Update products
39 1. Term Data
40 11. Lookup terms
41 11. Create terms
42 11. Update terms
43 1. Resource Data
44 11. Lookup resources
45 11. Create resources
46 11. Update resources
47 1. Transaction data
48 11. Lookup transactions
49 11. Create transactions
50 1. Source Codes
51 11. Lookup source code
52 11. Create source codes
53 11. Update source codes
54 1. Attach a resource to a product
55 1. Leads
56 11. Create a lead
57 \\\\\\
58
59 (% class="western" %)
60 **Accessing API**
61
62 (% class="western" %)
63 **REST API URL**: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/||shape="rect"]]
64
65 (% class="western" %)
66 **Appkey**: THIS WILL BE PROVIDED TO YOU
67
68 (% class="western" %)
69 **
70 **
71
72 (% class="western" %)
73 Your HTTP requests to a REST API resource should contain the following information:
74
75 * (((
76 (% class="western" %)
77 An HTTP method GET, POST, PUT.
78 )))
79 * (((
80 (% class="western" %)
81 An Appkey sent as Appkey header in the http request to authenticate the request.
82 )))
83 * (((
84 (% class="western" %)
85 Resource name in the url (/resourcename)
86 )))
87 * (((
88 (% class="western" %)
89 Any JSON data or JSON files containing information needed for requests, such as updating a record with new information.
90 )))
91
92 (% class="western" %)
93
94
95 (% class="western" %)
96 **General API Usage**
97
98 (% class="western" %)
99 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.
100
101 (% class="western" %)
102 For lookup, the parameter list will be part of the request url.
103
104 (% class="western" %)
105
106
107 (% class="western" %)
108 **Response**
109
110 (% class="western" %)
111 API will output the response in a JSON format discussed below.
112
113 (% class="western" %)
114 {
115
116 (% class="western" %)
117 "result": {
118
119 (% class="western" %)
120 "success": "1",
121
122 (% class="western" %)
123 "error": {
124
125 (% class="western" %)
126 "code": "0",
127
128 (% class="western" %)
129 "message": ""
130
131 (% class="western" %)
132 }
133
134 (% class="western" %)
135 },
136
137 (% class="western" %)
138 "Users": {
139
140 (% class="western" %)
141 "Id": "12562",
142
143 (% class="western" %)
144 "PartnerId": "5467",
145
146 (% class="western" %)
147 "Demo": {
148
149 (% class="western" %)
150 "6": "Sundeep",
151
152 (% class="western" %)
153 "7": "Dangol"
154
155 (% class="western" %)
156 }
157
158 (% class="western" %)
159 }
160
161 (% class="western" %)
162 }
163
164 (% class="western" %)
165 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.
166
167 (% class="western" %)
168
169
170 (% class="western" %)
171 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.
172
173 (% class="western" %)
174 If the value of success is 1 then the response parameters of the called method will also be output.
175
176 (% class="western" %)
177 Example: Get list of questions from api
178
179 {{{curl -X GET -H “Appkey: xxx” https://api.onecount.net/v2/questions
180 {
181 "result": {
182 "success": "1",
183 "error": {
184 "code": "0",
185 "message": ""
186 }
187 },
188 "Questions": [
189 {
190 "Id": "6",
191 "Text": "First Name",
192 "Type": "1",
193 "Alias": "FName"
194 },
195 {
196 "Id": "7",
197 "Text": "Last Name",
198 "Type": "1",
199 "Alias": "LName"
200 },
201 {
202 "Id": "5",
203 "Text": "Specialty",
204 "Type": "5",
205 "Alias": "specialty all",
206 "Choices": [
207 {
208 "Id": "123",
209 "Text": "Physician",
210 "Value": "PH",
211 "Order": "1",
212 "QuestionId": "5"
213 },
214 {
215 "Id": "124",
216 "Text": "Nurse Practioner",
217 "Value": "NP",
218 "Order": "2",
219 "QuestionId": "5"
220 }
221 ]}]}}}}
222
223 (% class="western" %)
224
225
226 (% class="western" %)
227 **
228 **
229
230 **COMPONENT: Users**
231
232 (% class="western" %)
233 Users means the customers of your system. Users can be added, updated and searched for using the users resource from the api. For lookup, If a return parameter is specified Users object will have those fields. If nothing is specified by default only UserId is returned.
234
235 (% class="western" %)
236 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.
237
238 (% class="western" %)
239 In this case the provided demographic information in users object will be used to create a new user in ONEcount and then a response will be generated. Before creating a new user, a check for duplicate will be performed based on Dedupe columns and if found, and error code will be generated.
240
241 (% class="western" %)
242 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.
243
244 (% class="western" %)
245 Return parameter will have the comma separated list of question Ids that is requested back from the API.
246
247 (% class="western" %)
248 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.
249
250
251
252 (% class="wrapped" %)
253 |(((
254 (% class="western" %)
255 **Method**
256 )))|(((
257 (% class="western" %)
258 **Url**
259 )))|(((
260 (% class="western" %)
261 **Action**
262 )))
263 |(((
264 (% class="western" %)
265 GET
266 )))|(((
267 (% class="western" %)
268 /users
269 )))|(((
270 (% class="western" %)
271 Get users data limiting 25.
272 )))
273 |(((
274 (% class="western" %)
275 GET
276 )))|(((
277 (% class="western" %)
278 /users/1
279 )))|(((
280 (% class="western" %)
281 Get data for user id 1. The user id can be a numeric value or a hash
282 )))
283 |(((
284 (% class="western" %)
285 GET
286 )))|(((
287 (% class="western" %)
288 /users/lookup?1=user1@[[email.com>>url:http://email.com||shape="rect"]]&return=1,2
289 )))|(((
290 (% class="western" %)
291 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.
292
293 (% class="western" %)
294 Return parameter defines a csv of question id that are requested back in response.
295 )))
296 |(((
297 (% class="western" %)
298 POST
299 )))|(((
300 (% class="western" %)
301 /users
302 )))|(((
303 (% class="western" %)
304 Create a new users
305
306 (% class="western" %)
307 Parameters required to create the user needs to be sent as post data in JSON format.
308 )))
309 |(((
310 (% class="western" %)
311 PUT
312 )))|(((
313 (% class="western" %)
314 /users/1
315 )))|(((
316 (% class="western" %)
317 Update user id 1. The user id can be a numeric value or a hash
318
319 (% class="western" %)
320 Parameters required to update the user needs to be sent as post data in JSON format.
321 )))
322 |(((
323 (% class="western" %)
324 GET
325 )))|(((
326 (% class="western" %)
327 /users/1/partners/2
328 )))|(((
329 (% class="western" %)
330 Get user id 1 and partner id 2's ONEcount hash. The user id can be a numeric value or a hash.
331 )))
332 |(((
333 (% class="western" %)
334 POST
335 )))|(((
336 (% class="western" %)
337 /users/login
338 )))|(((
339 (% class="western" %)
340 Check to see user exist with username/email and password.
341
342 (% class="western" %)
343 Parameters required to create JSON object with **u** as username, **e** as email and **p** as password and sent is as POST param.
344
345 (% class="western" %)
346 Example:
347
348 (% class="western" %)
349 {"u":"[[abc@one-count.com>>mailto:abc@one-count.com||shape="rect" class="western"]]","e":"abc@[[one-count.com>>url:http://one-count.com||shape="rect"]]","p":"1234"}
350
351 (% class="western" %)
352 OR
353
354 (% class="western" %)
355 {"u":"[[abc@one-count.com>>mailto:abc@one-count.com||shape="rect" class="western"]]","p":"1234"}
356
357 (% class="western" %)
358 OR
359
360 (% class="western" %)
361 {"e":"[[abc@one-count.com>>mailto:abc@one-count.com||shape="rect" class="western"]]","p":"1234"}
362
363 (% class="western" %)
364 **OUTPUT** : Should get ocid of the user if it finds it otherwise get and error with msg user not found.
365 )))
366
367
368
369 (% class="western" %)
370 **GET method should be used to lookup users.**
371
372 (% class="wrapped" %)
373 |(((
374 (% class="western" %)
375 **Request**
376 )))|(((
377 (% class="western" %)
378 **Type**
379 )))|(((
380 (% class="western" %)
381 **Description**
382 )))
383 |(((
384 (% class="western" %)
385 Lookup params
386 )))|(((
387 (% class="western" %)
388 String
389 )))|(((
390 (% class="western" %)
391 URL encoded key value string parameters for the lookup. Return property has csv of questions id requested back in Users object.
392
393 (% class="western" %)
394 Params: Value of question Ids: Key value for Lookup question ids for e.g. 1=user1@[[email.com>>url:http://email.com||shape="rect"]]
395
396 (% class="western" %)
397 return: csv of question id that is requested back. The Users object returned will only have these properties plus UserId (String)
398 )))
399
400
401
402
403
404 (% class="wrapped" %)
405 |(((
406 (% class="western" %)
407 **Response**
408 )))|(((
409 (% class="western" %)
410 **Type**
411 )))|(((
412 (% class="western" %)
413 **Description**
414 )))
415 |(((
416 (% class="western" %)
417 Users
418 )))|=(((
419 (% class="western" align="left" %)
420 Users
421 )))|(((
422 (% class="western" %)
423 Found users returned with the demo field requested in return parameter in json format.
424 )))
425
426
427
428 (% class="western" %)
429 **POST method should be used to create users.**
430
431 (% class="wrapped" %)
432 |(((
433 (% class="western" %)
434 **Request**
435 )))|(((
436 (% class="western" %)
437 **Type**
438 )))|(((
439 (% class="western" %)
440 **Description**
441 )))
442 |(((
443 (% class="western" %)
444 Users
445 )))|(((
446 (% class="western" %)
447 Users
448 )))|(((
449 (% class="western" %)
450 Users object that contains information about user to create. PartnerId Needs to be specified.
451 )))
452 |(((
453 (% class="western" %)
454 Transactions
455 )))|(((
456 (% class="western" %)
457 Transactions
458 )))|(((
459 (% class="western" %)
460 (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.
461 )))
462 |(((
463 (% class="western" %)
464 DedupeColumns
465 )))|(((
466 (% class="western" %)
467 String
468 )))|(((
469 (% class="western" %)
470 CSV of question id's that should be considered to find duplicate.
471 )))
472 |(((
473 (% class="western" %)
474 Return
475 )))|(((
476 (% class="western" %)
477 String
478 )))|(((
479 (% class="western" %)
480 CSV of ONEcount QuestionId's requested back in Users object in response.
481 )))
482
483 (% class="wrapped" %)
484 |(((
485 (% class="western" %)
486 **Response**
487 )))|(((
488 (% class="western" %)
489 **Type**
490 )))|(((
491 (% class="western" %)
492 **Description**
493 )))
494 |(((
495 (% class="western" %)
496 Users
497 )))|=(((
498 (% class="western" align="left" %)
499 Users
500 )))|(((
501 (% class="western" %)
502 Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned.
503 )))
504
505
506
507 (% class="western" %)
508 **PUT method should be used to update users.**
509
510 (% class="wrapped" %)
511 |(((
512 (% class="western" %)
513 **Request**
514 )))|(((
515 (% class="western" %)
516 **Type**
517 )))|(((
518 (% class="western" %)
519 **Description**
520 )))
521 |(((
522 (% class="western" %)
523 Users
524 )))|(((
525 (% class="western" %)
526 Users
527 )))|(((
528 (% class="western" %)
529 Users object with update fields. Return property has csv of questions id requested back in Users object.
530 )))
531 |(((
532 (% class="western" %)
533 Return
534 )))|(((
535 (% class="western" %)
536 String
537 )))|(((
538 (% class="western" %)
539 CSV of ONEcount QuestionId's requested back in Users object in response
540 )))
541 |(((
542 (% class="western" %)
543 RequestDate
544 )))|(((
545 (% class="western" %)
546 Date
547 )))|(((
548 (% class="western" %)
549 RequestDate to use for the demo update. If not provided current date will be used.
550 )))
551
552 (% class="wrapped" %)
553 |(((
554 (% class="western" %)
555 **Response**
556 )))|(((
557 (% class="western" %)
558 **Type**
559 )))|(((
560 (% class="western" %)
561 **Description**
562 )))
563 |(((
564 (% class="western" %)
565 Users
566 )))|=(((
567 (% class="western" align="left" %)
568 Users
569 )))|(((
570 (% class="western" %)
571 Updated user returned with the demo field requested in return parameter in json format.
572 )))
573
574 (% class="western" %)
575
576
577 (% class="western" %)
578
579
580 (% class="western" %)
581 Create new users. Here in this example the JSON for request is passed in userFile.json file.
582
583 {{{curl -X POST -H “Appkey: xxx” -H "Content-Type: application/json" –data-binary -d '@userFile.json' https://api.onecount.net/v2/users}}}
584
585 (% class="western" %)
586 **
587 **
588
589 (% class="western" %)
590 **
591 **
592
593
594
595 (% class="western" %)
596 **COMPONENT: Questions**
597
598 (% class="western" %)
599 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).
600
601 (% class="western" %)
602 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.
603
604 (% class="western" %)
605 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)
606
607 (% class="western" %)
608 There can be 6 types of questions:
609
610 (% class="wrapped" %)
611 |(((
612 (% class="western" align="center" %)
613 **Type**
614 )))|(((
615 (% class="western" %)
616 **Description**
617 )))
618 |(((
619 (% class="western" align="center" %)
620 1
621 )))|(((
622 (% class="western" %)
623 Textbox type questions or short response type question. The response length needs to be less than 255 characters.
624 )))
625 |(((
626 (% class="western" align="center" %)
627 2
628 )))|(((
629 (% class="western" %)
630 Textarea type question or long response type question.
631 )))
632 |(((
633 (% class="western" align="center" %)
634 3
635 )))|(((
636 (% class="western" %)
637 Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *.
638 )))
639 |(((
640 (% class="western" align="center" %)
641 4
642 )))|(((
643 (% class="western" %)
644 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.
645 )))
646 |(((
647 (% class="western" align="center" %)
648 5
649 )))|(((
650 (% class="western" %)
651 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.
652 )))
653 |(((
654 (% class="western" align="center" %)
655 6
656 )))|(((
657 (% class="western" %)
658 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.
659 )))
660
661 (% class="wrapped" %)
662 |(((
663 (% class="western" %)
664 **Method**
665 )))|(((
666 (% class="western" %)
667 **Url**
668 )))|(((
669 (% class="western" %)
670 **Action**
671 )))
672 |(((
673 (% class="western" %)
674 GET
675 )))|(((
676 (% class="western" %)
677 /questions
678 )))|(((
679 (% class="western" %)
680 List all questions
681 )))
682 |(((
683 (% class="western" %)
684 GET
685 )))|(((
686 (% class="western" %)
687 /questions/1
688 )))|(((
689 (% class="western" %)
690 Returns question id 1
691 )))
692 |(((
693 (% class="western" %)
694 GET
695 )))|(((
696 (% class="western" %)
697 /questions/lookup?Text=Email
698 )))|(((
699 (% class="western" %)
700 Returns all questions with “Email" in question text
701 )))
702 |(((
703 (% class="western" %)
704 POST
705 )))|(((
706 (% class="western" %)
707 /questions
708 )))|(((
709 (% class="western" %)
710 Create a new question
711
712 (% class="western" %)
713 JSON of the Questions type object needs to be sent as post data. Id field should not be sent.
714 )))
715 |(((
716 (% class="western" %)
717 PUT
718 )))|(((
719 (% class="western" %)
720 /questions
721 )))|(((
722 (% class="western" %)
723 Update a question
724
725 (% class="western" %)
726 JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update.
727 )))
728
729
730
731 (% class="western" %)
732 **GET method can be used to lookup questions.**
733
734 (% class="wrapped" %)
735 |(((
736 (% class="western" %)
737 **Request**
738 )))|(((
739 (% class="western" %)
740 **Type**
741 )))|(((
742 (% class="western" %)
743 **Description**
744 )))
745 |(((
746 (% class="western" %)
747 Lookup params
748 )))|(((
749 (% class="western" %)
750 String
751 )))|(((
752 (% class="western" %)
753 URL encoded key value string parameters for the question that a user is trying to search.
754
755 (% class="western" %)
756 Params:
757
758 (% class="western" %)
759 Text: Word or phrase that should be present in the question text (String)
760
761 (% class="western" %)
762 Type: Look up the question type.
763 )))
764
765 (% class="wrapped" %)
766 |(((
767 (% class="western" %)
768 **Response**
769 )))|(((
770 (% class="western" %)
771 **Type**
772 )))|(((
773 (% class="western" %)
774 **Description**
775 )))
776 |(((
777 (% class="western" %)
778 Questions
779 )))|(((
780 (% class="western" %)
781 Questions
782 )))|(((
783 (% class="western" %)
784 Returns found question details.
785 )))
786
787
788
789 (% class="western" %)
790 **POST method should be used to create questions. The data that is sent should be in JSON format and of type questions as described in references section. Questions object will only need a choices block if the question is a multiple choice question (type=4 or 5 or 6).**
791
792 (% class="wrapped" %)
793 |(((
794 (% class="western" %)
795 **Request**
796 )))|(((
797 (% class="western" %)
798 **Type**
799 )))|(((
800 (% class="western" %)
801 **Description**
802 )))
803 |(((
804 (% class="western" %)
805 Questions
806 )))|(((
807 (% class="western" %)
808 Questions
809 )))|(((
810 (% class="western" %)
811 This defines the question contents and possible responses.
812 )))
813
814 (% class="wrapped" %)
815 |(((
816 (% class="western" %)
817 **Response**
818 )))|(((
819 (% class="western" %)
820 **Type**
821 )))|(((
822 (% class="western" %)
823 **Description**
824 )))
825 |(((
826 (% class="western" %)
827 QuestionId
828 )))|(((
829 (% class="western" %)
830 Int
831 )))|(((
832 (% class="western" %)
833 Returns ONEcount question id on successful creation of the question.
834 )))
835
836
837
838 (% class="western" %)
839 PUT method should be used to update question.
840
841 (% class="wrapped" %)
842 |(((
843 (% class="western" %)
844 **Request**
845 )))|(((
846 (% class="western" %)
847 **Type**
848 )))|(((
849 (% class="western" %)
850 **Description**
851 )))
852 |(((
853 (% class="western" %)
854 Questions
855 )))|(((
856 (% class="western" %)
857 Questions
858 )))|(((
859 (% class="western" %)
860 This defines the question contents and responses.
861 )))
862
863 (% class="wrapped" %)
864 |(((
865 (% class="western" %)
866 **Response**
867 )))|(((
868 (% class="western" %)
869 **Type**
870 )))|(((
871 (% class="western" %)
872 **Description**
873 )))
874 |(((
875 (% class="western" %)
876 QuestionId
877 )))|(((
878 (% class="western" %)
879 Int
880 )))|(((
881 (% class="western" %)
882 Returns ONEcount question id on successful update of the question.
883 )))
884
885 (% class="western" %)
886
887
888 (% class="western" %)
889 Example: Get list of questions from api which has FirstName in text
890
891 {{{curl -X GET -H “Appkey: xxx” https://api.onecount.net/v2/questions/lookup?Text=FirstName}}}
892
893 (% class="western" %)
894 {
895
896 (% class="western" %)
897 "result": {
898
899 (% class="western" %)
900 "success": "1",
901
902 (% class="western" %)
903 "error": {
904
905 (% class="western" %)
906 "code": "0",
907
908 (% class="western" %)
909 "message": ""
910
911 (% class="western" %)
912 }
913
914 (% class="western" %)
915 },
916
917 (% class="western" %)
918 "Questions": [
919
920 (% class="western" %)
921 {
922
923 (% class="western" %)
924 "Id": "6",
925
926 (% class="western" %)
927 "Text": "FirstName",
928
929 (% class="western" %)
930 "Type": "1",
931
932 (% class="western" %)
933 "Alias": "FName"
934
935 (% class="western" %)
936 }
937
938 (% class="western" %)
939 ]
940
941 (% class="western" %)
942 }
943
944 (% class="western" %)
945
946
947 (% class="western" %)
948 **COMPONENT: Products**
949
950 (% class="western" %)
951 This resource is for manipulating products resource. A product can be created, updated or searched.
952
953 (% class="wrapped" %)
954 |(((
955 (% class="western" %)
956 **Method**
957 )))|(((
958 (% class="western" %)
959 **Url**
960 )))|(((
961 (% class="western" %)
962 **Action**
963 )))
964 |(((
965 (% class="western" %)
966 GET
967 )))|(((
968 (% class="western" %)
969 /products
970 )))|(((
971 (% class="western" %)
972 Get all product details
973 )))
974 |(((
975 (% class="western" %)
976 GET
977 )))|(((
978 (% class="western" %)
979 /products/5
980 )))|(((
981 (% class="western" %)
982 Get product id 5
983 )))
984 |(((
985 (% class="western" %)
986 GET
987 )))|(((
988 (% class="western" %)
989 /products/lookup?Title=productname
990 )))|(((
991 (% class="western" %)
992 Lookup products by Title
993 )))
994 |(((
995 (% class="western" %)
996 POST
997 )))|(((
998 (% class="western" %)
999 /products
1000 )))|(((
1001 (% class="western" %)
1002 JSON of the Products type object needs to be sent as post data. Id field should not be sent.
1003 )))
1004 |(((
1005 (% class="western" %)
1006 PUT
1007 )))|(((
1008 (% class="western" %)
1009 /products/5
1010 )))|(((
1011 (% class="western" %)
1012 JSON of the Products type object needs to be sent as post data. Id field is mandatory for update.
1013 )))
1014 |(((
1015 (% class="western" %)
1016 POST
1017 )))|(((
1018 (% class="western" %)
1019 /products/attachResource
1020 )))|(((
1021 (% class="western" %)
1022 JSON of the Product and Resource ids to be sent as post data.
1023
1024 (% class="western" %)
1025 Both fields are mandatory.
1026
1027 (% class="western" %)
1028 Example:
1029
1030 (% class="western" %)
1031 {"ProductID":"65","ResourceID":”121"}
1032 )))
1033
1034
1035
1036 (% class="western" %)
1037 **GET method should be used to lookup products.**
1038
1039 (% class="wrapped" %)
1040 |(((
1041 (% class="western" %)
1042 **Request**
1043 )))|(((
1044 (% class="western" %)
1045 **Type**
1046 )))|(((
1047 (% class="western" %)
1048 **Description**
1049 )))
1050 |(((
1051 (% class="western" %)
1052 Lookup params
1053 )))|(((
1054 (% class="western" %)
1055 String
1056 )))|(((
1057 (% class="western" %)
1058 URL encoded key value string parameter for the lookup.
1059
1060 (% class="western" %)
1061 Params:
1062
1063 (% class="western" %)
1064 Name: Name of the Product for lookup (String)
1065 )))
1066
1067 (% class="wrapped" %)
1068 |(((
1069 (% class="western" %)
1070 **Response**
1071 )))|(((
1072 (% class="western" %)
1073 **Type**
1074 )))|(((
1075 (% class="western" %)
1076 **Description**
1077 )))
1078 |(((
1079 (% class="western" %)
1080 Products
1081 )))|(((
1082 (% class="western" %)
1083 Products
1084 )))|(((
1085 (% class="western" %)
1086 Returns found product details.
1087 )))
1088
1089
1090
1091 (% class="western" %)
1092 **POST method should be used to create products.**
1093
1094 (% class="wrapped" %)
1095 |(((
1096 (% class="western" %)
1097 **Request**
1098 )))|(((
1099 (% class="western" %)
1100 **Type**
1101 )))|(((
1102 (% class="western" %)
1103 **Description**
1104 )))
1105 |(((
1106 (% class="western" %)
1107 Products
1108 )))|(((
1109 (% class="western" %)
1110 Products
1111 )))|(((
1112 (% class="western" %)
1113 Product details in json to be sent as post data. Id should not be set.
1114
1115 (% class="western" %)
1116 Example:
1117
1118 (% class="western" %)
1119 {"Title":"Test123","Description": "Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17}
1120 )))
1121
1122 (% class="wrapped" %)
1123 |(((
1124 (% class="western" %)
1125 **Response**
1126 )))|(((
1127 (% class="western" %)
1128 **Type**
1129 )))|(((
1130 (% class="western" %)
1131 **Description**
1132 )))
1133 |(((
1134 (% class="western" %)
1135 ProductId
1136 )))|(((
1137 (% class="western" %)
1138 int
1139 )))|(((
1140 (% class="western" %)
1141 Product Id of the newly created product.
1142 )))
1143
1144
1145
1146 (% class="western" %)
1147 PUT method should be used to update an individual product given the product info.
1148
1149 (% class="wrapped" %)
1150 |(((
1151 (% class="western" %)
1152 **Request**
1153 )))|(((
1154 (% class="western" %)
1155 **Type**
1156 )))|(((
1157 (% class="western" %)
1158 **Description**
1159 )))
1160 |(((
1161 (% class="western" %)
1162 Products
1163 )))|(((
1164 (% class="western" %)
1165 Product
1166 )))|(((
1167 (% class="western" %)
1168 Product details to be updated in json format to be sent with request. Id property needs to be set to identify the product to be updated. If you send term and resource along with product creation then it will automatically attach term to product and resource to product.
1169
1170 (% class="western" %)
1171 **Possible Request Params**: Title, Description, PrimaryFormId, ResourceID
1172
1173 (% class="western" %)
1174 **Example**:
1175
1176 (% class="western" %)
1177 {"Title":"Test123","Description": "Testss","PrimaryFormId":10,"ResourceID":17}
1178 )))
1179
1180 (% class="wrapped" %)
1181 |(((
1182 (% class="western" %)
1183 **Response**
1184 )))|(((
1185 (% class="western" %)
1186 **Type**
1187 )))|(((
1188 (% class="western" %)
1189 **Description**
1190 )))
1191 |(((
1192 (% class="western" %)
1193 ProductId
1194 )))|(((
1195 (% class="western" %)
1196 Int
1197 )))|(((
1198 (% class="western" %)
1199 Product id of the updated product.
1200 )))
1201
1202
1203
1204 (% class="western" %)
1205 **COMPONENT: Terms**
1206
1207 (% class="western" %)
1208 This resource is for manipulating terms resource. A term can be created, updated or searched.
1209
1210 (% class="wrapped" %)
1211 |(((
1212 (% class="western" %)
1213 **Method**
1214 )))|(((
1215 (% class="western" %)
1216 **Url**
1217 )))|(((
1218 (% class="western" %)
1219 **Action**
1220 )))
1221 |(((
1222 (% class="western" %)
1223 GET
1224 )))|(((
1225 (% class="western" %)
1226 /terms/5
1227 )))|(((
1228 (% class="western" %)
1229 Get term id 5
1230 )))
1231 |(((
1232 (% class="western" %)
1233 GET
1234 )))|(((
1235 (% class="western" %)
1236 /terms/lookup?Name=termname
1237 )))|(((
1238 (% class="western" %)
1239 Lookup terms by Name
1240 )))
1241 |(((
1242 (% class="western" %)
1243 POST
1244 )))|(((
1245 (% class="western" %)
1246 /terms
1247 )))|(((
1248 (% class="western" %)
1249 JSON of the terms type object needs to be sent as post data. Id field should not be sent.
1250 )))
1251 |(((
1252 (% class="western" %)
1253 PUT
1254 )))|(((
1255 (% class="western" %)
1256 /terms/5
1257 )))|(((
1258 (% class="western" %)
1259 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update.
1260 )))
1261
1262
1263
1264 (% class="western" %)
1265 **GET method should be used to lookup products.**
1266
1267 (% class="wrapped" %)
1268 |(((
1269 (% class="western" %)
1270 **Request**
1271 )))|(((
1272 (% class="western" %)
1273 **Type**
1274 )))|(((
1275 (% class="western" %)
1276 **Description**
1277 )))
1278 |(((
1279 (% class="western" %)
1280 Lookup params
1281 )))|(((
1282 (% class="western" %)
1283 String
1284 )))|(((
1285 (% class="western" %)
1286 URL encoded key value string parameter for the lookup.
1287
1288 (% class="western" %)
1289 Params:
1290
1291 (% class="western" %)
1292 Name: Name of the term for lookup (String)
1293 )))
1294
1295 (% class="wrapped" %)
1296 |(((
1297 (% class="western" %)
1298 **Response**
1299 )))|(((
1300 (% class="western" %)
1301 **Type**
1302 )))|(((
1303 (% class="western" %)
1304 **Description**
1305 )))
1306 |(((
1307 (% class="western" %)
1308 Terms
1309 )))|(((
1310 (% class="western" %)
1311 Terms
1312 )))|(((
1313 (% class="western" %)
1314 Returns found term details.
1315 )))
1316
1317
1318
1319 (% class="western" %)
1320 **POST method should be used to create products.**
1321
1322 (% class="wrapped" %)
1323 |(((
1324 (% class="western" %)
1325 **Request**
1326 )))|(((
1327 (% class="western" %)
1328 **Type**
1329 )))|(((
1330 (% class="western" %)
1331 **Description**
1332 )))
1333 |(((
1334 (% class="western" %)
1335 Terms
1336 )))|(((
1337 (% class="western" %)
1338 Terms
1339 )))|(((
1340 (% class="western" %)
1341 Term details in json to be sent as post data. Id should not be set.
1342
1343 (% class="western" %)
1344 **Possible Request Params**: Name, Description, Duration, DurationUnit, Price, ProductId, Active, ProductStatusId, Quantity, QuantityTxt
1345
1346 (% class="western" %)
1347 **Example**:
1348
1349 (% class="western" %)
1350 {"Name":"Test123","Description":Testss","Duration":10,"ProductId":17}
1351 )))
1352
1353 (% class="wrapped" %)
1354 |(((
1355 (% class="western" %)
1356 **Response**
1357 )))|(((
1358 (% class="western" %)
1359 **Type**
1360 )))|(((
1361 (% class="western" %)
1362 **Description**
1363 )))
1364 |(((
1365 (% class="western" %)
1366 TermId
1367 )))|(((
1368 (% class="western" %)
1369 int
1370 )))|(((
1371 (% class="western" %)
1372 Term Id of the newly created term.
1373 )))
1374
1375
1376
1377 (% class="western" %)
1378 PUT method should be used to update an individual term given the term info.
1379
1380 (% class="wrapped" %)
1381 |(((
1382 (% class="western" %)
1383 **Request**
1384 )))|(((
1385 (% class="western" %)
1386 **Type**
1387 )))|(((
1388 (% class="western" %)
1389 **Description**
1390 )))
1391 |(((
1392 (% class="western" %)
1393 Terms
1394 )))|(((
1395 (% class="western" %)
1396 Term
1397 )))|(((
1398 (% class="western" %)
1399 Term details to be updated in json format to be sent with request. Id property needs to be set to identify the term to be updated.
1400
1401 (% class="western" %)
1402
1403
1404 (% class="western" %)
1405 **Example**:
1406
1407 (% class="western" %)
1408 {"Name":"Test123","Description":Testss","Duration":10,"ProductId":17}
1409 )))
1410
1411 (% class="wrapped" %)
1412 |(((
1413 (% class="western" %)
1414 **Response**
1415 )))|(((
1416 (% class="western" %)
1417 **Type**
1418 )))|(((
1419 (% class="western" %)
1420 **Description**
1421 )))
1422 |(((
1423 (% class="western" %)
1424 TermId
1425 )))|(((
1426 (% class="western" %)
1427 Int
1428 )))|(((
1429 (% class="western" %)
1430 term id of the updated term.
1431 )))
1432
1433
1434
1435 (% class="western" %)
1436 **COMPONENT: Resources**
1437
1438 (% class="western" %)
1439 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.
1440
1441 * (((
1442 (% class="western" %)
1443 questions
1444 )))
1445 * (((
1446 (% class="western" %)
1447 users
1448 )))
1449 * (((
1450 (% class="western" %)
1451 products
1452 )))
1453 * (((
1454 (% class="western" %)
1455 terms
1456 )))
1457 * (((
1458 (% class="western" %)
1459 resources
1460 )))
1461 * (((
1462 (% class="western" %)
1463 sources
1464 )))
1465 * (((
1466 (% class="western" %)
1467 transactions
1468 )))
1469
1470 (% class="western" %)
1471 **
1472 **
1473
1474 (% class="western" %)
1475 This resource is for manipulating resources resource. A resource can be created, updated or searched.
1476
1477 (% class="wrapped" %)
1478 |(((
1479 (% class="western" %)
1480 **Method**
1481 )))|(((
1482 (% class="western" %)
1483 **Url**
1484 )))|(((
1485 (% class="western" %)
1486 **Action**
1487 )))
1488 |(((
1489 (% class="western" %)
1490 GET
1491 )))|(((
1492 (% class="western" %)
1493 /resources/5
1494 )))|(((
1495 (% class="western" %)
1496 Get resource id 5
1497 )))
1498 |(((
1499 (% class="western" %)
1500 GET
1501 )))|(((
1502 (% class="western" %)
1503 /resources/lookup?Name=resourcename
1504 )))|(((
1505 (% class="western" %)
1506 Lookup resources by Name
1507 )))
1508 |(((
1509 (% class="western" %)
1510 POST
1511 )))|(((
1512 (% class="western" %)
1513 /resources
1514 )))|(((
1515 (% class="western" %)
1516 JSON of the resources type object needs to be sent as post data. Id field should not be sent.
1517 )))
1518 |(((
1519 (% class="western" %)
1520 PUT
1521 )))|(((
1522 (% class="western" %)
1523 /resources/5
1524 )))|(((
1525 (% class="western" %)
1526 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update.
1527 )))
1528
1529
1530
1531 (% class="western" %)
1532 **GET method should be used to lookup resources.**
1533
1534 (% class="wrapped" %)
1535 |(((
1536 (% class="western" %)
1537 **Request**
1538 )))|(((
1539 (% class="western" %)
1540 **Type**
1541 )))|(((
1542 (% class="western" %)
1543 **Description**
1544 )))
1545 |(((
1546 (% class="western" %)
1547 Lookup params
1548 )))|(((
1549 (% class="western" %)
1550 String
1551 )))|(((
1552 (% class="western" %)
1553 URL encoded key value string parameter for the lookup.
1554
1555 (% class="western" %)
1556 Params:
1557
1558 (% class="western" %)
1559 Name: Name of the resource for lookup (String)
1560 )))
1561
1562 (% class="wrapped" %)
1563 |(((
1564 (% class="western" %)
1565 **Response**
1566 )))|(((
1567 (% class="western" %)
1568 **Type**
1569 )))|(((
1570 (% class="western" %)
1571 **Description**
1572 )))
1573 |(((
1574 (% class="western" %)
1575 Resources
1576 )))|(((
1577 (% class="western" %)
1578 Resources
1579 )))|(((
1580 (% class="western" %)
1581 Returns found resource details.
1582 )))
1583
1584
1585
1586 (% class="western" %)
1587 **POST method should be used to create resources.**
1588
1589 (% class="wrapped" %)
1590 |(((
1591 (% class="western" %)
1592 **Request**
1593 )))|(((
1594 (% class="western" %)
1595 **Type**
1596 )))|(((
1597 (% class="western" %)
1598 **Description**
1599 )))
1600 |(((
1601 (% class="western" %)
1602 Resources
1603 )))|(((
1604 (% class="western" %)
1605 Resources
1606 )))|(((
1607 (% class="western" %)
1608 resource details in json to be sent as post data. Id should not be set.
1609
1610 (% class="western" %)
1611 **Possible Request Params**: Name, Description, Type, Value, FreePass
1612
1613 (% class="western" %)
1614 **Example**:
1615
1616 (% class="western" %)
1617 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”}
1618
1619 (% class="western" %)
1620 {"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]}
1621
1622 (% class="western" %)
1623 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”, "FreePass":1}
1624
1625 (% class="western" %)
1626 {"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1}
1627 )))
1628
1629 (% class="wrapped" %)
1630 |(((
1631 (% class="western" %)
1632 **Response**
1633 )))|(((
1634 (% class="western" %)
1635 **Type**
1636 )))|(((
1637 (% class="western" %)
1638 **Description**
1639 )))
1640 |(((
1641 (% class="western" %)
1642 ResourceId
1643 )))|(((
1644 (% class="western" %)
1645 int
1646 )))|(((
1647 (% class="western" %)
1648 Resource Id of the newly created resource.
1649 )))
1650
1651
1652
1653 (% class="western" %)
1654 PUT method should be used to update an individual resource given the resource info.
1655
1656 (% class="wrapped" %)
1657 |(((
1658 (% class="western" %)
1659 **Request**
1660 )))|(((
1661 (% class="western" %)
1662 **Type**
1663 )))|(((
1664 (% class="western" %)
1665 **Description**
1666 )))
1667 |(((
1668 (% class="western" %)
1669 Resources
1670 )))|(((
1671 (% class="western" %)
1672 Resource
1673 )))|(((
1674 (% class="western" %)
1675 Resource details to be updated injsonformat to be sent withrequest. Id property needs to be set to identify the resource to be updated.
1676
1677 (% class="western" %)
1678
1679
1680 (% class="western" %)
1681 Examples:
1682
1683 (% class="western" %)
1684 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”}
1685
1686 (% class="western" %)
1687 {"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]}
1688
1689 (% class="western" %)
1690 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”,"FreePass":1}
1691
1692 (% class="western" %)
1693 {"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1}
1694 )))
1695
1696 (% class="wrapped" %)
1697 |(((
1698 (% class="western" %)
1699 **Response**
1700 )))|(((
1701 (% class="western" %)
1702 **Type**
1703 )))|(((
1704 (% class="western" %)
1705 **Description**
1706 )))
1707 |(((
1708 (% class="western" %)
1709 ResourceId
1710 )))|(((
1711 (% class="western" %)
1712 Int
1713 )))|(((
1714 (% class="western" %)
1715 resource id of the updated resource.
1716 )))
1717
1718
1719
1720
1721
1722 (% class="western" %)
1723
1724
1725 (% class="western" %)
1726 **COMPONENT: Source Codes
1727 **
1728
1729 (% class="western" %)
1730 This resource is for manipulating source code for a resource. A source code can be created, updated or searched.
1731
1732 (% class="wrapped" %)
1733 |(((
1734 (% class="western" %)
1735 **Method**
1736 )))|(((
1737 (% class="western" %)
1738 **Url**
1739 )))|(((
1740 (% class="western" %)
1741 **Action**
1742 )))
1743 |(((
1744 (% class="western" %)
1745 GET
1746 )))|(((
1747 (% class="western" %)
1748 /sources/1
1749 )))|(((
1750 (% class="western" %)
1751 Get source id 1.
1752 )))
1753 |(((
1754 (% class="western" %)
1755 GET
1756 )))|(((
1757 (% class="western" %)
1758 /sources/lookup?Source=sourcename
1759 )))|(((
1760 (% class="western" %)
1761 Lookup sources by source.
1762 )))
1763 |(((
1764 (% class="western" %)
1765 POST
1766 )))|(((
1767 (% class="western" %)
1768 /sources
1769 )))|(((
1770 (% class="western" %)
1771 JSON of the Sources type object needs to be sent as post data. Id field should not be sent.
1772 )))
1773 |(((
1774 (% class="western" %)
1775 PUT
1776 )))|(((
1777 (% class="western" %)
1778 /sources
1779 )))|(((
1780 (% class="western" %)
1781 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update.
1782 )))
1783
1784
1785
1786 (% class="western" %)
1787 **Sources can be looked up given the code or Id. GET method should be used for lookup.**
1788
1789 (% class="wrapped" %)
1790 |(((
1791 (% class="western" %)
1792 **Request**
1793 )))|(((
1794 (% class="western" %)
1795 **Type**
1796 )))|(((
1797 (% class="western" %)
1798 **Description**
1799 )))
1800 |(((
1801 (% class="western" %)
1802 Lookup params
1803 )))|(((
1804 (% class="western" %)
1805 String
1806 )))|(((
1807 (% class="western" %)
1808 URL encoded key value string parameter for the lookup.
1809
1810 (% class="western" %)
1811 Params:
1812
1813 (% class="western" %)
1814 Source: Source value (String)
1815 )))
1816
1817 (% class="wrapped" %)
1818 |(((
1819 (% class="western" %)
1820 **Response**
1821 )))|(((
1822 (% class="western" %)
1823 **Type**
1824 )))|(((
1825 (% class="western" %)
1826 **Description**
1827 )))
1828 |(((
1829 (% class="western" %)
1830 Sources
1831 )))|(((
1832 (% class="western" %)
1833 Sources
1834 )))|(((
1835 (% class="western" %)
1836 Returns found source details.
1837 )))
1838
1839
1840
1841 (% class="western" %)
1842
1843
1844 (% class="western" %)
1845 POST method should be used to create an individual source given the source parameters.
1846
1847 (% class="wrapped" %)
1848 |(((
1849 (% class="western" %)
1850 **Request**
1851 )))|(((
1852 (% class="western" %)
1853 **Type**
1854 )))|(((
1855 (% class="western" %)
1856 **Description**
1857 )))
1858 |(((
1859 (% class="western" %)
1860 Sources
1861 )))|(((
1862 (% class="western" %)
1863 Sources
1864 )))|(((
1865 (% class="western" %)
1866 Defines the contents that makes up the source. Id parameters should not be set.
1867 )))
1868
1869 (% class="wrapped" %)
1870 |(((
1871 (% class="western" %)
1872 **Response**
1873 )))|(((
1874 (% class="western" %)
1875 **Type**
1876 )))|(((
1877 (% class="western" %)
1878 **Description**
1879 )))
1880 |(((
1881 (% class="western" %)
1882 SourceId
1883 )))|(((
1884 (% class="western" %)
1885 int
1886 )))|(((
1887 (% class="western" %)
1888 Returns created source code id.
1889 )))
1890
1891
1892
1893 (% class="western" %)
1894 **PUT method can be used to update an individual source given the id.**
1895
1896 (% class="wrapped" %)
1897 |(((
1898 (% class="western" %)
1899 **Request**
1900 )))|(((
1901 (% class="western" %)
1902 **Type**
1903 )))|(((
1904 (% class="western" %)
1905 **Description**
1906 )))
1907 |(((
1908 (% class="western" %)
1909 Sources
1910 )))|(((
1911 (% class="western" %)
1912 Sources
1913 )))|(((
1914 (% class="western" %)
1915 Defines the contents that makes up the source. The id parameter needs to be set which will identify the id of the source to be updated.
1916 )))
1917
1918 (% class="wrapped" %)
1919 |(((
1920 (% class="western" %)
1921 **Response**
1922 )))|(((
1923 (% class="western" %)
1924 **Type**
1925 )))|(((
1926 (% class="western" %)
1927 **Description**
1928 )))
1929 |(((
1930 (% class="western" %)
1931 SourceId
1932 )))|(((
1933 (% class="western" %)
1934 int
1935 )))|(((
1936 (% class="western" %)
1937 Returns updated source id.
1938 )))
1939
1940
1941
1942 (% class="western" %)
1943
1944
1945 (% class="western" %)
1946 **COMPONENT: Transactions**
1947
1948 (% class="western" %)
1949 This resource is for manipulating transactions resource. A transaction can be created or searched.
1950
1951 (% class="wrapped" %)
1952 |(((
1953 (% class="western" %)
1954 **Method**
1955 )))|(((
1956 (% class="western" %)
1957 **Url**
1958 )))|(((
1959 (% class="western" %)
1960 **Action**
1961 )))
1962 |(((
1963 (% class="western" %)
1964 GET
1965 )))|(((
1966 (% class="western" %)
1967 /transactions
1968 )))|(((
1969 (% class="western" %)
1970 List all transactions
1971 )))
1972 |(((
1973 (% class="western" %)
1974 GET
1975 )))|(((
1976 (% class="western" %)
1977 /transactions/lookup?UserId=1
1978 )))|(((
1979 (% class="western" %)
1980 Lookup all transaction of UserId = 1
1981 )))
1982 |(((
1983 (% class="western" %)
1984 POST
1985 )))|(((
1986 (% class="western" %)
1987 /transactions
1988 )))|(((
1989 (% class="western" %)
1990 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent.
1991 )))
1992
1993
1994
1995 (% class="western" %)
1996
1997
1998 (% class="western" %)
1999 Transactions can be looked up using transactionId, date range, userid. Use GET method to do lookup.
2000
2001 (% class="wrapped" %)
2002 |(((
2003 (% class="western" %)
2004 **Request**
2005 )))|(((
2006 (% class="western" %)
2007 **Type**
2008 )))|(((
2009 (% class="western" %)
2010 **Description**
2011 )))
2012 |(((
2013 (% class="western" %)
2014 Lookup params
2015 )))|(((
2016 (% class="western" %)
2017 String
2018 )))|(((
2019 (% class="western" %)
2020 URL encoded key value string parameter for the lookup.
2021
2022 (% class="western" %)
2023 Params:
2024
2025 (% class="western" %)
2026 UserId: Id of the user whose transaction is to be looked up (Int)
2027
2028 (% class="western" %)
2029 StartDate: Date from which the start should happen. Only valid when UserId is set. (Date)
2030
2031 (% class="western" %)
2032 EndDate: When the search should end. Only valid when UserId is set. (Date)
2033 )))
2034
2035
2036
2037
2038
2039 (% class="wrapped" %)
2040 |(((
2041 (% class="western" %)
2042 **Response**
2043 )))|(((
2044 (% class="western" %)
2045 **Type**
2046 )))|(((
2047 (% class="western" %)
2048 **Description**
2049 )))
2050 |(((
2051 (% class="western" %)
2052 Transactions
2053 )))|(((
2054 (% class="western" %)
2055 Transactions
2056 )))|(((
2057 (% class="western" %)
2058 Returns all transaction that satisfies the search criteria.
2059 )))
2060
2061
2062
2063 (% class="western" %)
2064 POST method can be used to create user transaction. Transaction info needs to be sent as request and a TransactionId will be returned when the transaction is created.
2065
2066 (% class="wrapped" %)
2067 |(((
2068 (% class="western" %)
2069 **Request**
2070 )))|(((
2071 (% class="western" %)
2072 **Type**
2073 )))|(((
2074 (% class="western" %)
2075 **Description**
2076 )))
2077 |(((
2078 (% class="western" %)
2079 Transactions
2080 )))|(((
2081 (% class="western" %)
2082 Transactions
2083 )))|(((
2084 (% class="western" %)
2085 Contains fields that define a transaction. Id field should not be set.
2086 )))
2087
2088 (% class="wrapped" %)
2089 |(((
2090 (% class="western" %)
2091 **Response**
2092 )))|(((
2093 (% class="western" %)
2094 **Type**
2095 )))|(((
2096 (% class="western" %)
2097 **Description**
2098 )))
2099 |(((
2100 (% class="western" %)
2101 TransactionId
2102 )))|(((
2103 (% class="western" %)
2104 int
2105 )))|(((
2106 (% class="western" %)
2107 Returns transactionId of the newly created transaction.
2108 )))
2109
2110
2111
2112
2113
2114 (% class="western" %)
2115 **COMPONENT: Leads
2116 **
2117
2118 (% class="western" %)
2119 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.
2120
2121 (% class="western" %)
2122
2123
2124 (% class="western" %)
2125
2126
2127 (% class="western" %)
2128
2129
2130 (% class="western" %)
2131
2132
2133 (% class="western" %)
2134
2135
2136 (% class="western" %)
2137 **Telemarketing Leads
2138 **
2139
2140 (% class="western" %)
2141
2142 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed.
2143
2144 (% class="wrapped" %)
2145 |(((
2146 (% class="western" %)
2147 **Method**
2148 )))|(((
2149 (% class="western" %)
2150 **Url**
2151 )))|(((
2152 (% class="western" %)
2153 **Action**
2154 )))
2155 |(((
2156 (% class="western" %)
2157 GET
2158 )))|(((
2159 (% class="western" %)
2160 /stats/telemarketing
2161 )))|(((
2162 (% class="western" %)
2163 List telemarketing stats
2164 )))
2165 |(((
2166 (% class="western" %)
2167 GET
2168 )))|(((
2169 (% class="western" %)
2170 /stats/telemarketing/1000
2171 )))|(((
2172 (% class="western" %)
2173 Get telemarketing stat whose id is 1000 in the system.
2174 )))
2175 |(((
2176 (% class="western" %)
2177 POST
2178 )))|(((
2179 (% class="western" %)
2180 /stats/telemarketing
2181 )))|(((
2182 (% class="western" %)
2183 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent.
2184 )))
2185
2186
2187
2188 (% class="western" %)
2189 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.
2190
2191 (% class="wrapped" %)
2192 |(((
2193 (% class="western" %)
2194 **Request**
2195 )))|(((
2196 (% class="western" %)
2197 **Type**
2198 )))|(((
2199 (% class="western" %)
2200 **Description**
2201 )))
2202 |(((
2203 (% class="western" %)
2204 Telemarketing
2205 )))|(((
2206 (% class="western" %)
2207 Telemarketing
2208 )))|(((
2209 (% class="western" %)
2210 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section.
2211
2212 (% class="western" %)
2213 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.
2214
2215 (% class="western" %)
2216 E.g
2217
2218 (% class="western" %)
2219 {
2220
2221 (% class="western" %)
2222 "Telemarketing":[
2223
2224 (% class="western" %)
2225 {
2226
2227 (% class="western" %)
2228 "OCID":"5000",
2229
2230 (% class="western" %)
2231 "Date": "2016-01-01",
2232
2233 (% class="western" %)
2234 "Time": "10:10:10",
2235
2236 (% class="western" %)
2237 "ResourceId":"250",
2238
2239 (% class="western" %)
2240 "PageUrl": "[[http:~~/~~/www.one-count.com/detail/a.php>>url:http://www.one-count.com/detail/a.php||shape="rect" class="western"]]",
2241
2242 (% class="western" %)
2243 "PageTitle":"tests"
2244
2245 (% class="western" %)
2246 }
2247
2248 (% class="western" %)
2249 ]
2250
2251 (% class="western" %)
2252 }
2253 )))
2254 |(((
2255 (% class="western" %)
2256
2257 )))|(((
2258 (% class="western" %)
2259
2260 )))|(((
2261 (% class="western" %)
2262
2263 )))
2264
2265 (% class="wrapped" %)
2266 |(((
2267 (% class="western" %)
2268 **Response**
2269 )))|(((
2270 (% class="western" %)
2271 **Type**
2272 )))|(((
2273 (% class="western" %)
2274 **Description**
2275 )))
2276 |(((
2277 (% class="western" %)
2278 Ids
2279 )))|(((
2280 (% class="western" %)
2281 String
2282 )))|(((
2283 (% class="western" %)
2284 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format.
2285 )))
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297 (% class="western" %)
2298 **API REFERENCE**
2299
2300 (% class="western" %)
2301 **Type: Questions**
2302
2303 (% class="wrapped" %)
2304 |(((
2305 (% class="western" %)
2306 **Property Name**
2307 )))|(((
2308 (% class="western" %)
2309 **Type**
2310 )))|(((
2311 (% class="western" %)
2312 **Description**
2313 )))
2314 |(((
2315 (% class="western" %)
2316 Id
2317 )))|(((
2318 (% class="western" %)
2319 Int
2320 )))|(((
2321 (% class="western" %)
2322 Id of the question.
2323 )))
2324 |(((
2325 (% class="western" %)
2326 Text
2327 )))|(((
2328 (% class="western" %)
2329 String
2330 )))|(((
2331 (% class="western" %)
2332 Text of the question.
2333 )))
2334 |(((
2335 (% class="western" %)
2336 Type
2337 )))|(((
2338 (% class="western" %)
2339 Int
2340 )))|(((
2341 (% class="western" %)
2342 Determines which type of question it is. Textbox, checkbox, select, radio.
2343 There can be 6 types of questions.
2344 type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
2345 type=2 means textarea type question or long response type question.
2346 type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
2347 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.
2348 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.
2349 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.
2350 )))
2351 |(((
2352 (% class="western" %)
2353 Choices
2354 )))|(((
2355 (% class="western" %)
2356 choices
2357 )))|(((
2358 (% class="western" %)
2359 If multiple choice question this field will have the choices.
2360 )))
2361 |(((
2362 (% class="western" %)
2363 Alias
2364 )))|(((
2365 (% class="western" %)
2366 String
2367 )))|(((
2368 (% class="western" %)
2369 Alias for admin purpose.
2370 )))
2371
2372
2373
2374 (% class="western" %)
2375
2376
2377 (% class="western" %)
2378
2379
2380 (% class="western" %)
2381 **Type: Choices**
2382
2383 (% class="wrapped" %)
2384 |(((
2385 (% class="western" %)
2386 **Property Name**
2387 )))|(((
2388 (% class="western" %)
2389 **Type**
2390 )))|(((
2391 (% class="western" %)
2392 **Description**
2393 )))
2394 |(((
2395 (% class="western" %)
2396 Id
2397 )))|(((
2398 (% class="western" %)
2399 int
2400 )))|(((
2401 (% class="western" %)
2402 Id of the choice.
2403 )))
2404 |(((
2405 (% class="western" %)
2406 Text
2407 )))|(((
2408 (% class="western" %)
2409 string
2410 )))|(((
2411 (% class="western" %)
2412 Display text of choice.
2413 )))
2414 |(((
2415 (% class="western" %)
2416 Value
2417 )))|(((
2418 (% class="western" %)
2419 String
2420 )))|(((
2421 (% class="western" %)
2422 Value stored in db.
2423 )))
2424 |(((
2425 (% class="western" %)
2426 Order
2427 )))|(((
2428 (% class="western" %)
2429 Int
2430 )))|(((
2431 (% class="western" %)
2432 Display order.
2433 )))
2434 |(((
2435 (% class="western" %)
2436 QuestionId
2437 )))|(((
2438 (% class="western" %)
2439 Int
2440 )))|(((
2441 (% class="western" %)
2442 Tied to which question id.
2443 )))
2444
2445
2446
2447 (% class="western" %)
2448 **Type: Users**
2449
2450 (% class="wrapped" %)
2451 |(((
2452 (% class="western" %)
2453 **Property Name**
2454 )))|(((
2455 (% class="western" %)
2456 **Type**
2457 )))|(((
2458 (% class="western" %)
2459 **Description**
2460 )))
2461 |(((
2462 (% class="western" %)
2463 Id
2464 )))|(((
2465 (% class="western" %)
2466 Int
2467 )))|(((
2468 (% class="western" %)
2469 ID of the user in ONEcount.
2470 )))
2471 |(((
2472 (% class="western" %)
2473 PartnerId
2474 )))|(((
2475 (% class="western" %)
2476 Int
2477 )))|(((
2478 (% class="western" %)
2479 ID of the user in partners system (e.g. id of your system).
2480 )))
2481 |(((
2482 (% class="western" %)
2483 Demo
2484 )))|(((
2485 (% class="western" %)
2486 Demo
2487 )))|(((
2488 (% class="western" %)
2489 Object of user's demo question ids and respective response values.
2490 )))
2491 |(((
2492 (% class="western" %)
2493 RequestDate
2494 )))|(((
2495 (% class="western" %)
2496 Date
2497 )))|(((
2498 (% class="western" %)
2499 Request date.
2500 )))
2501
2502
2503
2504 (% class="western" %)
2505 **Type: Demo**
2506
2507 (% class="wrapped" %)
2508 |(((
2509 (% class="western" %)
2510 **Property Name**
2511 )))|(((
2512 (% class="western" %)
2513 **Type**
2514 )))|(((
2515 (% class="western" %)
2516 **Description**
2517 )))
2518 |(((
2519 (% class="western" %)
2520 QuestionId (e.g 6)
2521 )))|(((
2522 (% class="western" %)
2523 String
2524 )))|(((
2525 (% class="western" %)
2526 6 is the value of “Id” property of question resource(Text = “First Name”)
2527 )))
2528 |(((
2529 (% class="western" %)
2530 QuestionId (e.g 7)
2531 )))|(((
2532 (% class="western" %)
2533 String
2534 )))|(((
2535 (% class="western" %)
2536 7 is the value of “Id” property of question resource(Text = “Last Name”)
2537 )))
2538 |(((
2539 (% class="western" %)
2540 ...
2541 )))|(((
2542 (% class="western" %)
2543 ...
2544 )))|(((
2545 (% class="western" %)
2546 ...
2547 )))
2548
2549
2550
2551 (% class="western" %)
2552 **Type: Transactions**
2553
2554 (% class="wrapped" %)
2555 |(((
2556 (% class="western" %)
2557 **Property Name**
2558 )))|(((
2559 (% class="western" %)
2560 **Type**
2561 )))|(((
2562 (% class="western" %)
2563 **Description**
2564 )))
2565 |(((
2566 (% class="western" %)
2567 Id
2568 )))|(((
2569 (% class="western" %)
2570 Int
2571 )))|(((
2572 (% class="western" %)
2573 ID of the transaction.
2574 )))
2575 |(((
2576 (% class="western" %)
2577 UserId
2578 )))|(((
2579 (% class="western" %)
2580 Int
2581 )))|(((
2582 (% class="western" %)
2583 Id of user in ONEcount.
2584 )))
2585 |(((
2586 (% class="western" %)
2587 TermId
2588 )))|(((
2589 (% class="western" %)
2590 Int
2591 )))|(((
2592 (% class="western" %)
2593 TermId in ONEcount.
2594 )))
2595 |(((
2596 (% class="western" %)
2597 ProductStatus
2598 )))|(((
2599 (% class="western" %)
2600 Int
2601 )))|(((
2602 (% class="western" %)
2603 Status ID.
2604 )))
2605 |(((
2606 (% class="western" %)
2607 SubscriptionType
2608 )))|(((
2609 (% class="western" %)
2610 Char
2611 )))|(((
2612 (% class="western" %)
2613 Can be n,r or u for new, renew or unsubscribe.
2614 )))
2615 |(((
2616 (% class="western" %)
2617 TransactionDate
2618 )))|(((
2619 (% class="western" %)
2620 Date
2621 )))|(((
2622 (% class="western" %)
2623 Date when the transaction occurred.
2624 )))
2625 |(((
2626 (% class="western" %)
2627 TransactionTime
2628 )))|(((
2629 (% class="western" %)
2630 Time
2631 )))|(((
2632 (% class="western" %)
2633 Time of transaction.
2634 )))
2635 |(((
2636 (% class="western" %)
2637 RequestDate
2638 )))|(((
2639 (% class="western" %)
2640 Date
2641 )))|(((
2642 (% class="western" %)
2643 The effective request date for the transaction.
2644 )))
2645 |(((
2646 (% class="western" %)
2647 UserIP
2648 )))|(((
2649 (% class="western" %)
2650 String
2651 )))|(((
2652 (% class="western" %)
2653 IP of the user.
2654 )))
2655 |(((
2656 (% class="western" %)
2657 Source
2658 )))|(((
2659 (% class="western" %)
2660 String
2661 )))|(((
2662 (% class="western" %)
2663 The transaction needs to be tied to a source code this will define it.
2664 )))
2665 |(((
2666 (% class="western" %)
2667 MediaFilePath
2668 )))|(((
2669 (% class="western" %)
2670 String
2671 )))|(((
2672 (% class="western" %)
2673 The url of media associated with that transaction. Eg image, audio.
2674 )))
2675 |(((
2676 (% class="western" %)
2677 ExpireDate
2678 )))|(((
2679 (% class="western" %)
2680 Date
2681 )))|(((
2682 (% class="western" %)
2683 Date when the subscription expires.
2684 )))
2685 |(((
2686 (% class="western" %)
2687 Amount
2688 )))|(((
2689 (% class="western" %)
2690 Float
2691 )))|(((
2692 (% class="western" %)
2693 If there is amount (USD) included in transaction.
2694 )))
2695
2696
2697
2698 (% class="western" %)
2699 **Type: Sources**
2700
2701 (% class="wrapped" %)
2702 |(((
2703 (% class="western" %)
2704 **Property Name**
2705 )))|(((
2706 (% class="western" %)
2707 **Type**
2708 )))|(((
2709 (% class="western" %)
2710 **Description**
2711 )))
2712 |(((
2713 (% class="western" %)
2714 Id
2715 )))|(((
2716 (% class="western" %)
2717 Int
2718 )))|(((
2719 (% class="western" %)
2720 Id of the source.
2721 )))
2722 |(((
2723 (% class="western" %)
2724 Source
2725 )))|(((
2726 (% class="western" %)
2727 String
2728 )))|(((
2729 (% class="western" %)
2730 Value of the source.
2731 )))
2732 |(((
2733 (% class="western" %)
2734 Description
2735 )))|(((
2736 (% class="western" %)
2737 Text
2738 )))|(((
2739 (% class="western" %)
2740 Description of the source.
2741 )))
2742 |(((
2743 (% class="western" %)
2744 ParentId
2745 )))|(((
2746 (% class="western" %)
2747 int
2748 )))|(((
2749 (% class="western" %)
2750 If this is a child source then list the parent source id.
2751 )))
2752
2753
2754
2755 (% class="western" %)
2756
2757
2758 (% class="western" %)
2759 **Type: Products**
2760
2761 (% class="wrapped" %)
2762 |(((
2763 (% class="western" %)
2764 **Property Name**
2765 )))|(((
2766 (% class="western" %)
2767 **Type**
2768 )))|(((
2769 (% class="western" %)
2770 **Description**
2771 )))
2772 |(((
2773 (% class="western" %)
2774 Id
2775 )))|(((
2776 (% class="western" %)
2777 Int
2778 )))|(((
2779 (% class="western" %)
2780 Specify only for update.
2781 )))
2782 |(((
2783 (% class="western" %)
2784 Name
2785 )))|(((
2786 (% class="western" %)
2787 String
2788 )))|(((
2789 (% class="western" %)
2790 Name of the Product.
2791 )))
2792 |(((
2793 (% class="western" %)
2794 Description
2795 )))|(((
2796 (% class="western" %)
2797 Text
2798 )))|(((
2799 (% class="western" %)
2800 Description of the product.
2801 )))
2802 |(((
2803 (% class="western" %)
2804 Terms
2805 )))|(((
2806 (% class="western" %)
2807 Terms
2808 )))|(((
2809 (% class="western" %)
2810 (Array of) Terms associated with the product.
2811 )))
2812
2813
2814
2815 (% class="western" %)
2816 **Type: Terms**
2817
2818 (% class="wrapped" %)
2819 |(((
2820 (% class="western" %)
2821 **Property Name**
2822 )))|(((
2823 (% class="western" %)
2824 **Type**
2825 )))|(((
2826 (% class="western" %)
2827 **Description**
2828 )))
2829 |(((
2830 (% class="western" %)
2831 Id
2832 )))|(((
2833 (% class="western" %)
2834 int
2835 )))|(((
2836 (% class="western" %)
2837 Id of the term.
2838 )))
2839 |(((
2840 (% class="western" %)
2841 Name
2842 )))|(((
2843 (% class="western" %)
2844 string
2845 )))|(((
2846 (% class="western" %)
2847 Name of the Term.
2848 )))
2849 |(((
2850 (% class="western" %)
2851 Description
2852 )))|(((
2853 (% class="western" %)
2854 text
2855 )))|(((
2856 (% class="western" %)
2857 Description of the term.
2858 )))
2859 |(((
2860 (% class="western" %)
2861 Duration
2862 )))|(((
2863 (% class="western" %)
2864 int
2865 )))|(((
2866 (% class="western" %)
2867 Duration of term validity.
2868 )))
2869 |(((
2870 (% class="western" %)
2871 DurationUnit
2872 )))|(((
2873 (% class="western" %)
2874 sting
2875 )))|(((
2876 (% class="western" %)
2877 Y (year), M (Month), D (Days).
2878 )))
2879 |(((
2880 (% class="western" %)
2881 ProductId
2882 )))|(((
2883 (% class="western" %)
2884 int
2885 )))|(((
2886 (% class="western" %)
2887 Id of the product the term is tied to.
2888 )))
2889 |(((
2890 (% class="western" %)
2891 Price
2892 )))|(((
2893 (% class="western" %)
2894 float
2895 )))|(((
2896 (% class="western" %)
2897 If there is price (USD) for the term.
2898 )))
2899
2900
2901
2902 (% class="western" %)
2903 **Type: Resources**
2904
2905 (% class="wrapped" %)
2906 |(((
2907 (% class="western" %)
2908 **Property Name**
2909 )))|(((
2910 (% class="western" %)
2911 **Type**
2912 )))|(((
2913 (% class="western" %)
2914 **Description**
2915 )))
2916 |(((
2917 (% class="western" %)
2918 Id
2919 )))|(((
2920 (% class="western" %)
2921 Int
2922 )))|(((
2923 (% class="western" %)
2924 Specify only for update.
2925 )))
2926 |(((
2927 (% class="western" %)
2928 Name
2929 )))|(((
2930 (% class="western" %)
2931 String
2932 )))|(((
2933 (% class="western" %)
2934 Name of the Resource.
2935 )))
2936 |(((
2937 (% class="western" %)
2938 Description
2939 )))|(((
2940 (% class="western" %)
2941 Text
2942 )))|(((
2943 (% class="western" %)
2944 Description of the Resource.
2945 )))
2946 |(((
2947 (% class="western" %)
2948 Type
2949 )))|(((
2950 (% class="western" %)
2951 Int
2952 )))|(((
2953 (% class="western" %)
2954 Type Options
2955
2956 (% class="western" %)
2957 **0** : File
2958
2959 (% class="western" %)
2960 **2 : **Newsletter
2961
2962 (% class="western" %)
2963 **3 : **Section
2964
2965 (% class="western" %)
2966 **4 : **Page
2967
2968 (% class="western" %)
2969 **5 : **Function
2970 )))
2971 |(((
2972 (% class="western" %)
2973 Value
2974 )))|(((
2975 (% class="western" %)
2976 String
2977
2978 (% class="western" %)
2979 or
2980
2981 (% class="western" %)
2982 Array
2983 )))|(((
2984 (% class="western" %)
2985 Value of Resource Type:
2986
2987 (% class="western" %)
2988 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.
2989
2990 (% class="western" %)
2991 For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests.
2992
2993 (% class="western" %)
2994 Example :
2995
2996 (% class="western" %)
2997 if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].** **
2998 **if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"]
2999
3000 (% class="western" %)
3001 For Function type resource leave it blank.
3002 )))
3003 |(((
3004 (% class="western" %)
3005 limit
3006 )))|(((
3007 (% class="western" %)
3008 Int
3009 )))|(((
3010 (% class="western" %)
3011 Default limit is 25 but all the data needs to be pulled then pass limit=0.
3012 )))
3013 |(% colspan="1" %)(% colspan="1" %)
3014 (((
3015 FreePass
3016 )))|(% colspan="1" %)(% colspan="1" %)
3017 (((
3018 Int
3019 )))|(% colspan="1" %)(% colspan="1" %)
3020 (((
3021 Default value is 0. This parameter is used to provide access to protected content.
3022 )))
3023
3024
3025
3026 (% class="western" %)
3027 **Type: Telemarketing**
3028
3029 (% class="wrapped" %)
3030 |(((
3031 (% class="western" %)
3032 **Property Name**
3033 )))|(((
3034 (% class="western" %)
3035 **Type**
3036 )))|(((
3037 (% class="western" %)
3038 **Description**
3039 )))
3040 |(((
3041 (% class="western" %)
3042 Id
3043 )))|(((
3044 (% class="western" %)
3045 int
3046 )))|(((
3047 (% class="western" %)
3048 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat.
3049 )))
3050 |(((
3051 (% class="western" %)
3052 OCID
3053 )))|(((
3054 (% class="western" %)
3055 int
3056 )))|(((
3057 (% class="western" %)
3058 Onecount ID of the user.
3059 )))
3060 |(((
3061 (% class="western" %)
3062 Date
3063 )))|(((
3064 (% class="western" %)
3065 Date
3066 )))|(((
3067 (% class="western" %)
3068 Date when the stat occurred. Format: yyyy-mm-dd
3069 )))
3070 |(((
3071 (% class="western" %)
3072 Time
3073 )))|(((
3074 (% class="western" %)
3075 Time
3076 )))|(((
3077 (% class="western" %)
3078 Time of stat. Format: h:m:s (24 hour format)
3079 )))
3080 |(((
3081 (% class="western" %)
3082 ResourceId
3083 )))|(((
3084 (% class="western" %)
3085 int
3086 )))|(((
3087 (% class="western" %)
3088 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send
3089
3090 (% class="western" %)
3091 PageTitle otherwise it will follow the process described in PageTitle.
3092 )))
3093 |(((
3094 (% class="western" %)
3095 PageUrl
3096 )))|(((
3097 (% class="western" %)
3098 string
3099 )))|(((
3100 (% class="western" %)
3101 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.
3102 )))
3103 |(((
3104 (% class="western" %)
3105 PageTitle
3106 )))|(((
3107 (% class="western" %)
3108 string
3109 )))|(((
3110 (% class="western" %)
3111 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.
3112
3113 (% class="western" %)
3114
3115
3116 (% class="western" %)
3117 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.
3118 )))