Changes for page OLD-ONEcount API Documentation
Last modified by Admin on 2025/06/27 12:14
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. shravya@one-count_com1 +XWiki.Admin - Content
-
... ... @@ -2,7 +2,7 @@ 2 2 **Introduction** 3 3 4 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 ONEcountdata components which are listed below.5 +ONEcount REST API is designed to allow you to directly manipulate the underlying data within the ONEcount application. his API can be used to lookup, create and updated different ONEcount resources which are listed below. 6 6 7 7 (% class="western" %) 8 8 REST takes advantage of the HTTP request methods to layer itself into the existing HTTP architecture. These operations consist of the following: ... ... @@ -9,7 +9,7 @@ 9 9 10 10 1. ((( 11 11 (% class="western" %) 12 -**GET** - Used for lookup of resources resources12 +**GET** - Used for lookup of resources 13 13 ))) 14 14 1. ((( 15 15 (% class="western" %) ... ... @@ -28,10 +28,10 @@ 28 28 11. Lookup users 29 29 11. Create users 30 30 11. Update users 31 -1. Questions32 -11. Lookup questions33 -11. Listquestions34 - 11. Create questions31 +1. Transaction data 32 +11. Lookup transactions 33 +11. Create transactions 34 +\\ 35 35 1. Product data 36 36 11. Lookup products 37 37 11. Create products ... ... @@ -44,9 +44,10 @@ 44 44 11. Lookup resources 45 45 11. Create resources 46 46 11. Update resources 47 -1. Transaction data 48 -11. Lookup transactions 49 -11. Create transactions 47 +1. Questions 48 +11. Lookup questions 49 +11. List questions 50 +11. Create questions 50 50 1. Source Codes 51 51 11. Lookup source code 52 52 11. Create source codes ... ... @@ -90,7 +90,7 @@ 90 90 ))) 91 91 92 92 (% class="western" %) 93 - \\94 + 94 94 95 95 (% class="western" %) 96 96 **General API Usage** ... ... @@ -102,7 +102,7 @@ 102 102 For lookup, the parameter list will be part of the request url. 103 103 104 104 (% class="western" %) 105 - \\106 + 106 106 107 107 (% class="western" %) 108 108 **Response** ... ... @@ -165,7 +165,7 @@ 165 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 166 167 167 (% class="western" %) 168 - \\169 + 169 169 170 170 (% class="western" %) 171 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. ... ... @@ -221,103 +221,118 @@ 221 221 ]}]}}}} 222 222 223 223 (% class="western" %) 224 - \\225 + 225 225 226 226 (% class="western" %) 227 227 ** 228 228 ** 229 229 230 -**COMPONENT: Users** 231 +(% class="western" %) 232 +** 233 +** 231 231 232 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. 236 +** 237 +** 234 234 239 + 240 + 235 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 SubscriptionTypewill be ignored ifspecified forthis case. As this is new user and new transactionisbeing added.242 +**RESOURCE: Questions** 237 237 238 238 (% class="western" %) 239 - Inthis casethe provideddemographicformationin usersobject willbeusedtocreate anewuser in ONEcount and thena responsewillbegenerated.Beforecreatinga newuser,acheckforduplicatewillbeperformed basedonDedupecolumnsandiffound,anderrorcodewillbegenerated.245 +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). 240 240 241 241 (% class="western" %) 242 - If username andpasswordis not one oftheparametersbeingpassed,thenarandomusername andpasswordwillbegeneratedfortheuserwhilecreatinghis useraccount inONEcount.248 +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. 243 243 244 244 (% class="western" %) 245 - Returnparameterwillhavecommaseparatedlist of questionIds thatis requestedback fromtheAPI.251 +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) 246 246 247 247 (% class="western" %) 248 - Returnisanoptional parameterinrequest. If return isnotrequested then by default, only UserId (which is ONEcount ID) will be returned in the Users object.254 +There can be 6 types of questions: 249 249 250 -\\ 251 - 252 252 (% class="wrapped" %) 253 253 |((( 254 -(% class="western" %) 255 -** Method**258 +(% class="western" align="center" %) 259 +**Type** 256 256 )))|((( 257 257 (% class="western" %) 258 -**Url** 262 +**Description** 263 +))) 264 +|((( 265 +(% class="western" align="center" %) 266 +1 259 259 )))|((( 260 260 (% class="western" %) 261 - **Action**269 +Textbox type questions or short response type question. The response length needs to be less than 255 characters. 262 262 ))) 263 263 |((( 264 -(% class="western" %) 265 - GET272 +(% class="western" align="center" %) 273 +2 266 266 )))|((( 267 267 (% class="western" %) 268 -/users 276 +Textarea type question or long response type question. 277 +))) 278 +|((( 279 +(% class="western" align="center" %) 280 +3 269 269 )))|((( 270 270 (% class="western" %) 271 - Get users datalimiting25.283 +Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *. 272 272 ))) 273 273 |((( 286 +(% class="western" align="center" %) 287 +4 288 +)))|((( 274 274 (% class="western" %) 275 -GET 290 +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. 291 +))) 292 +|((( 293 +(% class="western" align="center" %) 294 +5 276 276 )))|((( 277 277 (% class="western" %) 278 -/users/1 297 +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. 298 +))) 299 +|((( 300 +(% class="western" align="center" %) 301 +6 279 279 )))|((( 280 280 (% class="western" %) 281 - Getdataforuserid1.The useridcan be anumericvalueorahash304 +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. 282 282 ))) 306 + 307 +(% class="wrapped" %) 283 283 |((( 284 284 (% class="western" %) 285 - GET310 +**Method** 286 286 )))|((( 287 287 (% class="western" %) 288 - /users/lookup?1=user1@[[email.com>>url:http://email.com||shape="rect"]]&return=1,2313 +**Url** 289 289 )))|((( 290 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. 316 +**Action** 295 295 ))) 296 296 |((( 297 297 (% class="western" %) 298 - POST320 +GET 299 299 )))|((( 300 300 (% class="western" %) 301 -/u sers323 +/questions 302 302 )))|((( 303 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. 326 +List all questions 308 308 ))) 309 309 |((( 310 310 (% class="western" %) 311 - PUT330 +GET 312 312 )))|((( 313 313 (% class="western" %) 314 -/u sers/1333 +/questions/1 315 315 )))|((( 316 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. 336 +Returns question id 1 321 321 ))) 322 322 |((( 323 323 (% class="western" %) ... ... @@ -324,10 +324,10 @@ 324 324 GET 325 325 )))|((( 326 326 (% class="western" %) 327 -/u sers/1/partners/2343 +/questions/lookup?Text=Email 328 328 )))|((( 329 329 (% class="western" %) 330 - Getserid 1 andpartnerid 2'sONEcount hash.Theuseridcanbe a numeric valueora hash.346 +Returns all questions with “Email" in question text 331 331 ))) 332 332 |((( 333 333 (% class="western" %) ... ... @@ -334,40 +334,32 @@ 334 334 POST 335 335 )))|((( 336 336 (% class="western" %) 337 -/u sers/login353 +/questions 338 338 )))|((( 339 339 (% class="western" %) 340 -C heckto seeuserexistwithusername/email and password.356 +Create a new question 341 341 342 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 - 359 +JSON of the Questions type object needs to be sent as post data. Id field should not be sent. 360 +))) 361 +|((( 345 345 (% class="western" %) 346 - Example:347 - 363 +PUT 364 +)))|((( 348 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 - 366 +/questions 367 +)))|((( 351 351 (% class="western" %) 352 - OR369 +Update a question 353 353 354 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. 372 +JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update. 365 365 ))) 366 366 367 - \\375 + 368 368 369 369 (% class="western" %) 370 -**GET method shouldbe used to lookup users.**378 +**GET method can be used to lookup questions.** 371 371 372 372 (% class="wrapped" %) 373 373 |((( ... ... @@ -388,22 +388,18 @@ 388 388 String 389 389 )))|((( 390 390 (% class="western" %) 391 -URL encoded key value string parameters for the lookup. Returnpropertyhascsvof questionsid requestedbackinUsers object.399 +URL encoded key value string parameters for the question that a user is trying to search. 392 392 393 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"]]402 +Params: 395 395 396 396 (% class="western" %) 397 - return:csvofquestionidthatisrequested back. TheUsersobjectreturned will onlyhavethesepropertiesplus UserId(String)405 +Text: Word or phrase that should be present in the question text (String) 398 398 399 399 (% class="western" %) 400 - If returnis notprovided,allthedemographicswillbe returned.408 +Type: Look up the question type. 401 401 ))) 402 402 403 -\\ 404 - 405 -\\ 406 - 407 407 (% class="wrapped" %) 408 408 |((( 409 409 (% class="western" %) ... ... @@ -417,45 +417,19 @@ 417 417 ))) 418 418 |((( 419 419 (% class="western" %) 420 -Users 421 -)))|=((( 422 -(% class="western" align="left" %) 423 -Users 424 +Questions 424 424 )))|((( 425 425 (% class="western" %) 426 -Found users returned with the demo field requested in return parameter in json format 427 +Questions 428 +)))|((( 429 +(% class="western" %) 430 +Returns found question details. 427 427 ))) 428 428 429 - \\433 + 430 430 431 -**Sample response for /users/(% style="color: rgb(80,80,80);" %)25255449(%%)** 432 - 433 -Along with the demo in json format, the active packages and products of the user referred to as products and resources respectively are also returned. 434 - 435 -(% class="relative-table wrapped" style="width: 100.0%;" %) 436 -|=((( 437 -(% class="content-wrapper" %) 438 -((( 439 -[[image:attach:Screen Shot 2020-02-26 at 11.15.52 AM.png||width="1407"]] 440 -))) 441 -))) 442 - 443 -\\ 444 - 445 -**Sample response for /users/lookup?(% style="color: rgb(80,80,80);" %)11=santosh@[[one-count.com>>url:http://one-count.com||shape="rect"]]&return=2,3(%%)** 446 - 447 -(% class="wrapped" %) 448 -|=((( 449 -(% class="content-wrapper" %) 450 -((( 451 -[[image:attach:Screen Shot 2020-02-26 at 11.22.13 AM.png||height="250"]] 452 -))) 453 -))) 454 - 455 -\\ 456 - 457 457 (% class="western" %) 458 -**POST method should be used to create users.** 436 +**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).** 459 459 460 460 (% class="wrapped" %) 461 461 |((( ... ... @@ -470,49 +470,46 @@ 470 470 ))) 471 471 |((( 472 472 (% class="western" %) 473 - Users451 +Questions 474 474 )))|((( 475 475 (% class="western" %) 476 - Users454 +Questions 477 477 )))|((( 478 478 (% class="western" %) 479 - Users object that containsinformationabout userto create.PartnerIdNeeds tocified.457 +This defines the question contents and possible responses. 480 480 ))) 459 + 460 +(% class="wrapped" %) 481 481 |((( 482 482 (% class="western" %) 483 - Transactions463 +**Response** 484 484 )))|((( 485 485 (% class="western" %) 486 -T ransactions466 +**Type** 487 487 )))|((( 488 488 (% class="western" %) 489 - (Array of) transaction objectspecifying 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.469 +**Description** 490 490 ))) 491 491 |((( 492 492 (% class="western" %) 493 - DedupeColumns473 +QuestionId 494 494 )))|((( 495 495 (% class="western" %) 496 - String476 +Int 497 497 )))|((( 498 498 (% class="western" %) 499 - CSVofquestion id'sthatshouldbeconsideredto findduplicate.479 +Returns ONEcount question id on successful creation of the question. 500 500 ))) 501 -|((( 481 + 482 + 483 + 502 502 (% class="western" %) 503 -Return 504 -)))|((( 505 -(% class="western" %) 506 -String 507 -)))|((( 508 -(% class="western" %) 509 -CSV of ONEcount QuestionId's requested back in Users object in response. 510 -))) 485 +PUT method should be used to update question. 511 511 512 512 (% class="wrapped" %) 513 513 |((( 514 514 (% class="western" %) 515 -**Re sponse**490 +**Request** 516 516 )))|((( 517 517 (% class="western" %) 518 518 **Type** ... ... @@ -522,24 +522,19 @@ 522 522 ))) 523 523 |((( 524 524 (% class="western" %) 525 -Users 526 -)))|=((( 527 -(% class="western" align="left" %) 528 -Users 500 +Questions 529 529 )))|((( 530 530 (% class="western" %) 531 -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 +Questions 504 +)))|((( 505 +(% class="western" %) 506 +This defines the question contents and responses. 532 532 ))) 533 533 534 -\\ 535 - 536 -(% class="western" %) 537 -**PUT method should be used to update users.** 538 - 539 539 (% class="wrapped" %) 540 540 |((( 541 541 (% class="western" %) 542 -**Re quest**512 +**Response** 543 543 )))|((( 544 544 (% class="western" %) 545 545 **Type** ... ... @@ -549,174 +549,168 @@ 549 549 ))) 550 550 |((( 551 551 (% class="western" %) 552 - Users522 +QuestionId 553 553 )))|((( 554 554 (% class="western" %) 555 - Users525 +Int 556 556 )))|((( 557 557 (% class="western" %) 558 - Users object with update fields.Returnproperty has csvofquestionsidrequestedbackin Usersobject.528 +Returns ONEcount question id on successful update of the question. 559 559 ))) 560 - |(((530 + 561 561 (% class="western" %) 562 - Return563 - )))|(((532 + 533 + 564 564 (% class="western" %) 565 -String 566 -)))|((( 535 +Example: Get list of questions from api which has FirstName in text 536 + 537 +{{{curl -X GET -H “Appkey: xxx” https://api.onecount.net/v2/questions/lookup?Text=FirstName}}} 538 + 567 567 (% class="western" %) 568 -CSV of ONEcount QuestionId's requested back in Users object in response 569 -))) 570 -|((( 540 +{ 541 + 571 571 (% class="western" %) 572 - RequestDate573 - )))|(((543 +"result": { 544 + 574 574 (% class="western" %) 575 - Date576 - )))|(((546 +"success": "1", 547 + 577 577 (% class="western" %) 578 -RequestDate to use for the demo update. If not provided current date will be used. 579 -))) 549 +"error": { 580 580 581 -(% class="wrapped" %) 582 -|((( 583 583 (% class="western" %) 584 - **Response**585 - )))|(((552 +"code": "0", 553 + 586 586 (% class="western" %) 587 - **Type**588 - )))|(((555 +"message": "" 556 + 589 589 (% class="western" %) 590 -**Description** 591 -))) 592 -|((( 558 +} 559 + 593 593 (% class="western" %) 594 -Users 595 -)))|=((( 596 -(% class="western" align="left" %) 597 -Users 598 -)))|((( 561 +}, 562 + 599 599 (% class="western" %) 600 -Updated user returned with the demo field requested in return parameter in json format. 601 -))) 564 +"Questions": [ 602 602 603 603 (% class="western" %) 604 - \\567 +{ 605 605 606 606 (% class="western" %) 607 - \\570 +"Id": "6", 608 608 609 609 (% class="western" %) 610 - Createnew users. Here inthis examplethe JSON for request is passed in userFile.json file.573 +"Text": "FirstName", 611 611 612 -{{{curl -X POST -H “Appkey: xxx” -H "Content-Type: application/json" –data-binary -d '@userFile.json' https://api.onecount.net/v2/users}}} 575 +(% class="western" %) 576 +"Type": "1", 613 613 614 614 (% class="western" %) 615 -** 616 -** 579 +"Alias": "FName" 617 617 618 618 (% class="western" %) 619 -** 620 -** 582 +} 621 621 622 -\\ 584 +(% class="western" %) 585 +] 623 623 624 624 (% class="western" %) 625 - **COMPONENT: Questions**588 +} 626 626 627 627 (% class="western" %) 628 -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). 629 629 592 +**RESOURCE: Users** 593 + 630 630 (% class="western" %) 631 - Thisresource isformanipulatingquestions resource.Questionsin ONEcountans anyquestionthat is asked to the subscriber. Itcouldbeany questionsthat appearson customerformsprintformsthat getsanswered by a subscriber.Questionsapicallwillallowcreation,updateandsearch ofquestionin ONEcount.Toadd a newquestionstothesystemyou'llmakePOST api calltothequestions resource.595 +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. 632 632 633 633 (% class="western" %) 634 - Thedatathatissenthouldbe inJSON formatandof typequestionsasdescribedin Referencessection.Thetypepropertyof questionsobjectisdescribedbelow.Questionsobject willonlyneedachoicesblockifthequestionisamultiplechoicequestion(type=4or5or 6)598 +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. 635 635 636 636 (% class="western" %) 637 - There can be6types ofquestions:601 +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. 638 638 603 +(% class="western" %) 604 +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. 605 + 606 +(% class="western" %) 607 +Return parameter will have the comma separated list of question Ids that is requested back from the API. 608 + 609 +(% class="western" %) 610 +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. 611 + 612 +(% class="western" %) 613 + 614 + 639 639 (% class="wrapped" %) 640 640 |((( 641 -(% class="western" align="center" %) 642 -**Type** 643 -)))|((( 644 644 (% class="western" %) 645 -**Description** 646 -))) 647 -|((( 648 -(% class="western" align="center" %) 649 -1 618 +**Method** 650 650 )))|((( 651 651 (% class="western" %) 652 -Textbox type questions or short response type question. The response length needs to be less than 255 characters. 653 -))) 654 -|((( 655 -(% class="western" align="center" %) 656 -2 621 +**Url** 657 657 )))|((( 658 658 (% class="western" %) 659 - Textarea type questionor long response type question.624 +**Action** 660 660 ))) 661 661 |((( 662 -(% class="western" align="center"%)663 - 3627 +(% class="western" %) 628 +GET 664 664 )))|((( 665 665 (% class="western" %) 666 -Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *. 667 -))) 668 -|((( 669 -(% class="western" align="center" %) 670 -4 631 +/users 671 671 )))|((( 672 672 (% class="western" %) 673 - Selector dropdown type questions. This is a multiplechoice, 1responsetype question. When creating this type of question the choices block also needs to be partof the questions object thatwill hold the possible choices ofthe select question.634 +Get users data limiting 25. 674 674 ))) 675 675 |((( 676 -(% class="western" align="center"%)677 - 5637 +(% class="western" %) 638 +GET 678 678 )))|((( 679 679 (% class="western" %) 680 -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. 681 -))) 682 -|((( 683 -(% class="western" align="center" %) 684 -6 641 +/users/1 685 685 )))|((( 686 686 (% class="western" %) 687 - Checkboxtypequestion. This isamultiple choice,multi responsetype question.Whencreating this type of question thechoicesblockalsoneedstobepartof the questions objectthat will hold thepossiblechoicesof the checkbox question.644 +Get data for user id 1. The user id can be a numeric value or a hash 688 688 ))) 689 - 690 -(% class="wrapped" %) 691 691 |((( 692 692 (% class="western" %) 693 - **Method**648 +GET 694 694 )))|((( 695 695 (% class="western" %) 696 - **Url**651 +/users/lookup?1=user1@[[email.com>>url:http://email.com||shape="rect"]]&return=1,2 697 697 )))|((( 698 698 (% class="western" %) 699 -**Action** 654 +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. 655 + 656 +(% class="western" %) 657 +Return parameter defines a csv of question id that are requested back in response. 700 700 ))) 701 701 |((( 702 702 (% class="western" %) 703 - GET661 +POST 704 704 )))|((( 705 705 (% class="western" %) 706 -/ questions664 +/users 707 707 )))|((( 708 708 (% class="western" %) 709 -List all questions 667 +Create a new users 668 + 669 +(% class="western" %) 670 +Parameters required to create the user needs to be sent as post data in JSON format. 710 710 ))) 711 711 |((( 712 712 (% class="western" %) 713 - GET674 +PUT 714 714 )))|((( 715 715 (% class="western" %) 716 -/ questions/1677 +/users/1 717 717 )))|((( 718 718 (% class="western" %) 719 -Returns question id 1 680 +Update user id 1. The user id can be a numeric value or a hash 681 + 682 +(% class="western" %) 683 +Parameters required to update the user needs to be sent as post data in JSON format. 720 720 ))) 721 721 |((( 722 722 (% class="western" %) ... ... @@ -723,10 +723,10 @@ 723 723 GET 724 724 )))|((( 725 725 (% class="western" %) 726 -/ questions/lookup?Text=Email690 +/users/1/partners/2 727 727 )))|((( 728 728 (% class="western" %) 729 - Returns allquestionswith“Email"inquestiontext693 +Get user id 1 and partner id 2's ONEcount hash. The user id can be a numeric value or a hash. 730 730 ))) 731 731 |((( 732 732 (% class="western" %) ... ... @@ -733,32 +733,40 @@ 733 733 POST 734 734 )))|((( 735 735 (% class="western" %) 736 -/ questions700 +/users/login 737 737 )))|((( 738 738 (% class="western" %) 739 -C reateanewquestion703 +Check to see user exist with username/email and password. 740 740 741 741 (% class="western" %) 742 -JSON of the Questions type object needs to be sent as post data. Id field should not be sent. 743 -))) 744 -|((( 706 +Parameters required to create JSON object with **u** as username, **e** as email and **p** as password and sent is as POST param. 707 + 745 745 (% class="western" %) 746 - PUT747 - )))|(((709 +Example: 710 + 748 748 (% class="western" %) 749 - /questions750 - )))|(((712 +{"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"} 713 + 751 751 (% class="western" %) 752 - Update a question715 +OR 753 753 754 754 (% class="western" %) 755 -JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update. 718 +{"u":"[[abc@one-count.com>>mailto:abc@one-count.com||shape="rect" class="western"]]","p":"1234"} 719 + 720 +(% class="western" %) 721 +OR 722 + 723 +(% class="western" %) 724 +{"e":"[[abc@one-count.com>>mailto:abc@one-count.com||shape="rect" class="western"]]","p":"1234"} 725 + 726 +(% class="western" %) 727 +**OUTPUT** : Should get ocid of the user if it finds it otherwise get and error with msg user not found. 756 756 ))) 757 757 758 - \\730 + 759 759 760 760 (% class="western" %) 761 -**GET method canbe used to lookupquestions.**733 +**GET method should be used to lookup users.** 762 762 763 763 (% class="wrapped" %) 764 764 |((( ... ... @@ -779,18 +779,19 @@ 779 779 String 780 780 )))|((( 781 781 (% class="western" %) 782 -URL encoded key value string parameters for the question thatauser isryingtosearch.754 +URL encoded key value string parameters for the lookup. Return property has csv of questions id requested back in Users object. 783 783 784 784 (% class="western" %) 785 -Params: 757 +Params: Value of question Ids: Key value for Lookup question ids for e.g. 1=user1@[[email.com>>url:http://email.com||shape="rect"]] 786 786 787 787 (% class="western" %) 788 -Text: Word or phrase that should be present in the question text (String) 789 - 790 -(% class="western" %) 791 -Type: Look up the question type. 760 +return: csv of question id that is requested back. The Users object returned will only have these properties plus UserId (String) 792 792 ))) 793 793 763 + 764 + 765 + 766 + 794 794 (% class="wrapped" %) 795 795 |((( 796 796 (% class="western" %) ... ... @@ -804,19 +804,19 @@ 804 804 ))) 805 805 |((( 806 806 (% class="western" %) 807 -Questions 780 +Users 781 +)))|=((( 782 +(% class="western" align="left" %) 783 +Users 808 808 )))|((( 809 809 (% class="western" %) 810 -Questions 811 -)))|((( 812 -(% class="western" %) 813 -Returns found question details. 786 +Found users returned with the demo field requested in return parameter in json format. 814 814 ))) 815 815 816 - \\789 + 817 817 818 818 (% class="western" %) 819 -**POST method should be used to create questions. Thedata 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).**792 +**POST method should be used to create users.** 820 820 821 821 (% class="wrapped" %) 822 822 |((( ... ... @@ -831,46 +831,49 @@ 831 831 ))) 832 832 |((( 833 833 (% class="western" %) 834 - Questions807 +Users 835 835 )))|((( 836 836 (% class="western" %) 837 - Questions810 +Users 838 838 )))|((( 839 839 (% class="western" %) 840 - Thisdefinesthequestioncontentsandpossibleresponses.813 +Users object that contains information about user to create. PartnerId Needs to be specified. 841 841 ))) 842 - 843 -(% class="wrapped" %) 844 844 |((( 845 845 (% class="western" %) 846 - **Response**817 +Transactions 847 847 )))|((( 848 848 (% class="western" %) 849 - **Type**820 +Transactions 850 850 )))|((( 851 851 (% class="western" %) 852 - **Description**823 +(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. 853 853 ))) 854 854 |((( 855 855 (% class="western" %) 856 - QuestionId827 +DedupeColumns 857 857 )))|((( 858 858 (% class="western" %) 859 - Int830 +String 860 860 )))|((( 861 861 (% class="western" %) 862 - ReturnsONEcountquestion idonsuccessful creationofthe question.833 +CSV of question id's that should be considered to find duplicate. 863 863 ))) 864 - 865 -\\ 866 - 835 +|((( 867 867 (% class="western" %) 868 -PUT method should be used to update question. 837 +Return 838 +)))|((( 839 +(% class="western" %) 840 +String 841 +)))|((( 842 +(% class="western" %) 843 +CSV of ONEcount QuestionId's requested back in Users object in response. 844 +))) 869 869 870 870 (% class="wrapped" %) 871 871 |((( 872 872 (% class="western" %) 873 -**Re quest**849 +**Response** 874 874 )))|((( 875 875 (% class="western" %) 876 876 **Type** ... ... @@ -880,19 +880,24 @@ 880 880 ))) 881 881 |((( 882 882 (% class="western" %) 883 -Questions 859 +Users 860 +)))|=((( 861 +(% class="western" align="left" %) 862 +Users 884 884 )))|((( 885 885 (% class="western" %) 886 -Questions 887 -)))|((( 888 -(% class="western" %) 889 -This defines the question contents and responses. 865 +Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned. 890 890 ))) 891 891 868 + 869 + 870 +(% class="western" %) 871 +**PUT method should be used to update users.** 872 + 892 892 (% class="wrapped" %) 893 893 |((( 894 894 (% class="western" %) 895 -**Re sponse**876 +**Request** 896 896 )))|((( 897 897 (% class="western" %) 898 898 **Type** ... ... @@ -902,81 +902,72 @@ 902 902 ))) 903 903 |((( 904 904 (% class="western" %) 905 - QuestionId886 +Users 906 906 )))|((( 907 907 (% class="western" %) 908 - Int889 +Users 909 909 )))|((( 910 910 (% class="western" %) 911 -Returns ONEcountquestion idon successful updateofthequestion.892 +Users object with update fields. Return property has csv of questions id requested back in Users object. 912 912 ))) 913 - 894 +|((( 914 914 (% class="western" %) 915 - \\916 - 896 +Return 897 +)))|((( 917 917 (% class="western" %) 918 -Example: Get list of questions from api which has FirstName in text 919 - 920 -{{{curl -X GET -H “Appkey: xxx” https://api.onecount.net/v2/questions/lookup?Text=FirstName}}} 921 - 899 +String 900 +)))|((( 922 922 (% class="western" %) 923 -{ 924 - 902 +CSV of ONEcount QuestionId's requested back in Users object in response 903 +))) 904 +|((( 925 925 (% class="western" %) 926 - "result": {927 - 906 +RequestDate 907 +)))|((( 928 928 (% class="western" %) 929 - "success": "1",930 - 909 +Date 910 +)))|((( 931 931 (% class="western" %) 932 -"error": { 912 +RequestDate to use for the demo update. If not provided current date will be used. 913 +))) 933 933 915 +(% class="wrapped" %) 916 +|((( 934 934 (% class="western" %) 935 - "code": "0",936 - 918 +**Response** 919 +)))|((( 937 937 (% class="western" %) 938 - "message": ""939 - 921 +**Type** 922 +)))|((( 940 940 (% class="western" %) 941 -} 942 - 924 +**Description** 925 +))) 926 +|((( 943 943 (% class="western" %) 944 -}, 945 - 928 +Users 929 +)))|=((( 930 +(% class="western" align="left" %) 931 +Users 932 +)))|((( 946 946 (% class="western" %) 947 -"Questions": [ 934 +Updated user returned with the demo field requested in return parameter in json format. 935 +))) 948 948 949 949 (% class="western" %) 950 - {938 + 951 951 952 952 (% class="western" %) 953 - "Id":"6",941 + 954 954 955 955 (% class="western" %) 956 - "Text":"FirstName",944 +Create new users. Here in this example the JSON for request is passed in userFile.json file. 957 957 958 -(% class="western" %) 959 -"Type": "1", 946 +{{{curl -X POST -H “Appkey: xxx” -H "Content-Type: application/json" –data-binary -d '@userFile.json' https://api.onecount.net/v2/users}}} 960 960 961 961 (% class="western" %) 962 - "Alias": "FName"949 +**Products** 963 963 964 964 (% class="western" %) 965 -} 966 - 967 -(% class="western" %) 968 -] 969 - 970 -(% class="western" %) 971 -} 972 - 973 -(% class="western" %) 974 -\\ 975 - 976 -(% class="western" %) 977 -**COMPONENT: Products** 978 - 979 -(% class="western" %) 980 980 This resource is for manipulating products resource. A product can be created, updated or searched. 981 981 982 982 (% class="wrapped" %) ... ... @@ -1060,7 +1060,7 @@ 1060 1060 {"ProductID":"65","ResourceID":”121"} 1061 1061 ))) 1062 1062 1063 - \\1035 + 1064 1064 1065 1065 (% class="western" %) 1066 1066 **GET method should be used to lookup products.** ... ... @@ -1115,7 +1115,7 @@ 1115 1115 Returns found product details. 1116 1116 ))) 1117 1117 1118 - \\1090 + 1119 1119 1120 1120 (% class="western" %) 1121 1121 **POST method should be used to create products.** ... ... @@ -1145,7 +1145,7 @@ 1145 1145 Example: 1146 1146 1147 1147 (% class="western" %) 1148 -{"Title":"Test123","Description": "Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17}1120 +{"Title":"Test123","Description":Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17} 1149 1149 ))) 1150 1150 1151 1151 (% class="wrapped" %) ... ... @@ -1170,7 +1170,7 @@ 1170 1170 Product Id of the newly created product. 1171 1171 ))) 1172 1172 1173 - \\1145 + 1174 1174 1175 1175 (% class="western" %) 1176 1176 PUT method should be used to update an individual product given the product info. ... ... @@ -1203,7 +1203,7 @@ 1203 1203 **Example**: 1204 1204 1205 1205 (% class="western" %) 1206 -{"Title":"Test123","Description": "Testss","PrimaryFormId":10,"ResourceID":17}1178 +{"Title":"Test123","Description":Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17} 1207 1207 ))) 1208 1208 1209 1209 (% class="wrapped" %) ... ... @@ -1228,10 +1228,10 @@ 1228 1228 Product id of the updated product. 1229 1229 ))) 1230 1230 1231 - \\1203 + 1232 1232 1233 1233 (% class="western" %) 1234 -** COMPONENT: Terms**1206 +**Terms** 1235 1235 1236 1236 (% class="western" %) 1237 1237 This resource is for manipulating terms resource. A term can be created, updated or searched. ... ... @@ -1288,7 +1288,7 @@ 1288 1288 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update. 1289 1289 ))) 1290 1290 1291 - \\1263 + 1292 1292 1293 1293 (% class="western" %) 1294 1294 **GET method should be used to lookup products.** ... ... @@ -1343,7 +1343,7 @@ 1343 1343 Returns found term details. 1344 1344 ))) 1345 1345 1346 - \\1318 + 1347 1347 1348 1348 (% class="western" %) 1349 1349 **POST method should be used to create products.** ... ... @@ -1401,7 +1401,7 @@ 1401 1401 Term Id of the newly created term. 1402 1402 ))) 1403 1403 1404 - \\1376 + 1405 1405 1406 1406 (% class="western" %) 1407 1407 PUT method should be used to update an individual term given the term info. ... ... @@ -1428,7 +1428,7 @@ 1428 1428 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. 1429 1429 1430 1430 (% class="western" %) 1431 - \\1403 + 1432 1432 1433 1433 (% class="western" %) 1434 1434 **Example**: ... ... @@ -1459,48 +1459,12 @@ 1459 1459 term id of the updated term. 1460 1460 ))) 1461 1461 1462 - \\1434 + 1463 1463 1464 1464 (% class="western" %) 1465 -** COMPONENT:Resources**1437 +**Resources** 1466 1466 1467 1467 (% class="western" %) 1468 -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. 1469 - 1470 -* ((( 1471 -(% class="western" %) 1472 -questions 1473 -))) 1474 -* ((( 1475 -(% class="western" %) 1476 -users 1477 -))) 1478 -* ((( 1479 -(% class="western" %) 1480 -products 1481 -))) 1482 -* ((( 1483 -(% class="western" %) 1484 -terms 1485 -))) 1486 -* ((( 1487 -(% class="western" %) 1488 -resources 1489 -))) 1490 -* ((( 1491 -(% class="western" %) 1492 -sources 1493 -))) 1494 -* ((( 1495 -(% class="western" %) 1496 -transactions 1497 -))) 1498 - 1499 -(% class="western" %) 1500 -** 1501 -** 1502 - 1503 -(% class="western" %) 1504 1504 This resource is for manipulating resources resource. A resource can be created, updated or searched. 1505 1505 1506 1506 (% class="wrapped" %) ... ... @@ -1555,10 +1555,10 @@ 1555 1555 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update. 1556 1556 ))) 1557 1557 1558 - \\1494 + 1559 1559 1560 1560 (% class="western" %) 1561 -**GET method should be used to lookup r esources.**1497 +**GET method should be used to lookup products.** 1562 1562 1563 1563 (% class="wrapped" %) 1564 1564 |((( ... ... @@ -1610,10 +1610,10 @@ 1610 1610 Returns found resource details. 1611 1611 ))) 1612 1612 1613 - \\1549 + 1614 1614 1615 1615 (% class="western" %) 1616 -**POST method should be used to create r esources.**1552 +**POST method should be used to create products.** 1617 1617 1618 1618 (% class="wrapped" %) 1619 1619 |((( ... ... @@ -1637,7 +1637,7 @@ 1637 1637 resource details in json to be sent as post data. Id should not be set. 1638 1638 1639 1639 (% class="western" %) 1640 -**Possible Request Params**: Name, Description, Type, Value , FreePass1576 +**Possible Request Params**: Name, Description, Type, Value 1641 1641 1642 1642 (% class="western" %) 1643 1643 **Example**: ... ... @@ -1644,15 +1644,6 @@ 1644 1644 1645 1645 (% class="western" %) 1646 1646 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 1647 - 1648 -(% class="western" %) 1649 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1650 - 1651 -(% class="western" %) 1652 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”, "FreePass":1} 1653 - 1654 -(% class="western" %) 1655 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 1656 1656 ))) 1657 1657 1658 1658 (% class="wrapped" %) ... ... @@ -1677,7 +1677,7 @@ 1677 1677 Resource Id of the newly created resource. 1678 1678 ))) 1679 1679 1680 - \\1607 + 1681 1681 1682 1682 (% class="western" %) 1683 1683 PUT method should be used to update an individual resource given the resource info. ... ... @@ -1701,25 +1701,16 @@ 1701 1701 Resource 1702 1702 )))|((( 1703 1703 (% class="western" %) 1704 -Resource details to be updated injsonformat to be sent withrequest. Id property needs to be set to identify the resource to be updated. 1631 +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. 1705 1705 1706 1706 (% class="western" %) 1707 - \\1634 + 1708 1708 1709 1709 (% class="western" %) 1710 -Example s:1637 +Example: 1711 1711 1712 1712 (% class="western" %) 1713 1713 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 1714 - 1715 -(% class="western" %) 1716 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1717 - 1718 -(% class="western" %) 1719 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”,"FreePass":1} 1720 - 1721 -(% class="western" %) 1722 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 1723 1723 ))) 1724 1724 1725 1725 (% class="wrapped" %) ... ... @@ -1744,20 +1744,52 @@ 1744 1744 resource id of the updated resource. 1745 1745 ))) 1746 1746 1747 - \\1665 + 1748 1748 1749 -\\ 1667 +(% class="western" %) 1668 +**Resources** 1750 1750 1751 1751 (% class="western" %) 1752 - \\1671 +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. 1753 1753 1673 +* ((( 1754 1754 (% class="western" %) 1755 -**COMPONENT: Source Codes 1756 -** 1675 +questions 1676 +))) 1677 +* ((( 1678 +(% class="western" %) 1679 +users 1680 +))) 1681 +* ((( 1682 +(% class="western" %) 1683 +products 1684 +))) 1685 +* ((( 1686 +(% class="western" %) 1687 +terms 1688 +))) 1689 +* ((( 1690 +(% class="western" %) 1691 +resources 1692 +))) 1693 +* ((( 1694 +(% class="western" %) 1695 +sources 1696 +))) 1697 +* ((( 1698 +(% class="western" %) 1699 +transactions 1700 +))) 1757 1757 1758 1758 (% class="western" %) 1759 - Thisresource is for manipulating source code for a resource. A source code can be created, updated or searched.1703 + 1760 1760 1705 +(% class="western" %) 1706 +**Sources** 1707 + 1708 +(% class="western" %) 1709 +This resource is for manipulating sources resource. A source can be created, updated or searched. 1710 + 1761 1761 (% class="wrapped" %) 1762 1762 |((( 1763 1763 (% class="western" %) ... ... @@ -1810,7 +1810,7 @@ 1810 1810 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update. 1811 1811 ))) 1812 1812 1813 - \\1763 + 1814 1814 1815 1815 (% class="western" %) 1816 1816 **Sources can be looked up given the code or Id. GET method should be used for lookup.** ... ... @@ -1865,10 +1865,10 @@ 1865 1865 Returns found source details. 1866 1866 ))) 1867 1867 1868 - \\1818 + 1869 1869 1870 1870 (% class="western" %) 1871 - \\1821 + 1872 1872 1873 1873 (% class="western" %) 1874 1874 POST method should be used to create an individual source given the source parameters. ... ... @@ -1917,7 +1917,7 @@ 1917 1917 Returns created source code id. 1918 1918 ))) 1919 1919 1920 - \\1870 + 1921 1921 1922 1922 (% class="western" %) 1923 1923 **PUT method can be used to update an individual source given the id.** ... ... @@ -1966,13 +1966,13 @@ 1966 1966 Returns updated source id. 1967 1967 ))) 1968 1968 1969 - \\1919 + 1970 1970 1971 1971 (% class="western" %) 1972 - \\1922 + 1973 1973 1974 1974 (% class="western" %) 1975 -** COMPONENT: Transactions**1925 +**Transactions** 1976 1976 1977 1977 (% class="western" %) 1978 1978 This resource is for manipulating transactions resource. A transaction can be created or searched. ... ... @@ -2019,10 +2019,10 @@ 2019 2019 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent. 2020 2020 ))) 2021 2021 2022 - \\1972 + 2023 2023 2024 2024 (% class="western" %) 2025 - \\1975 + 2026 2026 2027 2027 (% class="western" %) 2028 2028 Transactions can be looked up using transactionId, date range, userid. Use GET method to do lookup. ... ... @@ -2061,7 +2061,11 @@ 2061 2061 EndDate: When the search should end. Only valid when UserId is set. (Date) 2062 2062 ))) 2063 2063 2064 -(% class="wrapped" style="letter-spacing: 0.0px;" %) 2014 + 2015 + 2016 + 2017 + 2018 +(% class="wrapped" %) 2065 2065 |((( 2066 2066 (% class="western" %) 2067 2067 **Response** ... ... @@ -2080,23 +2080,11 @@ 2080 2080 Transactions 2081 2081 )))|((( 2082 2082 (% class="western" %) 2083 -Returns all transaction that satisfies the search criteria. Returns all the package and product transactions of the user. Package Transactions are the one with TermId and ProductId. Product Transactions are the one with ResourceId.2037 +Returns all transaction that satisfies the search criteria. 2084 2084 ))) 2085 2085 2086 - \\2040 + 2087 2087 2088 -**Sample response for /(% style="color: rgb(80,80,80);" %)transactions/lookup?UserId=25255105:(%%)** 2089 - 2090 -(% class="wrapped" %) 2091 -|=((( 2092 -(% class="content-wrapper" %) 2093 -((( 2094 -[[image:attach:Screen Shot 2020-02-26 at 11.14.29 AM.png||width="1407"]] 2095 -))) 2096 -))) 2097 - 2098 -\\ 2099 - 2100 2100 (% class="western" %) 2101 2101 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. 2102 2102 ... ... @@ -2144,35 +2144,39 @@ 2144 2144 Returns transactionId of the newly created transaction. 2145 2145 ))) 2146 2146 2147 - \\2089 + 2148 2148 2149 - \\2091 + 2150 2150 2093 + 2094 + 2095 + 2096 + 2097 + 2098 + 2151 2151 (% class="western" %) 2152 -**COMPONENT: Leads 2153 -** 2100 +**Stats** 2154 2154 2155 2155 (% class="western" %) 2156 2156 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. 2157 2157 2158 2158 (% class="western" %) 2159 - \\2106 + 2160 2160 2161 2161 (% class="western" %) 2162 - \\2109 + 2163 2163 2164 2164 (% class="western" %) 2165 - \\2112 + 2166 2166 2167 2167 (% class="western" %) 2168 - \\2115 + 2169 2169 2170 2170 (% class="western" %) 2171 - \\2118 + 2172 2172 2173 2173 (% class="western" %) 2174 -**Telemarketing Leads 2175 -** 2121 +**Telemarketing** 2176 2176 2177 2177 (% class="western" %) 2178 2178 ... ... @@ -2220,7 +2220,7 @@ 2220 2220 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent. 2221 2221 ))) 2222 2222 2223 - \\2169 + 2224 2224 2225 2225 (% class="western" %) 2226 2226 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. ... ... @@ -2290,13 +2290,13 @@ 2290 2290 ))) 2291 2291 |((( 2292 2292 (% class="western" %) 2293 - \\2239 + 2294 2294 )))|((( 2295 2295 (% class="western" %) 2296 - \\2242 + 2297 2297 )))|((( 2298 2298 (% class="western" %) 2299 - \\2245 + 2300 2300 ))) 2301 2301 2302 2302 (% class="wrapped" %) ... ... @@ -2321,18 +2321,18 @@ 2321 2321 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format. 2322 2322 ))) 2323 2323 2324 - \\2270 + 2325 2325 2326 - \\2272 + 2327 2327 2328 - \\2274 + 2329 2329 2330 - \\2276 + 2331 2331 2332 - \\2278 + 2333 2333 2334 2334 (% class="western" %) 2335 -** APIREFERENCE**2281 +**Reference** 2336 2336 2337 2337 (% class="western" %) 2338 2338 **Type: Questions** ... ... @@ -2378,12 +2378,12 @@ 2378 2378 (% class="western" %) 2379 2379 Determines which type of question it is. Textbox, checkbox, select, radio. 2380 2380 There can be 6 types of questions. 2381 -type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters. 2382 -type=2 means textarea type question or long response type question. 2383 -type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as * 2384 -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. 2385 -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. 2386 -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. 2327 + type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters. 2328 + type=2 means textarea type question or long response type question. 2329 + type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as * 2330 + 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. 2331 + 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. 2332 + 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. 2387 2387 ))) 2388 2388 |((( 2389 2389 (% class="western" %) ... ... @@ -2406,13 +2406,13 @@ 2406 2406 Alias for admin purpose. 2407 2407 ))) 2408 2408 2409 - \\2355 + 2410 2410 2411 2411 (% class="western" %) 2412 - \\2358 + 2413 2413 2414 2414 (% class="western" %) 2415 - \\2361 + 2416 2416 2417 2417 (% class="western" %) 2418 2418 **Type: Choices** ... ... @@ -2479,7 +2479,7 @@ 2479 2479 Tied to which question id. 2480 2480 ))) 2481 2481 2482 - \\2428 + 2483 2483 2484 2484 (% class="western" %) 2485 2485 **Type: Users** ... ... @@ -2536,7 +2536,7 @@ 2536 2536 Request date. 2537 2537 ))) 2538 2538 2539 - \\2485 + 2540 2540 2541 2541 (% class="western" %) 2542 2542 **Type: Demo** ... ... @@ -2583,7 +2583,7 @@ 2583 2583 ... 2584 2584 ))) 2585 2585 2586 - \\2532 + 2587 2587 2588 2588 (% class="western" %) 2589 2589 **Type: Transactions** ... ... @@ -2730,7 +2730,7 @@ 2730 2730 If there is amount (USD) included in transaction. 2731 2731 ))) 2732 2732 2733 - \\2679 + 2734 2734 2735 2735 (% class="western" %) 2736 2736 **Type: Sources** ... ... @@ -2787,10 +2787,10 @@ 2787 2787 If this is a child source then list the parent source id. 2788 2788 ))) 2789 2789 2790 - \\2736 + 2791 2791 2792 2792 (% class="western" %) 2793 - \\2739 + 2794 2794 2795 2795 (% class="western" %) 2796 2796 **Type: Products** ... ... @@ -2847,7 +2847,7 @@ 2847 2847 (Array of) Terms associated with the product. 2848 2848 ))) 2849 2849 2850 - \\2796 + 2851 2851 2852 2852 (% class="western" %) 2853 2853 **Type: Terms** ... ... @@ -2934,7 +2934,7 @@ 2934 2934 If there is price (USD) for the term. 2935 2935 ))) 2936 2936 2937 - \\2883 + 2938 2938 2939 2939 (% class="western" %) 2940 2940 **Type: Resources** ... ... @@ -3011,30 +3011,14 @@ 3011 3011 )))|((( 3012 3012 (% class="western" %) 3013 3013 String 3014 - 3015 -(% class="western" %) 3016 -or 3017 - 3018 -(% class="western" %) 3019 -Array 3020 3020 )))|((( 3021 3021 (% class="western" %) 3022 -Value of Resource Type :2962 +Value of Resource Type. 3023 3023 3024 3024 (% class="western" %) 3025 - When requesting a resource (GET), you should expectastring if thereis onlyonevalue.Ifthereare multiple values,youshould expectan array.2965 +Example : if the Type sent is 3 then Value would be **/digital/** 3026 3026 3027 3027 (% class="western" %) 3028 -For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests. 3029 - 3030 -(% class="western" %) 3031 -Example : 3032 - 3033 -(% class="western" %) 3034 -if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].** ** 3035 -**if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 3036 - 3037 -(% class="western" %) 3038 3038 For Function type resource leave it blank. 3039 3039 ))) 3040 3040 |((( ... ... @@ -3045,20 +3045,10 @@ 3045 3045 Int 3046 3046 )))|((( 3047 3047 (% class="western" %) 3048 -Default limit is 25 but ifall the data needs to be pulled then pass limit=0.2978 +Default limit is 25 but all the data needs to be pulled then pass limit=0. 3049 3049 ))) 3050 -|(% colspan="1" %)(% colspan="1" %) 3051 -((( 3052 -FreePass 3053 -)))|(% colspan="1" %)(% colspan="1" %) 3054 -((( 3055 -Int 3056 -)))|(% colspan="1" %)(% colspan="1" %) 3057 -((( 3058 -Default value is 0. This parameter is used to provide access to protected content. 3059 -))) 3060 3060 3061 - \\2981 + 3062 3062 3063 3063 (% class="western" %) 3064 3064 **Type: Telemarketing** ... ... @@ -3148,12 +3148,8 @@ 3148 3148 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. 3149 3149 3150 3150 (% class="western" %) 3151 - \\3071 + 3152 3152 3153 3153 (% class="western" %) 3154 3154 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. 3155 3155 ))) 3156 - 3157 -\\ 3158 - 3159 -\\
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 - 667157901 +3539009 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/ 66715790/ONEcount API Documentation1 +https://info.onecount.net//wiki/spaces/OD/pages/3539009/ONEcount API Documentation