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

From version 7.1
edited by Admin
on 2017/04/05 10:57
Change comment: There is no comment for this version
To version 20.1
edited by Admin
on 2025/06/27 12:14
Change comment: Migrated property [stableId] from class [Confluence.Code.ConfluencePageClass]

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -ONEcount API Documentation
1 +OLD-ONEcount API Documentation
Content
... ... @@ -2,7 +2,7 @@
2 2  **Introduction**
3 3  
4 4  (% class="western" %)
5 -ONEcount REST API is designed to allow you to directly manipulate the underlying data within the ONEcount application. This API can be used to lookup, create and updated different ONEcount data components which are listed below.
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 7  (% class="western" %)
8 8  REST takes advantage of the HTTP request methods to layer itself into the existing HTTP architecture. These operations consist of the following:
... ... @@ -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" %)
... ... @@ -66,8 +66,7 @@
66 66  **Appkey**: THIS WILL BE PROVIDED TO YOU
67 67  
68 68  (% class="western" %)
69 -**
70 -**
69 +**~ **
71 71  
72 72  (% class="western" %)
73 73  Your HTTP requests to a REST API resource should contain the following information:
... ... @@ -90,7 +90,7 @@
90 90  )))
91 91  
92 92  (% class="western" %)
93 -
92 +\\
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 -
104 +\\
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 -
167 +\\
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,11 +221,10 @@
221 221   ]}]}}}}
222 222  
223 223  (% class="western" %)
224 -
223 +\\
225 225  
226 226  (% class="western" %)
227 -**
228 -**
226 +**~ **
229 229  
230 230  **COMPONENT: Users**
231 231  
... ... @@ -247,8 +247,9 @@
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 -
248 +\\
251 251  
250 +(% class="wrapped" %)
252 252  |(((
253 253  (% class="western" %)
254 254  **Method**
... ... @@ -274,7 +274,7 @@
274 274  GET
275 275  )))|(((
276 276  (% class="western" %)
277 -/users/1
276 +/users/<ocid or ocid_hash>
278 278  )))|(((
279 279  (% class="western" %)
280 280  Get data for user id 1. The user id can be a numeric value or a hash
... ... @@ -363,11 +363,12 @@
363 363  **OUTPUT** : Should get ocid of the user if it finds it otherwise get and error with msg user not found.
364 364  )))
365 365  
366 -
365 +\\
367 367  
368 368  (% class="western" %)
369 369  **GET method should be used to lookup users.**
370 370  
370 +(% class="wrapped" %)
371 371  |(((
372 372  (% class="western" %)
373 373  **Request**
... ... @@ -393,12 +393,16 @@
393 393  
394 394  (% class="western" %)
395 395  return: csv of question id that is requested back. The Users object returned will only have these properties plus UserId (String)
396 +
397 +(% class="western" %)
398 +If return is not provided, all the demographics will be returned.
396 396  )))
397 397  
398 -
401 +\\
399 399  
400 -
403 +\\
401 401  
405 +(% class="wrapped" %)
402 402  |(((
403 403  (% class="western" %)
404 404  **Response**
... ... @@ -417,14 +417,41 @@
417 417  Users
418 418  )))|(((
419 419  (% class="western" %)
420 -Found users returned with the demo field requested in return parameter in json format.
424 +Found users returned with the demo field requested in return parameter in json format
421 421  )))
422 422  
423 -
427 +\\
424 424  
429 +**Sample response for /users/(% style="color: rgb(80,80,80);" %)<OCID or ocid_hash>(%%)**
430 +
431 +Along with the demo in json format, the active packages and products of the user referred to as products and resources respectively are also returned.
432 +
433 +(% class="relative-table wrapped" 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 +(% class="wrapped" %)
446 +|=(((
447 +(% class="content-wrapper" %)
448 +(((
449 +[[image:attach:Screen Shot 2020-02-26 at 11.22.13 AM.png||height="250"]]
450 +)))
451 +)))
452 +
453 +\\
454 +
425 425  (% class="western" %)
426 426  **POST method should be used to create users.**
427 427  
458 +(% class="wrapped" %)
428 428  |(((
429 429  (% class="western" %)
430 430  **Request**
... ... @@ -476,6 +476,7 @@
476 476  CSV of ONEcount QuestionId's requested back in Users object in response.
477 477  )))
478 478  
510 +(% class="wrapped" %)
479 479  |(((
480 480  (% class="western" %)
481 481  **Response**
... ... @@ -497,11 +497,12 @@
497 497  Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned.
498 498  )))
499 499  
500 -
532 +\\
501 501  
502 502  (% class="western" %)
503 503  **PUT method should be used to update users.**
504 504  
537 +(% class="wrapped" %)
505 505  |(((
506 506  (% class="western" %)
507 507  **Request**
... ... @@ -543,6 +543,7 @@
543 543  RequestDate to use for the demo update. If not provided current date will be used.
544 544  )))
545 545  
579 +(% class="wrapped" %)
546 546  |(((
547 547  (% class="western" %)
548 548  **Response**
... ... @@ -565,10 +565,10 @@
565 565  )))
566 566  
567 567  (% class="western" %)
568 -
602 +\\
569 569  
570 570  (% class="western" %)
571 -
605 +\\
572 572  
573 573  (% class="western" %)
574 574  Create new users. Here in this example the JSON for request is passed in userFile.json file.
... ... @@ -576,14 +576,12 @@
576 576  {{{curl -X POST -H “Appkey: xxx” -H "Content-Type: application/json" –data-binary -d '@userFile.json' https://api.onecount.net/v2/users}}}
577 577  
578 578  (% class="western" %)
579 -**
580 -**
613 +**~ **
581 581  
582 582  (% class="western" %)
583 -**
584 -**
616 +**~ **
585 585  
586 -
618 +\\
587 587  
588 588  (% class="western" %)
589 589  **COMPONENT: Questions**
... ... @@ -719,7 +719,7 @@
719 719  JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update.
720 720  )))
721 721  
722 -
754 +\\
723 723  
724 724  (% class="western" %)
725 725  **GET method can be used to lookup questions.**
... ... @@ -777,7 +777,7 @@
777 777  Returns found question details.
778 778  )))
779 779  
780 -
812 +\\
781 781  
782 782  (% class="western" %)
783 783  **POST method should be used to create questions. The data that is sent should be in JSON format and of type questions as described in references section. Questions object will only need a choices block if the question is a multiple choice question (type=4 or 5 or 6).**
... ... @@ -826,7 +826,7 @@
826 826  Returns ONEcount question id on successful creation of the question.
827 827  )))
828 828  
829 -
861 +\\
830 830  
831 831  (% class="western" %)
832 832  PUT method should be used to update question.
... ... @@ -876,7 +876,7 @@
876 876  )))
877 877  
878 878  (% class="western" %)
879 -
911 +\\
880 880  
881 881  (% class="western" %)
882 882  Example: Get list of questions from api which has FirstName in text
... ... @@ -1024,7 +1024,7 @@
1024 1024  {"ProductID":"65","ResourceID":”121"}
1025 1025  )))
1026 1026  
1027 -
1059 +\\
1028 1028  
1029 1029  (% class="western" %)
1030 1030  **GET method should be used to lookup products.**
... ... @@ -1079,7 +1079,7 @@
1079 1079  Returns found product details.
1080 1080  )))
1081 1081  
1082 -
1114 +\\
1083 1083  
1084 1084  (% class="western" %)
1085 1085  **POST method should be used to create products.**
... ... @@ -1109,7 +1109,7 @@
1109 1109  Example:
1110 1110  
1111 1111  (% class="western" %)
1112 -{"Title":"Test123","Description":Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17}
1144 +{"Title":"Test123","Description": "Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17}
1113 1113  )))
1114 1114  
1115 1115  (% class="wrapped" %)
... ... @@ -1134,7 +1134,7 @@
1134 1134  Product Id of the newly created product.
1135 1135  )))
1136 1136  
1137 -
1169 +\\
1138 1138  
1139 1139  (% class="western" %)
1140 1140  PUT method should be used to update an individual product given the product info.
... ... @@ -1167,7 +1167,7 @@
1167 1167  **Example**:
1168 1168  
1169 1169  (% class="western" %)
1170 -{"Title":"Test123","Description":Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17}
1202 +{"Title":"Test123","Description": "Testss","PrimaryFormId":10,"ResourceID":17}
1171 1171  )))
1172 1172  
1173 1173  (% class="wrapped" %)
... ... @@ -1192,7 +1192,7 @@
1192 1192  Product id of the updated product.
1193 1193  )))
1194 1194  
1195 -
1227 +\\
1196 1196  
1197 1197  (% class="western" %)
1198 1198  **COMPONENT: Terms**
... ... @@ -1252,7 +1252,7 @@
1252 1252  JSON of the terms type object needs to be sent as post data. Id field is mandatory for update.
1253 1253  )))
1254 1254  
1255 -
1287 +\\
1256 1256  
1257 1257  (% class="western" %)
1258 1258  **GET method should be used to lookup products.**
... ... @@ -1307,7 +1307,7 @@
1307 1307  Returns found term details.
1308 1308  )))
1309 1309  
1310 -
1342 +\\
1311 1311  
1312 1312  (% class="western" %)
1313 1313  **POST method should be used to create products.**
... ... @@ -1365,7 +1365,7 @@
1365 1365  Term Id of the newly created term.
1366 1366  )))
1367 1367  
1368 -
1400 +\\
1369 1369  
1370 1370  (% class="western" %)
1371 1371  PUT method should be used to update an individual term given the term info.
... ... @@ -1392,7 +1392,7 @@
1392 1392  Term details to be updated in json format to be sent with request. Id property needs to be set to identify the term to be updated.
1393 1393  
1394 1394  (% class="western" %)
1395 -
1427 +\\
1396 1396  
1397 1397  (% class="western" %)
1398 1398  **Example**:
... ... @@ -1423,7 +1423,7 @@
1423 1423  term id of the updated term.
1424 1424  )))
1425 1425  
1426 -
1458 +\\
1427 1427  
1428 1428  (% class="western" %)
1429 1429  **COMPONENT: Resources**
... ... @@ -1461,8 +1461,7 @@
1461 1461  )))
1462 1462  
1463 1463  (% class="western" %)
1464 -**
1465 -**
1496 +**~ **
1466 1466  
1467 1467  (% class="western" %)
1468 1468  This resource is for manipulating resources resource. A resource can be created, updated or searched.
... ... @@ -1519,7 +1519,7 @@
1519 1519  JSON of the resources type object needs to be sent as post data. Id field is mandatory for update.
1520 1520  )))
1521 1521  
1522 -
1553 +\\
1523 1523  
1524 1524  (% class="western" %)
1525 1525  **GET method should be used to lookup resources.**
... ... @@ -1574,7 +1574,7 @@
1574 1574  Returns found resource details.
1575 1575  )))
1576 1576  
1577 -
1608 +\\
1578 1578  
1579 1579  (% class="western" %)
1580 1580  **POST method should be used to create resources.**
... ... @@ -1601,7 +1601,7 @@
1601 1601  resource details in json to be sent as post data. Id should not be set.
1602 1602  
1603 1603  (% class="western" %)
1604 -**Possible Request Params**: Name, Description, Type, Value
1635 +**Possible Request Params**: Name, Description, Type, Value, FreePass
1605 1605  
1606 1606  (% class="western" %)
1607 1607  **Example**:
... ... @@ -1608,6 +1608,15 @@
1608 1608  
1609 1609  (% class="western" %)
1610 1610  {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”}
1642 +
1643 +(% class="western" %)
1644 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]}
1645 +
1646 +(% class="western" %)
1647 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”, "FreePass":1}
1648 +
1649 +(% class="western" %)
1650 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1}
1611 1611  )))
1612 1612  
1613 1613  (% class="wrapped" %)
... ... @@ -1632,7 +1632,7 @@
1632 1632  Resource Id of the newly created resource.
1633 1633  )))
1634 1634  
1635 -
1675 +\\
1636 1636  
1637 1637  (% class="western" %)
1638 1638  PUT method should be used to update an individual resource given the resource info.
... ... @@ -1656,16 +1656,25 @@
1656 1656  Resource
1657 1657  )))|(((
1658 1658  (% class="western" %)
1659 -Resource details to be updated in json format to be sent with request. Id property needs to be set to identify the resource to be updated.
1699 +Resource details to be updated injsonformat to be sent withrequest. Id property needs to be set to identify the resource to be updated.
1660 1660  
1661 1661  (% class="western" %)
1662 -
1702 +\\
1663 1663  
1664 1664  (% class="western" %)
1665 -Example:
1705 +Examples:
1666 1666  
1667 1667  (% class="western" %)
1668 1668  {"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”}
1709 +
1710 +(% class="western" %)
1711 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]}
1712 +
1713 +(% class="western" %)
1714 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”,"FreePass":1}
1715 +
1716 +(% class="western" %)
1717 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1}
1669 1669  )))
1670 1670  
1671 1671  (% class="wrapped" %)
... ... @@ -1690,12 +1690,12 @@
1690 1690  resource id of the updated resource.
1691 1691  )))
1692 1692  
1693 -
1742 +\\
1694 1694  
1695 -
1744 +\\
1696 1696  
1697 1697  (% class="western" %)
1698 -
1747 +\\
1699 1699  
1700 1700  (% class="western" %)
1701 1701  **COMPONENT: Source Codes
... ... @@ -1756,7 +1756,7 @@
1756 1756  JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update.
1757 1757  )))
1758 1758  
1759 -
1808 +\\
1760 1760  
1761 1761  (% class="western" %)
1762 1762  **Sources can be looked up given the code or Id. GET method should be used for lookup.**
... ... @@ -1811,10 +1811,10 @@
1811 1811  Returns found source details.
1812 1812  )))
1813 1813  
1814 -
1863 +\\
1815 1815  
1816 1816  (% class="western" %)
1817 -
1866 +\\
1818 1818  
1819 1819  (% class="western" %)
1820 1820  POST method should be used to create an individual source given the source parameters.
... ... @@ -1863,7 +1863,7 @@
1863 1863  Returns created source code id.
1864 1864  )))
1865 1865  
1866 -
1915 +\\
1867 1867  
1868 1868  (% class="western" %)
1869 1869  **PUT method can be used to update an individual source given the id.**
... ... @@ -1912,10 +1912,10 @@
1912 1912  Returns updated source id.
1913 1913  )))
1914 1914  
1915 -
1964 +\\
1916 1916  
1917 1917  (% class="western" %)
1918 -
1967 +\\
1919 1919  
1920 1920  (% class="western" %)
1921 1921  **COMPONENT: Transactions**
... ... @@ -1965,10 +1965,10 @@
1965 1965  JSON of the Transactions type object needs to be sent as post data. Id field should not be sent.
1966 1966  )))
1967 1967  
1968 -
2017 +\\
1969 1969  
1970 1970  (% class="western" %)
1971 -
2020 +\\
1972 1972  
1973 1973  (% class="western" %)
1974 1974  Transactions can be looked up using transactionId, date range, userid. Use GET method to do lookup.
... ... @@ -2007,11 +2007,7 @@
2007 2007  EndDate: When the search should end. Only valid when UserId is set. (Date)
2008 2008  )))
2009 2009  
2010 -
2011 -
2012 -
2013 -
2014 -(% class="wrapped" %)
2059 +(% class="wrapped" style="letter-spacing: 0.0px;" %)
2015 2015  |(((
2016 2016  (% class="western" %)
2017 2017  **Response**
... ... @@ -2030,11 +2030,23 @@
2030 2030  Transactions
2031 2031  )))|(((
2032 2032  (% class="western" %)
2033 -Returns all transaction that satisfies the search criteria.
2078 +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.
2034 2034  )))
2035 2035  
2036 -
2081 +\\
2037 2037  
2083 +**Sample response for /(% style="color: rgb(80,80,80);" %)transactions/lookup?UserId=25255105:(%%)**
2084 +
2085 +(% class="wrapped" %)
2086 +|=(((
2087 +(% class="content-wrapper" %)
2088 +(((
2089 +[[image:attach:Screen Shot 2020-02-26 at 11.14.29 AM.png||width="1407"]]
2090 +)))
2091 +)))
2092 +
2093 +\\
2094 +
2038 2038  (% class="western" %)
2039 2039  POST method can be used to create user transaction. Transaction info needs to be sent as request and a TransactionId will be returned when the transaction is created.
2040 2040  
... ... @@ -2082,9 +2082,9 @@
2082 2082  Returns transactionId of the newly created transaction.
2083 2083  )))
2084 2084  
2085 -
2142 +\\
2086 2086  
2087 -
2144 +\\
2088 2088  
2089 2089  (% class="western" %)
2090 2090  **COMPONENT: Leads
... ... @@ -2094,19 +2094,19 @@
2094 2094  Stats resource can be used to submit any type of stat collected on the third party systems. Each type of stat will be represented by a sub-resource. So, for telemarketing it could be **/stats/telemarketing** endpoint, for videos it can be **/stats/videos**, for webinar it could be **/stats/webinars** etc. Right now we only have telemarketing sub-resource.
2095 2095  
2096 2096  (% class="western" %)
2097 -
2154 +\\
2098 2098  
2099 2099  (% class="western" %)
2100 -
2157 +\\
2101 2101  
2102 2102  (% class="western" %)
2103 -
2160 +\\
2104 2104  
2105 2105  (% class="western" %)
2106 -
2163 +\\
2107 2107  
2108 2108  (% class="western" %)
2109 -
2166 +\\
2110 2110  
2111 2111  (% class="western" %)
2112 2112  **Telemarketing Leads
... ... @@ -2158,7 +2158,7 @@
2158 2158  JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent.
2159 2159  )))
2160 2160  
2161 -
2218 +\\
2162 2162  
2163 2163  (% class="western" %)
2164 2164  POST method can be used to create telemarketing stat. Telemarketing info needs to be sent as request and an Id will be returned when the transaction is created.
... ... @@ -2228,13 +2228,13 @@
2228 2228  )))
2229 2229  |(((
2230 2230  (% class="western" %)
2231 -
2288 +\\
2232 2232  )))|(((
2233 2233  (% class="western" %)
2234 -
2291 +\\
2235 2235  )))|(((
2236 2236  (% class="western" %)
2237 -
2294 +\\
2238 2238  )))
2239 2239  
2240 2240  (% class="wrapped" %)
... ... @@ -2259,15 +2259,15 @@
2259 2259  Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format.
2260 2260  )))
2261 2261  
2262 -
2319 +\\
2263 2263  
2264 -
2321 +\\
2265 2265  
2266 -
2323 +\\
2267 2267  
2268 -
2325 +\\
2269 2269  
2270 -
2327 +\\
2271 2271  
2272 2272  (% class="western" %)
2273 2273  **API REFERENCE**
... ... @@ -2316,12 +2316,12 @@
2316 2316  (% class="western" %)
2317 2317  Determines which type of question it is. Textbox, checkbox, select, radio.
2318 2318  There can be 6 types of questions.
2319 - type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
2320 - type=2 means textarea type question or long response type question.
2321 - type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
2322 - type = 4 means select or dropdown type questions. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the select question.
2323 - type=5 means radio button type question. This is a multiple choice, 1 response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the radio question.
2324 - type=6 means checkbox type question. This is a multiple choice, multi response type question. When creating this type of question the choices block also needs to be part of the questions object that will hold the possible choices of the checkbox question.
2376 +type=1 means textbox type questions or short response type question. The response length needs to be less than 255 characters.
2377 +type=2 means textarea type question or long response type question.
2378 +type=3 means password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *
2379 +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.
2380 +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.
2381 +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.
2325 2325  )))
2326 2326  |(((
2327 2327  (% class="western" %)
... ... @@ -2344,13 +2344,13 @@
2344 2344  Alias for admin purpose.
2345 2345  )))
2346 2346  
2347 -
2404 +\\
2348 2348  
2349 2349  (% class="western" %)
2350 -
2407 +\\
2351 2351  
2352 2352  (% class="western" %)
2353 -
2410 +\\
2354 2354  
2355 2355  (% class="western" %)
2356 2356  **Type: Choices**
... ... @@ -2417,7 +2417,7 @@
2417 2417  Tied to which question id.
2418 2418  )))
2419 2419  
2420 -
2477 +\\
2421 2421  
2422 2422  (% class="western" %)
2423 2423  **Type: Users**
... ... @@ -2474,7 +2474,7 @@
2474 2474  Request date.
2475 2475  )))
2476 2476  
2477 -
2534 +\\
2478 2478  
2479 2479  (% class="western" %)
2480 2480  **Type: Demo**
... ... @@ -2521,7 +2521,7 @@
2521 2521  ...
2522 2522  )))
2523 2523  
2524 -
2581 +\\
2525 2525  
2526 2526  (% class="western" %)
2527 2527  **Type: Transactions**
... ... @@ -2668,7 +2668,7 @@
2668 2668  If there is amount (USD) included in transaction.
2669 2669  )))
2670 2670  
2671 -
2728 +\\
2672 2672  
2673 2673  (% class="western" %)
2674 2674  **Type: Sources**
... ... @@ -2725,10 +2725,10 @@
2725 2725  If this is a child source then list the parent source id.
2726 2726  )))
2727 2727  
2728 -
2785 +\\
2729 2729  
2730 2730  (% class="western" %)
2731 -
2788 +\\
2732 2732  
2733 2733  (% class="western" %)
2734 2734  **Type: Products**
... ... @@ -2785,7 +2785,7 @@
2785 2785  (Array of) Terms associated with the product.
2786 2786  )))
2787 2787  
2788 -
2845 +\\
2789 2789  
2790 2790  (% class="western" %)
2791 2791  **Type: Terms**
... ... @@ -2872,7 +2872,7 @@
2872 2872  If there is price (USD) for the term.
2873 2873  )))
2874 2874  
2875 -
2932 +\\
2876 2876  
2877 2877  (% class="western" %)
2878 2878  **Type: Resources**
... ... @@ -2949,14 +2949,30 @@
2949 2949  )))|(((
2950 2950  (% class="western" %)
2951 2951  String
3009 +
3010 +(% class="western" %)
3011 +or
3012 +
3013 +(% class="western" %)
3014 +Array
2952 2952  )))|(((
2953 2953  (% class="western" %)
2954 -Value of Resource Type.
3017 +Value of Resource Type:
2955 2955  
2956 2956  (% class="western" %)
2957 -Example : if the Type sent is 3 then Value would be **/digital/**
3020 +When requesting a resource (GET), you should expect a string if there is only one value. If there are multiple values, you should expect an array.
2958 2958  
2959 2959  (% class="western" %)
3023 +For creating/updating a resource (POST/PUT), it is highly recommended to send an array - this will handle single and multiple value requests.
3024 +
3025 +(% class="western" %)
3026 +Example :
3027 +
3028 +(% class="western" %)
3029 +if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].** **
3030 +**if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"]
3031 +
3032 +(% class="western" %)
2960 2960  For Function type resource leave it blank.
2961 2961  )))
2962 2962  |(((
... ... @@ -2967,10 +2967,20 @@
2967 2967  Int
2968 2968  )))|(((
2969 2969  (% class="western" %)
2970 -Default limit is 25 but all the data needs to be pulled then pass limit=0.
3043 +Default limit is 25 but if all the data needs to be pulled then pass limit=0.
2971 2971  )))
3045 +|(% colspan="1" %)(% colspan="1" %)
3046 +(((
3047 +FreePass
3048 +)))|(% colspan="1" %)(% colspan="1" %)
3049 +(((
3050 +Int
3051 +)))|(% colspan="1" %)(% colspan="1" %)
3052 +(((
3053 +Default value is 0. This parameter is used to provide access to protected content.
3054 +)))
2972 2972  
2973 -
3056 +\\
2974 2974  
2975 2975  (% class="western" %)
2976 2976  **Type: Telemarketing**
... ... @@ -3060,8 +3060,12 @@
3060 3060  Page title that belongs to the page url that is being sent. If not provided it try to pull the title from the page but if unsuccessful then it will set it as blank.
3061 3061  
3062 3062  (% class="western" %)
3063 -
3146 +\\
3064 3064  
3065 3065  (% class="western" %)
3066 3066  If the page url already exists and it doesn't match with the one that is being sent then it will throw conflict error with the title in our system.
3067 3067  )))
3151 +
3152 +\\
3153 +
3154 +\\
OCDEV-OC-API-04032017-030417-1545-35.pdf
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +57.8 KB
Content
Screen Shot 2020-02-26 at 11.14.29 AM.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +397.9 KB
Content
Screen Shot 2020-02-26 at 11.15.52 AM.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +50.1 KB
Content
Screen Shot 2020-02-26 at 11.22.13 AM.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +159.8 KB
Content
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -3539010
1 +3538995
url
... ... @@ -1,1 +1,1 @@
1 -https://info.onecount.net//wiki/spaces/OD/pages/3539010/ONEcount API Documentation
1 +https://info.onecount.net//wiki/spaces/OD/pages/3538995/OLD-ONEcount API Documentation