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,42 +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 -(% class="relative-table" style="width: 100.0%;" %) 434 -|=((( 435 -(% class="content-wrapper" %) 436 -((( 437 -[[image:attach:Screen Shot 2020-02-26 at 11.15.52 AM.png||width="1407"]] 438 -))) 439 -))) 440 - 441 -\\ 442 - 443 -**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(%%)** 444 - 445 -|=((( 446 -(% class="content-wrapper" %) 447 -((( 448 -[[image:attach:Screen Shot 2020-02-26 at 11.22.13 AM.png||height="250"]] 449 -))) 450 -))) 451 - 452 -\\ 453 - 454 454 (% class="western" %) 455 -**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).** 456 456 457 457 (% class="wrapped" %) 458 458 |((( ... ... @@ -467,49 +467,46 @@ 467 467 ))) 468 468 |((( 469 469 (% class="western" %) 470 - Users451 +Questions 471 471 )))|((( 472 472 (% class="western" %) 473 - Users454 +Questions 474 474 )))|((( 475 475 (% class="western" %) 476 - Users object that containsinformationabout userto create.PartnerIdNeeds tocified.457 +This defines the question contents and possible responses. 477 477 ))) 459 + 460 +(% class="wrapped" %) 478 478 |((( 479 479 (% class="western" %) 480 - Transactions463 +**Response** 481 481 )))|((( 482 482 (% class="western" %) 483 -T ransactions466 +**Type** 484 484 )))|((( 485 485 (% class="western" %) 486 - (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** 487 487 ))) 488 488 |((( 489 489 (% class="western" %) 490 - DedupeColumns473 +QuestionId 491 491 )))|((( 492 492 (% class="western" %) 493 - String476 +Int 494 494 )))|((( 495 495 (% class="western" %) 496 - CSVofquestion id'sthatshouldbeconsideredto findduplicate.479 +Returns ONEcount question id on successful creation of the question. 497 497 ))) 498 -|((( 481 + 482 + 483 + 499 499 (% class="western" %) 500 -Return 501 -)))|((( 502 -(% class="western" %) 503 -String 504 -)))|((( 505 -(% class="western" %) 506 -CSV of ONEcount QuestionId's requested back in Users object in response. 507 -))) 485 +PUT method should be used to update question. 508 508 509 509 (% class="wrapped" %) 510 510 |((( 511 511 (% class="western" %) 512 -**Re sponse**490 +**Request** 513 513 )))|((( 514 514 (% class="western" %) 515 515 **Type** ... ... @@ -519,24 +519,19 @@ 519 519 ))) 520 520 |((( 521 521 (% class="western" %) 522 -Users 523 -)))|=((( 524 -(% class="western" align="left" %) 525 -Users 500 +Questions 526 526 )))|((( 527 527 (% class="western" %) 528 -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. 529 529 ))) 530 530 531 -\\ 532 - 533 -(% class="western" %) 534 -**PUT method should be used to update users.** 535 - 536 536 (% class="wrapped" %) 537 537 |((( 538 538 (% class="western" %) 539 -**Re quest**512 +**Response** 540 540 )))|((( 541 541 (% class="western" %) 542 542 **Type** ... ... @@ -546,174 +546,168 @@ 546 546 ))) 547 547 |((( 548 548 (% class="western" %) 549 - Users522 +QuestionId 550 550 )))|((( 551 551 (% class="western" %) 552 - Users525 +Int 553 553 )))|((( 554 554 (% class="western" %) 555 - Users object with update fields.Returnproperty has csvofquestionsidrequestedbackin Usersobject.528 +Returns ONEcount question id on successful update of the question. 556 556 ))) 557 - |(((530 + 558 558 (% class="western" %) 559 - Return560 - )))|(((532 + 533 + 561 561 (% class="western" %) 562 -String 563 -)))|((( 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 + 564 564 (% class="western" %) 565 -CSV of ONEcount QuestionId's requested back in Users object in response 566 -))) 567 -|((( 540 +{ 541 + 568 568 (% class="western" %) 569 - RequestDate570 - )))|(((543 +"result": { 544 + 571 571 (% class="western" %) 572 - Date573 - )))|(((546 +"success": "1", 547 + 574 574 (% class="western" %) 575 -RequestDate to use for the demo update. If not provided current date will be used. 576 -))) 549 +"error": { 577 577 578 -(% class="wrapped" %) 579 -|((( 580 580 (% class="western" %) 581 - **Response**582 - )))|(((552 +"code": "0", 553 + 583 583 (% class="western" %) 584 - **Type**585 - )))|(((555 +"message": "" 556 + 586 586 (% class="western" %) 587 -**Description** 588 -))) 589 -|((( 558 +} 559 + 590 590 (% class="western" %) 591 -Users 592 -)))|=((( 593 -(% class="western" align="left" %) 594 -Users 595 -)))|((( 561 +}, 562 + 596 596 (% class="western" %) 597 -Updated user returned with the demo field requested in return parameter in json format. 598 -))) 564 +"Questions": [ 599 599 600 600 (% class="western" %) 601 - \\567 +{ 602 602 603 603 (% class="western" %) 604 - \\570 +"Id": "6", 605 605 606 606 (% class="western" %) 607 - Createnew users. Here inthis examplethe JSON for request is passed in userFile.json file.573 +"Text": "FirstName", 608 608 609 -{{{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", 610 610 611 611 (% class="western" %) 612 -** 613 -** 579 +"Alias": "FName" 614 614 615 615 (% class="western" %) 616 -** 617 -** 582 +} 618 618 619 -\\ 584 +(% class="western" %) 585 +] 620 620 621 621 (% class="western" %) 622 - **COMPONENT: Questions**588 +} 623 623 624 624 (% class="western" %) 625 -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). 626 626 592 +**RESOURCE: Users** 593 + 627 627 (% class="western" %) 628 - 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. 629 629 630 630 (% class="western" %) 631 - 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. 632 632 633 633 (% class="western" %) 634 - 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. 635 635 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 + 636 636 (% class="wrapped" %) 637 637 |((( 638 -(% class="western" align="center" %) 639 -**Type** 640 -)))|((( 641 641 (% class="western" %) 642 -**Description** 643 -))) 644 -|((( 645 -(% class="western" align="center" %) 646 -1 618 +**Method** 647 647 )))|((( 648 648 (% class="western" %) 649 -Textbox type questions or short response type question. The response length needs to be less than 255 characters. 650 -))) 651 -|((( 652 -(% class="western" align="center" %) 653 -2 621 +**Url** 654 654 )))|((( 655 655 (% class="western" %) 656 - Textarea type questionor long response type question.624 +**Action** 657 657 ))) 658 658 |((( 659 -(% class="western" align="center"%)660 - 3627 +(% class="western" %) 628 +GET 661 661 )))|((( 662 662 (% class="western" %) 663 -Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *. 664 -))) 665 -|((( 666 -(% class="western" align="center" %) 667 -4 631 +/users 668 668 )))|((( 669 669 (% class="western" %) 670 - 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. 671 671 ))) 672 672 |((( 673 -(% class="western" align="center"%)674 - 5637 +(% class="western" %) 638 +GET 675 675 )))|((( 676 676 (% class="western" %) 677 -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. 678 -))) 679 -|((( 680 -(% class="western" align="center" %) 681 -6 641 +/users/1 682 682 )))|((( 683 683 (% class="western" %) 684 - 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 685 685 ))) 686 - 687 -(% class="wrapped" %) 688 688 |((( 689 689 (% class="western" %) 690 - **Method**648 +GET 691 691 )))|((( 692 692 (% class="western" %) 693 - **Url**651 +/users/lookup?1=user1@[[email.com>>url:http://email.com||shape="rect"]]&return=1,2 694 694 )))|((( 695 695 (% class="western" %) 696 -**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. 697 697 ))) 698 698 |((( 699 699 (% class="western" %) 700 - GET661 +POST 701 701 )))|((( 702 702 (% class="western" %) 703 -/ questions664 +/users 704 704 )))|((( 705 705 (% class="western" %) 706 -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. 707 707 ))) 708 708 |((( 709 709 (% class="western" %) 710 - GET674 +PUT 711 711 )))|((( 712 712 (% class="western" %) 713 -/ questions/1677 +/users/1 714 714 )))|((( 715 715 (% class="western" %) 716 -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. 717 717 ))) 718 718 |((( 719 719 (% class="western" %) ... ... @@ -720,10 +720,10 @@ 720 720 GET 721 721 )))|((( 722 722 (% class="western" %) 723 -/ questions/lookup?Text=Email690 +/users/1/partners/2 724 724 )))|((( 725 725 (% class="western" %) 726 - 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. 727 727 ))) 728 728 |((( 729 729 (% class="western" %) ... ... @@ -730,32 +730,40 @@ 730 730 POST 731 731 )))|((( 732 732 (% class="western" %) 733 -/ questions700 +/users/login 734 734 )))|((( 735 735 (% class="western" %) 736 -C reateanewquestion703 +Check to see user exist with username/email and password. 737 737 738 738 (% class="western" %) 739 -JSON of the Questions type object needs to be sent as post data. Id field should not be sent. 740 -))) 741 -|((( 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 + 742 742 (% class="western" %) 743 - PUT744 - )))|(((709 +Example: 710 + 745 745 (% class="western" %) 746 - /questions747 - )))|(((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 + 748 748 (% class="western" %) 749 - Update a question715 +OR 750 750 751 751 (% class="western" %) 752 -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. 753 753 ))) 754 754 755 - \\730 + 756 756 757 757 (% class="western" %) 758 -**GET method canbe used to lookupquestions.**733 +**GET method should be used to lookup users.** 759 759 760 760 (% class="wrapped" %) 761 761 |((( ... ... @@ -776,18 +776,19 @@ 776 776 String 777 777 )))|((( 778 778 (% class="western" %) 779 -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. 780 780 781 781 (% class="western" %) 782 -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"]] 783 783 784 784 (% class="western" %) 785 -Text: Word or phrase that should be present in the question text (String) 786 - 787 -(% class="western" %) 788 -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) 789 789 ))) 790 790 763 + 764 + 765 + 766 + 791 791 (% class="wrapped" %) 792 792 |((( 793 793 (% class="western" %) ... ... @@ -801,19 +801,19 @@ 801 801 ))) 802 802 |((( 803 803 (% class="western" %) 804 -Questions 780 +Users 781 +)))|=((( 782 +(% class="western" align="left" %) 783 +Users 805 805 )))|((( 806 806 (% class="western" %) 807 -Questions 808 -)))|((( 809 -(% class="western" %) 810 -Returns found question details. 786 +Found users returned with the demo field requested in return parameter in json format. 811 811 ))) 812 812 813 - \\789 + 814 814 815 815 (% class="western" %) 816 -**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.** 817 817 818 818 (% class="wrapped" %) 819 819 |((( ... ... @@ -828,46 +828,49 @@ 828 828 ))) 829 829 |((( 830 830 (% class="western" %) 831 - Questions807 +Users 832 832 )))|((( 833 833 (% class="western" %) 834 - Questions810 +Users 835 835 )))|((( 836 836 (% class="western" %) 837 - Thisdefinesthequestioncontentsandpossibleresponses.813 +Users object that contains information about user to create. PartnerId Needs to be specified. 838 838 ))) 839 - 840 -(% class="wrapped" %) 841 841 |((( 842 842 (% class="western" %) 843 - **Response**817 +Transactions 844 844 )))|((( 845 845 (% class="western" %) 846 - **Type**820 +Transactions 847 847 )))|((( 848 848 (% class="western" %) 849 - **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. 850 850 ))) 851 851 |((( 852 852 (% class="western" %) 853 - QuestionId827 +DedupeColumns 854 854 )))|((( 855 855 (% class="western" %) 856 - Int830 +String 857 857 )))|((( 858 858 (% class="western" %) 859 - ReturnsONEcountquestion idonsuccessful creationofthe question.833 +CSV of question id's that should be considered to find duplicate. 860 860 ))) 861 - 862 -\\ 863 - 835 +|((( 864 864 (% class="western" %) 865 -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 +))) 866 866 867 867 (% class="wrapped" %) 868 868 |((( 869 869 (% class="western" %) 870 -**Re quest**849 +**Response** 871 871 )))|((( 872 872 (% class="western" %) 873 873 **Type** ... ... @@ -877,19 +877,24 @@ 877 877 ))) 878 878 |((( 879 879 (% class="western" %) 880 -Questions 859 +Users 860 +)))|=((( 861 +(% class="western" align="left" %) 862 +Users 881 881 )))|((( 882 882 (% class="western" %) 883 -Questions 884 -)))|((( 885 -(% class="western" %) 886 -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. 887 887 ))) 888 888 868 + 869 + 870 +(% class="western" %) 871 +**PUT method should be used to update users.** 872 + 889 889 (% class="wrapped" %) 890 890 |((( 891 891 (% class="western" %) 892 -**Re sponse**876 +**Request** 893 893 )))|((( 894 894 (% class="western" %) 895 895 **Type** ... ... @@ -899,81 +899,72 @@ 899 899 ))) 900 900 |((( 901 901 (% class="western" %) 902 - QuestionId886 +Users 903 903 )))|((( 904 904 (% class="western" %) 905 - Int889 +Users 906 906 )))|((( 907 907 (% class="western" %) 908 -Returns ONEcountquestion idon successful updateofthequestion.892 +Users object with update fields. Return property has csv of questions id requested back in Users object. 909 909 ))) 910 - 894 +|((( 911 911 (% class="western" %) 912 - \\913 - 896 +Return 897 +)))|((( 914 914 (% class="western" %) 915 -Example: Get list of questions from api which has FirstName in text 916 - 917 -{{{curl -X GET -H “Appkey: xxx” https://api.onecount.net/v2/questions/lookup?Text=FirstName}}} 918 - 899 +String 900 +)))|((( 919 919 (% class="western" %) 920 -{ 921 - 902 +CSV of ONEcount QuestionId's requested back in Users object in response 903 +))) 904 +|((( 922 922 (% class="western" %) 923 - "result": {924 - 906 +RequestDate 907 +)))|((( 925 925 (% class="western" %) 926 - "success": "1",927 - 909 +Date 910 +)))|((( 928 928 (% class="western" %) 929 -"error": { 912 +RequestDate to use for the demo update. If not provided current date will be used. 913 +))) 930 930 915 +(% class="wrapped" %) 916 +|((( 931 931 (% class="western" %) 932 - "code": "0",933 - 918 +**Response** 919 +)))|((( 934 934 (% class="western" %) 935 - "message": ""936 - 921 +**Type** 922 +)))|((( 937 937 (% class="western" %) 938 -} 939 - 924 +**Description** 925 +))) 926 +|((( 940 940 (% class="western" %) 941 -}, 942 - 928 +Users 929 +)))|=((( 930 +(% class="western" align="left" %) 931 +Users 932 +)))|((( 943 943 (% class="western" %) 944 -"Questions": [ 934 +Updated user returned with the demo field requested in return parameter in json format. 935 +))) 945 945 946 946 (% class="western" %) 947 - {938 + 948 948 949 949 (% class="western" %) 950 - "Id":"6",941 + 951 951 952 952 (% class="western" %) 953 - "Text":"FirstName",944 +Create new users. Here in this example the JSON for request is passed in userFile.json file. 954 954 955 -(% class="western" %) 956 -"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}}} 957 957 958 958 (% class="western" %) 959 - "Alias": "FName"949 +**Products** 960 960 961 961 (% class="western" %) 962 -} 963 - 964 -(% class="western" %) 965 -] 966 - 967 -(% class="western" %) 968 -} 969 - 970 -(% class="western" %) 971 -\\ 972 - 973 -(% class="western" %) 974 -**COMPONENT: Products** 975 - 976 -(% class="western" %) 977 977 This resource is for manipulating products resource. A product can be created, updated or searched. 978 978 979 979 (% class="wrapped" %) ... ... @@ -1057,7 +1057,7 @@ 1057 1057 {"ProductID":"65","ResourceID":”121"} 1058 1058 ))) 1059 1059 1060 - \\1035 + 1061 1061 1062 1062 (% class="western" %) 1063 1063 **GET method should be used to lookup products.** ... ... @@ -1112,7 +1112,7 @@ 1112 1112 Returns found product details. 1113 1113 ))) 1114 1114 1115 - \\1090 + 1116 1116 1117 1117 (% class="western" %) 1118 1118 **POST method should be used to create products.** ... ... @@ -1142,7 +1142,7 @@ 1142 1142 Example: 1143 1143 1144 1144 (% class="western" %) 1145 -{"Title":"Test123","Description": "Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17}1120 +{"Title":"Test123","Description":Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17} 1146 1146 ))) 1147 1147 1148 1148 (% class="wrapped" %) ... ... @@ -1167,7 +1167,7 @@ 1167 1167 Product Id of the newly created product. 1168 1168 ))) 1169 1169 1170 - \\1145 + 1171 1171 1172 1172 (% class="western" %) 1173 1173 PUT method should be used to update an individual product given the product info. ... ... @@ -1200,7 +1200,7 @@ 1200 1200 **Example**: 1201 1201 1202 1202 (% class="western" %) 1203 -{"Title":"Test123","Description": "Testss","PrimaryFormId":10,"ResourceID":17}1178 +{"Title":"Test123","Description":Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17} 1204 1204 ))) 1205 1205 1206 1206 (% class="wrapped" %) ... ... @@ -1225,10 +1225,10 @@ 1225 1225 Product id of the updated product. 1226 1226 ))) 1227 1227 1228 - \\1203 + 1229 1229 1230 1230 (% class="western" %) 1231 -** COMPONENT: Terms**1206 +**Terms** 1232 1232 1233 1233 (% class="western" %) 1234 1234 This resource is for manipulating terms resource. A term can be created, updated or searched. ... ... @@ -1285,7 +1285,7 @@ 1285 1285 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update. 1286 1286 ))) 1287 1287 1288 - \\1263 + 1289 1289 1290 1290 (% class="western" %) 1291 1291 **GET method should be used to lookup products.** ... ... @@ -1340,7 +1340,7 @@ 1340 1340 Returns found term details. 1341 1341 ))) 1342 1342 1343 - \\1318 + 1344 1344 1345 1345 (% class="western" %) 1346 1346 **POST method should be used to create products.** ... ... @@ -1398,7 +1398,7 @@ 1398 1398 Term Id of the newly created term. 1399 1399 ))) 1400 1400 1401 - \\1376 + 1402 1402 1403 1403 (% class="western" %) 1404 1404 PUT method should be used to update an individual term given the term info. ... ... @@ -1425,7 +1425,7 @@ 1425 1425 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. 1426 1426 1427 1427 (% class="western" %) 1428 - \\1403 + 1429 1429 1430 1430 (% class="western" %) 1431 1431 **Example**: ... ... @@ -1456,48 +1456,12 @@ 1456 1456 term id of the updated term. 1457 1457 ))) 1458 1458 1459 - \\1434 + 1460 1460 1461 1461 (% class="western" %) 1462 -** COMPONENT:Resources**1437 +**Resources** 1463 1463 1464 1464 (% class="western" %) 1465 -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. 1466 - 1467 -* ((( 1468 -(% class="western" %) 1469 -questions 1470 -))) 1471 -* ((( 1472 -(% class="western" %) 1473 -users 1474 -))) 1475 -* ((( 1476 -(% class="western" %) 1477 -products 1478 -))) 1479 -* ((( 1480 -(% class="western" %) 1481 -terms 1482 -))) 1483 -* ((( 1484 -(% class="western" %) 1485 -resources 1486 -))) 1487 -* ((( 1488 -(% class="western" %) 1489 -sources 1490 -))) 1491 -* ((( 1492 -(% class="western" %) 1493 -transactions 1494 -))) 1495 - 1496 -(% class="western" %) 1497 -** 1498 -** 1499 - 1500 -(% class="western" %) 1501 1501 This resource is for manipulating resources resource. A resource can be created, updated or searched. 1502 1502 1503 1503 (% class="wrapped" %) ... ... @@ -1552,10 +1552,10 @@ 1552 1552 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update. 1553 1553 ))) 1554 1554 1555 - \\1494 + 1556 1556 1557 1557 (% class="western" %) 1558 -**GET method should be used to lookup r esources.**1497 +**GET method should be used to lookup products.** 1559 1559 1560 1560 (% class="wrapped" %) 1561 1561 |((( ... ... @@ -1607,10 +1607,10 @@ 1607 1607 Returns found resource details. 1608 1608 ))) 1609 1609 1610 - \\1549 + 1611 1611 1612 1612 (% class="western" %) 1613 -**POST method should be used to create r esources.**1552 +**POST method should be used to create products.** 1614 1614 1615 1615 (% class="wrapped" %) 1616 1616 |((( ... ... @@ -1634,7 +1634,7 @@ 1634 1634 resource details in json to be sent as post data. Id should not be set. 1635 1635 1636 1636 (% class="western" %) 1637 -**Possible Request Params**: Name, Description, Type, Value , FreePass1576 +**Possible Request Params**: Name, Description, Type, Value 1638 1638 1639 1639 (% class="western" %) 1640 1640 **Example**: ... ... @@ -1641,15 +1641,6 @@ 1641 1641 1642 1642 (% class="western" %) 1643 1643 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 1644 - 1645 -(% class="western" %) 1646 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1647 - 1648 -(% class="western" %) 1649 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”, "FreePass":1} 1650 - 1651 -(% class="western" %) 1652 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 1653 1653 ))) 1654 1654 1655 1655 (% class="wrapped" %) ... ... @@ -1674,7 +1674,7 @@ 1674 1674 Resource Id of the newly created resource. 1675 1675 ))) 1676 1676 1677 - \\1607 + 1678 1678 1679 1679 (% class="western" %) 1680 1680 PUT method should be used to update an individual resource given the resource info. ... ... @@ -1698,25 +1698,16 @@ 1698 1698 Resource 1699 1699 )))|((( 1700 1700 (% class="western" %) 1701 -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. 1702 1702 1703 1703 (% class="western" %) 1704 - \\1634 + 1705 1705 1706 1706 (% class="western" %) 1707 -Example s:1637 +Example: 1708 1708 1709 1709 (% class="western" %) 1710 1710 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 1711 - 1712 -(% class="western" %) 1713 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1714 - 1715 -(% class="western" %) 1716 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”,"FreePass":1} 1717 - 1718 -(% class="western" %) 1719 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 1720 1720 ))) 1721 1721 1722 1722 (% class="wrapped" %) ... ... @@ -1741,20 +1741,52 @@ 1741 1741 resource id of the updated resource. 1742 1742 ))) 1743 1743 1744 - \\1665 + 1745 1745 1746 -\\ 1667 +(% class="western" %) 1668 +**Resources** 1747 1747 1748 1748 (% class="western" %) 1749 - \\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. 1750 1750 1673 +* ((( 1751 1751 (% class="western" %) 1752 -**COMPONENT: Source Codes 1753 -** 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 +))) 1754 1754 1755 1755 (% class="western" %) 1756 - Thisresource is for manipulating source code for a resource. A source code can be created, updated or searched.1703 + 1757 1757 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 + 1758 1758 (% class="wrapped" %) 1759 1759 |((( 1760 1760 (% class="western" %) ... ... @@ -1807,7 +1807,7 @@ 1807 1807 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update. 1808 1808 ))) 1809 1809 1810 - \\1763 + 1811 1811 1812 1812 (% class="western" %) 1813 1813 **Sources can be looked up given the code or Id. GET method should be used for lookup.** ... ... @@ -1862,10 +1862,10 @@ 1862 1862 Returns found source details. 1863 1863 ))) 1864 1864 1865 - \\1818 + 1866 1866 1867 1867 (% class="western" %) 1868 - \\1821 + 1869 1869 1870 1870 (% class="western" %) 1871 1871 POST method should be used to create an individual source given the source parameters. ... ... @@ -1914,7 +1914,7 @@ 1914 1914 Returns created source code id. 1915 1915 ))) 1916 1916 1917 - \\1870 + 1918 1918 1919 1919 (% class="western" %) 1920 1920 **PUT method can be used to update an individual source given the id.** ... ... @@ -1963,13 +1963,13 @@ 1963 1963 Returns updated source id. 1964 1964 ))) 1965 1965 1966 - \\1919 + 1967 1967 1968 1968 (% class="western" %) 1969 - \\1922 + 1970 1970 1971 1971 (% class="western" %) 1972 -** COMPONENT: Transactions**1925 +**Transactions** 1973 1973 1974 1974 (% class="western" %) 1975 1975 This resource is for manipulating transactions resource. A transaction can be created or searched. ... ... @@ -2016,10 +2016,10 @@ 2016 2016 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent. 2017 2017 ))) 2018 2018 2019 - \\1972 + 2020 2020 2021 2021 (% class="western" %) 2022 - \\1975 + 2023 2023 2024 2024 (% class="western" %) 2025 2025 Transactions can be looked up using transactionId, date range, userid. Use GET method to do lookup. ... ... @@ -2058,7 +2058,11 @@ 2058 2058 EndDate: When the search should end. Only valid when UserId is set. (Date) 2059 2059 ))) 2060 2060 2061 -(% class="wrapped" style="letter-spacing: 0.0px;" %) 2014 + 2015 + 2016 + 2017 + 2018 +(% class="wrapped" %) 2062 2062 |((( 2063 2063 (% class="western" %) 2064 2064 **Response** ... ... @@ -2077,22 +2077,11 @@ 2077 2077 Transactions 2078 2078 )))|((( 2079 2079 (% class="western" %) 2080 -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. 2081 2081 ))) 2082 2082 2083 - \\2040 + 2084 2084 2085 -**Sample response for /(% style="color: rgb(80,80,80);" %)transactions/lookup?UserId=25255105:(%%)** 2086 - 2087 -|=((( 2088 -(% class="content-wrapper" %) 2089 -((( 2090 -[[image:attach:Screen Shot 2020-02-26 at 11.14.29 AM.png||width="1407"]] 2091 -))) 2092 -))) 2093 - 2094 -\\ 2095 - 2096 2096 (% class="western" %) 2097 2097 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. 2098 2098 ... ... @@ -2140,35 +2140,39 @@ 2140 2140 Returns transactionId of the newly created transaction. 2141 2141 ))) 2142 2142 2143 - \\2089 + 2144 2144 2145 - \\2091 + 2146 2146 2093 + 2094 + 2095 + 2096 + 2097 + 2098 + 2147 2147 (% class="western" %) 2148 -**COMPONENT: Leads 2149 -** 2100 +**Stats** 2150 2150 2151 2151 (% class="western" %) 2152 2152 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. 2153 2153 2154 2154 (% class="western" %) 2155 - \\2106 + 2156 2156 2157 2157 (% class="western" %) 2158 - \\2109 + 2159 2159 2160 2160 (% class="western" %) 2161 - \\2112 + 2162 2162 2163 2163 (% class="western" %) 2164 - \\2115 + 2165 2165 2166 2166 (% class="western" %) 2167 - \\2118 + 2168 2168 2169 2169 (% class="western" %) 2170 -**Telemarketing Leads 2171 -** 2121 +**Telemarketing** 2172 2172 2173 2173 (% class="western" %) 2174 2174 ... ... @@ -2216,7 +2216,7 @@ 2216 2216 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent. 2217 2217 ))) 2218 2218 2219 - \\2169 + 2220 2220 2221 2221 (% class="western" %) 2222 2222 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. ... ... @@ -2286,13 +2286,13 @@ 2286 2286 ))) 2287 2287 |((( 2288 2288 (% class="western" %) 2289 - \\2239 + 2290 2290 )))|((( 2291 2291 (% class="western" %) 2292 - \\2242 + 2293 2293 )))|((( 2294 2294 (% class="western" %) 2295 - \\2245 + 2296 2296 ))) 2297 2297 2298 2298 (% class="wrapped" %) ... ... @@ -2317,18 +2317,18 @@ 2317 2317 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format. 2318 2318 ))) 2319 2319 2320 - \\2270 + 2321 2321 2322 - \\2272 + 2323 2323 2324 - \\2274 + 2325 2325 2326 - \\2276 + 2327 2327 2328 - \\2278 + 2329 2329 2330 2330 (% class="western" %) 2331 -** APIREFERENCE**2281 +**Reference** 2332 2332 2333 2333 (% class="western" %) 2334 2334 **Type: Questions** ... ... @@ -2374,12 +2374,12 @@ 2374 2374 (% class="western" %) 2375 2375 Determines which type of question it is. Textbox, checkbox, select, radio. 2376 2376 There can be 6 types of questions. 2377 -type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters. 2378 -type=2 means textarea type question or long response type question. 2379 -type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as * 2380 -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. 2381 -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. 2382 -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. 2383 2383 ))) 2384 2384 |((( 2385 2385 (% class="western" %) ... ... @@ -2402,13 +2402,13 @@ 2402 2402 Alias for admin purpose. 2403 2403 ))) 2404 2404 2405 - \\2355 + 2406 2406 2407 2407 (% class="western" %) 2408 - \\2358 + 2409 2409 2410 2410 (% class="western" %) 2411 - \\2361 + 2412 2412 2413 2413 (% class="western" %) 2414 2414 **Type: Choices** ... ... @@ -2475,7 +2475,7 @@ 2475 2475 Tied to which question id. 2476 2476 ))) 2477 2477 2478 - \\2428 + 2479 2479 2480 2480 (% class="western" %) 2481 2481 **Type: Users** ... ... @@ -2532,7 +2532,7 @@ 2532 2532 Request date. 2533 2533 ))) 2534 2534 2535 - \\2485 + 2536 2536 2537 2537 (% class="western" %) 2538 2538 **Type: Demo** ... ... @@ -2579,7 +2579,7 @@ 2579 2579 ... 2580 2580 ))) 2581 2581 2582 - \\2532 + 2583 2583 2584 2584 (% class="western" %) 2585 2585 **Type: Transactions** ... ... @@ -2726,7 +2726,7 @@ 2726 2726 If there is amount (USD) included in transaction. 2727 2727 ))) 2728 2728 2729 - \\2679 + 2730 2730 2731 2731 (% class="western" %) 2732 2732 **Type: Sources** ... ... @@ -2783,10 +2783,10 @@ 2783 2783 If this is a child source then list the parent source id. 2784 2784 ))) 2785 2785 2786 - \\2736 + 2787 2787 2788 2788 (% class="western" %) 2789 - \\2739 + 2790 2790 2791 2791 (% class="western" %) 2792 2792 **Type: Products** ... ... @@ -2843,7 +2843,7 @@ 2843 2843 (Array of) Terms associated with the product. 2844 2844 ))) 2845 2845 2846 - \\2796 + 2847 2847 2848 2848 (% class="western" %) 2849 2849 **Type: Terms** ... ... @@ -2930,7 +2930,7 @@ 2930 2930 If there is price (USD) for the term. 2931 2931 ))) 2932 2932 2933 - \\2883 + 2934 2934 2935 2935 (% class="western" %) 2936 2936 **Type: Resources** ... ... @@ -3007,30 +3007,14 @@ 3007 3007 )))|((( 3008 3008 (% class="western" %) 3009 3009 String 3010 - 3011 -(% class="western" %) 3012 -or 3013 - 3014 -(% class="western" %) 3015 -Array 3016 3016 )))|((( 3017 3017 (% class="western" %) 3018 -Value of Resource Type :2962 +Value of Resource Type. 3019 3019 3020 3020 (% class="western" %) 3021 - 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/** 3022 3022 3023 3023 (% class="western" %) 3024 -For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests. 3025 - 3026 -(% class="western" %) 3027 -Example : 3028 - 3029 -(% class="western" %) 3030 -if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].** ** 3031 -**if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 3032 - 3033 -(% class="western" %) 3034 3034 For Function type resource leave it blank. 3035 3035 ))) 3036 3036 |((( ... ... @@ -3041,20 +3041,10 @@ 3041 3041 Int 3042 3042 )))|((( 3043 3043 (% class="western" %) 3044 -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. 3045 3045 ))) 3046 -|(% colspan="1" %)(% colspan="1" %) 3047 -((( 3048 -FreePass 3049 -)))|(% colspan="1" %)(% colspan="1" %) 3050 -((( 3051 -Int 3052 -)))|(% colspan="1" %)(% colspan="1" %) 3053 -((( 3054 -Default value is 0. This parameter is used to provide access to protected content. 3055 -))) 3056 3056 3057 - \\2981 + 3058 3058 3059 3059 (% class="western" %) 3060 3060 **Type: Telemarketing** ... ... @@ -3144,12 +3144,8 @@ 3144 3144 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. 3145 3145 3146 3146 (% class="western" %) 3147 - \\3071 + 3148 3148 3149 3149 (% class="western" %) 3150 3150 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. 3151 3151 ))) 3152 - 3153 -\\ 3154 - 3155 -\\
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 - 233318131 +3539009 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/ 23331813/ONEcount API Documentation1 +https://info.onecount.net//wiki/spaces/OD/pages/3539009/ONEcount API Documentation