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