Last modified by Admin on 2025/06/27 12:14

From version 7.1
edited by Admin
on 2017/04/05 10:57
Change comment: There is no comment for this version
To version 2.1
edited by sonish
on 2017/04/03 16:25
Change comment: There is no comment for this version

Summary

Details

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