Changes for page OLD-ONEcount API Documentation
Last modified by Admin on 2025/06/27 12:14
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.om ar1 +XWiki.shravya@one-count_com - Content
-
... ... @@ -9,7 +9,7 @@ 9 9 10 10 1. ((( 11 11 (% class="western" %) 12 -**GET** - Used for lookup of resources 12 +**GET** - Used for lookup of resourcesresources 13 13 ))) 14 14 1. ((( 15 15 (% class="western" %) ... ... @@ -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.** ... ... @@ -1608,7 +1608,7 @@ 1608 1608 resource details in json to be sent as post data. Id should not be set. 1609 1609 1610 1610 (% class="western" %) 1611 -**Possible Request Params**: Name, Description, Type, Value 1637 +**Possible Request Params**: Name, Description, Type, Value, FreePass 1612 1612 1613 1613 (% class="western" %) 1614 1614 **Example**: ... ... @@ -1618,6 +1618,12 @@ 1618 1618 1619 1619 (% class="western" %) 1620 1620 {"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1647 + 1648 +(% class="western" %) 1649 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”, "FreePass":1} 1650 + 1651 +(% class="western" %) 1652 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 1621 1621 ))) 1622 1622 1623 1623 (% class="wrapped" %) ... ... @@ -1642,7 +1642,7 @@ 1642 1642 Resource Id of the newly created resource. 1643 1643 ))) 1644 1644 1645 - 1677 +\\ 1646 1646 1647 1647 (% class="western" %) 1648 1648 PUT method should be used to update an individual resource given the resource info. ... ... @@ -1666,13 +1666,13 @@ 1666 1666 Resource 1667 1667 )))|((( 1668 1668 (% class="western" %) 1669 -Resource details to be updated in 1701 +Resource details to be updated injsonformat to be sent withrequest. Id property needs to be set to identify the resource to be updated. 1670 1670 1671 1671 (% class="western" %) 1672 - 1704 +\\ 1673 1673 1674 1674 (% class="western" %) 1675 -Example: 1707 +Examples: 1676 1676 1677 1677 (% class="western" %) 1678 1678 {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} ... ... @@ -1679,6 +1679,12 @@ 1679 1679 1680 1680 (% class="western" %) 1681 1681 {"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 1714 + 1715 +(% class="western" %) 1716 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”,"FreePass":1} 1717 + 1718 +(% class="western" %) 1719 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 1682 1682 ))) 1683 1683 1684 1684 (% class="wrapped" %) ... ... @@ -1703,12 +1703,12 @@ 1703 1703 resource id of the updated resource. 1704 1704 ))) 1705 1705 1706 - 1744 +\\ 1707 1707 1708 - 1746 +\\ 1709 1709 1710 1710 (% class="western" %) 1711 - 1749 +\\ 1712 1712 1713 1713 (% class="western" %) 1714 1714 **COMPONENT: Source Codes ... ... @@ -1769,7 +1769,7 @@ 1769 1769 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update. 1770 1770 ))) 1771 1771 1772 - 1810 +\\ 1773 1773 1774 1774 (% class="western" %) 1775 1775 **Sources can be looked up given the code or Id. GET method should be used for lookup.** ... ... @@ -1824,10 +1824,10 @@ 1824 1824 Returns found source details. 1825 1825 ))) 1826 1826 1827 - 1865 +\\ 1828 1828 1829 1829 (% class="western" %) 1830 - 1868 +\\ 1831 1831 1832 1832 (% class="western" %) 1833 1833 POST method should be used to create an individual source given the source parameters. ... ... @@ -1876,7 +1876,7 @@ 1876 1876 Returns created source code id. 1877 1877 ))) 1878 1878 1879 - 1917 +\\ 1880 1880 1881 1881 (% class="western" %) 1882 1882 **PUT method can be used to update an individual source given the id.** ... ... @@ -1925,10 +1925,10 @@ 1925 1925 Returns updated source id. 1926 1926 ))) 1927 1927 1928 - 1966 +\\ 1929 1929 1930 1930 (% class="western" %) 1931 - 1969 +\\ 1932 1932 1933 1933 (% class="western" %) 1934 1934 **COMPONENT: Transactions** ... ... @@ -1978,10 +1978,10 @@ 1978 1978 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent. 1979 1979 ))) 1980 1980 1981 - 2019 +\\ 1982 1982 1983 1983 (% class="western" %) 1984 - 2022 +\\ 1985 1985 1986 1986 (% class="western" %) 1987 1987 Transactions can be looked up using transactionId, date range, userid. Use GET method to do lookup. ... ... @@ -2020,11 +2020,7 @@ 2020 2020 EndDate: When the search should end. Only valid when UserId is set. (Date) 2021 2021 ))) 2022 2022 2023 - 2024 - 2025 - 2026 - 2027 -(% class="wrapped" %) 2061 +(% class="wrapped" style="letter-spacing: 0.0px;" %) 2028 2028 |((( 2029 2029 (% class="western" %) 2030 2030 **Response** ... ... @@ -2043,11 +2043,22 @@ 2043 2043 Transactions 2044 2044 )))|((( 2045 2045 (% class="western" %) 2046 -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. 2047 2047 ))) 2048 2048 2049 - 2083 +\\ 2050 2050 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 + 2051 2051 (% class="western" %) 2052 2052 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. 2053 2053 ... ... @@ -2095,9 +2095,9 @@ 2095 2095 Returns transactionId of the newly created transaction. 2096 2096 ))) 2097 2097 2098 - 2143 +\\ 2099 2099 2100 - 2145 +\\ 2101 2101 2102 2102 (% class="western" %) 2103 2103 **COMPONENT: Leads ... ... @@ -2107,19 +2107,19 @@ 2107 2107 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. 2108 2108 2109 2109 (% class="western" %) 2110 - 2155 +\\ 2111 2111 2112 2112 (% class="western" %) 2113 - 2158 +\\ 2114 2114 2115 2115 (% class="western" %) 2116 - 2161 +\\ 2117 2117 2118 2118 (% class="western" %) 2119 - 2164 +\\ 2120 2120 2121 2121 (% class="western" %) 2122 - 2167 +\\ 2123 2123 2124 2124 (% class="western" %) 2125 2125 **Telemarketing Leads ... ... @@ -2171,7 +2171,7 @@ 2171 2171 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent. 2172 2172 ))) 2173 2173 2174 - 2219 +\\ 2175 2175 2176 2176 (% class="western" %) 2177 2177 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. ... ... @@ -2241,13 +2241,13 @@ 2241 2241 ))) 2242 2242 |((( 2243 2243 (% class="western" %) 2244 - 2289 +\\ 2245 2245 )))|((( 2246 2246 (% class="western" %) 2247 - 2292 +\\ 2248 2248 )))|((( 2249 2249 (% class="western" %) 2250 - 2295 +\\ 2251 2251 ))) 2252 2252 2253 2253 (% class="wrapped" %) ... ... @@ -2272,15 +2272,15 @@ 2272 2272 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format. 2273 2273 ))) 2274 2274 2275 - 2320 +\\ 2276 2276 2277 - 2322 +\\ 2278 2278 2279 - 2324 +\\ 2280 2280 2281 - 2326 +\\ 2282 2282 2283 - 2328 +\\ 2284 2284 2285 2285 (% class="western" %) 2286 2286 **API REFERENCE** ... ... @@ -2329,12 +2329,12 @@ 2329 2329 (% class="western" %) 2330 2330 Determines which type of question it is. Textbox, checkbox, select, radio. 2331 2331 There can be 6 types of questions. 2332 - 2333 - 2334 - 2335 - 2336 - 2337 - 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. 2338 2338 ))) 2339 2339 |((( 2340 2340 (% class="western" %) ... ... @@ -2357,13 +2357,13 @@ 2357 2357 Alias for admin purpose. 2358 2358 ))) 2359 2359 2360 - 2405 +\\ 2361 2361 2362 2362 (% class="western" %) 2363 - 2408 +\\ 2364 2364 2365 2365 (% class="western" %) 2366 - 2411 +\\ 2367 2367 2368 2368 (% class="western" %) 2369 2369 **Type: Choices** ... ... @@ -2430,7 +2430,7 @@ 2430 2430 Tied to which question id. 2431 2431 ))) 2432 2432 2433 - 2478 +\\ 2434 2434 2435 2435 (% class="western" %) 2436 2436 **Type: Users** ... ... @@ -2487,7 +2487,7 @@ 2487 2487 Request date. 2488 2488 ))) 2489 2489 2490 - 2535 +\\ 2491 2491 2492 2492 (% class="western" %) 2493 2493 **Type: Demo** ... ... @@ -2534,7 +2534,7 @@ 2534 2534 ... 2535 2535 ))) 2536 2536 2537 - 2582 +\\ 2538 2538 2539 2539 (% class="western" %) 2540 2540 **Type: Transactions** ... ... @@ -2681,7 +2681,7 @@ 2681 2681 If there is amount (USD) included in transaction. 2682 2682 ))) 2683 2683 2684 - 2729 +\\ 2685 2685 2686 2686 (% class="western" %) 2687 2687 **Type: Sources** ... ... @@ -2738,10 +2738,10 @@ 2738 2738 If this is a child source then list the parent source id. 2739 2739 ))) 2740 2740 2741 - 2786 +\\ 2742 2742 2743 2743 (% class="western" %) 2744 - 2789 +\\ 2745 2745 2746 2746 (% class="western" %) 2747 2747 **Type: Products** ... ... @@ -2798,7 +2798,7 @@ 2798 2798 (Array of) Terms associated with the product. 2799 2799 ))) 2800 2800 2801 - 2846 +\\ 2802 2802 2803 2803 (% class="western" %) 2804 2804 **Type: Terms** ... ... @@ -2885,7 +2885,7 @@ 2885 2885 If there is price (USD) for the term. 2886 2886 ))) 2887 2887 2888 - 2933 +\\ 2889 2889 2890 2890 (% class="western" %) 2891 2891 **Type: Resources** ... ... @@ -2996,10 +2996,20 @@ 2996 2996 Int 2997 2997 )))|((( 2998 2998 (% class="western" %) 2999 -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. 3000 3000 ))) 3046 +|(% colspan="1" %)(% colspan="1" %) 3047 +((( 3048 +FreePass 3049 +)))|(% colspan="1" %)(% colspan="1" %) 3050 +((( 3051 +Int 3052 +)))|(% colspan="1" %)(% colspan="1" %) 3053 +((( 3054 +Default value is 0. This parameter is used to provide access to protected content. 3055 +))) 3001 3001 3002 - 3057 +\\ 3003 3003 3004 3004 (% class="western" %) 3005 3005 **Type: Telemarketing** ... ... @@ -3089,8 +3089,12 @@ 3089 3089 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. 3090 3090 3091 3091 (% class="western" %) 3092 - 3147 +\\ 3093 3093 3094 3094 (% class="western" %) 3095 3095 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. 3096 3096 ))) 3152 + 3153 +\\ 3154 + 3155 +\\
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 - 48824941 +23331813 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/ 4882494/ONEcount API Documentation1 +https://info.onecount.net//wiki/spaces/OD/pages/23331813/ONEcount API Documentation