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

From version 14.1
edited by ayush
on 2017/05/01 13:27
Change comment: There is no comment for this version
To version 16.1
edited by shravya@one-count_com
on 2020/02/26 12:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ayush
1 +XWiki.shravya@one-count_com
Content
... ... @@ -90,7 +90,7 @@
90 90  )))
91 91  
92 92  (% class="western" %)
93 -
93 +\\
94 94  
95 95  (% class="western" %)
96 96  **General API Usage**
... ... @@ -102,7 +102,7 @@
102 102  For lookup, the parameter list will be part of the request url.
103 103  
104 104  (% class="western" %)
105 -
105 +\\
106 106  
107 107  (% class="western" %)
108 108  **Response**
... ... @@ -165,7 +165,7 @@
165 165  The result of the api request will be determined by the value of the success property of result object. Here the value of success will either be 1 (true) or 0 (false) depending on whether the requested action succeed.
166 166  
167 167  (% class="western" %)
168 -
168 +\\
169 169  
170 170  (% class="western" %)
171 171  If value of success is 0 then an error will be generated inside the result object. Code property will have an error code. message property will have the details about the error. This value might be used to display the error in the client application. The response will always have a result object in it plus the individual response listed for each method.
... ... @@ -221,7 +221,7 @@
221 221   ]}]}}}}
222 222  
223 223  (% class="western" %)
224 -
224 +\\
225 225  
226 226  (% class="western" %)
227 227  **
... ... @@ -247,7 +247,7 @@
247 247  (% class="western" %)
248 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 249  
250 -
250 +\\
251 251  
252 252  (% class="wrapped" %)
253 253  |(((
... ... @@ -364,7 +364,7 @@
364 364  **OUTPUT** : Should get ocid of the user if it finds it otherwise get and error with msg user not found.
365 365  )))
366 366  
367 -
367 +\\
368 368  
369 369  (% class="western" %)
370 370  **GET method should be used to lookup users.**
... ... @@ -395,11 +395,14 @@
395 395  
396 396  (% class="western" %)
397 397  return: csv of question id that is requested back. The Users object returned will only have these properties plus UserId (String)
398 +
399 +(% class="western" %)
400 +If return is not provided, all the demographics will be returned.
398 398  )))
399 399  
400 -
403 +\\
401 401  
402 -
405 +\\
403 403  
404 404  (% class="wrapped" %)
405 405  |(((
... ... @@ -423,8 +423,31 @@
423 423  Found users returned with the demo field requested in return parameter in json format.
424 424  )))
425 425  
426 -
429 +\\
427 427  
431 +**Sample response for /users/(% style="color: rgb(80,80,80);" %)25255449(%%)**
432 +
433 +(% class="relative-table" style="width: 100.0%;" %)
434 +|=(((
435 +(% class="content-wrapper" %)
436 +(((
437 +[[image:attach:Screen Shot 2020-02-26 at 11.15.52 AM.png||width="1407"]]
438 +)))
439 +)))
440 +
441 +\\
442 +
443 +**Sample response for /users/lookup?(% style="color: rgb(80,80,80);" %)11=santosh@[[one-count.com>>url:http://one-count.com||shape="rect"]]&return=2,3(%%)**
444 +
445 +|=(((
446 +(% class="content-wrapper" %)
447 +(((
448 +[[image:attach:Screen Shot 2020-02-26 at 11.22.13 AM.png||height="250"]]
449 +)))
450 +)))
451 +
452 +\\
453 +
428 428  (% class="western" %)
429 429  **POST method should be used to create users.**
430 430  
... ... @@ -502,7 +502,7 @@
502 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.
503 503  )))
504 504  
505 -
531 +\\
506 506  
507 507  (% class="western" %)
508 508  **PUT method should be used to update users.**
... ... @@ -572,10 +572,10 @@
572 572  )))
573 573  
574 574  (% class="western" %)
575 -
601 +\\
576 576  
577 577  (% class="western" %)
578 -
604 +\\
579 579  
580 580  (% class="western" %)
581 581  Create new users. Here in this example the JSON for request is passed in userFile.json file.
... ... @@ -590,7 +590,7 @@
590 590  **
591 591  **
592 592  
593 -
619 +\\
594 594  
595 595  (% class="western" %)
596 596  **COMPONENT: Questions**
... ... @@ -726,7 +726,7 @@
726 726  JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update.
727 727  )))
728 728  
729 -
755 +\\
730 730  
731 731  (% class="western" %)
732 732  **GET method can be used to lookup questions.**
... ... @@ -784,7 +784,7 @@
784 784  Returns found question details.
785 785  )))
786 786  
787 -
813 +\\
788 788  
789 789  (% class="western" %)
790 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).**
... ... @@ -833,7 +833,7 @@
833 833  Returns ONEcount question id on successful creation of the question.
834 834  )))
835 835  
836 -
862 +\\
837 837  
838 838  (% class="western" %)
839 839  PUT method should be used to update question.
... ... @@ -883,7 +883,7 @@
883 883  )))
884 884  
885 885  (% class="western" %)
886 -
912 +\\
887 887  
888 888  (% class="western" %)
889 889  Example: Get list of questions from api which has FirstName in text
... ... @@ -942,7 +942,7 @@
942 942  }
943 943  
944 944  (% class="western" %)
945 -
971 +\\
946 946  
947 947  (% class="western" %)
948 948  **COMPONENT: Products**
... ... @@ -1031,7 +1031,7 @@
1031 1031  {"ProductID":"65","ResourceID":”121"}
1032 1032  )))
1033 1033  
1034 -
1060 +\\
1035 1035  
1036 1036  (% class="western" %)
1037 1037  **GET method should be used to lookup products.**
... ... @@ -1086,7 +1086,7 @@
1086 1086  Returns found product details.
1087 1087  )))
1088 1088  
1089 -
1115 +\\
1090 1090  
1091 1091  (% class="western" %)
1092 1092  **POST method should be used to create products.**
... ... @@ -1141,7 +1141,7 @@
1141 1141  Product Id of the newly created product.
1142 1142  )))
1143 1143  
1144 -
1170 +\\
1145 1145  
1146 1146  (% class="western" %)
1147 1147  PUT method should be used to update an individual product given the product info.
... ... @@ -1199,7 +1199,7 @@
1199 1199  Product id of the updated product.
1200 1200  )))
1201 1201  
1202 -
1228 +\\
1203 1203  
1204 1204  (% class="western" %)
1205 1205  **COMPONENT: Terms**
... ... @@ -1259,7 +1259,7 @@
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 -
1288 +\\
1263 1263  
1264 1264  (% class="western" %)
1265 1265  **GET method should be used to lookup products.**
... ... @@ -1314,7 +1314,7 @@
1314 1314  Returns found term details.
1315 1315  )))
1316 1316  
1317 -
1343 +\\
1318 1318  
1319 1319  (% class="western" %)
1320 1320  **POST method should be used to create products.**
... ... @@ -1372,7 +1372,7 @@
1372 1372  Term Id of the newly created term.
1373 1373  )))
1374 1374  
1375 -
1401 +\\
1376 1376  
1377 1377  (% class="western" %)
1378 1378  PUT method should be used to update an individual term given the term info.
... ... @@ -1399,7 +1399,7 @@
1399 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 1400  
1401 1401  (% class="western" %)
1402 -
1428 +\\
1403 1403  
1404 1404  (% class="western" %)
1405 1405  **Example**:
... ... @@ -1430,7 +1430,7 @@
1430 1430  term id of the updated term.
1431 1431  )))
1432 1432  
1433 -
1459 +\\
1434 1434  
1435 1435  (% class="western" %)
1436 1436  **COMPONENT: Resources**
... ... @@ -1526,7 +1526,7 @@
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 -
1555 +\\
1530 1530  
1531 1531  (% class="western" %)
1532 1532  **GET method should be used to lookup resources.**
... ... @@ -1581,7 +1581,7 @@
1581 1581  Returns found resource details.
1582 1582  )))
1583 1583  
1584 -
1610 +\\
1585 1585  
1586 1586  (% class="western" %)
1587 1587  **POST method should be used to create resources.**
... ... @@ -1648,7 +1648,7 @@
1648 1648  Resource Id of the newly created resource.
1649 1649  )))
1650 1650  
1651 -
1677 +\\
1652 1652  
1653 1653  (% class="western" %)
1654 1654  PUT method should be used to update an individual resource given the resource info.
... ... @@ -1675,7 +1675,7 @@
1675 1675  Resource details to be updated injsonformat to be sent withrequest. Id property needs to be set to identify the resource to be updated.
1676 1676  
1677 1677  (% class="western" %)
1678 -
1704 +\\
1679 1679  
1680 1680  (% class="western" %)
1681 1681  Examples:
... ... @@ -1715,12 +1715,12 @@
1715 1715  resource id of the updated resource.
1716 1716  )))
1717 1717  
1718 -
1744 +\\
1719 1719  
1720 -
1746 +\\
1721 1721  
1722 1722  (% class="western" %)
1723 -
1749 +\\
1724 1724  
1725 1725  (% class="western" %)
1726 1726  **COMPONENT: Source Codes
... ... @@ -1781,7 +1781,7 @@
1781 1781  JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update.
1782 1782  )))
1783 1783  
1784 -
1810 +\\
1785 1785  
1786 1786  (% class="western" %)
1787 1787  **Sources can be looked up given the code or Id. GET method should be used for lookup.**
... ... @@ -1836,10 +1836,10 @@
1836 1836  Returns found source details.
1837 1837  )))
1838 1838  
1839 -
1865 +\\
1840 1840  
1841 1841  (% class="western" %)
1842 -
1868 +\\
1843 1843  
1844 1844  (% class="western" %)
1845 1845  POST method should be used to create an individual source given the source parameters.
... ... @@ -1888,7 +1888,7 @@
1888 1888  Returns created source code id.
1889 1889  )))
1890 1890  
1891 -
1917 +\\
1892 1892  
1893 1893  (% class="western" %)
1894 1894  **PUT method can be used to update an individual source given the id.**
... ... @@ -1937,10 +1937,10 @@
1937 1937  Returns updated source id.
1938 1938  )))
1939 1939  
1940 -
1966 +\\
1941 1941  
1942 1942  (% class="western" %)
1943 -
1969 +\\
1944 1944  
1945 1945  (% class="western" %)
1946 1946  **COMPONENT: Transactions**
... ... @@ -1990,10 +1990,10 @@
1990 1990  JSON of the Transactions type object needs to be sent as post data. Id field should not be sent.
1991 1991  )))
1992 1992  
1993 -
2019 +\\
1994 1994  
1995 1995  (% class="western" %)
1996 -
2022 +\\
1997 1997  
1998 1998  (% class="western" %)
1999 1999  Transactions can be looked up using transactionId, date range, userid. Use GET method to do lookup.
... ... @@ -2032,11 +2032,7 @@
2032 2032  EndDate: When the search should end. Only valid when UserId is set. (Date)
2033 2033  )))
2034 2034  
2035 -
2036 -
2037 -
2038 -
2039 -(% class="wrapped" %)
2061 +(% class="wrapped" style="letter-spacing: 0.0px;" %)
2040 2040  |(((
2041 2041  (% class="western" %)
2042 2042  **Response**
... ... @@ -2055,11 +2055,22 @@
2055 2055  Transactions
2056 2056  )))|(((
2057 2057  (% class="western" %)
2058 -Returns all transaction that satisfies the search criteria.
2080 +Returns all transaction that satisfies the search criteria. Returns all the package and product transactions of the user. Package Transactions are the one with TermId and ProductId. Product Transactions are the one with ResourceId.
2059 2059  )))
2060 2060  
2061 -
2083 +\\
2062 2062  
2085 +**Sample response for /(% style="color: rgb(80,80,80);" %)transactions/lookup?UserId=25255105:(%%)**
2086 +
2087 +|=(((
2088 +(% class="content-wrapper" %)
2089 +(((
2090 +[[image:attach:Screen Shot 2020-02-26 at 11.14.29 AM.png||width="1407"]]
2091 +)))
2092 +)))
2093 +
2094 +\\
2095 +
2063 2063  (% class="western" %)
2064 2064  POST method can be used to create user transaction. Transaction info needs to be sent as request and a TransactionId will be returned when the transaction is created.
2065 2065  
... ... @@ -2107,9 +2107,9 @@
2107 2107  Returns transactionId of the newly created transaction.
2108 2108  )))
2109 2109  
2110 -
2143 +\\
2111 2111  
2112 -
2145 +\\
2113 2113  
2114 2114  (% class="western" %)
2115 2115  **COMPONENT: Leads
... ... @@ -2119,19 +2119,19 @@
2119 2119  Stats resource can be used to submit any type of stat collected on the third party systems. Each type of stat will be represented by a sub-resource. So, for telemarketing it could be **/stats/telemarketing** endpoint, for videos it can be **/stats/videos**, for webinar it could be **/stats/webinars** etc. Right now we only have telemarketing sub-resource.
2120 2120  
2121 2121  (% class="western" %)
2122 -
2155 +\\
2123 2123  
2124 2124  (% class="western" %)
2125 -
2158 +\\
2126 2126  
2127 2127  (% class="western" %)
2128 -
2161 +\\
2129 2129  
2130 2130  (% class="western" %)
2131 -
2164 +\\
2132 2132  
2133 2133  (% class="western" %)
2134 -
2167 +\\
2135 2135  
2136 2136  (% class="western" %)
2137 2137  **Telemarketing Leads
... ... @@ -2183,7 +2183,7 @@
2183 2183  JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent.
2184 2184  )))
2185 2185  
2186 -
2219 +\\
2187 2187  
2188 2188  (% class="western" %)
2189 2189  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.
... ... @@ -2253,13 +2253,13 @@
2253 2253  )))
2254 2254  |(((
2255 2255  (% class="western" %)
2256 -
2289 +\\
2257 2257  )))|(((
2258 2258  (% class="western" %)
2259 -
2292 +\\
2260 2260  )))|(((
2261 2261  (% class="western" %)
2262 -
2295 +\\
2263 2263  )))
2264 2264  
2265 2265  (% class="wrapped" %)
... ... @@ -2284,15 +2284,15 @@
2284 2284  Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format.
2285 2285  )))
2286 2286  
2287 -
2320 +\\
2288 2288  
2289 -
2322 +\\
2290 2290  
2291 -
2324 +\\
2292 2292  
2293 -
2326 +\\
2294 2294  
2295 -
2328 +\\
2296 2296  
2297 2297  (% class="western" %)
2298 2298  **API REFERENCE**
... ... @@ -2341,12 +2341,12 @@
2341 2341  (% class="western" %)
2342 2342  Determines which type of question it is. Textbox, checkbox, select, radio.
2343 2343  There can be 6 types of questions.
2344 - type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
2345 - type=2 means textarea type question or long response type question.
2346 - type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
2347 - type = 4 means select or dropdown type questions. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the select question.
2348 - type=5 means radio button type question. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the radio question.
2349 - type=6 means checkbox type question. This is a multiple choice, multi response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the checkbox question.
2377 +type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
2378 +type=2 means textarea type question or long response type question.
2379 +type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
2380 +type = 4 means select or dropdown type questions. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the select question.
2381 +type=5 means radio button type question. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the radio question.
2382 +type=6 means checkbox type question. This is a multiple choice, multi response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the checkbox question.
2350 2350  )))
2351 2351  |(((
2352 2352  (% class="western" %)
... ... @@ -2369,13 +2369,13 @@
2369 2369  Alias for admin purpose.
2370 2370  )))
2371 2371  
2372 -
2405 +\\
2373 2373  
2374 2374  (% class="western" %)
2375 -
2408 +\\
2376 2376  
2377 2377  (% class="western" %)
2378 -
2411 +\\
2379 2379  
2380 2380  (% class="western" %)
2381 2381  **Type: Choices**
... ... @@ -2442,7 +2442,7 @@
2442 2442  Tied to which question id.
2443 2443  )))
2444 2444  
2445 -
2478 +\\
2446 2446  
2447 2447  (% class="western" %)
2448 2448  **Type: Users**
... ... @@ -2499,7 +2499,7 @@
2499 2499  Request date.
2500 2500  )))
2501 2501  
2502 -
2535 +\\
2503 2503  
2504 2504  (% class="western" %)
2505 2505  **Type: Demo**
... ... @@ -2546,7 +2546,7 @@
2546 2546  ...
2547 2547  )))
2548 2548  
2549 -
2582 +\\
2550 2550  
2551 2551  (% class="western" %)
2552 2552  **Type: Transactions**
... ... @@ -2693,7 +2693,7 @@
2693 2693  If there is amount (USD) included in transaction.
2694 2694  )))
2695 2695  
2696 -
2729 +\\
2697 2697  
2698 2698  (% class="western" %)
2699 2699  **Type: Sources**
... ... @@ -2750,10 +2750,10 @@
2750 2750  If this is a child source then list the parent source id.
2751 2751  )))
2752 2752  
2753 -
2786 +\\
2754 2754  
2755 2755  (% class="western" %)
2756 -
2789 +\\
2757 2757  
2758 2758  (% class="western" %)
2759 2759  **Type: Products**
... ... @@ -2810,7 +2810,7 @@
2810 2810  (Array of) Terms associated with the product.
2811 2811  )))
2812 2812  
2813 -
2846 +\\
2814 2814  
2815 2815  (% class="western" %)
2816 2816  **Type: Terms**
... ... @@ -2897,7 +2897,7 @@
2897 2897  If there is price (USD) for the term.
2898 2898  )))
2899 2899  
2900 -
2933 +\\
2901 2901  
2902 2902  (% class="western" %)
2903 2903  **Type: Resources**
... ... @@ -3008,7 +3008,7 @@
3008 3008  Int
3009 3009  )))|(((
3010 3010  (% class="western" %)
3011 -Default limit is 25 but all the data needs to be pulled then pass limit=0.
3044 +Default limit is 25 but if all the data needs to be pulled then pass limit=0.
3012 3012  )))
3013 3013  |(% colspan="1" %)(% colspan="1" %)
3014 3014  (((
... ... @@ -3021,7 +3021,7 @@
3021 3021  Default value is 0. This parameter is used to provide access to protected content.
3022 3022  )))
3023 3023  
3024 -
3057 +\\
3025 3025  
3026 3026  (% class="western" %)
3027 3027  **Type: Telemarketing**
... ... @@ -3111,8 +3111,12 @@
3111 3111  Page title that belongs to the page url that is being sent. If not provided it try to pull the title from the page but if unsuccessful then it will set it as blank.
3112 3112  
3113 3113  (% class="western" %)
3114 -
3147 +\\
3115 3115  
3116 3116  (% class="western" %)
3117 3117  If the page url already exists and it doesn't match with the one that is being sent then it will throw conflict error with the title in our system.
3118 3118  )))
3152 +
3153 +\\
3154 +
3155 +\\
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -4882506
1 +23331813
url
... ... @@ -1,1 +1,1 @@
1 -https://info.onecount.net//wiki/spaces/OD/pages/4882506/ONEcount API Documentation
1 +https://info.onecount.net//wiki/spaces/OD/pages/23331813/ONEcount API Documentation