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

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