Wiki source code of ONEcount API Documentation

Version 7.1 by Admin on 2017/04/05 10:57

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