Changes for page ONEcount API Documentation
Last modified by Rayaan Ahmed on 2025/02/09 22:20
To version 3.1
edited by rayaan@one-count_com
on 2023/12/12 06:21
on 2023/12/12 06:21
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 3 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,0 @@ 1 -System Setup Detail and Technical Information - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.rayaan 1 +XWiki.rayaan@one-count_com - Content
-
... ... @@ -53,19 +53,15 @@ 53 53 1. Attach a resource to a product 54 54 1. Leads 55 55 11. Create a lead 56 -1. Engagements 56 +1. Engagements\\ 57 57 11. Get all Engagements 58 58 11. Get specific engagement by engagement id 59 59 11. Create Engagements 60 60 11. Update Engagements 61 -11. Add options to metric for an engagement 62 62 11. Add users data to Engagement 63 -1. Segments 64 -11. Get all Segments 65 -11. Get specific segment by segment id 66 -11. Add users to segment 67 -11. Get all segment ids for a user 68 68 63 +\\ 64 + 69 69 (% class="western" %) 70 70 **Accessing API** 71 71 ... ... @@ -75,6 +75,8 @@ 75 75 (% class="western" %) 76 76 **Appkey**: THIS WILL BE PROVIDED TO YOU 77 77 74 +(% class="western" %) 75 +\\ 78 78 79 79 (% class="western" %) 80 80 Your HTTP requests to a REST API resource should contain the following information: ... ... @@ -97,6 +97,9 @@ 97 97 ))) 98 98 99 99 (% class="western" %) 98 +\\ 99 + 100 +(% class="western" %) 100 100 **General API Usage** 101 101 102 102 (% class="western" %) ... ... @@ -105,6 +105,8 @@ 105 105 (% class="western" %) 106 106 For lookup, the parameter list will be part of the request url. 107 107 109 +(% class="western" %) 110 +\\ 108 108 109 109 (% class="western" %) 110 110 **Response** ... ... @@ -112,7 +112,7 @@ 112 112 (% class="western" %) 113 113 API will output the response in a JSON format discussed below. 114 114 115 -{{code language="yml" theme="RDark" title="Response"}} 118 +{{code language="yml" theme="RDark" title="Response" collapse="true"}} 116 116 { 117 117 "result": { 118 118 "success": "1", ... ... @@ -132,10 +132,13 @@ 132 132 } 133 133 {{/code}} 134 134 138 +(% class="western" %) 139 +\\ 135 135 136 136 (% class="western" %) 137 137 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. 138 138 144 +\\ 139 139 140 140 (% class="western" %) 141 141 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. ... ... @@ -143,18 +143,18 @@ 143 143 If the value of success is 1 then the response parameters of the called method will also be output. 144 144 145 145 (% class="western" %) 146 -For (% class="StyledLeaf___StyledSpan-sc-129cvv1-0 hSAwv slate-bold" %)**GET **requests we can pass** 152 +For (% class="StyledLeaf___StyledSpan-sc-129cvv1-0 hSAwv slate-bold" %)**GET **requests we can pass** limit **as parameter in URL. 147 147 148 148 === **COMPONENT: Users** === 149 149 150 150 (% class="western" %) 151 -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 JSONobject will have those fields. If nothing is specified by default only UserId is returned.157 +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. 152 152 153 153 (% class="western" %) 154 154 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. 155 155 156 156 (% class="western" %) 157 -In this case the provided demographic information in users JSONobject 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.163 +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. 158 158 159 159 (% class="western" %) 160 160 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. ... ... @@ -165,106 +165,89 @@ 165 165 (% class="western" %) 166 166 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. 167 167 174 +\\ 168 168 169 169 (% class="wrapped" %) 170 -|(% style="text-align:left; 177 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 171 171 ((( 172 172 (% class="western" %) 173 173 **Method** 174 -)))|(% style="text-align:left; 181 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 175 175 ((( 176 176 (% class="western" %) 177 177 **Url** 178 -)))|(% style="text-align:left; 185 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 179 179 ((( 180 180 (% class="western" %) 181 181 **Action** 182 182 ))) 183 -|(% style="text-align:left; 190 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 184 184 ((( 185 185 (% class="western" %) 186 186 GET 187 -)))|(% style="text-align:left; 194 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 188 188 ((( 189 189 (% class="western" %) 190 190 /users 191 -)))|(% style="text-align:left; 198 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 192 192 ((( 193 193 (% class="western" %) 194 194 Get users data limiting 25. 195 195 ))) 196 -|(% style="text-align:left; 203 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 197 197 ((( 198 198 (% class="western" %) 199 199 GET 200 -)))|(% style="text-align:left; 207 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 201 201 ((( 202 202 (% class="western" %) 203 203 /users/<ocid or ocid_hash> 204 -)))|(% style="text-align:left; 211 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 205 205 ((( 206 206 (% class="western" %) 207 207 Get data for user id 1. The user id can be a numeric value or a hash 208 208 ))) 209 -|(% style="text-align:left; 216 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 210 210 ((( 211 211 (% class="western" %) 212 212 GET 213 -)))|(% style="text-align:left; 220 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 214 214 ((( 215 215 (% class="western" %) 216 216 /users/lookup?1=user1@email.com&return=1,2 217 -)))|(% style="text-align:left; 224 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 218 218 ((( 219 219 (% class="western" %) 220 220 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. 221 221 222 222 (% class="western" %) 223 -Return parameter defines a CSVof question id that are requested back in response.230 +Return parameter defines a csv of question id that are requested back in response. 224 224 ))) 225 -|(% style="text-align:left; 232 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 226 226 ((( 227 227 (% class="western" %) 228 228 POST 229 -)))|(% style="text-align:left; 236 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 230 230 ((( 231 231 (% class="western" %) 232 232 /users 233 -)))|(% style="text-align:left; 240 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 234 234 ((( 235 235 (% class="western" %) 236 236 Create a new users 237 237 238 238 (% class="western" %) 239 -Parameters required to create the user needs to be sent as post data in JSON format. Below is the example of data 240 -\\Example: 241 - 242 -(% class="western" %) 243 -{"Users":{"PartnerId":1,"Demo":{"1":"rayaan@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[],"Return":"4,5,1"} 244 - 245 - 246 -(% class="western" %) 247 -1) PartherId is required, this can be any integer value. 248 - 249 -(% class="western" %) 250 -2) Demo is required it contains JSON object of user demographic information key as demo id and value as actual information of user. 251 - 252 -(% class="western" %) 253 -3) DedupeColumn is required, this contains demo id as value, used to check duplicate user based on demo id. 254 - 255 -(% class="western" %) 256 -4) Transactions is required, If user does not have any transaction pass empty array if user has a transaction pass transaction JSON object. please refer transaction API body for JSON object. 257 - 246 +Parameters required to create the user needs to be sent as post data in JSON format. 258 258 ))) 259 -|(% style="text-align:left; 248 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 260 260 ((( 261 261 (% class="western" %) 262 262 PUT 263 -)))|(% style="text-align:left; 252 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 264 264 ((( 265 265 (% class="western" %) 266 266 /users/1 267 -)))|(% style="text-align:left; 256 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 268 268 ((( 269 269 (% class="western" %) 270 270 Update user id 1. The user id can be a numeric value or a hash ... ... @@ -272,28 +272,28 @@ 272 272 (% class="western" %) 273 273 Parameters required to update the user needs to be sent as post data in JSON format. 274 274 ))) 275 -|(% style="text-align:left; 264 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 276 276 ((( 277 277 (% class="western" %) 278 278 GET 279 -)))|(% style="text-align:left; 268 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 280 280 ((( 281 281 (% class="western" %) 282 282 /users/1/partners/2 283 -)))|(% style="text-align:left; 272 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 284 284 ((( 285 285 (% class="western" %) 286 286 Get user id 1 and partner id 2's ONEcount hash. The user id can be a numeric value or a hash. 287 287 ))) 288 -|(% style="text-align:left; 277 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 289 289 ((( 290 290 (% class="western" %) 291 291 POST 292 -)))|(% style="text-align:left; 281 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 293 293 ((( 294 294 (% class="western" %) 295 295 /users/login 296 -)))|(% style="text-align:left; 285 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 297 297 ((( 298 298 (% class="western" %) 299 299 Check to see user exist with username/email and password. ... ... @@ -323,8 +323,8 @@ 323 323 **OUTPUT** : Should get OCID of the user if it finds it otherwise get and error with msg user not found. 324 324 ))) 325 325 326 -(% id="HGETAllUsers" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)327 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)All Users(%%) ==315 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 316 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Users(%%) == 328 328 329 329 ---- 330 330 ... ... @@ -334,25 +334,25 @@ 334 334 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users 335 335 {{/panel}} 336 336 337 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===326 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 338 338 339 339 ---- 340 340 341 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}330 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 342 342 343 343 ==== Example ==== 344 344 345 345 ---- 346 346 347 -(% style="color: #6b6b6b" %)Request336 +(% style="color: rgb(107,107,107);" %)Request 348 348 349 -{{code language="php" theme="RDark" title="Get All Users Request"}} 338 +{{code language="php" theme="RDark" title="Get All Users Request" collapse="true"}} 350 350 <?php 351 351 352 352 $curl = curl_init(); 353 353 354 354 curl_setopt_array($curl, array( 355 - CURLOPT_URL => ' https://api.onecount.net/v2/users',344 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users', 356 356 CURLOPT_RETURNTRANSFER => true, 357 357 CURLOPT_ENCODING => '', 358 358 CURLOPT_MAXREDIRS => 10, ... ... @@ -373,10 +373,11 @@ 373 373 374 374 {{/code}} 375 375 365 +\\ 376 376 377 -(% style="color: #6b6b6b" %)Response 200 OK367 +(% style="color: rgb(107,107,107);" %)Response 200 OK 378 378 379 -{{code language="yml" theme="RDark" collapse="true" title="Get All Users Response"}}369 +{{code language="yml" theme="RDark" title="Get All Users Response" collapse="true"}} 380 380 { 381 381 "result": { 382 382 "success": "1", ... ... @@ -862,35 +862,36 @@ 862 862 } 863 863 {{/code}} 864 864 855 +\\ 865 865 866 -(% id="HGETspecificUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)867 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)specific User(%%) ==857 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 858 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific User(%%) == 868 868 869 869 ---- 870 870 871 871 {{panel bgColor="#D3D3D3" width="100%"}} 872 - (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color: #212121" %)~{~{OCID}}863 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color: rgb(33,33,33);" %)~{~{OCID}} 873 873 {{/panel}} 874 874 875 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===866 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 876 876 877 877 ---- 878 878 879 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}870 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 880 880 881 881 ==== Example ==== 882 882 883 883 ---- 884 884 885 -(% style="color: #6b6b6b" %)Request876 +(% style="color: rgb(107,107,107);" %)Request 886 886 887 -{{code language="php" theme="RDark" title="Get specific User Request"}} 878 +{{code language="php" theme="RDark" title="Get specific User Request" collapse="true"}} 888 888 <?php 889 889 890 890 $curl = curl_init(); 891 891 892 892 curl_setopt_array($curl, array( 893 - CURLOPT_URL => ' https://api.onecount.net/v2/users/{{OCID}}',884 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/8418', 894 894 CURLOPT_RETURNTRANSFER => true, 895 895 CURLOPT_ENCODING => '', 896 896 CURLOPT_MAXREDIRS => 10, ... ... @@ -909,10 +909,11 @@ 909 909 echo $response; 910 910 {{/code}} 911 911 903 +\\ 912 912 913 -(% style="color: #6b6b6b" %)Response 200 OK905 +(% style="color: rgb(107,107,107);" %)Response 200 OK 914 914 915 -{{code language="yml" theme="RDark" collapse="true" title="Get specific user Response"}}907 +{{code language="yml" theme="RDark" title="Get specific user Response" collapse="true"}} 916 916 { 917 917 "result": { 918 918 "success": "1", ... ... @@ -960,27 +960,28 @@ 960 960 } 961 961 {{/code}} 962 962 955 +\\ 963 963 964 -(% id="HPOSTUserLogin" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)965 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)957 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 958 +== (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %) User Login(%%) == 966 966 967 967 ---- 968 968 969 969 {{panel bgColor="#D3D3D3" width="100%"}} 970 - (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color: #212121" %)/login963 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color: rgb(33,33,33);" %)/login 971 971 {{/panel}} 972 972 973 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===966 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 974 974 975 975 ---- 976 976 977 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}970 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 978 978 979 -=== (% style="color: #212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===972 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 980 980 981 981 ---- 982 982 983 -{{code language="yml" theme="RDark" title="Body"}} 976 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 984 984 {"e":"rayaan@one-count.com","p":"12345"} 985 985 {{/code}} 986 986 ... ... @@ -988,15 +988,15 @@ 988 988 989 989 ---- 990 990 991 -(% style="color: #6b6b6b" %)Request984 +(% style="color: rgb(107,107,107);" %)Request 992 992 993 -{{code language="php" theme="RDark" title="User login Request"}} 986 +{{code language="php" theme="RDark" title="User login Request" collapse="true"}} 994 994 <?php 995 995 996 996 $curl = curl_init(); 997 997 998 998 curl_setopt_array($curl, array( 999 - CURLOPT_URL => ' https://api.onecount.net/v2/users/login',992 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/login', 1000 1000 CURLOPT_RETURNTRANSFER => true, 1001 1001 CURLOPT_ENCODING => '', 1002 1002 CURLOPT_MAXREDIRS => 10, ... ... @@ -1016,10 +1016,11 @@ 1016 1016 echo $response; 1017 1017 {{/code}} 1018 1018 1012 +\\ 1019 1019 1020 -(% style="color: #6b6b6b" %)Response 200 OK1014 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1021 1021 1022 -{{code language="yml" theme="RDark" collapse="true" title="Login user Response"}}1016 +{{code language="yml" theme="RDark" title="Login user Response" collapse="true"}} 1023 1023 { 1024 1024 "result": { 1025 1025 "success": "1", ... ... @@ -1034,42 +1034,43 @@ 1034 1034 } 1035 1035 {{/code}} 1036 1036 1031 +\\ 1037 1037 1038 -(% id="HGETlookupUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)1039 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup User(%%) ==1033 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1034 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup User(%%) == 1040 1040 1041 1041 ---- 1042 1042 1043 1043 {{panel bgColor="#D3D3D3" width="100%"}} 1044 -(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color: #212121" %)/lookup?2=user_242_6298&return=1,2,3,41039 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color: rgb(33,33,33);" %)/lookup?2=user_242_6298&return=1,2,3,4 1045 1045 {{/panel}} 1046 1046 1047 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===1042 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1048 1048 1049 1049 ---- 1050 1050 1051 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}1046 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 1052 1052 1053 -=== (% style="color: #212121" %)Query Params(%%) ===1048 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 1054 1054 1055 1055 ---- 1056 1056 1057 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)2#212121" %)user_242_6298(%%)1058 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)return#212121" %)1,2,3,41052 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)2 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)user_242_6298(%%) 1053 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)return (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)1,2,3,4 1059 1059 1060 1060 ==== Example ==== 1061 1061 1062 1062 ---- 1063 1063 1064 -(% style="color: #6b6b6b" %)Request1059 +(% style="color: rgb(107,107,107);" %)Request 1065 1065 1066 -{{code language="php" theme="RDark" title="Lookup user Request"}} 1061 +{{code language="php" theme="RDark" title="Lookup user Request" collapse="true"}} 1067 1067 <?php 1068 1068 1069 1069 $curl = curl_init(); 1070 1070 1071 1071 curl_setopt_array($curl, array( 1072 - CURLOPT_URL => ' https://api.onecount.net/v2/users/lookup?2=user_242_6298&return=1,2,3,4',1067 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/lookup?2=user_242_6298&return=1%2C2%2C3%2C4', 1073 1073 CURLOPT_RETURNTRANSFER => true, 1074 1074 CURLOPT_ENCODING => '', 1075 1075 CURLOPT_MAXREDIRS => 10, ... ... @@ -1088,10 +1088,11 @@ 1088 1088 echo $response; 1089 1089 {{/code}} 1090 1090 1086 +\\ 1091 1091 1092 -(% style="color: #6b6b6b" %)Response 200 OK1088 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1093 1093 1094 -{{code language="yml" theme="RDark" collapse="true" title="Lookup user Response"}}1090 +{{code language="yml" theme="RDark" title="Lookup user Response" collapse="true"}} 1095 1095 { 1096 1096 "result": { 1097 1097 "success": "1", ... ... @@ -1114,24 +1114,25 @@ 1114 1114 } 1115 1115 {{/code}} 1116 1116 1113 +\\ 1117 1117 1118 -(% id="HGETPartners" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)1119 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)Partners(%%) ==1115 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1116 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)Partners(%%) == 1120 1120 1121 1121 ---- 1122 1122 1123 1123 {{panel bgColor="#D3D3D3" width="100%"}} 1124 -(% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color: #212121" %)/users/~{~{OCID}}/partners/~{~{Partner id}}1121 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color: rgb(33,33,33);" %)/users/~{~{OCID}}/partners/~{~{Partner id}} 1125 1125 {{/panel}} 1126 1126 1127 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===1124 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1128 1128 1129 1129 ---- 1130 1130 1131 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}1128 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 1132 1132 1133 -(% id="HPOSTCreateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)1134 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)1130 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1131 +== (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %) Create user(%%) == 1135 1135 1136 1136 ---- 1137 1137 ... ... @@ -1139,116 +1139,115 @@ 1139 1139 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users 1140 1140 {{/panel}} 1141 1141 1139 +\\ 1142 1142 1143 1143 (% class="western" %) 1144 1144 **POST method should be used to create users.** 1145 1145 1146 -(% class="wrapped" %) 1147 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1144 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1148 1148 ((( 1149 1149 (% class="western" %) 1150 1150 **Request** 1151 -)))|(% style="text-align:left; 1148 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1152 1152 ((( 1153 1153 (% class="western" %) 1154 1154 **Type** 1155 -)))|(% style="text-align:left; 1152 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1156 1156 ((( 1157 1157 (% class="western" %) 1158 1158 **Description** 1159 1159 ))) 1160 -|(% style="text-align:left; 1157 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1161 1161 ((( 1162 1162 (% class="western" %) 1163 1163 Users 1164 -)))|(% style="text-align:left; 1161 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1165 1165 ((( 1166 1166 (% class="western" %) 1167 1167 Users 1168 -)))|(% style="text-align:left; 1165 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1169 1169 ((( 1170 1170 (% class="western" %) 1171 -Users object that contains information about user to create. PartnerId Needs to be specified. PartnerId is any integer value.1168 +Users object that contains information about user to create. PartnerId Needs to be specified. 1172 1172 ))) 1173 -|(% style="text-align:left; 1170 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1174 1174 ((( 1175 1175 (% class="western" %) 1176 1176 Transactions 1177 -)))|(% style="text-align:left; 1174 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1178 1178 ((( 1179 1179 (% class="western" %) 1180 1180 Transactions 1181 -)))|(% style="text-align:left; 1178 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1182 1182 ((( 1183 1183 (% class="western" %) 1184 1184 (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. 1185 1185 ))) 1186 -|(% style="text-align:left; 1183 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1187 1187 ((( 1188 1188 (% class="western" %) 1189 1189 DedupeColumns 1190 -)))|(% style="text-align:left; 1187 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1191 1191 ((( 1192 1192 (% class="western" %) 1193 1193 String 1194 -)))|(% style="text-align:left; 1191 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1195 1195 ((( 1196 1196 (% class="western" %) 1197 1197 CSV of question id's that should be considered to find duplicate. 1198 1198 ))) 1199 -|(% style="text-align:left; 1196 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1200 1200 ((( 1201 1201 (% class="western" %) 1202 1202 Return 1203 -)))|(% style="text-align:left; 1200 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1204 1204 ((( 1205 1205 (% class="western" %) 1206 1206 String 1207 -)))|(% style="text-align:left; 1204 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1208 1208 ((( 1209 1209 (% class="western" %) 1210 1210 CSV of ONEcount QuestionId's requested back in Users object in response. 1211 1211 ))) 1212 1212 1213 -(% class="wrapped" %) 1214 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1210 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1215 1215 ((( 1216 1216 (% class="western" %) 1217 1217 **Response** 1218 -)))|(% style="text-align:left; 1214 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1219 1219 ((( 1220 1220 (% class="western" %) 1221 1221 **Type** 1222 -)))|(% style="text-align:left; 1218 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1223 1223 ((( 1224 1224 (% class="western" %) 1225 1225 **Description** 1226 1226 ))) 1227 -|(% style="text-align:left; 1223 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1228 1228 ((( 1229 1229 (% class="western" %) 1230 1230 Users 1231 1231 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1232 1232 ((( 1233 -(% class="western" style="text-align:left" %)1229 +(% class="western" align="left" %) 1234 1234 Users 1235 -)))|(% style="text-align:left; 1231 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1236 1236 ((( 1237 1237 (% class="western" %) 1238 1238 Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned. 1239 1239 ))) 1240 1240 1241 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===1237 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1242 1242 1243 1243 ---- 1244 1244 1245 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}1241 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 1246 1246 1247 -=== (% style="color: #212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===1243 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 1248 1248 1249 1249 ---- 1250 1250 1251 -{{code language="yml" theme="RDark" title="Body"}} 1247 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 1252 1252 {"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]} 1253 1253 {{/code}} 1254 1254 ... ... @@ -1256,15 +1256,15 @@ 1256 1256 1257 1257 ---- 1258 1258 1259 -(% style="color: #6b6b6b" %)Request1255 +(% style="color: rgb(107,107,107);" %)Request 1260 1260 1261 -{{code language="php" theme="RDark" title="Create User Request"}} 1257 +{{code language="php" theme="RDark" title="Create User Request" collapse="true"}} 1262 1262 <?php 1263 1263 1264 1264 $curl = curl_init(); 1265 1265 1266 1266 curl_setopt_array($curl, array( 1267 - CURLOPT_URL => ' https://api.onecount.net/v2/users',1263 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users', 1268 1268 CURLOPT_RETURNTRANSFER => true, 1269 1269 CURLOPT_ENCODING => '', 1270 1270 CURLOPT_MAXREDIRS => 10, ... ... @@ -1284,10 +1284,11 @@ 1284 1284 echo $response; 1285 1285 {{/code}} 1286 1286 1283 +\\ 1287 1287 1288 -(% style="color: #6b6b6b" %)Response 200 OK1285 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1289 1289 1290 -{{code language="yml" theme="RDark" collapse="true" title="Create user Response"}}1287 +{{code language="yml" theme="RDark" title="Create user Response" collapse="true"}} 1291 1291 { 1292 1292 "result": { 1293 1293 "success": "1", ... ... @@ -1302,9 +1302,10 @@ 1302 1302 } 1303 1303 {{/code}} 1304 1304 1302 +\\ 1305 1305 1306 -(% id="HPUTUpdateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)1307 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)Update user(%%) ==1304 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1305 +== (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(0, 83, 184)" %)PUT (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)Update user(%%) == 1308 1308 1309 1309 ---- 1310 1310 ... ... @@ -1312,103 +1312,103 @@ 1312 1312 (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/~{~{OCID(% class="nolink" %)}} 1313 1313 {{/panel}} 1314 1314 1313 +(% class="western" %) 1314 +\\ 1315 1315 1316 1316 (% class="western" %) 1317 1317 **PUT method should be used to update users.** 1318 1318 1319 -(% class="wrapped" %) 1320 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1319 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1321 1321 ((( 1322 1322 (% class="western" %) 1323 1323 **Request** 1324 -)))|(% style="text-align:left; 1323 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1325 1325 ((( 1326 1326 (% class="western" %) 1327 1327 **Type** 1328 -)))|(% style="text-align:left; 1327 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1329 1329 ((( 1330 1330 (% class="western" %) 1331 1331 **Description** 1332 1332 ))) 1333 -|(% style="text-align:left; 1332 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1334 1334 ((( 1335 1335 (% class="western" %) 1336 1336 Users 1337 -)))|(% style="text-align:left; 1336 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1338 1338 ((( 1339 1339 (% class="western" %) 1340 1340 Users 1341 -)))|(% style="text-align:left; 1340 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1342 1342 ((( 1343 1343 (% class="western" %) 1344 1344 Users object with update fields. Return property has CSV of questions id requested back in Users object. 1345 1345 ))) 1346 -|(% style="text-align:left; 1345 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1347 1347 ((( 1348 1348 (% class="western" %) 1349 1349 Return 1350 -)))|(% style="text-align:left; 1349 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1351 1351 ((( 1352 1352 (% class="western" %) 1353 1353 String 1354 -)))|(% style="text-align:left; 1353 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1355 1355 ((( 1356 1356 (% class="western" %) 1357 1357 CSV of ONEcount QuestionId's requested back in Users object in response 1358 1358 ))) 1359 -|(% style="text-align:left; 1358 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1360 1360 ((( 1361 1361 (% class="western" %) 1362 1362 RequestDate 1363 -)))|(% style="text-align:left; 1362 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1364 1364 ((( 1365 1365 (% class="western" %) 1366 1366 Date 1367 -)))|(% style="text-align:left; 1366 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1368 1368 ((( 1369 1369 (% class="western" %) 1370 1370 RequestDate to use for the demo update. If not provided current date will be used. 1371 1371 ))) 1372 1372 1373 -(% class="wrapped" %) 1374 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1372 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1375 1375 ((( 1376 1376 (% class="western" %) 1377 1377 **Response** 1378 -)))|(% style="text-align:left; 1376 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1379 1379 ((( 1380 1380 (% class="western" %) 1381 1381 **Type** 1382 -)))|(% style="text-align:left; 1380 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1383 1383 ((( 1384 1384 (% class="western" %) 1385 1385 **Description** 1386 1386 ))) 1387 -|(% style="text-align:left; 1385 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1388 1388 ((( 1389 1389 (% class="western" %) 1390 1390 Users 1391 1391 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1392 1392 ((( 1393 -(% class="western" style="text-align:left" %)1391 +(% class="western" align="left" %) 1394 1394 Users 1395 -)))|(% style="text-align:left; 1393 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1396 1396 ((( 1397 1397 (% class="western" %) 1398 1398 Updated user returned with the demo field requested in return parameter in json format. 1399 1399 ))) 1400 1400 1401 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===1399 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1402 1402 1403 1403 ---- 1404 1404 1405 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}1403 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 1406 1406 1407 -=== (% style="color: #212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===1405 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 1408 1408 1409 1409 ---- 1410 1410 1411 -{{code language="yml" theme="RDark" title="Body"}} 1409 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 1412 1412 {"Users":{"Demo":{"6":"title1"}}} 1413 1413 {{/code}} 1414 1414 ... ... @@ -1416,15 +1416,15 @@ 1416 1416 1417 1417 ---- 1418 1418 1419 -(% style="color: #6b6b6b" %)Request1417 +(% style="color: rgb(107,107,107);" %)Request 1420 1420 1421 -{{code language="php" theme="RDark" title="Update User Request"}} 1419 +{{code language="php" theme="RDark" title="Update User Request" collapse="true"}} 1422 1422 <?php 1423 1423 1424 1424 $curl = curl_init(); 1425 1425 1426 1426 curl_setopt_array($curl, array( 1427 - CURLOPT_URL => ' https://api.onecount.net/v2/users/{{OCID}}',1425 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/{{OCID}}', 1428 1428 CURLOPT_RETURNTRANSFER => true, 1429 1429 CURLOPT_ENCODING => '', 1430 1430 CURLOPT_MAXREDIRS => 10, ... ... @@ -1446,10 +1446,11 @@ 1446 1446 1447 1447 {{/code}} 1448 1448 1447 +\\ 1449 1449 1450 -(% style="color: #6b6b6b" %)Response 200 OK1449 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1451 1451 1452 -{{code language="yml" theme="RDark" collapse="true" title="Update user Response"}}1451 +{{code language="yml" theme="RDark" title="Update user Response" collapse="true"}} 1453 1453 { 1454 1454 "result": { 1455 1455 "success": "1", ... ... @@ -1467,9 +1467,11 @@ 1467 1467 } 1468 1468 {{/code}} 1469 1469 1469 +(% class="western" %) 1470 +\\ 1470 1470 1471 -(% id="HCOMPONENT:Questions"class="western" %)1472 - ===**COMPONENT: Questions**===1472 +(% class="western" %) 1473 +**COMPONENT: Questions** 1473 1473 1474 1474 (% class="western" %) 1475 1475 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). ... ... @@ -1484,140 +1484,132 @@ 1484 1484 There can be 6 types of questions: 1485 1485 1486 1486 (% class="wrapped" %) 1487 -|(% style="text-align:left; 1488 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1488 1488 ((( 1489 -(% class="western" style="text-align:center" %)1490 +(% class="western" align="center" %) 1490 1490 **Type** 1491 -)))|(% style="text-align:left; 1492 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1492 1492 ((( 1493 1493 (% class="western" %) 1494 1494 **Description** 1495 1495 ))) 1496 -|(% style="text-align:left; 1497 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1497 1497 ((( 1498 -(% class="western" style="text-align:center" %)1499 - 01500 -)))|(% style="text-align:left; 1499 +(% class="western" align="center" %) 1500 +1 1501 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1501 1501 ((( 1502 1502 (% class="western" %) 1503 -Text type questions or short response type question. The response length needs to be less than 255 characters. 1504 +Textbox type questions or short response type question. The response length needs to be less than 255 characters. 1504 1504 ))) 1505 -|(% style="text-align:left; 1506 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1506 1506 ((( 1507 -(% class="western" style="text-align:center" %)1508 - 11509 -)))|(% style="text-align:left; 1508 +(% class="western" align="center" %) 1509 +2 1510 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1510 1510 ((( 1511 1511 (% class="western" %) 1512 1512 Textarea type question or long response type question. 1513 1513 ))) 1514 -|(% style="text-align:left; vertical-align:top" %)((( 1515 -(% style="text-align: left;vertical-align: top;" %) 1515 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1516 1516 ((( 1517 -(% class="western" style="text-align:center" %) 1518 -2 1519 -))) 1520 - 1517 +(% class="western" align="center" %) 1518 +3 1519 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1521 1521 ((( 1522 - 1523 -))) 1524 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1525 -((( 1526 1526 (% class="western" %) 1527 1527 Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *. 1528 1528 ))) 1529 -|(% style="text-align:left; vertical-align:top" %) 3|(% style="text-align:left; vertical-align:top" %)Numeric type question. 1530 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1524 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1531 1531 ((( 1532 -(% class="western" style="text-align:center" %)1526 +(% class="western" align="center" %) 1533 1533 4 1534 -)))|(% style="text-align:left; 1528 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1535 1535 ((( 1536 1536 (% class="western" %) 1537 1537 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. 1538 1538 ))) 1539 -|(% style="text-align:left; 1533 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1540 1540 ((( 1541 -(% class="western" style="text-align:center" %)1535 +(% class="western" align="center" %) 1542 1542 5 1543 -)))|(% style="text-align:left; 1537 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1544 1544 ((( 1545 1545 (% class="western" %) 1546 1546 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. 1547 1547 ))) 1548 -|(% style="text-align:left; 1542 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1549 1549 ((( 1550 -(% class="western" style="text-align:center" %)1544 +(% class="western" align="center" %) 1551 1551 6 1552 -)))|(% style="text-align:left; 1546 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1553 1553 ((( 1554 1554 (% class="western" %) 1555 1555 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. 1556 1556 ))) 1557 -|(% style="text-align:left; vertical-align:top" %) 7 |(% style="text-align:left; vertical-align:top" %)Date type question. 1558 1558 1559 1559 (% class="wrapped" %) 1560 -|(% style="text-align:left; 1553 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1561 1561 ((( 1562 1562 (% class="western" %) 1563 1563 **Method** 1564 -)))|(% style="text-align:left; 1557 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1565 1565 ((( 1566 1566 (% class="western" %) 1567 1567 **Url** 1568 -)))|(% style="text-align:left; 1561 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1569 1569 ((( 1570 1570 (% class="western" %) 1571 1571 **Action** 1572 1572 ))) 1573 -|(% style="text-align:left; 1566 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1574 1574 ((( 1575 1575 (% class="western" %) 1576 1576 GET 1577 -)))|(% style="text-align:left; 1570 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1578 1578 ((( 1579 1579 (% class="western" %) 1580 1580 /questions 1581 -)))|(% style="text-align:left; 1574 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1582 1582 ((( 1583 1583 (% class="western" %) 1584 1584 List all questions 1585 1585 ))) 1586 -|(% style="text-align:left; 1579 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1587 1587 ((( 1588 1588 (% class="western" %) 1589 1589 GET 1590 -)))|(% style="text-align:left; 1583 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1591 1591 ((( 1592 1592 (% class="western" %) 1593 1593 /questions/1 1594 -)))|(% style="text-align:left; 1587 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1595 1595 ((( 1596 1596 (% class="western" %) 1597 1597 Returns question id 1 1598 1598 ))) 1599 -|(% style="text-align:left; 1592 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1600 1600 ((( 1601 1601 (% class="western" %) 1602 1602 GET 1603 -)))|(% style="text-align:left; 1596 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1604 1604 ((( 1605 1605 (% class="western" %) 1606 1606 /questions/lookup?Text=Email 1607 -)))|(% style="text-align:left; 1600 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1608 1608 ((( 1609 1609 (% class="western" %) 1610 1610 Returns all questions with “Email" in question text 1611 1611 ))) 1612 -|(% style="text-align:left; 1605 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1613 1613 ((( 1614 1614 (% class="western" %) 1615 1615 POST 1616 -)))|(% style="text-align:left; 1609 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1617 1617 ((( 1618 1618 (% class="western" %) 1619 1619 /questions 1620 -)))|(% style="text-align:left; 1613 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1621 1621 ((( 1622 1622 (% class="western" %) 1623 1623 Create a new question ... ... @@ -1625,15 +1625,15 @@ 1625 1625 (% class="western" %) 1626 1626 JSON of the Questions type object needs to be sent as post data. Id field should not be sent. 1627 1627 ))) 1628 -|(% style="text-align:left; 1621 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1629 1629 ((( 1630 1630 (% class="western" %) 1631 1631 PUT 1632 -)))|(% style="text-align:left; 1625 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1633 1633 ((( 1634 1634 (% class="western" %) 1635 1635 /questions 1636 -)))|(% style="text-align:left; 1629 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1637 1637 ((( 1638 1638 (% class="western" %) 1639 1639 Update a question ... ... @@ -1640,41 +1640,40 @@ 1640 1640 1641 1641 (% class="western" %) 1642 1642 JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update. 1643 - 1644 -(% class="western" %) 1645 -NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body. 1646 1646 ))) 1647 1647 1648 -(% id="HGETAllQuestions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1649 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Questions(%%) == 1638 +\\ 1650 1650 1640 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1641 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Questions(%%) == 1642 + 1651 1651 ---- 1652 1652 1653 1653 ---- 1654 1654 1655 1655 {{panel bgColor="#D3D3D3" width="100%"}} 1656 -(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/(% style="color: #212121" %)questions1648 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/(% style="color: rgb(33,33,33);" %)questions 1657 1657 {{/panel}} 1658 1658 1659 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===1651 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1660 1660 1661 1661 ---- 1662 1662 1663 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}1655 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 1664 1664 1665 1665 ==== Example ==== 1666 1666 1667 1667 ---- 1668 1668 1669 -(% style="color: #6b6b6b" %)Request1661 +(% style="color: rgb(107,107,107);" %)Request 1670 1670 1671 -{{code language="php" theme="RDark" title="Get All Questions Request"}} 1663 +{{code language="php" theme="RDark" title="Get All Questions Request" collapse="true"}} 1672 1672 <?php 1673 1673 1674 1674 $curl = curl_init(); 1675 1675 1676 1676 curl_setopt_array($curl, array( 1677 - CURLOPT_URL => ' https://api.onecount.net/v2/questions',1669 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/questions', 1678 1678 CURLOPT_RETURNTRANSFER => true, 1679 1679 CURLOPT_ENCODING => '', 1680 1680 CURLOPT_MAXREDIRS => 10, ... ... @@ -1696,10 +1696,11 @@ 1696 1696 1697 1697 {{/code}} 1698 1698 1691 +\\ 1699 1699 1700 -(% style="color: #6b6b6b" %)Response 200 OK1693 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1701 1701 1702 -{{code language="yml" theme="RDark" collapse="true" title="Get All Questions Response"}}1695 +{{code language="yml" theme="RDark" title="Get All Questions Response" collapse="true"}} 1703 1703 { 1704 1704 "result": { 1705 1705 "success": "1", ... ... @@ -3785,35 +3785,36 @@ 3785 3785 } 3786 3786 {{/code}} 3787 3787 3781 +\\ 3788 3788 3789 -(% id="HGETspecificQuestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)3790 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)specific Question(%%) ==3783 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 3784 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific Question(%%) == 3791 3791 3792 3792 ---- 3793 3793 3794 3794 {{panel bgColor="#D3D3D3" width="100%"}} 3795 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/questions/~{~{QUESTION ID}}3789 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/questions/~{~{QUESTION ID}} 3796 3796 {{/panel}} 3797 3797 3798 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===3792 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 3799 3799 3800 3800 ---- 3801 3801 3802 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}3796 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 3803 3803 3804 3804 ==== Example ==== 3805 3805 3806 3806 ---- 3807 3807 3808 -(% style="color: #6b6b6b" %)Request3802 +(% style="color: rgb(107,107,107);" %)Request 3809 3809 3810 -{{code language="php" theme="RDark" title="Get specific Question Request"}} 3804 +{{code language="php" theme="RDark" title="Get specific Question Request" collapse="true"}} 3811 3811 <?php 3812 3812 3813 3813 $curl = curl_init(); 3814 3814 3815 3815 curl_setopt_array($curl, array( 3816 - CURLOPT_URL => ' https://api.onecount.net/v2/questions/{{QUESTION ID}}',3810 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/questions/{{QUESTION ID}}', 3817 3817 CURLOPT_RETURNTRANSFER => true, 3818 3818 CURLOPT_ENCODING => '', 3819 3819 CURLOPT_MAXREDIRS => 10, ... ... @@ -3832,10 +3832,11 @@ 3832 3832 echo $response; 3833 3833 {{/code}} 3834 3834 3829 +\\ 3835 3835 3836 -(% style="color: #6b6b6b" %)Response 200 OK3831 +(% style="color: rgb(107,107,107);" %)Response 200 OK 3837 3837 3838 -{{code language="yml" theme="RDark" collapse="true" title="Get specific question Response"}}3833 +{{code language="yml" theme="RDark" title="Get specific question Response" collapse="true"}} 3839 3839 { 3840 3840 "result": { 3841 3841 "success": "1", ... ... @@ -3855,42 +3855,43 @@ 3855 3855 } 3856 3856 {{/code}} 3857 3857 3853 +\\ 3858 3858 3859 -(% id="HGETlookupquestionbytext" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)3860 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup question by text(%%) ==3855 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 3856 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup question by text(%%) == 3861 3861 3862 3862 ---- 3863 3863 3864 3864 {{panel bgColor="#D3D3D3" width="100%"}} 3865 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/questions/lookup?Text=COUNTRY3861 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/questions/lookup?Text=COUNTRY 3866 3866 {{/panel}} 3867 3867 3868 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===3864 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 3869 3869 3870 3870 ---- 3871 3871 3872 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}3868 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 3873 3873 3874 -=== (% style="color: #212121" %)Query Params(%%) ===3870 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 3875 3875 3876 3876 ---- 3877 3877 3878 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Text COUNTRY(%%)3879 - 3874 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Text COUNTRY(%%) 3875 +\\ 3880 3880 3881 3881 ==== Example ==== 3882 3882 3883 3883 ---- 3884 3884 3885 -(% style="color: #6b6b6b" %)Request3881 +(% style="color: rgb(107,107,107);" %)Request 3886 3886 3887 -{{code language="php" theme="RDark" title="Lookup question by text Request"}} 3883 +{{code language="php" theme="RDark" title="Lookup question by text Request" collapse="true"}} 3888 3888 <?php 3889 3889 3890 3890 $curl = curl_init(); 3891 3891 3892 3892 curl_setopt_array($curl, array( 3893 - CURLOPT_URL => ' https://api.onecount.net/v2/questions/lookup?Text=COUNTRY',3889 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/questions/lookup?Text=COUNTRY', 3894 3894 CURLOPT_RETURNTRANSFER => true, 3895 3895 CURLOPT_ENCODING => '', 3896 3896 CURLOPT_MAXREDIRS => 10, ... ... @@ -3909,10 +3909,11 @@ 3909 3909 echo $response; 3910 3910 {{/code}} 3911 3911 3908 +\\ 3912 3912 3913 -(% style="color: #6b6b6b" %)Response 200 OK3910 +(% style="color: rgb(107,107,107);" %)Response 200 OK 3914 3914 3915 -{{code language="yml" theme="RDark" collapse="true" title="Lookup question by title Response"}}3912 +{{code language="yml" theme="RDark" title="Lookup question by title Response" collapse="true"}} 3916 3916 { 3917 3917 "result": { 3918 3918 "success": "1", ... ... @@ -5299,42 +5299,43 @@ 5299 5299 } 5300 5300 {{/code}} 5301 5301 5299 +\\ 5302 5302 5303 -(% id="HGETlookupquestionbyType" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)5304 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup question by Type(%%) ==5301 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 5302 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup question by Type(%%) == 5305 5305 5306 5306 ---- 5307 5307 5308 5308 {{panel bgColor="#D3D3D3" width="100%"}} 5309 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/questions/lookup?Type=45307 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/questions/lookup?Type=4 5310 5310 {{/panel}} 5311 5311 5312 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===5310 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 5313 5313 5314 5314 ---- 5315 5315 5316 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}5314 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 5317 5317 5318 -=== (% style="color: #212121" %)Query Params(%%) ===5316 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 5319 5319 5320 5320 ---- 5321 5321 5322 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Type 4(%%)5323 - 5320 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Type 4(%%) 5321 +\\ 5324 5324 5325 5325 ==== Example ==== 5326 5326 5327 5327 ---- 5328 5328 5329 -(% style="color: #6b6b6b" %)Request5327 +(% style="color: rgb(107,107,107);" %)Request 5330 5330 5331 -{{code language="php" theme="RDark" title="Lookup question by Type Request"}} 5329 +{{code language="php" theme="RDark" title="Lookup question by Type Request" collapse="true"}} 5332 5332 <?php 5333 5333 5334 5334 $curl = curl_init(); 5335 5335 5336 5336 curl_setopt_array($curl, array( 5337 - CURLOPT_URL => ' https://api.onecount.net/v2/questions/lookup?Type=4',5335 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/questions/lookup?Type=4', 5338 5338 CURLOPT_RETURNTRANSFER => true, 5339 5339 CURLOPT_ENCODING => '', 5340 5340 CURLOPT_MAXREDIRS => 10, ... ... @@ -5353,10 +5353,11 @@ 5353 5353 echo $response; 5354 5354 {{/code}} 5355 5355 5354 +\\ 5356 5356 5357 -(% style="color: #6b6b6b" %)Response 200 OK5356 +(% style="color: rgb(107,107,107);" %)Response 200 OK 5358 5358 5359 -{{code language="yml" theme="RDark" collapse="true" title="Lookup question by type Response"}}5358 +{{code language="yml" theme="RDark" title="Lookup question by type Response" collapse="true"}} 5360 5360 { 5361 5361 "result": { 5362 5362 "success": "1", ... ... @@ -8002,27 +8002,29 @@ 8002 8002 } 8003 8003 {{/code}} 8004 8004 8004 +(% class="western" %) 8005 +\\ 8005 8005 8006 -(% id="HPOSTCreatequestiontypenumeric2Ctext2Cpassword2Ctextareaanddate" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)8007 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)8007 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8008 +== (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %) Create question type numeric, text, password, textarea and date(%%) == 8008 8008 8009 8009 ---- 8010 8010 8011 8011 {{panel bgColor="#D3D3D3" width="100%"}} 8012 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/questions8013 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/questions 8013 8013 {{/panel}} 8014 8014 8015 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===8016 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 8016 8016 8017 8017 ---- 8018 8018 8019 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}8020 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 8020 8020 8021 -=== (% style="color: #212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===8022 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 8022 8022 8023 8023 ---- 8024 8024 8025 -{{code language="yml" theme="RDark" title="Body"}} 8026 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 8026 8026 {"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"} 8027 8027 {{/code}} 8028 8028 ... ... @@ -8030,15 +8030,15 @@ 8030 8030 8031 8031 ---- 8032 8032 8033 -(% style="color: #6b6b6b" %)Request8034 +(% style="color: rgb(107,107,107);" %)Request 8034 8034 8035 -{{code language="php" theme="RDark" title="Create Question Request"}} 8036 +{{code language="php" theme="RDark" title="Create Question Request" collapse="true"}} 8036 8036 <?php 8037 8037 8038 8038 $curl = curl_init(); 8039 8039 8040 8040 curl_setopt_array($curl, array( 8041 - CURLOPT_URL => ' https://api.onecount.net/v2/questions',8042 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/questions', 8042 8042 CURLOPT_RETURNTRANSFER => true, 8043 8043 CURLOPT_ENCODING => '', 8044 8044 CURLOPT_MAXREDIRS => 10, ... ... @@ -8058,10 +8058,11 @@ 8058 8058 echo $response; 8059 8059 {{/code}} 8060 8060 8062 +\\ 8061 8061 8062 -(% style="color: #6b6b6b" %)Response 200 OK8064 +(% style="color: rgb(107,107,107);" %)Response 200 OK 8063 8063 8064 -{{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}8066 +{{code language="yml" theme="RDark" title="Create question Response" collapse="true"}} 8065 8065 { 8066 8066 "result": { 8067 8067 "success": "1", ... ... @@ -8078,27 +8078,28 @@ 8078 8078 } 8079 8079 {{/code}} 8080 8080 8083 +\\ 8081 8081 8082 -(% id="HPOSTCreatequestiontypeselect2Cradioandcheckbox" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)8083 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)8085 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8086 +== (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %) Create question type select, radio and checkbox(%%) == 8084 8084 8085 8085 ---- 8086 8086 8087 8087 {{panel bgColor="#D3D3D3" width="100%"}} 8088 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/questions8091 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/questions 8089 8089 {{/panel}} 8090 8090 8091 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===8094 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 8092 8092 8093 8093 ---- 8094 8094 8095 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}8098 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 8096 8096 8097 -=== (% style="color: #212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===8100 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 8098 8098 8099 8099 ---- 8100 8100 8101 -{{code language="yml" theme="RDark" title="Body"}} 8104 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 8102 8102 {"Text":"Test from API 6","Type":4,"Alias":"Test from API 6", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]} 8103 8103 {{/code}} 8104 8104 ... ... @@ -8106,15 +8106,15 @@ 8106 8106 8107 8107 ---- 8108 8108 8109 -(% style="color: #6b6b6b" %)Request8112 +(% style="color: rgb(107,107,107);" %)Request 8110 8110 8111 -{{code language="php" theme="RDark" title="Create Question Request"}} 8114 +{{code language="php" theme="RDark" title="Create Question Request" collapse="true"}} 8112 8112 <?php 8113 8113 8114 8114 $curl = curl_init(); 8115 8115 8116 8116 curl_setopt_array($curl, array( 8117 - CURLOPT_URL => ' https://api.onecount.net/v2/questions',8120 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/questions', 8118 8118 CURLOPT_RETURNTRANSFER => true, 8119 8119 CURLOPT_ENCODING => '', 8120 8120 CURLOPT_MAXREDIRS => 10, ... ... @@ -8134,10 +8134,11 @@ 8134 8134 echo $response; 8135 8135 {{/code}} 8136 8136 8140 +\\ 8137 8137 8138 -(% style="color: #6b6b6b" %)Response 200 OK8142 +(% style="color: rgb(107,107,107);" %)Response 200 OK 8139 8139 8140 -{{code language="yml" theme="RDark" collapse="true" title="Create question Response"}}8144 +{{code language="yml" theme="RDark" title="Create question Response" collapse="true"}} 8141 8141 { 8142 8142 "result": { 8143 8143 "success": "1", ... ... @@ -8154,28 +8154,28 @@ 8154 8154 } 8155 8155 {{/code}} 8156 8156 8161 +\\ 8157 8157 8158 -(% id="HPUTUpdatequestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)8159 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)Update question(%%) ==8163 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8164 +== (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(0, 83, 184)" %)PUT (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)Update question(%%) == 8160 8160 8166 +---- 8161 8161 8162 -NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body. 8163 - 8164 8164 {{panel bgColor="#D3D3D3" width="100%"}} 8165 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/questions/~{~{QUESTION ID}}8169 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/questions/~{~{QUESTION ID}} 8166 8166 {{/panel}} 8167 8167 8168 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===8172 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 8169 8169 8170 8170 ---- 8171 8171 8172 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}8176 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 8173 8173 8174 -=== (% style="color: #212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===8178 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 8175 8175 8176 8176 ---- 8177 8177 8178 -{{code language="yml" theme="RDark" title="Body"}} 8182 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 8179 8179 {"Text":"Test from API 6 changed","Type":4,"Alias":"Test from API 6 changed", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]} 8180 8180 {{/code}} 8181 8181 ... ... @@ -8183,15 +8183,15 @@ 8183 8183 8184 8184 ---- 8185 8185 8186 -(% style="color: #6b6b6b" %)Request8190 +(% style="color: rgb(107,107,107);" %)Request 8187 8187 8188 -{{code language="php" theme="RDark" title="Update Question Request"}} 8192 +{{code language="php" theme="RDark" title="Update Question Request" collapse="true"}} 8189 8189 <?php 8190 8190 8191 8191 $curl = curl_init(); 8192 8192 8193 8193 curl_setopt_array($curl, array( 8194 - CURLOPT_URL => ' https://api.onecount.net/v2/questions/{{QUESTION ID}}',8198 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/questions/503', 8195 8195 CURLOPT_RETURNTRANSFER => true, 8196 8196 CURLOPT_ENCODING => '', 8197 8197 CURLOPT_MAXREDIRS => 10, ... ... @@ -8213,10 +8213,11 @@ 8213 8213 8214 8214 {{/code}} 8215 8215 8220 +\\ 8216 8216 8217 -(% style="color: #6b6b6b" %)Response 200 OK8222 +(% style="color: rgb(107,107,107);" %)Response 200 OK 8218 8218 8219 -{{code language="yml" theme="RDark" collapse="true" title="Update Question Response"}}8224 +{{code language="yml" theme="RDark" title="Update Question Response" collapse="true"}} 8220 8220 { 8221 8221 "result": { 8222 8222 "success": "1", ... ... @@ -8233,101 +8233,103 @@ 8233 8233 } 8234 8234 {{/code}} 8235 8235 8241 +(% class="western" %) 8242 +\\ 8236 8236 8237 -(% id="HCOMPONENT:Products" class="western" %)8238 - ===**COMPONENT: Products**===8244 +(% class="western" %) 8245 +**COMPONENT: Products** 8239 8239 8240 8240 (% class="western" %) 8241 8241 This resource is for manipulating products resource. A product can be created, updated or searched. 8242 8242 8243 8243 (% class="wrapped" %) 8244 -|(% style="text-align:left; 8251 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8245 8245 ((( 8246 8246 (% class="western" %) 8247 8247 **Method** 8248 -)))|(% style="text-align:left; 8255 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8249 8249 ((( 8250 8250 (% class="western" %) 8251 8251 **Url** 8252 -)))|(% style="text-align:left; 8259 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8253 8253 ((( 8254 8254 (% class="western" %) 8255 8255 **Action** 8256 8256 ))) 8257 -|(% style="text-align:left; 8264 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8258 8258 ((( 8259 8259 (% class="western" %) 8260 8260 GET 8261 -)))|(% style="text-align:left; 8268 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8262 8262 ((( 8263 8263 (% class="western" %) 8264 8264 /products 8265 -)))|(% style="text-align:left; 8272 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8266 8266 ((( 8267 8267 (% class="western" %) 8268 8268 Get all product details 8269 8269 ))) 8270 -|(% style="text-align:left; 8277 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8271 8271 ((( 8272 8272 (% class="western" %) 8273 8273 GET 8274 -)))|(% style="text-align:left; 8281 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8275 8275 ((( 8276 8276 (% class="western" %) 8277 8277 /products/5 8278 -)))|(% style="text-align:left; 8285 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8279 8279 ((( 8280 8280 (% class="western" %) 8281 8281 Get product id 5 8282 8282 ))) 8283 -|(% style="text-align:left; 8290 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8284 8284 ((( 8285 8285 (% class="western" %) 8286 8286 GET 8287 -)))|(% style="text-align:left; 8294 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8288 8288 ((( 8289 8289 (% class="western" %) 8290 8290 /products/lookup?Title=productname 8291 -)))|(% style="text-align:left; 8298 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8292 8292 ((( 8293 8293 (% class="western" %) 8294 8294 Lookup products by Title 8295 8295 ))) 8296 -|(% style="text-align:left; 8303 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8297 8297 ((( 8298 8298 (% class="western" %) 8299 8299 POST 8300 -)))|(% style="text-align:left; 8307 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8301 8301 ((( 8302 8302 (% class="western" %) 8303 8303 /products 8304 -)))|(% style="text-align:left; 8311 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8305 8305 ((( 8306 8306 (% class="western" %) 8307 8307 JSON of the Products type object needs to be sent as post data. Id field should not be sent. 8308 8308 ))) 8309 -|(% style="text-align:left; 8316 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8310 8310 ((( 8311 8311 (% class="western" %) 8312 8312 PUT 8313 -)))|(% style="text-align:left; 8320 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8314 8314 ((( 8315 8315 (% class="western" %) 8316 8316 /products/5 8317 -)))|(% style="text-align:left; 8324 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8318 8318 ((( 8319 8319 (% class="western" %) 8320 8320 JSON of the Products type object needs to be sent as post data. Id field is mandatory for update. 8321 8321 ))) 8322 -|(% style="text-align:left; 8329 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8323 8323 ((( 8324 8324 (% class="western" %) 8325 8325 POST 8326 -)))|(% style="text-align:left; 8333 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8327 8327 ((( 8328 8328 (% class="western" %) 8329 8329 /products/attachResource 8330 -)))|(% style="text-align:left; 8337 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8331 8331 ((( 8332 8332 (% class="western" %) 8333 8333 JSON of the Product and Resource ids to be sent as post data. ... ... @@ -8342,36 +8342,38 @@ 8342 8342 {"ProductID":"65","ResourceID":”121"} 8343 8343 ))) 8344 8344 8345 -(% id="HGETAllProducts" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8346 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Products(%%) == 8352 +\\ 8347 8347 8354 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8355 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Products(%%) == 8356 + 8348 8348 ---- 8349 8349 8350 8350 ---- 8351 8351 8352 8352 {{panel bgColor="#D3D3D3" width="100%"}} 8353 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/products8362 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/products 8354 8354 {{/panel}} 8355 8355 8356 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===8365 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 8357 8357 8358 8358 ---- 8359 8359 8360 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}8369 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 8361 8361 8362 8362 ==== Example ==== 8363 8363 8364 8364 ---- 8365 8365 8366 -(% style="color: #6b6b6b" %)Request8375 +(% style="color: rgb(107,107,107);" %)Request 8367 8367 8368 -{{code language="php" theme="RDark" title="Get All Products Request"}} 8377 +{{code language="php" theme="RDark" title="Get All Products Request" collapse="true"}} 8369 8369 <?php 8370 8370 8371 8371 $curl = curl_init(); 8372 8372 8373 8373 curl_setopt_array($curl, array( 8374 - CURLOPT_URL => ' https://api.onecount.net/v2/products',8383 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/products', 8375 8375 CURLOPT_RETURNTRANSFER => true, 8376 8376 CURLOPT_ENCODING => '', 8377 8377 CURLOPT_MAXREDIRS => 10, ... ... @@ -8392,10 +8392,11 @@ 8392 8392 8393 8393 {{/code}} 8394 8394 8404 +\\ 8395 8395 8396 -(% style="color: #6b6b6b" %)Response 200 OK8406 +(% style="color: rgb(107,107,107);" %)Response 200 OK 8397 8397 8398 -{{code language="yml" theme="RDark" collapse="true" title="Get All Products Response"}}8408 +{{code language="yml" theme="RDark" title="Get All Products Response" collapse="true"}} 8399 8399 { 8400 8400 "result": { 8401 8401 "success": "1", ... ... @@ -8629,35 +8629,36 @@ 8629 8629 } 8630 8630 {{/code}} 8631 8631 8642 +\\ 8632 8632 8633 -(% id="HGETspecificProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)8634 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)specific Product(%%) ==8644 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8645 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific Product(%%) == 8635 8635 8636 8636 ---- 8637 8637 8638 8638 {{panel bgColor="#D3D3D3" width="100%"}} 8639 - (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color: #212121" %)/products/~{~{product id}}8650 + (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color: rgb(33,33,33);" %)/products/~{~{product id}} 8640 8640 {{/panel}} 8641 8641 8642 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===8653 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 8643 8643 8644 8644 ---- 8645 8645 8646 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}8657 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 8647 8647 8648 8648 ==== Example ==== 8649 8649 8650 8650 ---- 8651 8651 8652 -(% style="color: #6b6b6b" %)Request8663 +(% style="color: rgb(107,107,107);" %)Request 8653 8653 8654 -{{code language="php" theme="RDark" title="Get specific Product Request"}} 8665 +{{code language="php" theme="RDark" title="Get specific Product Request" collapse="true"}} 8655 8655 <?php 8656 8656 8657 8657 $curl = curl_init(); 8658 8658 8659 8659 curl_setopt_array($curl, array( 8660 - CURLOPT_URL => ' https://api.onecount.net/v2/users/products/{{product id}}',8671 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/products/{{Product id}}', 8661 8661 CURLOPT_RETURNTRANSFER => true, 8662 8662 CURLOPT_ENCODING => '', 8663 8663 CURLOPT_MAXREDIRS => 10, ... ... @@ -8676,10 +8676,11 @@ 8676 8676 echo $response; 8677 8677 {{/code}} 8678 8678 8690 +\\ 8679 8679 8680 -(% style="color: #6b6b6b" %)Response 200 OK8692 +(% style="color: rgb(107,107,107);" %)Response 200 OK 8681 8681 8682 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Product Response"}}8694 +{{code language="yml" theme="RDark" title="Get specific Product Response" collapse="true"}} 8683 8683 { 8684 8684 "result": { 8685 8685 "success": "1", ... ... @@ -8711,41 +8711,42 @@ 8711 8711 } 8712 8712 {{/code}} 8713 8713 8726 +\\ 8714 8714 8715 -(% id="HGETlookupProduct"style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)8716 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup Product(%%) ==8728 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8729 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup Product(%%) == 8717 8717 8718 8718 ---- 8719 8719 8720 8720 {{panel bgColor="#D3D3D3" width="100%"}} 8721 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/products/lookup?Title=~{~{Product Name}}8734 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/products/lookup?Title=~{~{Product Name}} 8722 8722 {{/panel}} 8723 8723 8724 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===8737 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 8725 8725 8726 8726 ---- 8727 8727 8728 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}8741 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 8729 8729 8730 -=== (% style="color: #212121" %)Query Params(%%) ===8743 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 8731 8731 8732 8732 ---- 8733 8733 8734 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)TitleauueY item-key nolinksc-fznXWL" style="color:#212121" %)~{~{Product Name}}(% class="Text__TextContainer-sc-1kqigik-0cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)8747 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Title (% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key nolink" style="color: rgb(33, 33, 33); color: rgb(33, 33, 33)" %)~{~{Product Name}}(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %) 8735 8735 8736 8736 ==== Example ==== 8737 8737 8738 8738 ---- 8739 8739 8740 -(% style="color: #6b6b6b" %)Request8753 +(% style="color: rgb(107,107,107);" %)Request 8741 8741 8742 -{{code language="php" theme="RDark" title="Lookup Product Request"}} 8755 +{{code language="php" theme="RDark" title="Lookup Product Request" collapse="true"}} 8743 8743 <?php 8744 8744 8745 8745 $curl = curl_init(); 8746 8746 8747 8747 curl_setopt_array($curl, array( 8748 - CURLOPT_URL => ' https://api.onecount.net/v2/products/lookup?Title={{ProductName}}',8761 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/products/lookup?Title={{Package Name}}', 8749 8749 CURLOPT_RETURNTRANSFER => true, 8750 8750 CURLOPT_ENCODING => '', 8751 8751 CURLOPT_MAXREDIRS => 10, ... ... @@ -8764,10 +8764,11 @@ 8764 8764 echo $response; 8765 8765 {{/code}} 8766 8766 8780 +\\ 8767 8767 8768 -(% style="color: #6b6b6b" %)Response 200 OK8782 +(% style="color: rgb(107,107,107);" %)Response 200 OK 8769 8769 8770 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Product Response"}}8784 +{{code language="yml" theme="RDark" title="Lookup Product Response" collapse="true"}} 8771 8771 { 8772 8772 "result": { 8773 8773 "success": "1", ... ... @@ -8795,336 +8795,211 @@ 8795 8795 } 8796 8796 {{/code}} 8797 8797 8812 +\\ 8798 8798 8799 -(% id="HPOSTCreateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8800 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Product(%%) == 8814 +\\ 8801 8801 8802 - ----8816 +\\ 8803 8803 8804 -{{panel bgColor="#D3D3D3" width="100%"}} 8805 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products 8806 -{{/panel}} 8818 +\\ 8807 8807 8808 - === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===8820 +\\ 8809 8809 8810 - ----8822 +\\ 8811 8811 8812 - (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}8824 +\\ 8813 8813 8814 - === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===8826 +\\ 8815 8815 8816 - ----8828 +\\ 8817 8817 8818 -{{code language="yml" theme="RDark" title="Body"}} 8819 -{"Title":"Test API package creation 2","Description": "Test API package creation 2","Terms":{"Name":"Test term for API 2"},"PrimaryFormId":0} 8820 -{{/code}} 8830 +\\ 8821 8821 8822 - ==== Example ====8832 +\\ 8823 8823 8824 - ----8834 +\\ 8825 8825 8826 - (% style="color:#6b6b6b" %)Request8836 +\\ 8827 8827 8828 -{{code language="php" theme="RDark" title="Create Product Request"}} 8829 - <?php 8838 +\\ 8830 8830 8831 - $curl = curl_init();8840 +\\ 8832 8832 8833 -curl_setopt_array($curl, array( 8834 - CURLOPT_URL => 'https://api.onecount.net/v2/products', 8835 - CURLOPT_RETURNTRANSFER => true, 8836 - CURLOPT_ENCODING => '', 8837 - CURLOPT_MAXREDIRS => 10, 8838 - CURLOPT_TIMEOUT => 0, 8839 - CURLOPT_FOLLOWLOCATION => true, 8840 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8841 - CURLOPT_CUSTOMREQUEST => 'POST', 8842 - CURLOPT_POSTFIELDS =>'{"Title":"Test API package creation 1","Description": "Test API package creation 1","Terms":{"Name":"Test term for API 1"},"PrimaryFormId":0}', 8843 - CURLOPT_HTTPHEADER => array( 8844 - 'Appkey: {{ONECOUNT API KEY}}' 8845 - ), 8846 -)); 8842 +\\ 8847 8847 8848 - $response = curl_exec($curl);8844 +\\ 8849 8849 8850 -curl_close($curl); 8851 -echo $response; 8852 -{{/code}} 8846 +\\ 8853 8853 8848 +\\ 8854 8854 8855 - (% style="color:#6b6b6b" %)Response 200 OK8850 +\\ 8856 8856 8857 -{{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}} 8858 - { 8859 - "result": { 8860 - "success": "1", 8861 - "error": { 8862 - "code": "", 8863 - "message": "" 8864 - } 8865 - }, 8866 - "Products": [ 8867 - { 8868 - "ProductId": 599 8869 - } 8870 - ] 8871 -} 8872 -{{/code}} 8852 +\\ 8873 8873 8854 +\\ 8874 8874 8875 -(% id="HPUTUpdateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8876 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Product(%%) == 8856 +\\ 8877 8877 8878 - ----8858 +\\ 8879 8879 8880 -{{panel bgColor="#D3D3D3" width="100%"}} 8881 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/~{~{Product id}} 8882 -{{/panel}} 8860 +\\ 8883 8883 8884 - === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===8862 +\\ 8885 8885 8886 - ----8864 +\\ 8887 8887 8888 - (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}8866 +\\ 8889 8889 8890 - === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===8868 +\\ 8891 8891 8892 - ----8870 +\\ 8893 8893 8894 -{{code language="yml" theme="RDark" title="Body"}} 8895 -{"Title":"Test API package 23","Description": "Test API package 23","PrimaryFormId":0} 8896 -{{/code}} 8872 +\\ 8897 8897 8898 - ==== Example ====8874 +\\ 8899 8899 8900 - ----8876 +\\ 8901 8901 8902 - (% style="color:#6b6b6b" %)Request8878 +\\ 8903 8903 8904 -{{code language="php" theme="RDark" title="Update Product Request"}} 8905 -<?php 8880 +\\ 8906 8906 8907 - $curl = curl_init();8882 +\\ 8908 8908 8909 -curl_setopt_array($curl, array( 8910 - CURLOPT_URL => 'https://api.onecount.net/v2/products/{{Product id}}', 8911 - CURLOPT_RETURNTRANSFER => true, 8912 - CURLOPT_ENCODING => '', 8913 - CURLOPT_MAXREDIRS => 10, 8914 - CURLOPT_TIMEOUT => 0, 8915 - CURLOPT_FOLLOWLOCATION => true, 8916 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8917 - CURLOPT_CUSTOMREQUEST => 'PUT', 8918 - CURLOPT_POSTFIELDS =>'{"Title":"Test API package 1","Description": "Test API package 1","PrimaryFormId":0}', 8919 - CURLOPT_HTTPHEADER => array( 8920 - 'Appkey: {{ONECOUNT API KEY}}' 8921 - ), 8922 -)); 8884 +\\ 8923 8923 8924 - $response = curl_exec($curl);8886 +\\ 8925 8925 8926 -curl_close($curl); 8927 -echo $response; 8928 - 8929 -{{/code}} 8888 +\\ 8930 8930 8890 +\\ 8931 8931 8932 - (% style="color:#6b6b6b" %)Response 200 OK8892 +\\ 8933 8933 8934 -{{code language="yml" theme="RDark" collapse="true" title="Update Product Response"}} 8935 - { 8936 - "result": { 8937 - "success": "1", 8938 - "error": { 8939 - "code": "", 8940 - "message": "" 8941 - } 8942 - }, 8943 - "Products": [ 8944 - { 8945 - "ProductId": 599, 8946 - "Title": "Test API package 1", 8947 - "Description": "Test API package 1" 8948 - } 8949 - ] 8950 -} 8951 -{{/code}} 8894 +\\ 8952 8952 8896 +\\ 8953 8953 8954 -(% id="HPOSTAttachResourcetoProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8955 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Attach Resource to Product(%%) == 8898 +\\ 8956 8956 8957 - ----8900 +\\ 8958 8958 8959 -{{panel bgColor="#D3D3D3" width="100%"}} 8960 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/attachResource 8961 -{{/panel}} 8902 +\\ 8962 8962 8963 - === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===8904 +\\ 8964 8964 8965 - ----8906 +\\ 8966 8966 8967 - (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}8908 +\\ 8968 8968 8969 - === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===8910 +\\ 8970 8970 8971 ----- 8912 +(% class="western" %) 8913 +**COMPONENT: Terms** 8972 8972 8973 -{{code language="yml" theme="RDark" title="Body"}} 8974 -{"ProductID":"599","ResourceID":"903"} 8975 -{{/code}} 8976 - 8977 -==== Example ==== 8978 - 8979 ----- 8980 - 8981 -(% style="color:#6b6b6b" %)Request 8982 - 8983 -{{code language="php" theme="RDark" title="Attach Resource to Product Request"}} 8984 - <?php 8985 - 8986 -$curl = curl_init(); 8987 - 8988 -curl_setopt_array($curl, array( 8989 - CURLOPT_URL => 'https://api.onecount.net/v2/products/attachResource', 8990 - CURLOPT_RETURNTRANSFER => true, 8991 - CURLOPT_ENCODING => '', 8992 - CURLOPT_MAXREDIRS => 10, 8993 - CURLOPT_TIMEOUT => 0, 8994 - CURLOPT_FOLLOWLOCATION => true, 8995 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8996 - CURLOPT_CUSTOMREQUEST => 'POST', 8997 - CURLOPT_POSTFIELDS =>'{"ProductID":"599","ResourceID":"903"}', 8998 - CURLOPT_HTTPHEADER => array( 8999 - 'Appkey: {{ONECOUNT API KEY}}' 9000 - ), 9001 -)); 9002 - 9003 -$response = curl_exec($curl); 9004 - 9005 -curl_close($curl); 9006 -echo $response; 9007 -{{/code}} 9008 - 9009 - 9010 -(% style="color:#6b6b6b" %)Response 200 OK 9011 - 9012 -{{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}} 9013 - { 9014 - "result": { 9015 - "success": "1", 9016 - "error": { 9017 - "code": "", 9018 - "message": "" 9019 - } 9020 - }, 9021 - "Products": "599" 9022 -} 9023 -{{/code}} 9024 - 9025 -(% id="HCOMPONENT:Terms" class="western" %) 9026 -=== **COMPONENT: Terms** === 9027 - 9028 9028 (% class="western" %) 9029 9029 This resource is for manipulating terms resource. A term can be created, updated or searched. 9030 9030 9031 9031 (% class="wrapped" %) 9032 -|(% style="text-align:left; 8919 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9033 9033 ((( 9034 9034 (% class="western" %) 9035 9035 **Method** 9036 -)))|(% style="text-align:left; 8923 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9037 9037 ((( 9038 9038 (% class="western" %) 9039 9039 **Url** 9040 -)))|(% style="text-align:left; 8927 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9041 9041 ((( 9042 9042 (% class="western" %) 9043 9043 **Action** 9044 9044 ))) 9045 -|(% style="text-align:left; 8932 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9046 9046 ((( 9047 9047 (% class="western" %) 9048 9048 GET 9049 -)))|(% style="text-align:left; 8936 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9050 9050 ((( 9051 9051 (% class="western" %) 9052 9052 /terms/5 9053 -)))|(% style="text-align:left; 8940 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9054 9054 ((( 9055 9055 (% class="western" %) 9056 9056 Get term id 5 9057 9057 ))) 9058 -|(% style="text-align:left; 8945 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9059 9059 ((( 9060 9060 (% class="western" %) 9061 9061 GET 9062 -)))|(% style="text-align:left; 8949 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9063 9063 ((( 9064 9064 (% class="western" %) 9065 9065 /terms/lookup?Name=termname 9066 -)))|(% style="text-align:left; 8953 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9067 9067 ((( 9068 9068 (% class="western" %) 9069 9069 Lookup terms by Name 9070 9070 ))) 9071 -|(% style="text-align:left; 8958 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9072 9072 ((( 9073 9073 (% class="western" %) 9074 9074 POST 9075 -)))|(% style="text-align:left; 8962 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9076 9076 ((( 9077 9077 (% class="western" %) 9078 9078 /terms 9079 -)))|(% style="text-align:left; 8966 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9080 9080 ((( 9081 9081 (% class="western" %) 9082 9082 JSON of the terms type object needs to be sent as post data. Id field should not be sent. 9083 9083 ))) 9084 -|(% style="text-align:left; 8971 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9085 9085 ((( 9086 9086 (% class="western" %) 9087 9087 PUT 9088 -)))|(% style="text-align:left; 8975 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9089 9089 ((( 9090 9090 (% class="western" %) 9091 9091 /terms/5 9092 -)))|(% style="text-align:left; 8979 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9093 9093 ((( 9094 9094 (% class="western" %) 9095 9095 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update. 9096 9096 ))) 9097 9097 9098 -(% id="HGETAllTerms" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9099 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Terms(%%) == 8985 +\\ 9100 9100 8987 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8988 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Terms(%%) == 8989 + 9101 9101 ---- 9102 9102 9103 9103 ---- 9104 9104 9105 9105 {{panel bgColor="#D3D3D3" width="100%"}} 9106 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/terms8995 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/terms 9107 9107 {{/panel}} 9108 9108 9109 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===8998 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 9110 9110 9111 9111 ---- 9112 9112 9113 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}9002 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 9114 9114 9115 9115 ==== Example ==== 9116 9116 9117 9117 ---- 9118 9118 9119 -(% style="color: #6b6b6b" %)Request9008 +(% style="color: rgb(107,107,107);" %)Request 9120 9120 9121 -{{code language="php" theme="RDark" title="Get All Terms Request"}} 9010 +{{code language="php" theme="RDark" title="Get All Terms Request" collapse="true"}} 9122 9122 <?php 9123 9123 9124 9124 $curl = curl_init(); 9125 9125 9126 9126 curl_setopt_array($curl, array( 9127 - CURLOPT_URL => ' https://api.onecount.net/v2/terms',9016 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/terms', 9128 9128 CURLOPT_RETURNTRANSFER => true, 9129 9129 CURLOPT_ENCODING => '', 9130 9130 CURLOPT_MAXREDIRS => 10, ... ... @@ -9143,10 +9143,11 @@ 9143 9143 echo $response; 9144 9144 {{/code}} 9145 9145 9035 +\\ 9146 9146 9147 -(% style="color: #6b6b6b" %)Response 200 OK9037 +(% style="color: rgb(107,107,107);" %)Response 200 OK 9148 9148 9149 -{{code language="yml" theme="RDark" collapse="true" title="Get All Terms Response"}}9039 +{{code language="yml" theme="RDark" title="Get All Terms Response" collapse="true"}} 9150 9150 { 9151 9151 "result": { 9152 9152 "success": "1", ... ... @@ -9277,35 +9277,36 @@ 9277 9277 } 9278 9278 {{/code}} 9279 9279 9170 +\\ 9280 9280 9281 -(% id="HGETspecificTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)9282 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)specific Term(%%) ==9172 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9173 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific Term(%%) == 9283 9283 9284 9284 ---- 9285 9285 9286 9286 {{panel bgColor="#D3D3D3" width="100%"}} 9287 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/terms/~{~{Term Id}}9178 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/terms/~{~{Term Id}} 9288 9288 {{/panel}} 9289 9289 9290 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===9181 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 9291 9291 9292 9292 ---- 9293 9293 9294 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}9185 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 9295 9295 9296 9296 ==== Example ==== 9297 9297 9298 9298 ---- 9299 9299 9300 -(% style="color: #6b6b6b" %)Request9191 +(% style="color: rgb(107,107,107);" %)Request 9301 9301 9302 -{{code language="php" theme="RDark" title="Get specific Term Request"}} 9193 +{{code language="php" theme="RDark" title="Get specific Term Request" collapse="true"}} 9303 9303 <?php 9304 9304 9305 9305 $curl = curl_init(); 9306 9306 9307 9307 curl_setopt_array($curl, array( 9308 - CURLOPT_URL => ' https://api.onecount.net/v2/terms/{{Term Id}}',9199 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/terms/{{Term Id}}', 9309 9309 CURLOPT_RETURNTRANSFER => true, 9310 9310 CURLOPT_ENCODING => '', 9311 9311 CURLOPT_MAXREDIRS => 10, ... ... @@ -9324,10 +9324,11 @@ 9324 9324 echo $response; 9325 9325 {{/code}} 9326 9326 9218 +\\ 9327 9327 9328 -(% style="color: #6b6b6b" %)Response 200 OK9220 +(% style="color: rgb(107,107,107);" %)Response 200 OK 9329 9329 9330 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Term Response"}}9222 +{{code language="yml" theme="RDark" title="Get specific Term Response" collapse="true"}} 9331 9331 { 9332 9332 "result": { 9333 9333 "success": "1", ... ... @@ -9350,41 +9350,42 @@ 9350 9350 } 9351 9351 {{/code}} 9352 9352 9245 +\\ 9353 9353 9354 -(% id="HGETlookupTerm"style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)9355 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup Term(%%) ==9247 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9248 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup Term(%%) == 9356 9356 9357 9357 ---- 9358 9358 9359 9359 {{panel bgColor="#D3D3D3" width="100%"}} 9360 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/terms/lookup?Name={(%%){Term Name}}9253 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/terms/lookup?Name={(%%){Term Name}} 9361 9361 {{/panel}} 9362 9362 9363 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===9256 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 9364 9364 9365 9365 ---- 9366 9366 9367 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}9260 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 9368 9368 9369 -=== (% style="color: #212121" %)Query Params(%%) ===9262 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 9370 9370 9371 9371 ---- 9372 9372 9373 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)NameauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Term Name}}9266 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Name (% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key nolink" style="color: rgb(33, 33, 33); color: rgb(33, 33, 33)" %){(% style="color: rgb(33,33,33);" class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key nolink" %){Term Name}} 9374 9374 9375 9375 ==== Example ==== 9376 9376 9377 9377 ---- 9378 9378 9379 -(% style="color: #6b6b6b" %)Request9272 +(% style="color: rgb(107,107,107);" %)Request 9380 9380 9381 -{{code language="php" theme="RDark" title="Lookup Term Request"}} 9274 +{{code language="php" theme="RDark" title="Lookup Term Request" collapse="true"}} 9382 9382 <?php 9383 9383 9384 9384 $curl = curl_init(); 9385 9385 9386 9386 curl_setopt_array($curl, array( 9387 - CURLOPT_URL => ' https://api.onecount.net/v2/terms/lookup?Name={{Term Name}}',9280 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/terms/lookup?Name={{Term Name}} ', 9388 9388 CURLOPT_RETURNTRANSFER => true, 9389 9389 CURLOPT_ENCODING => '', 9390 9390 CURLOPT_MAXREDIRS => 10, ... ... @@ -9403,198 +9403,25 @@ 9403 9403 echo $response; 9404 9404 {{/code}} 9405 9405 9299 +\\ 9406 9406 9407 -(% style="color: #6b6b6b" %)Response 200 OK9301 +(% style="color: rgb(107,107,107);" %)Response 200 OK 9408 9408 9409 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Term Response"}} 9410 -{ 9411 - "result": { 9412 - "success": "1", 9413 - "error": { 9414 - "code": "", 9415 - "message": "" 9416 - } 9417 - }, 9418 - "Terms": [ 9419 - { 9420 - "Id": 431, 9421 - "Name": "Test term for API 1", 9422 - "Description": null, 9423 - "Duration": 0, 9424 - "DurationUnit": "", 9425 - "Price": "0.00", 9426 - "ProductId": 599 9427 - } 9428 - ] 9429 -} 9430 -{{/code}} 9303 +{{code language="yml" theme="RDark" title="Lookup Term Response" collapse="true"/}} 9431 9431 9305 +\\ 9432 9432 9433 -(% id="HPOSTCreateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9434 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Term(%%) == 9307 +\\ 9435 9435 9436 - ----9309 +\\ 9437 9437 9438 -{{panel bgColor="#D3D3D3" width="100%"}} 9439 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms 9440 -{{/panel}} 9311 +\\ 9441 9441 9442 - === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===9313 +\\ 9443 9443 9444 ----- 9315 +(% class="western" %) 9316 +**COMPONENT: Resources** 9445 9445 9446 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 9447 - 9448 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 9449 - 9450 ----- 9451 - 9452 -{{code language="yml" theme="RDark" title="Body"}} 9453 -{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599} 9454 -{{/code}} 9455 - 9456 -==== Example ==== 9457 - 9458 ----- 9459 - 9460 -(% style="color:#6b6b6b" %)Request 9461 - 9462 -{{code language="php" theme="RDark" title="Create Term Request"}} 9463 -<?php 9464 - 9465 -$curl = curl_init(); 9466 - 9467 -curl_setopt_array($curl, array( 9468 - CURLOPT_URL => 'https://api.onecount.net/v2/terms', 9469 - CURLOPT_RETURNTRANSFER => true, 9470 - CURLOPT_ENCODING => '', 9471 - CURLOPT_MAXREDIRS => 10, 9472 - CURLOPT_TIMEOUT => 0, 9473 - CURLOPT_FOLLOWLOCATION => true, 9474 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9475 - CURLOPT_CUSTOMREQUEST => 'POST', 9476 - CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599} 9477 - 9478 -', 9479 - CURLOPT_HTTPHEADER => array( 9480 - 'Appkey: {{ONECOUNT API KEY}}' 9481 - ), 9482 -)); 9483 - 9484 -$response = curl_exec($curl); 9485 - 9486 -curl_close($curl); 9487 -echo $response; 9488 - 9489 - 9490 -{{/code}} 9491 - 9492 - 9493 -(% style="color:#6b6b6b" %)Response 200 OK 9494 - 9495 -{{code language="yml" theme="RDark" collapse="true" title="Create Term Response"}} 9496 -{ 9497 - "result": { 9498 - "success": "1", 9499 - "error": { 9500 - "code": "", 9501 - "message": "" 9502 - } 9503 - }, 9504 - "Terms": [ 9505 - { 9506 - "Id": 447 9507 - } 9508 - ] 9509 -} 9510 -{{/code}} 9511 - 9512 - 9513 -(% id="HPUTUpdateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9514 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Term(%%) == 9515 - 9516 ----- 9517 - 9518 -{{panel bgColor="#D3D3D3" width="100%"}} 9519 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}} 9520 -{{/panel}} 9521 - 9522 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9523 - 9524 ----- 9525 - 9526 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 9527 - 9528 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 9529 - 9530 ----- 9531 - 9532 -{{code language="yml" theme="RDark" title="Body"}} 9533 -{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599} 9534 -{{/code}} 9535 - 9536 -==== Example ==== 9537 - 9538 ----- 9539 - 9540 -(% style="color:#6b6b6b" %)Request 9541 - 9542 -{{code language="php" theme="RDark" title="Update Term Request"}} 9543 - <?php 9544 - 9545 -$curl = curl_init(); 9546 - 9547 -curl_setopt_array($curl, array( 9548 - CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}', 9549 - CURLOPT_RETURNTRANSFER => true, 9550 - CURLOPT_ENCODING => '', 9551 - CURLOPT_MAXREDIRS => 10, 9552 - CURLOPT_TIMEOUT => 0, 9553 - CURLOPT_FOLLOWLOCATION => true, 9554 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9555 - CURLOPT_CUSTOMREQUEST => 'PUT', 9556 - CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}', 9557 - CURLOPT_HTTPHEADER => array( 9558 - 'Appkey: {{ONECOUNT API KEY}}' 9559 - ), 9560 -)); 9561 - 9562 -$response = curl_exec($curl); 9563 - 9564 -curl_close($curl); 9565 -echo $response; 9566 -{{/code}} 9567 - 9568 - 9569 -(% style="color:#6b6b6b" %)Response 200 OK 9570 - 9571 -{{code language="yml" theme="RDark" collapse="true" title="Update Term Response"}} 9572 - { 9573 - "result": { 9574 - "success": "1", 9575 - "error": { 9576 - "code": "", 9577 - "message": "" 9578 - } 9579 - }, 9580 - "Terms": [ 9581 - { 9582 - "Id": 447, 9583 - "Name": "Test API term creation update", 9584 - "Description": "Test API term creation update", 9585 - "Duration": 10, 9586 - "DurationUnit": "", 9587 - "Price": "0.00", 9588 - "ProductId": 599 9589 - } 9590 - ] 9591 -} 9592 -{{/code}} 9593 - 9594 - 9595 -(% id="HCOMPONENT:Resources" class="western" %) 9596 -=== **COMPONENT: Resources** === 9597 - 9598 9598 (% class="western" %) 9599 9599 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. 9600 9600 ... ... @@ -9634,102 +9634,104 @@ 9634 9634 This resource is for manipulating resources resource. A resource can be created, updated or searched. 9635 9635 9636 9636 (% class="wrapped" %) 9637 -|(% style="text-align:left; 9357 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9638 9638 ((( 9639 9639 (% class="western" %) 9640 9640 **Method** 9641 -)))|(% style="text-align:left; 9361 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9642 9642 ((( 9643 9643 (% class="western" %) 9644 9644 **Url** 9645 -)))|(% style="text-align:left; 9365 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9646 9646 ((( 9647 9647 (% class="western" %) 9648 9648 **Action** 9649 9649 ))) 9650 -|(% style="text-align:left; 9370 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9651 9651 ((( 9652 9652 (% class="western" %) 9653 9653 GET 9654 -)))|(% style="text-align:left; 9374 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9655 9655 ((( 9656 9656 (% class="western" %) 9657 9657 /resources/5 9658 -)))|(% style="text-align:left; 9378 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9659 9659 ((( 9660 9660 (% class="western" %) 9661 9661 Get resource id 5 9662 9662 ))) 9663 -|(% style="text-align:left; 9383 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9664 9664 ((( 9665 9665 (% class="western" %) 9666 9666 GET 9667 -)))|(% style="text-align:left; 9387 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9668 9668 ((( 9669 9669 (% class="western" %) 9670 9670 /resources/lookup?Name=resourcename 9671 -)))|(% style="text-align:left; 9391 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9672 9672 ((( 9673 9673 (% class="western" %) 9674 9674 Lookup resources by Name 9675 9675 ))) 9676 -|(% style="text-align:left; 9396 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9677 9677 ((( 9678 9678 (% class="western" %) 9679 9679 POST 9680 -)))|(% style="text-align:left; 9400 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9681 9681 ((( 9682 9682 (% class="western" %) 9683 9683 /resources 9684 -)))|(% style="text-align:left; 9404 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9685 9685 ((( 9686 9686 (% class="western" %) 9687 9687 JSON of the resources type object needs to be sent as post data. Id field should not be sent. 9688 9688 ))) 9689 -|(% style="text-align:left; 9409 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9690 9690 ((( 9691 9691 (% class="western" %) 9692 9692 PUT 9693 -)))|(% style="text-align:left; 9413 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9694 9694 ((( 9695 9695 (% class="western" %) 9696 9696 /resources/5 9697 -)))|(% style="text-align:left; 9417 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9698 9698 ((( 9699 9699 (% class="western" %) 9700 9700 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update. 9701 9701 ))) 9702 9702 9703 -(% id="HGETAllResources" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9704 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Resources(%%) == 9423 +\\ 9705 9705 9425 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9426 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Resources(%%) == 9427 + 9706 9706 ---- 9707 9707 9708 9708 ---- 9709 9709 9710 9710 {{panel bgColor="#D3D3D3" width="100%"}} 9711 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/resources9433 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/resources 9712 9712 {{/panel}} 9713 9713 9714 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===9436 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 9715 9715 9716 9716 ---- 9717 9717 9718 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}9440 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 9719 9719 9720 9720 ==== Example ==== 9721 9721 9722 9722 ---- 9723 9723 9724 -(% style="color: #6b6b6b" %)Request9446 +(% style="color: rgb(107,107,107);" %)Request 9725 9725 9726 -{{code language="php" theme="RDark" title="Get All Resource Request"}} 9448 +{{code language="php" theme="RDark" title="Get All Resource Request" collapse="true"}} 9727 9727 <?php 9728 9728 9729 9729 $curl = curl_init(); 9730 9730 9731 9731 curl_setopt_array($curl, array( 9732 - CURLOPT_URL => ' https://api.onecount.net/v2/resources',9454 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/resources?limit=10', 9733 9733 CURLOPT_RETURNTRANSFER => true, 9734 9734 CURLOPT_ENCODING => '', 9735 9735 CURLOPT_MAXREDIRS => 10, ... ... @@ -9748,10 +9748,11 @@ 9748 9748 echo $response; 9749 9749 {{/code}} 9750 9750 9473 +\\ 9751 9751 9752 -(% style="color: #6b6b6b" %)Response 200 OK9475 +(% style="color: rgb(107,107,107);" %)Response 200 OK 9753 9753 9754 -{{code language="yml" theme="RDark" collapse="true" title="Get All Resource Response"}}9477 +{{code language="yml" theme="RDark" title="Get All Resource Response" collapse="true"}} 9755 9755 { 9756 9756 "result": { 9757 9757 "success": "1", ... ... @@ -9845,35 +9845,36 @@ 9845 9845 } 9846 9846 {{/code}} 9847 9847 9571 +\\ 9848 9848 9849 -(% id="HGETspecificResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)9850 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)specific Resource(%%) ==9573 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9574 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific Resource(%%) == 9851 9851 9852 9852 ---- 9853 9853 9854 9854 {{panel bgColor="#D3D3D3" width="100%"}} 9855 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/resources/{(%%){Resource ID}}9579 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/resources/{(%%){Resource ID}} 9856 9856 {{/panel}} 9857 9857 9858 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===9582 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 9859 9859 9860 9860 ---- 9861 9861 9862 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}9586 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 9863 9863 9864 9864 ==== Example ==== 9865 9865 9866 9866 ---- 9867 9867 9868 -(% style="color: #6b6b6b" %)Request9592 +(% style="color: rgb(107,107,107);" %)Request 9869 9869 9870 -{{code language="php" theme="RDark" title="Get specific Resource Request"}} 9594 +{{code language="php" theme="RDark" title="Get specific Resource Request" collapse="true"}} 9871 9871 <?php 9872 9872 9873 9873 $curl = curl_init(); 9874 9874 9875 9875 curl_setopt_array($curl, array( 9876 - CURLOPT_URL => ' https://api.onecount.net/v2/resources/{{Resource ID}}',9600 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/resources/{{Resource ID}}', 9877 9877 CURLOPT_RETURNTRANSFER => true, 9878 9878 CURLOPT_ENCODING => '', 9879 9879 CURLOPT_MAXREDIRS => 10, ... ... @@ -9892,10 +9892,11 @@ 9892 9892 echo $response; 9893 9893 {{/code}} 9894 9894 9619 +\\ 9895 9895 9896 -(% style="color: #6b6b6b" %)Response 200 OK9621 +(% style="color: rgb(107,107,107);" %)Response 200 OK 9897 9897 9898 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Resource Response"}}9623 +{{code language="yml" theme="RDark" title="Get specific Resource Response" collapse="true"}} 9899 9899 { 9900 9900 "result": { 9901 9901 "success": "1", ... ... @@ -9917,361 +9917,163 @@ 9917 9917 } 9918 9918 {{/code}} 9919 9919 9645 +\\ 9920 9920 9921 -(% id="HGETlookupResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)9922 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup Resource(%%) ==9647 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9648 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup Resource(%%) == 9923 9923 9924 9924 ---- 9925 9925 9926 9926 {{panel bgColor="#D3D3D3" width="100%"}} 9927 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/resources/lookup?Name={(%%){ResourceName}}9653 +(% class="nolink" %)[[https:~~/~~/api.onecount.net/v2/users>>url:https://api.onecount.net/v2/users||shape="rect"]](% style="color: rgb(33,33,33);" %)/lookup?2=user_242_6298&return=1,2,3,4 9928 9928 {{/panel}} 9929 9929 9930 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===9656 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 9931 9931 9932 9932 ---- 9933 9933 9934 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}9660 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 9935 9935 9936 -=== (% style="color: #212121" %)Query Params(%%) ===9662 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 9937 9937 9938 9938 ---- 9939 9939 9940 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Name (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Resource Name}} 9666 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)2 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)user_242_6298(%%) 9667 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)return (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)1,2,3,4 9941 9941 9942 9942 ==== Example ==== 9943 9943 9944 9944 ---- 9945 9945 9946 -(% style="color: #6b6b6b" %)Request9673 +(% style="color: rgb(107,107,107);" %)Request 9947 9947 9948 -{{code language="php" theme="RDark" title="Lookup Resource Request"}} 9949 - <?php 9675 +{{code language="php" theme="RDark" title="Lookup user Request" collapse="true"/}} 9950 9950 9951 - $curl = curl_init();9677 +\\ 9952 9952 9953 -curl_setopt_array($curl, array( 9954 - CURLOPT_URL => 'https://api.onecount.net/v2/resources/lookup?Name={{Resource Name}}', 9955 - CURLOPT_RETURNTRANSFER => true, 9956 - CURLOPT_ENCODING => '', 9957 - CURLOPT_MAXREDIRS => 10, 9958 - CURLOPT_TIMEOUT => 0, 9959 - CURLOPT_FOLLOWLOCATION => true, 9960 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9961 - CURLOPT_CUSTOMREQUEST => 'GET', 9962 - CURLOPT_HTTPHEADER => array( 9963 - 'Appkey: {{ONECOUNT API KEY}}' 9964 - ), 9965 -)); 9679 +(% style="color: rgb(107,107,107);" %)Response 200 OK 9966 9966 9967 - $response=curl_exec($curl);9681 +{{code language="yml" theme="RDark" title="Lookup user Response" collapse="true"/}} 9968 9968 9969 -curl_close($curl); 9970 -echo $response; 9971 -{{/code}} 9683 +\\ 9972 9972 9685 +\\ 9973 9973 9974 - (% style="color:#6b6b6b" %)Response 200 OK9687 +\\ 9975 9975 9976 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Resource Response"}} 9977 - { 9978 - "result": { 9979 - "success": "1", 9980 - "error": { 9981 - "code": "", 9982 - "message": "" 9983 - } 9984 - }, 9985 - "Resources": [ 9986 - { 9987 - "Id": 479, 9988 - "Name": "Virtualization Review", 9989 - "Description": "", 9990 - "Type": "0", 9991 - "Value": "", 9992 - "FreePass": 0 9993 - } 9994 - ] 9995 -} 9996 -{{/code}} 9689 +\\ 9997 9997 9691 +\\ 9998 9998 9999 -(% id="HPOSTCreateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)10000 - == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Resource(%%) ==9693 +(% class="western" %) 9694 +\\ 10001 10001 10002 ----- 9696 +(% class="western" %) 9697 +**COMPONENT: Source Codes 9698 +** 10003 10003 10004 -{{panel bgColor="#D3D3D3" width="100%"}} 10005 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources 10006 -{{/panel}} 10007 - 10008 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10009 - 10010 ----- 10011 - 10012 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10013 - 10014 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10015 - 10016 ----- 10017 - 10018 -{{code language="yml" theme="RDark" title="Body"}} 10019 -{"Name":"Test API product creation 22","Description":"Test API product creation 22","Type":3,"FreePass":1,"Value":["http://one-count.com"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1} 10020 -{{/code}} 10021 - 10022 -==== Example ==== 10023 - 10024 ----- 10025 - 10026 -(% style="color:#6b6b6b" %)Request 10027 - 10028 -{{code language="php" theme="RDark" title="Create Resource Request"}} 10029 - <?php 10030 - 10031 -$curl = curl_init(); 10032 - 10033 -curl_setopt_array($curl, array( 10034 - CURLOPT_URL => 'https://api.onecount.net/v2/resources', 10035 - CURLOPT_RETURNTRANSFER => true, 10036 - CURLOPT_ENCODING => '', 10037 - CURLOPT_MAXREDIRS => 10, 10038 - CURLOPT_TIMEOUT => 0, 10039 - CURLOPT_FOLLOWLOCATION => true, 10040 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10041 - CURLOPT_CUSTOMREQUEST => 'POST', 10042 - CURLOPT_POSTFIELDS =>'{"Name":"Test API product creation 21","Description":"Test API product creation 21","Type":3,"FreePass":1,"Value":["http://one-count.com"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}', 10043 - CURLOPT_HTTPHEADER => array( 10044 - 'Appkey: {{ONECOUNT API KEY}}' 10045 - ), 10046 -)); 10047 - 10048 -$response = curl_exec($curl); 10049 - 10050 -curl_close($curl); 10051 -echo $response; 10052 -{{/code}} 10053 - 10054 - 10055 -(% style="color:#6b6b6b" %)Response 200 OK 10056 - 10057 -{{code language="yml" theme="RDark" collapse="true" title="Create Resource Response"}} 10058 - { 10059 - "result": { 10060 - "success": "1", 10061 - "error": { 10062 - "code": "", 10063 - "message": "" 10064 - } 10065 - }, 10066 - "Resources": [ 10067 - { 10068 - "Id": 871, 10069 - "Name": "Test API product creation 21", 10070 - "Description": "Test API product creation 21", 10071 - "Type": "3", 10072 - "Value": "http://one-count.com", 10073 - "FreePass": 1 10074 - } 10075 - ] 10076 -} 10077 -{{/code}} 10078 - 10079 - 10080 -(% id="HPUTUpdateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10081 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Resource(%%) == 10082 - 10083 ----- 10084 - 10085 -{{panel bgColor="#D3D3D3" width="100%"}} 10086 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/~{~{resource id}} 10087 -{{/panel}} 10088 - 10089 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10090 - 10091 ----- 10092 - 10093 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10094 - 10095 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10096 - 10097 ----- 10098 - 10099 -{{code language="yml" theme="RDark" title="Body"}} 10100 -{"Name":"Test API product creation 23","Description":"Test API product creation 23","Type":3,"FreePass":1,"Value":["http://one-count.com","onecount.net"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1} 10101 -{{/code}} 10102 - 10103 -==== Example ==== 10104 - 10105 ----- 10106 - 10107 -(% style="color:#6b6b6b" %)Request 10108 - 10109 -{{code language="php" theme="RDark" title="Update Resource Request"}} 10110 - <?php 10111 - 10112 -$curl = curl_init(); 10113 - 10114 -curl_setopt_array($curl, array( 10115 - CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{resource id}}', 10116 - CURLOPT_RETURNTRANSFER => true, 10117 - CURLOPT_ENCODING => '', 10118 - CURLOPT_MAXREDIRS => 10, 10119 - CURLOPT_TIMEOUT => 0, 10120 - CURLOPT_FOLLOWLOCATION => true, 10121 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10122 - CURLOPT_CUSTOMREQUEST => 'PUT', 10123 - CURLOPT_POSTFIELDS =>'{"Name":"Test API product creation 23","Description":"Test API product creation 23","Type":3,"FreePass":1,"Value":["http://one-count.com","onecount.net"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}', 10124 - CURLOPT_HTTPHEADER => array( 10125 - 'Appkey: {{ONECOUNT API KEY}}' 10126 - ), 10127 -)); 10128 - 10129 -$response = curl_exec($curl); 10130 - 10131 -curl_close($curl); 10132 -echo $response; 10133 -{{/code}} 10134 - 10135 - 10136 -(% style="color:#6b6b6b" %)Response 200 OK 10137 - 10138 -{{code language="yml" theme="RDark" collapse="true" title="Update Resource Response"}} 10139 - { 10140 - "result": { 10141 - "success": "1", 10142 - "error": { 10143 - "code": "", 10144 - "message": "" 10145 - } 10146 - }, 10147 - "Resources": [ 10148 - { 10149 - "Id": 903, 10150 - "Name": "Test API product creation 23", 10151 - "Description": "Test API product creation 23", 10152 - "Type": "3", 10153 - "Value": "http://one-count.com", 10154 - "FreePass": 1 10155 - }, 10156 - { 10157 - "Id": 903, 10158 - "Name": "Test API product creation 23", 10159 - "Description": "Test API product creation 23", 10160 - "Type": "3", 10161 - "Value": "onecount.net", 10162 - "FreePass": 1 10163 - } 10164 - ] 10165 -} 10166 -{{/code}} 10167 - 10168 - 10169 -(% id="HCOMPONENT:SourceCodes" class="western" %) 10170 -=== **COMPONENT: Source Codes** === 10171 - 10172 -* 10173 -** === 10174 - 10175 10175 (% class="western" %) 10176 10176 This resource is for manipulating source code for a resource. A source code can be created, updated or searched. 10177 10177 10178 10178 (% class="wrapped" %) 10179 -|(% style="text-align:left; 9704 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10180 10180 ((( 10181 10181 (% class="western" %) 10182 10182 **Method** 10183 -)))|(% style="text-align:left; 9708 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10184 10184 ((( 10185 10185 (% class="western" %) 10186 10186 **Url** 10187 -)))|(% style="text-align:left; 9712 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10188 10188 ((( 10189 10189 (% class="western" %) 10190 10190 **Action** 10191 10191 ))) 10192 -|(% style="text-align:left; 9717 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10193 10193 ((( 10194 10194 (% class="western" %) 10195 10195 GET 10196 -)))|(% style="text-align:left; 9721 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10197 10197 ((( 10198 10198 (% class="western" %) 10199 10199 /sources/1 10200 -)))|(% style="text-align:left; 9725 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10201 10201 ((( 10202 10202 (% class="western" %) 10203 10203 Get source id 1. 10204 10204 ))) 10205 -|(% style="text-align:left; 9730 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10206 10206 ((( 10207 10207 (% class="western" %) 10208 10208 GET 10209 -)))|(% style="text-align:left; 9734 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10210 10210 ((( 10211 10211 (% class="western" %) 10212 10212 /sources/lookup?Source=sourcename 10213 -)))|(% style="text-align:left; 9738 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10214 10214 ((( 10215 10215 (% class="western" %) 10216 10216 Lookup sources by source. 10217 10217 ))) 10218 -|(% style="text-align:left; 9743 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10219 10219 ((( 10220 10220 (% class="western" %) 10221 10221 POST 10222 -)))|(% style="text-align:left; 9747 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10223 10223 ((( 10224 10224 (% class="western" %) 10225 10225 /sources 10226 -)))|(% style="text-align:left; 9751 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10227 10227 ((( 10228 10228 (% class="western" %) 10229 10229 JSON of the Sources type object needs to be sent as post data. Id field should not be sent. 10230 10230 ))) 10231 -|(% style="text-align:left; 9756 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10232 10232 ((( 10233 10233 (% class="western" %) 10234 10234 PUT 10235 -)))|(% style="text-align:left; 9760 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10236 10236 ((( 10237 10237 (% class="western" %) 10238 10238 /sources 10239 -)))|(% style="text-align:left; 9764 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10240 10240 ((( 10241 10241 (% class="western" %) 10242 10242 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update. 10243 10243 ))) 10244 10244 10245 -(% id="HGETAllSourcecodes" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10246 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Source codes(%%) == 9770 +\\ 10247 10247 9772 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9773 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Source codes(%%) == 9774 + 10248 10248 ---- 10249 10249 10250 10250 ---- 10251 10251 10252 10252 {{panel bgColor="#D3D3D3" width="100%"}} 10253 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/sources9780 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/sources 10254 10254 {{/panel}} 10255 10255 10256 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===9783 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 10257 10257 10258 10258 ---- 10259 10259 10260 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}9787 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 10261 10261 10262 10262 ==== Example ==== 10263 10263 10264 10264 ---- 10265 10265 10266 -(% style="color: #6b6b6b" %)Request9793 +(% style="color: rgb(107,107,107);" %)Request 10267 10267 10268 -{{code language="php" theme="RDark" title="Get All Source code Request"}} 9795 +{{code language="php" theme="RDark" title="Get All Source code Request" collapse="true"}} 10269 10269 <?php 10270 10270 10271 10271 $curl = curl_init(); 10272 10272 10273 10273 curl_setopt_array($curl, array( 10274 - CURLOPT_URL => ' https://api.onecount.net/v2/sources',9801 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/sources', 10275 10275 CURLOPT_RETURNTRANSFER => true, 10276 10276 CURLOPT_ENCODING => '', 10277 10277 CURLOPT_MAXREDIRS => 10, ... ... @@ -10290,10 +10290,11 @@ 10290 10290 echo $response; 10291 10291 {{/code}} 10292 10292 9820 +\\ 10293 10293 10294 -(% style="color: #6b6b6b" %)Response 200 OK9822 +(% style="color: rgb(107,107,107);" %)Response 200 OK 10295 10295 10296 -{{code language="yml" theme="RDark" collapse="true" title="Get All Source code Response"}}9824 +{{code language="yml" theme="RDark" title="Get All Source code Response" collapse="true"}} 10297 10297 { 10298 10298 "result": { 10299 10299 "success": "1", ... ... @@ -10457,35 +10457,36 @@ 10457 10457 } 10458 10458 {{/code}} 10459 10459 9988 +\\ 10460 10460 10461 -(% id="HGETspecificSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)10462 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)specific Source code(%%) ==9990 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9991 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific Source code(%%) == 10463 10463 10464 10464 ---- 10465 10465 10466 10466 {{panel bgColor="#D3D3D3" width="100%"}} 10467 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/sources/~{~{source code id}}9996 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/sources/~{~{source code id}} 10468 10468 {{/panel}} 10469 10469 10470 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===9999 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 10471 10471 10472 10472 ---- 10473 10473 10474 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}10003 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 10475 10475 10476 10476 ==== Example ==== 10477 10477 10478 10478 ---- 10479 10479 10480 -(% style="color: #6b6b6b" %)Request10009 +(% style="color: rgb(107,107,107);" %)Request 10481 10481 10482 -{{code language="php" theme="RDark" title="Get specific Source Request"}} 10011 +{{code language="php" theme="RDark" title="Get specific Source Request" collapse="true"}} 10483 10483 <?php 10484 10484 10485 10485 $curl = curl_init(); 10486 10486 10487 10487 curl_setopt_array($curl, array( 10488 - CURLOPT_URL => ' https://api.onecount.net/v2/sources/{{source code id}}',10017 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/sources/{{source code id}}', 10489 10489 CURLOPT_RETURNTRANSFER => true, 10490 10490 CURLOPT_ENCODING => '', 10491 10491 CURLOPT_MAXREDIRS => 10, ... ... @@ -10504,10 +10504,11 @@ 10504 10504 echo $response; 10505 10505 {{/code}} 10506 10506 10036 +\\ 10507 10507 10508 -(% style="color: #6b6b6b" %)Response 200 OK10038 +(% style="color: rgb(107,107,107);" %)Response 200 OK 10509 10509 10510 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Source Response"}}10040 +{{code language="yml" theme="RDark" title="Get specific Source Response" collapse="true"}} 10511 10511 { 10512 10512 "result": { 10513 10513 "success": "1", ... ... @@ -10527,331 +10527,147 @@ 10527 10527 } 10528 10528 {{/code}} 10529 10529 10060 +\\ 10530 10530 10531 -(% id="HGETlookupSourcecode"style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)10532 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup Source code(%%) ==10062 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10063 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup Source code(%%) == 10533 10533 10534 10534 ---- 10535 10535 10536 10536 {{panel bgColor="#D3D3D3" width="100%"}} 10537 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/sources/lookup?Source={(%%){Source code Name}}10068 +(% class="nolink" %)[[https:~~/~~/api.onecount.net/v2/users>>url:https://api.onecount.net/v2/users||shape="rect"]](% style="color: rgb(33,33,33);" %)/lookup?2=user_242_6298&return=1,2,3,4 10538 10538 {{/panel}} 10539 10539 10540 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===10071 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 10541 10541 10542 10542 ---- 10543 10543 10544 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}10075 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 10545 10545 10546 -=== (% style="color: #212121" %)Query Params(%%) ===10077 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 10547 10547 10548 10548 ---- 10549 10549 10550 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Source (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Source code Name}} 10081 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)2 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)user_242_6298(%%) 10082 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)return (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)1,2,3,4 10551 10551 10552 10552 ==== Example ==== 10553 10553 10554 10554 ---- 10555 10555 10556 -(% style="color: #6b6b6b" %)Request10088 +(% style="color: rgb(107,107,107);" %)Request 10557 10557 10558 -{{code language="php" theme="RDark" title="Lookup Source code Request"}} 10559 - <?php 10090 +{{code language="php" theme="RDark" title="Lookup user Request" collapse="true"/}} 10560 10560 10561 - $curl = curl_init();10092 +\\ 10562 10562 10563 -curl_setopt_array($curl, array( 10564 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/lookup?Source={{Source code Name}}', 10565 - CURLOPT_RETURNTRANSFER => true, 10566 - CURLOPT_ENCODING => '', 10567 - CURLOPT_MAXREDIRS => 10, 10568 - CURLOPT_TIMEOUT => 0, 10569 - CURLOPT_FOLLOWLOCATION => true, 10570 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10571 - CURLOPT_CUSTOMREQUEST => 'GET', 10572 - CURLOPT_HTTPHEADER => array( 10573 - 'Appkey: {{ONECOUNT API KEY}}' 10574 - ), 10575 -)); 10094 +(% style="color: rgb(107,107,107);" %)Response 200 OK 10576 10576 10577 - $response=curl_exec($curl);10096 +{{code language="yml" theme="RDark" title="Lookup user Response" collapse="true"/}} 10578 10578 10579 -curl_close($curl); 10580 -echo $response; 10581 -{{/code}} 10098 +\\ 10582 10582 10100 +\\ 10583 10583 10584 - (% style="color:#6b6b6b" %)Response 200 OK10102 +\\ 10585 10585 10586 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Source code Response"}} 10587 - { 10588 - "result": { 10589 - "success": "1", 10590 - "error": { 10591 - "code": "", 10592 - "message": "" 10593 - } 10594 - }, 10595 - "Sources": [ 10596 - { 10597 - "Id": 26, 10598 - "Source": "GCN-Member", 10599 - "Description": "Uploaded from Reston VA", 10600 - "Parent": 0 10601 - } 10602 - ] 10603 -} 10604 -{{/code}} 10104 +\\ 10605 10605 10106 +(% class="western" %) 10107 +\\ 10606 10606 10607 -(% id="HPOSTCreateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)10608 - == (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(%class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Source code(%%) ==10109 +(% class="western" %) 10110 +**COMPONENT: Transactions** 10609 10609 10610 ----- 10611 - 10612 -{{panel bgColor="#D3D3D3" width="100%"}} 10613 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources 10614 -{{/panel}} 10615 - 10616 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10617 - 10618 ----- 10619 - 10620 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10621 - 10622 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10623 - 10624 ----- 10625 - 10626 -{{code language="yml" theme="RDark" title="Body"}} 10627 -{"Source":"Test source code from API"} 10628 -{{/code}} 10629 - 10630 -==== Example ==== 10631 - 10632 ----- 10633 - 10634 -(% style="color:#6b6b6b" %)Request 10635 - 10636 -{{code language="php" theme="RDark" title="Create Source code Request"}} 10637 - <?php 10638 - 10639 -$curl = curl_init(); 10640 - 10641 -curl_setopt_array($curl, array( 10642 - CURLOPT_URL => 'https://api.onecount.net/v2/sources', 10643 - CURLOPT_RETURNTRANSFER => true, 10644 - CURLOPT_ENCODING => '', 10645 - CURLOPT_MAXREDIRS => 10, 10646 - CURLOPT_TIMEOUT => 0, 10647 - CURLOPT_FOLLOWLOCATION => true, 10648 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10649 - CURLOPT_CUSTOMREQUEST => 'POST', 10650 - CURLOPT_POSTFIELDS =>'{"Source":"Test source code from API"}', 10651 - CURLOPT_HTTPHEADER => array( 10652 - 'Appkey: {{ONECOUNT API KEY}}' 10653 - ), 10654 -)); 10655 - 10656 -$response = curl_exec($curl); 10657 - 10658 -curl_close($curl); 10659 -echo $response; 10660 -{{/code}} 10661 - 10662 - 10663 -(% style="color:#6b6b6b" %)Response 200 OK 10664 - 10665 -{{code language="yml" theme="RDark" collapse="true" title="Create Source code Response"}} 10666 - { 10667 - "result": { 10668 - "success": "1", 10669 - "error": { 10670 - "code": "", 10671 - "message": "" 10672 - } 10673 - }, 10674 - "Sources": [ 10675 - { 10676 - "Id": 223, 10677 - "Source": "Test source code from API", 10678 - "Description": "", 10679 - "Parent": 0 10680 - } 10681 - ] 10682 -} 10683 -{{/code}} 10684 - 10685 - 10686 -(% id="HPUTUpdateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10687 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Source code(%%) == 10688 - 10689 ----- 10690 - 10691 -{{panel bgColor="#D3D3D3" width="100%"}} 10692 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}} 10693 -{{/panel}} 10694 - 10695 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10696 - 10697 ----- 10698 - 10699 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10700 - 10701 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10702 - 10703 ----- 10704 - 10705 -{{code language="yml" theme="RDark" title="Body"}} 10706 -{"Source":"Test API","Parent":215} 10707 -{{/code}} 10708 - 10709 -==== Example ==== 10710 - 10711 ----- 10712 - 10713 -(% style="color:#6b6b6b" %)Request 10714 - 10715 -{{code language="php" theme="RDark" title="Update Source code Request"}} 10716 - <?php 10717 - 10718 -$curl = curl_init(); 10719 - 10720 -curl_setopt_array($curl, array( 10721 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}', 10722 - CURLOPT_RETURNTRANSFER => true, 10723 - CURLOPT_ENCODING => '', 10724 - CURLOPT_MAXREDIRS => 10, 10725 - CURLOPT_TIMEOUT => 0, 10726 - CURLOPT_FOLLOWLOCATION => true, 10727 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10728 - CURLOPT_CUSTOMREQUEST => 'PUT', 10729 - CURLOPT_POSTFIELDS =>'{"Source":"Test API","Parent":215}', 10730 - CURLOPT_HTTPHEADER => array( 10731 - 'Appkey: {{ONECOUNT API KEY}}' 10732 - ), 10733 -)); 10734 - 10735 -$response = curl_exec($curl); 10736 - 10737 -curl_close($curl); 10738 -echo $response; 10739 -{{/code}} 10740 - 10741 - 10742 -(% style="color:#6b6b6b" %)Response 200 OK 10743 - 10744 -{{code language="yml" theme="RDark" collapse="true" title="Update Source code Response"}} 10745 - { 10746 - "result": { 10747 - "success": "1", 10748 - "error": { 10749 - "code": "", 10750 - "message": "" 10751 - } 10752 - }, 10753 - "Sources": [ 10754 - { 10755 - "Id": 223, 10756 - "Source": "Test API", 10757 - "Description": "", 10758 - "Parent": 215 10759 - } 10760 - ] 10761 -} 10762 -{{/code}} 10763 - 10764 - 10765 -(% id="HCOMPONENT:Transactions" class="western" %) 10766 -=== **COMPONENT: Transactions** === 10767 - 10768 10768 (% class="western" %) 10769 10769 This resource is for manipulating transactions resource. A transaction can be created or searched. 10770 10770 10771 10771 (% class="wrapped" %) 10772 -|(% style="text-align:left; 10116 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10773 10773 ((( 10774 10774 (% class="western" %) 10775 10775 **Method** 10776 -)))|(% style="text-align:left; 10120 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10777 10777 ((( 10778 10778 (% class="western" %) 10779 10779 **Url** 10780 -)))|(% style="text-align:left; 10124 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10781 10781 ((( 10782 10782 (% class="western" %) 10783 10783 **Action** 10784 10784 ))) 10785 -|(% style="text-align:left; 10129 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10786 10786 ((( 10787 10787 (% class="western" %) 10788 10788 GET 10789 -)))|(% style="text-align:left; 10133 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10790 10790 ((( 10791 10791 (% class="western" %) 10792 10792 /transactions 10793 -)))|(% style="text-align:left; 10137 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10794 10794 ((( 10795 10795 (% class="western" %) 10796 10796 List all transactions 10797 10797 ))) 10798 -|(% style="text-align:left; 10142 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10799 10799 ((( 10800 10800 (% class="western" %) 10801 10801 GET 10802 -)))|(% style="text-align:left; 10146 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10803 10803 ((( 10804 10804 (% class="western" %) 10805 10805 /transactions/lookup?UserId=1 10806 -)))|(% style="text-align:left; 10150 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10807 10807 ((( 10808 10808 (% class="western" %) 10809 10809 Lookup all transaction of UserId = 1 10810 10810 ))) 10811 -|(% style="text-align:left; 10155 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10812 10812 ((( 10813 10813 (% class="western" %) 10814 10814 POST 10815 -)))|(% style="text-align:left; 10159 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10816 10816 ((( 10817 10817 (% class="western" %) 10818 10818 /transactions 10819 -)))|(% style="text-align:left; 10163 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10820 10820 ((( 10821 10821 (% class="western" %) 10822 10822 JSON of the Transactions type object needs to be sent as post data. Id field should not be sent. 10823 10823 ))) 10824 10824 10825 -(% id="HGETAllTransactions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10826 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Transactions(%%) == 10169 +\\ 10827 10827 10171 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10172 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Transactions(%%) == 10173 + 10828 10828 ---- 10829 10829 10830 10830 ---- 10831 10831 10832 10832 {{panel bgColor="#D3D3D3" width="100%"}} 10833 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/transactions10179 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/transactions 10834 10834 {{/panel}} 10835 10835 10836 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===10182 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 10837 10837 10838 10838 ---- 10839 10839 10840 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}10186 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 10841 10841 10842 10842 ==== Example ==== 10843 10843 10844 10844 ---- 10845 10845 10846 -(% style="color: #6b6b6b" %)Request10192 +(% style="color: rgb(107,107,107);" %)Request 10847 10847 10848 -{{code language="php" theme="RDark" title="Get All Transaction Request"}} 10194 +{{code language="php" theme="RDark" title="Get All Transaction Request" collapse="true"}} 10849 10849 <?php 10850 10850 10851 10851 $curl = curl_init(); 10852 10852 10853 10853 curl_setopt_array($curl, array( 10854 - CURLOPT_URL => ' https://api.onecount.net/v2/transactions',10200 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/transactions?limit=100', 10855 10855 CURLOPT_RETURNTRANSFER => true, 10856 10856 CURLOPT_ENCODING => '', 10857 10857 CURLOPT_MAXREDIRS => 10, ... ... @@ -10870,10 +10870,11 @@ 10870 10870 echo $response; 10871 10871 {{/code}} 10872 10872 10219 +\\ 10873 10873 10874 -(% style="color: #6b6b6b" %)Response 200 OK10221 +(% style="color: rgb(107,107,107);" %)Response 200 OK 10875 10875 10876 -{{code language="yml" theme="RDark" collapse="true" title="Get All Transaction Response"}}10223 +{{code language="yml" theme="RDark" title="Get All Transaction Response" collapse="true"}} 10877 10877 { 10878 10878 "result": { 10879 10879 "success": "1", ... ... @@ -12387,35 +12387,36 @@ 12387 12387 } 12388 12388 {{/code}} 12389 12389 11737 +\\ 12390 12390 12391 -(% id="HGETspecificTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)12392 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)specific Transaction(%%) ==11739 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 11740 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific Transaction(%%) == 12393 12393 12394 12394 ---- 12395 12395 12396 12396 {{panel bgColor="#D3D3D3" width="100%"}} 12397 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/transactions/~{~{Transaction id}}11745 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/transactions/~{~{Transaction id}} 12398 12398 {{/panel}} 12399 12399 12400 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===11748 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 12401 12401 12402 12402 ---- 12403 12403 12404 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}11752 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 12405 12405 12406 12406 ==== Example ==== 12407 12407 12408 12408 ---- 12409 12409 12410 -(% style="color: #6b6b6b" %)Request11758 +(% style="color: rgb(107,107,107);" %)Request 12411 12411 12412 -{{code language="php" theme="RDark" title="Get specific Transaction Request"}} 11760 +{{code language="php" theme="RDark" title="Get specific Transaction Request" collapse="true"}} 12413 12413 <?php 12414 12414 12415 12415 $curl = curl_init(); 12416 12416 12417 12417 curl_setopt_array($curl, array( 12418 - CURLOPT_URL => ' https://api.onecount.net/v2/transactions/{{Transaction id}}',11766 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/transactions/{{Transaction id}}', 12419 12419 CURLOPT_RETURNTRANSFER => true, 12420 12420 CURLOPT_ENCODING => '', 12421 12421 CURLOPT_MAXREDIRS => 10, ... ... @@ -12434,10 +12434,11 @@ 12434 12434 echo $response; 12435 12435 {{/code}} 12436 12436 11785 +\\ 12437 12437 12438 -(% style="color: #6b6b6b" %)Response 200 OK11787 +(% style="color: rgb(107,107,107);" %)Response 200 OK 12439 12439 12440 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Transaction Response"}}11789 +{{code language="yml" theme="RDark" title="Get specific Transaction Response" collapse="true"}} 12441 12441 { 12442 12442 "result": { 12443 12443 "success": "1", ... ... @@ -12466,1779 +12466,189 @@ 12466 12466 } 12467 12467 {{/code}} 12468 12468 11818 +\\ 12469 12469 12470 -(% id="HGETlookupTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)12471 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup Transaction(%%) ==11820 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 11821 +== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)lookup Transaction(%%) == 12472 12472 12473 12473 ---- 12474 12474 12475 12475 {{panel bgColor="#D3D3D3" width="100%"}} 12476 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: #212121" %)/transactions/lookup?UserId=~{~{OCID}}11826 +(% class="nolink" %)[[https:~~/~~/api.onecount.net/v2/users>>url:https://api.onecount.net/v2/users||shape="rect"]](% style="color: rgb(33,33,33);" %)/lookup?2=user_242_6298&return=1,2,3,4 12477 12477 {{/panel}} 12478 12478 12479 -=== (% class="core-title" style="color: #212121" %)Request Headers(%%) ===11829 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 12480 12480 12481 12481 ---- 12482 12482 12483 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)Appkey#212121" %)~{~{ONECOUNT API KEY}}11833 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)~{~{ONECOUNT API KEY}} 12484 12484 12485 -=== (% style="color: #212121" %)Query Params(%%) ===11835 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 12486 12486 12487 12487 ---- 12488 12488 12489 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)UserId (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{OCID}} 11839 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)2 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)user_242_6298(%%) 11840 +(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color: rgb(33,33,33);" %)return (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color: rgb(33,33,33);" %)1,2,3,4 12490 12490 12491 12491 ==== Example ==== 12492 12492 12493 12493 ---- 12494 12494 12495 -(% style="color: #6b6b6b" %)Request11846 +(% style="color: rgb(107,107,107);" %)Request 12496 12496 12497 -{{code language="php" theme="RDark" title="Lookup Transaction Request"}} 12498 - <?php 11848 +{{code language="php" theme="RDark" title="Lookup user Request" collapse="true"/}} 12499 12499 12500 - $curl = curl_init();11850 +\\ 12501 12501 12502 -curl_setopt_array($curl, array( 12503 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions/lookup?UserId={{OCID}}', 12504 - CURLOPT_RETURNTRANSFER => true, 12505 - CURLOPT_ENCODING => '', 12506 - CURLOPT_MAXREDIRS => 10, 12507 - CURLOPT_TIMEOUT => 0, 12508 - CURLOPT_FOLLOWLOCATION => true, 12509 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12510 - CURLOPT_CUSTOMREQUEST => 'GET', 12511 - CURLOPT_HTTPHEADER => array( 12512 - 'Appkey: {{ONECOUNT API KEY}}' 12513 - ), 12514 -)); 11852 +(% style="color: rgb(107,107,107);" %)Response 200 OK 12515 12515 12516 - $response=curl_exec($curl);11854 +{{code language="yml" theme="RDark" title="Lookup user Response" collapse="true"/}} 12517 12517 12518 -curl_close($curl); 12519 -echo $response; 12520 -{{/code}} 11856 +\\ 12521 12521 11858 +\\ 12522 12522 12523 - (% style="color:#6b6b6b" %)Response 200 OK11860 +\\ 12524 12524 12525 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Transaction Response"}} 12526 - { 12527 - "result": { 12528 - "success": "1", 12529 - "error": { 12530 - "code": "", 12531 - "message": "" 12532 - } 12533 - }, 12534 - "Transactions": [ 12535 - { 12536 - "Id": 52494786, 12537 - "UserId": 1234, 12538 - "TermId": 34, 12539 - "TransactionDate": "2016-01-19", 12540 - "TransactionTime": "15:30:04", 12541 - "RequestDate": "2016-01-19", 12542 - "UserIP": "12.226.247.2", 12543 - "SubscriptionType": "u", 12544 - "ProductId": 34, 12545 - "Source": 0, 12546 - "ProductStatus": 0, 12547 - "MediaFilePath": "", 12548 - "Amount": "" 12549 - }, 12550 - { 12551 - "Id": 42654041, 12552 - "UserId": 1234, 12553 - "TermId": 34, 12554 - "TransactionDate": "2015-09-09", 12555 - "TransactionTime": "11:20:39", 12556 - "RequestDate": "2015-09-09", 12557 - "UserIP": "24.187.236.98", 12558 - "SubscriptionType": "n", 12559 - "ProductId": 34, 12560 - "Source": 0, 12561 - "ProductStatus": 2, 12562 - "MediaFilePath": "", 12563 - "Amount": "" 12564 - }, 12565 - { 12566 - "Id": 97251022, 12567 - "UserId": 1234, 12568 - "TermId": 34, 12569 - "TransactionDate": "2015-06-04", 12570 - "TransactionTime": "14:59:42", 12571 - "RequestDate": "2015-06-04", 12572 - "UserIP": "12.226.247.2", 12573 - "SubscriptionType": "u", 12574 - "ProductId": 34, 12575 - "Source": 0, 12576 - "ProductStatus": 0, 12577 - "MediaFilePath": "", 12578 - "Amount": "" 12579 - }, 12580 - { 12581 - "Id": 55492559, 12582 - "UserId": 1234, 12583 - "TermId": 34, 12584 - "TransactionDate": "2015-04-03", 12585 - "TransactionTime": "16:32:04", 12586 - "RequestDate": "2015-04-03", 12587 - "UserIP": "24.187.236.98", 12588 - "SubscriptionType": "r", 12589 - "ProductId": 34, 12590 - "Source": 58, 12591 - "ProductStatus": 106, 12592 - "MediaFilePath": "", 12593 - "Amount": "" 12594 - }, 12595 - { 12596 - "Id": 98173391, 12597 - "UserId": 1234, 12598 - "TermId": 34, 12599 - "TransactionDate": "2015-04-03", 12600 - "TransactionTime": "15:50:45", 12601 - "RequestDate": "2014-08-19", 12602 - "UserIP": "24.187.236.98", 12603 - "SubscriptionType": "n", 12604 - "ProductId": 34, 12605 - "Source": 34, 12606 - "ProductStatus": 106, 12607 - "MediaFilePath": "", 12608 - "Amount": "" 12609 - }, 12610 - { 12611 - "Id": 91711793, 12612 - "UserId": 1234, 12613 - "TermId": 18, 12614 - "TransactionDate": "2015-04-27", 12615 - "TransactionTime": "14:24:51", 12616 - "RequestDate": "2015-04-27", 12617 - "UserIP": "24.187.236.98", 12618 - "SubscriptionType": "u", 12619 - "ProductId": 18, 12620 - "Source": 0, 12621 - "ProductStatus": 106, 12622 - "MediaFilePath": "", 12623 - "Amount": "" 12624 - }, 12625 - { 12626 - "Id": 74936400, 12627 - "UserId": 1234, 12628 - "TermId": 18, 12629 - "TransactionDate": "2015-04-27", 12630 - "TransactionTime": "12:35:18", 12631 - "RequestDate": "2015-04-27", 12632 - "UserIP": "68.196.187.74", 12633 - "SubscriptionType": "n", 12634 - "ProductId": 18, 12635 - "Source": 34, 12636 - "ProductStatus": 106, 12637 - "MediaFilePath": "", 12638 - "Amount": "" 12639 - }, 12640 - { 12641 - "Id": 21664714, 12642 - "UserId": 1234, 12643 - "TermId": 18, 12644 - "TransactionDate": "2015-04-03", 12645 - "TransactionTime": "15:50:46", 12646 - "RequestDate": "2015-04-03", 12647 - "UserIP": "24.187.236.98", 12648 - "SubscriptionType": "u", 12649 - "ProductId": 18, 12650 - "Source": 0, 12651 - "ProductStatus": 2, 12652 - "MediaFilePath": "", 12653 - "Amount": "" 12654 - }, 12655 - { 12656 - "Id": 81129263, 12657 - "UserId": 1234, 12658 - "TermId": 18, 12659 - "TransactionDate": "2014-08-19", 12660 - "TransactionTime": "11:18:55", 12661 - "RequestDate": "2014-08-19", 12662 - "UserIP": "74.201.38.1", 12663 - "SubscriptionType": "n", 12664 - "ProductId": 18, 12665 - "Source": 34, 12666 - "ProductStatus": 2, 12667 - "MediaFilePath": "", 12668 - "Amount": "" 12669 - }, 12670 - { 12671 - "Id": 30461748, 12672 - "UserId": 1234, 12673 - "ResourceId": 459, 12674 - "TransactionDate": "2023-03-15", 12675 - "TransactionTime": "12:07:55", 12676 - "RequestDate": "2023-03-15", 12677 - "UserIP": "74.201.38.12", 12678 - "SubscriptionType": "n", 12679 - "SourceCode": 0, 12680 - "ProductStatus": 0, 12681 - "MediaFilePath": "", 12682 - "Amount": "" 12683 - }, 12684 - { 12685 - "Id": 25858253, 12686 - "UserId": 1234, 12687 - "ResourceId": 451, 12688 - "TransactionDate": "2023-03-15", 12689 - "TransactionTime": "11:45:19", 12690 - "RequestDate": "2023-03-15", 12691 - "UserIP": "74.201.38.12", 12692 - "SubscriptionType": "n", 12693 - "SourceCode": 0, 12694 - "ProductStatus": 0, 12695 - "MediaFilePath": "", 12696 - "Amount": "" 12697 - }, 12698 - { 12699 - "Id": 69453260, 12700 - "UserId": 1234, 12701 - "ResourceId": 411, 12702 - "TransactionDate": "2022-06-07", 12703 - "TransactionTime": "17:03:14", 12704 - "RequestDate": "2022-06-07", 12705 - "UserIP": "74.201.38.12", 12706 - "SubscriptionType": "n", 12707 - "SourceCode": 0, 12708 - "ProductStatus": 0, 12709 - "MediaFilePath": "", 12710 - "Amount": "" 12711 - }, 12712 - { 12713 - "Id": 51354425, 12714 - "UserId": 1234, 12715 - "ResourceId": 355, 12716 - "TransactionDate": "2020-04-06", 12717 - "TransactionTime": "12:24:08", 12718 - "RequestDate": "2020-04-06", 12719 - "UserIP": "74.201.38.12", 12720 - "SubscriptionType": "n", 12721 - "SourceCode": 0, 12722 - "ProductStatus": 0, 12723 - "MediaFilePath": "", 12724 - "Amount": "" 12725 - } 12726 - ] 12727 -} 12728 -{{/code}} 11862 +\\ 12729 12729 11864 +\\ 12730 12730 12731 -(% id="HPOSTCreateTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12732 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Transaction(%%) == 11866 +\\ 12733 12733 12734 - ----11868 +\\ 12735 12735 12736 -{{panel bgColor="#D3D3D3" width="100%"}} 12737 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions 12738 -{{/panel}} 11870 +\\ 12739 12739 12740 - === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===11872 +\\ 12741 12741 12742 - ----11874 +\\ 12743 12743 12744 - (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}}11876 +\\ 12745 12745 12746 - === (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===11878 +\\ 12747 12747 12748 - ----11880 +\\ 12749 12749 12750 -{{code language="yml" theme="RDark" title="Body"}} 12751 -{"UserId": 1845775,"TermId":447 ,"UserIP":"192.168.0.1" ,"SubscriptionType":"n" , "ProductId":599 ,"FormId": "8f93834c-adce-4dc7-acd0-f3a1e0f7c63f","Source": 83,"ProductStatus": 2,"Amount":"0.00" ,"PaypalTransId":"" , "MediaFilePath":"" ,"Remarks": "USER SUBSCRIBED","BatchId":"1234" ,"Quantity": 1, "ExpireDate":"20251211" } 12752 -{{/code}} 11882 +\\ 12753 12753 12754 - ==== Example ====11884 +\\ 12755 12755 12756 - ----11886 +\\ 12757 12757 12758 - (% style="color:#6b6b6b" %)Request11888 +\\ 12759 12759 12760 -{{code language="php" theme="RDark" title="Create Transaction Request"}} 12761 - <?php 11890 +\\ 12762 12762 12763 - $curl = curl_init();11892 +\\ 12764 12764 12765 -curl_setopt_array($curl, array( 12766 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions', 12767 - CURLOPT_RETURNTRANSFER => true, 12768 - CURLOPT_ENCODING => '', 12769 - CURLOPT_MAXREDIRS => 10, 12770 - CURLOPT_TIMEOUT => 0, 12771 - CURLOPT_FOLLOWLOCATION => true, 12772 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12773 - CURLOPT_CUSTOMREQUEST => 'POST', 12774 - CURLOPT_POSTFIELDS =>'{"UserId": 1845775,"TermId":447 ,"UserIP":"192.168.0.1" ,"SubscriptionType":"n" , "ProductId":599 ,"FormId": "8f93834c-adce-4dc7-acd0-f3a1e0f7c63f","Source": 83,"ProductStatus": 2,"Amount":"0.00" ,"PaypalTransId":"" , "MediaFilePath":"" ,"Remarks": "USER SUBSCRIBED","BatchId":"1234" ,"Quantity": 1, "ExpireDate":"20251211" }', 12775 - CURLOPT_HTTPHEADER => array( 12776 - 'Appkey: {{ONECOUNT API KEY}}' 12777 - ), 12778 -)); 11894 +\\ 12779 12779 12780 - $response = curl_exec($curl);11896 +\\ 12781 12781 12782 -curl_close($curl); 12783 -echo $response; 12784 -{{/code}} 11898 +\\ 12785 12785 11900 +\\ 12786 12786 12787 - (% style="color:#6b6b6b" %)Response 200 OK11902 +\\ 12788 12788 12789 -{{code language="yml" theme="RDark" collapse="true" title="Create Transaction Response"}} 12790 - { 12791 - "result": { 12792 - "success": "1", 12793 - "error": { 12794 - "code": "", 12795 - "message": "" 12796 - } 12797 - }, 12798 - "Transactions": { 12799 - "Id": "1234", 12800 - "UserId": 1845775, 12801 - "TermId": 447, 12802 - "TransactionDate": "20231211", 12803 - "TransactionTime": "09:34:26", 12804 - "RequestDate": "20231211", 12805 - "UserIP": "192.168.0.1", 12806 - "SubscriptionType": "n", 12807 - "ProductId": 599, 12808 - "Source": 83, 12809 - "ProductStatus": 2, 12810 - "MediaFilePath": "", 12811 - "Amount": "0.00" 12812 - } 12813 -} 12814 -{{/code}} 12815 - 12816 - 12817 -=== **COMPONENT: Engagements** === 12818 - 12819 12819 (% class="western" %) 12820 -Engagement can be added, updated and searched for using the engagements resource from the api. 11905 +**COMPONENT: Leads 11906 +** 12821 12821 12822 - 12823 -(% class="wrapped" %) 12824 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12825 -((( 12826 12826 (% class="western" %) 12827 -**Method** 12828 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12829 -((( 12830 -(% class="western" %) 12831 -**Url** 12832 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12833 -((( 12834 -(% class="western" %) 12835 -**Action** 12836 -))) 12837 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12838 -((( 12839 -(% class="western" %) 12840 -GET 12841 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12842 -((( 12843 -(% class="western" %) 12844 -/(% style="color:#212121" %)engagements 12845 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12846 -((( 12847 -(% class="western" %) 12848 -Get engagement data limiting 25. 12849 -))) 12850 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12851 -((( 12852 -(% class="western" %) 12853 -GET 12854 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12855 -((( 12856 -(% class="western" %) 12857 -/(% style="color:#212121" %)engagements(%%)/<engagement id> 12858 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12859 -((( 12860 -(% class="western" %) 12861 -Get data for engagement id. The engagement id is a string 12862 -))) 12863 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12864 -((( 12865 -(% class="western" %) 12866 -POST 12867 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12868 -((( 12869 -(% class="western" %) 12870 -/(% style="color:#212121" %)engagements 12871 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12872 -((( 12873 -(% class="western" %) 12874 -Create a new engagement 11909 +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. 12875 12875 12876 12876 (% class="western" %) 12877 -Parameters required to create the engagement needs to be sent as post data in JSON format. 12878 -))) 12879 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12880 -((( 12881 -(% class="western" %) 12882 -PUT 12883 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12884 -((( 12885 -(% class="western" %) 12886 -/(% style="color:#212121" %)engagements(%%)/<engagement id> 12887 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12888 -((( 12889 -(% class="western" %) 12890 -Update engagement by engagement id. The engagement id string 11912 +**Telemarketing Leads 11913 +** 12891 12891 12892 12892 (% class="western" %) 12893 -Parameters required to update the engagement needs to be sent as post data in JSON format. 12894 12894 12895 -(% class="western" %) 12896 -NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body. 12897 -))) 12898 -|(% style="text-align:left; vertical-align:top" %)POST|(% style="text-align:left; vertical-align:top" %)/engagements/metric/<engagement id>|(% style="text-align:left; vertical-align:top" %)((( 12899 -Add options to specific metric in an engagement without passing all options and overriding existing options. 12900 - 12901 -Parameters required to update the engagement needs to be sent as post data in JSON format. 12902 -\\This API is used to add options only for select and checkbox metrics. 12903 -))) 12904 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12905 -((( 12906 -(% class="western" %) 12907 -POST 12908 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12909 -((( 12910 -(% class="western" %) 12911 -(% style="color:#212121" %)/engagements/addUser 12912 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 12913 -((( 12914 -(% class="western" %) 12915 -Add user to engagement 12916 - 12917 -(% class="western" %) 12918 -Parameters required to add user to the engagement needs to be sent as post data in JSON format. 12919 -))) 12920 - 12921 -(% id="HGETAllEngagements" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12922 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Engagements(%%) == 12923 - 12924 ----- 12925 - 12926 ----- 12927 - 12928 -{{panel bgColor="#D3D3D3" width="100%"}} 12929 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 12930 -{{/panel}} 12931 - 12932 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12933 - 12934 ----- 12935 - 12936 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 12937 - 12938 -==== Example ==== 12939 - 12940 ----- 12941 - 12942 -(% style="color:#6b6b6b" %)Request 12943 - 12944 -{{code language="php" theme="RDark" title="Get All Engagement Request"}} 12945 -<?php 12946 - 12947 -$curl = curl_init(); 12948 - 12949 -curl_setopt_array($curl, array( 12950 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 12951 - CURLOPT_RETURNTRANSFER => true, 12952 - CURLOPT_ENCODING => '', 12953 - CURLOPT_MAXREDIRS => 10, 12954 - CURLOPT_TIMEOUT => 0, 12955 - CURLOPT_FOLLOWLOCATION => true, 12956 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12957 - CURLOPT_CUSTOMREQUEST => 'GET', 12958 - CURLOPT_HTTPHEADER => array( 12959 - 'Appkey: {{ONECOUNT API KEY}}' 12960 - ), 12961 -)); 12962 - 12963 -$response = curl_exec($curl); 12964 - 12965 -curl_close($curl); 12966 -echo $response; 12967 - 12968 - 12969 -{{/code}} 12970 - 12971 - 12972 -(% style="color:#6b6b6b" %)Response 200 OK 12973 - 12974 -{{code language="yml" theme="RDark" collapse="true" title="Get all engagements Response"}} 12975 - { 12976 - "result": { 12977 - "success": "1", 12978 - "error": { 12979 - "code": "", 12980 - "message": "" 12981 - } 12982 - }, 12983 - "Engagements": [ 12984 - { 12985 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 12986 - "Name": "Test Engagement 1", 12987 - "Engagement Fields": [ 12988 - { 12989 - "Name": "id", 12990 - "Type": "text" 12991 - }, 12992 - { 12993 - "Name": "activity_time", 12994 - "Type": "text" 12995 - }, 12996 - { 12997 - "Name": "Name", 12998 - "Type": "text" 12999 - }, 13000 - { 13001 - "Name": "Test Field", 13002 - "Type": "select", 13003 - "Values": [ 13004 - { 13005 - "text": "Test 1", 13006 - "value": "Test1" 13007 - } 13008 - ] 13009 - } 13010 - ] 13011 - } 13012 - ] 13013 -} 13014 -{{/code}} 13015 - 13016 - 13017 -(% id="HGETSpecificEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13018 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Specific Engagement(%%) == 13019 - 13020 ----- 13021 - 13022 ----- 13023 - 13024 -{{panel bgColor="#D3D3D3" width="100%"}} 13025 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement ID}} 13026 -{{/panel}} 13027 - 13028 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13029 - 13030 ----- 13031 - 13032 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13033 - 13034 -==== Example ==== 13035 - 13036 ----- 13037 - 13038 -(% style="color:#6b6b6b" %)Request 13039 - 13040 -{{code language="php" theme="RDark" title="Get Specific Engagement Request"}} 13041 -<?php 13042 - 13043 -$curl = curl_init(); 13044 - 13045 -curl_setopt_array($curl, array( 13046 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement ID}}', 13047 - CURLOPT_RETURNTRANSFER => true, 13048 - CURLOPT_ENCODING => '', 13049 - CURLOPT_MAXREDIRS => 10, 13050 - CURLOPT_TIMEOUT => 0, 13051 - CURLOPT_FOLLOWLOCATION => true, 13052 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13053 - CURLOPT_CUSTOMREQUEST => 'GET', 13054 - CURLOPT_HTTPHEADER => array( 13055 - 'Appkey: {{ONECOUNT API KEY}}' 13056 - ), 13057 -)); 13058 - 13059 -$response = curl_exec($curl); 13060 - 13061 -curl_close($curl); 13062 -echo $response; 13063 - 13064 - 13065 -{{/code}} 13066 - 13067 - 13068 -(% style="color:#6b6b6b" %)Response 200 OK 13069 - 13070 -{{code language="yml" theme="RDark" collapse="true" title="Get specific engagement Response"}} 13071 - { 13072 - "result": { 13073 - "success": "1", 13074 - "error": { 13075 - "code": "", 13076 - "message": "" 13077 - } 13078 - }, 13079 - "Engagements": [ 13080 - { 13081 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 13082 - "Name": "Test Engagement 1", 13083 - "Engagement Fields": [ 13084 - { 13085 - "Name": "id", 13086 - "Type": "text" 13087 - }, 13088 - { 13089 - "Name": "activity_time", 13090 - "Type": "text" 13091 - }, 13092 - { 13093 - "Name": "Name", 13094 - "Type": "text" 13095 - }, 13096 - { 13097 - "Name": "Test Field", 13098 - "Type": "select", 13099 - "Values": [ 13100 - { 13101 - "text": "Test 1", 13102 - "value": "Test1" 13103 - } 13104 - ] 13105 - } 13106 - ] 13107 - } 13108 - ] 13109 -} 13110 -{{/code}} 13111 - 13112 - 13113 -(% id="HPOSTCreateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13114 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Engagement(%%) == 13115 - 13116 ----- 13117 - 13118 -{{panel bgColor="#D3D3D3" width="100%"}} 13119 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 13120 -{{/panel}} 13121 - 13122 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13123 - 13124 ----- 13125 - 13126 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13127 - 13128 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13129 - 13130 ----- 13131 - 13132 -{{code language="yml" theme="RDark" title="Body"}} 13133 -{"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[ 13134 - {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"}, 13135 - {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"}, 13136 - {"Price":[],"Type": "numeric"}, 13137 - {"Transaction Date":[],"Type": "date"} 13138 -]} 13139 -{{/code}} 13140 - 13141 -==== Example ==== 13142 - 13143 ----- 13144 - 13145 -(% style="color:#6b6b6b" %)Request 13146 - 13147 -{{code language="php" theme="RDark" title="Create Engagement Request"}} 13148 -<?php 13149 - 13150 -$curl = curl_init(); 13151 - 13152 -curl_setopt_array($curl, array( 13153 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 13154 - CURLOPT_RETURNTRANSFER => true, 13155 - CURLOPT_ENCODING => '', 13156 - CURLOPT_MAXREDIRS => 10, 13157 - CURLOPT_TIMEOUT => 0, 13158 - CURLOPT_FOLLOWLOCATION => true, 13159 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13160 - CURLOPT_CUSTOMREQUEST => 'POST', 13161 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[ 13162 - {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"}, 13163 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13164 - {"Price":[],"Type": "numeric"}, 13165 - {"Transaction Date":[],"Type": "text"} 13166 -]}', 13167 - CURLOPT_HTTPHEADER => array( 13168 - 'Appkey: {{ONECOUNT API KEY}}', 13169 - 'Content-Type: application/json' 13170 - ), 13171 -)); 13172 - 13173 -$response = curl_exec($curl); 13174 - 13175 -curl_close($curl); 13176 -echo $response; 13177 - 13178 - 13179 -{{/code}} 13180 - 13181 - 13182 -(% style="color:#6b6b6b" %)Response 200 OK 13183 - 13184 -{{code language="yml" theme="RDark" collapse="true" title="Create Engagement Response"}} 13185 - { 13186 - "result": { 13187 - "success": "1", 13188 - "error": { 13189 - "code": "", 13190 - "message": "" 13191 - } 13192 - }, 13193 - "Engagements": [ 13194 - { 13195 - "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565", 13196 - "Name": "Test engagement 2", 13197 - "Metrics": [ 13198 - { 13199 - "Name": "Name", 13200 - "Type": "select", 13201 - "Values": [ 13202 - { 13203 - "text": "Webinar 1", 13204 - "value": "Webinar_1" 13205 - }, 13206 - { 13207 - "text": "Webinar 2", 13208 - "value": "Webinar_2" 13209 - } 13210 - ] 13211 - }, 13212 - { 13213 - "Name": "Attendance Status", 13214 - "Type": "select", 13215 - "Values": [ 13216 - { 13217 - "text": "Attended", 13218 - "value": "attended" 13219 - }, 13220 - { 13221 - "text": "Not Attended", 13222 - "value": "not_attended" 13223 - } 13224 - ] 13225 - }, 13226 - { 13227 - "Name": "Price", 13228 - "Type": "numeric" 13229 - }, 13230 - { 13231 - "Name": "Transaction Date", 13232 - "Type": "text" 13233 - }, 13234 - { 13235 - "Name": "id", 13236 - "Type": "text" 13237 - }, 13238 - { 13239 - "Name": "activity_time", 13240 - "Type": "text" 13241 - } 13242 - ] 13243 - } 13244 - ] 13245 -} 13246 -{{/code}} 13247 - 13248 - 13249 -(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13250 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Engagement(%%) == 13251 - 13252 ----- 13253 - 13254 -{{panel bgColor="#D3D3D3" width="100%"}} 13255 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement Id}} 13256 -{{/panel}} 13257 - 13258 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13259 - 13260 ----- 13261 - 13262 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13263 - 13264 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13265 - 13266 ----- 13267 - 13268 -{{code language="yml" theme="RDark" title="Body"}} 13269 -{"Name":"Test engagement 3", "Metrics":[ 13270 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13271 - {"Price":[],"Type": "text"} 13272 - ]} 13273 -{{/code}} 13274 - 13275 -==== Example ==== 13276 - 13277 ----- 13278 - 13279 -(% style="color:#6b6b6b" %)Request 13280 - 13281 -{{code language="php" theme="RDark" title="Update Engagement Request"}} 13282 - <?php 13283 - 13284 -$curl = curl_init(); 13285 - 13286 -curl_setopt_array($curl, array( 13287 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement Id}}', 13288 - CURLOPT_RETURNTRANSFER => true, 13289 - CURLOPT_ENCODING => '', 13290 - CURLOPT_MAXREDIRS => 10, 13291 - CURLOPT_TIMEOUT => 0, 13292 - CURLOPT_FOLLOWLOCATION => true, 13293 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13294 - CURLOPT_CUSTOMREQUEST => 'PUT', 13295 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[ 13296 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13297 - {"Price":[],"Type": "text"} 13298 - ]}', 13299 - CURLOPT_HTTPHEADER => array( 13300 - 'Appkey: {{ONECOUNT API KEY}}', 13301 - 'Content-Type: application/json' 13302 - ), 13303 -)); 13304 - 13305 -$response = curl_exec($curl); 13306 - 13307 -curl_close($curl); 13308 -echo $response; 13309 - 13310 -{{/code}} 13311 - 13312 - 13313 -(% style="color:#6b6b6b" %)Response 200 OK 13314 - 13315 -{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13316 -{ 13317 - "result": { 13318 - "success": "1", 13319 - "error": { 13320 - "code": "", 13321 - "message": "" 13322 - } 13323 - }, 13324 - "Engagements": [ 13325 - { 13326 - "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13327 - "Name": "Test engagement 3", 13328 - "Metrics": [ 13329 - { 13330 - "Name": "Attendance Status", 13331 - "Type": "select", 13332 - "Values": [ 13333 - { 13334 - "text": "Attended", 13335 - "value": "attended" 13336 - }, 13337 - { 13338 - "text": "Not Attended", 13339 - "value": "not_attended" 13340 - } 13341 - ] 13342 - }, 13343 - { 13344 - "Name": "Price", 13345 - "Type": "text" 13346 - }, 13347 - { 13348 - "Name": "Name", 13349 - "Type": "select", 13350 - "Values": [ 13351 - { 13352 - "text": "Webinar 1", 13353 - "value": "Webinar_1" 13354 - }, 13355 - { 13356 - "text": "Webinar 2", 13357 - "value": "Webinar_2" 13358 - } 13359 - ] 13360 - }, 13361 - { 13362 - "Name": "Transaction Date", 13363 - "Type": "text" 13364 - }, 13365 - { 13366 - "Name": "id", 13367 - "Type": "text" 13368 - }, 13369 - { 13370 - "Name": "activity_time", 13371 - "Type": "text" 13372 - } 13373 - ] 13374 - } 13375 - ] 13376 -} 13377 -{{/code}} 13378 - 13379 - 13380 -(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13381 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" id="cke_bm_7146126S" style="color:#0053b8; display:none" %) (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %) (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Add options to metric(%%) == 13382 - 13383 ----- 13384 - 13385 -{{panel bgColor="#D3D3D3" width="100%"}} 13386 - (% class="nolink" %)https:~/~/api.onecount.net/v2(%%)/engagements/metric/(% style="color:#212121" %)~{~{Engagement Id}} 13387 -{{/panel}} 13388 - 13389 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13390 - 13391 ----- 13392 - 13393 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13394 - 13395 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13396 - 13397 ----- 13398 - 13399 -{{code language="yml" title="Body"}} 13400 -{"Metrics":[ 13401 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13402 - {"lagacy status":[{"text":"c","value":"c"}]} 13403 - ]} 13404 -{{/code}} 13405 - 13406 -==== Example ==== 13407 - 13408 ----- 13409 - 13410 -(% style="color:#6b6b6b" %)Request 13411 - 13412 -{{code language="php" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}} 13413 - <?php 13414 - 13415 -$curl = curl_init(); 13416 - 13417 -curl_setopt_array($curl, array( 13418 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/metric/{{Engagement Id}}', 13419 - CURLOPT_RETURNTRANSFER => true, 13420 - CURLOPT_ENCODING => '', 13421 - CURLOPT_MAXREDIRS => 10, 13422 - CURLOPT_TIMEOUT => 0, 13423 - CURLOPT_FOLLOWLOCATION => true, 13424 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13425 - CURLOPT_CUSTOMREQUEST => 'PUT', 13426 - CURLOPT_POSTFIELDS =>'{"Metrics":[ 13427 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13428 - {"lagacy status":[{"text":"c","value":"c"}]} 13429 - ]}', 13430 - CURLOPT_HTTPHEADER => array( 13431 - 'Appkey: {{ONECOUNT API KEY}}', 13432 - 'Content-Type: application/json' 13433 - ), 13434 -)); 13435 - 13436 -$response = curl_exec($curl); 13437 - 13438 -curl_close($curl); 13439 -echo $response; 13440 - 13441 -{{/code}} 13442 - 13443 - 13444 -(% style="color:#6b6b6b" %)Response 200 OK 13445 - 13446 -{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13447 -{ 13448 - "result": { 13449 - "success": "1", 13450 - "error": { 13451 - "code": "", 13452 - "message": "" 13453 - } 13454 - }, 13455 - "Engagements": [ 13456 - { 13457 - "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13458 - "Name": "Test engagement 3", 13459 - "Metrics": [ 13460 - { 13461 - "Name": "Attendance Status", 13462 - "Type": "select", 13463 - "Values": [ 13464 - { 13465 - "text": "Attended", 13466 - "value": "attended" 13467 - }, 13468 - { 13469 - "text": "Not Attended", 13470 - "value": "not_attended" 13471 - } 13472 - ] 13473 - }, 13474 - { 13475 - "Name": "Price", 13476 - "Type": "text" 13477 - }, 13478 - { 13479 - "Name": "Name", 13480 - "Type": "select", 13481 - "Values": [ 13482 - { 13483 - "text": "Webinar 1", 13484 - "value": "Webinar_1" 13485 - }, 13486 - { 13487 - "text": "Webinar 2", 13488 - "value": "Webinar_2" 13489 - } 13490 - ] 13491 - }, 13492 - { 13493 - "Name": "Transaction Date", 13494 - "Type": "text" 13495 - }, 13496 - { 13497 - "Name": "id", 13498 - "Type": "text" 13499 - }, 13500 - { 13501 - "Name": "activity_time", 13502 - "Type": "text" 13503 - } 13504 - ] 13505 - } 13506 - ] 13507 -} 13508 -{{/code}} 13509 - 13510 - 13511 - 13512 - 13513 - 13514 - 13515 -(% id="HPOSTAddUsertoEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13516 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Add User to Engagement(%%) == 13517 - 13518 ----- 13519 - 13520 -{{panel bgColor="#D3D3D3" width="100%"}} 13521 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/addUser 13522 -{{/panel}} 13523 - 13524 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13525 - 13526 ----- 13527 - 13528 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13529 - 13530 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13531 - 13532 ----- 13533 - 13534 -{{code language="yml" title="Body"}} 13535 -{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","name":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}} 13536 -{{/code}} 13537 - 13538 -==== Example ==== 13539 - 13540 ----- 13541 - 13542 -(% style="color:#6b6b6b" %)Request 13543 - 13544 -{{code language="php" title="Add User to Engagement Request"}} 13545 - <?php 13546 - 13547 -$curl = curl_init(); 13548 - 13549 -curl_setopt_array($curl, array( 13550 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/addUser', 13551 - CURLOPT_RETURNTRANSFER => true, 13552 - CURLOPT_ENCODING => '', 13553 - CURLOPT_MAXREDIRS => 10, 13554 - CURLOPT_TIMEOUT => 0, 13555 - CURLOPT_FOLLOWLOCATION => true, 13556 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13557 - CURLOPT_CUSTOMREQUEST => 'POST', 13558 - CURLOPT_POSTFIELDS =>'{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","name":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}', 13559 - CURLOPT_HTTPHEADER => array( 13560 - 'Appkey: {{ONECOUNT API KEY}}' 13561 - ), 13562 -)); 13563 - 13564 -$response = curl_exec($curl); 13565 - 13566 -curl_close($curl); 13567 -echo $response; 13568 -{{/code}} 13569 - 13570 - 13571 -(% style="color:#6b6b6b" %)Response 200 OK 13572 - 13573 -{{code language="yml" theme="RDark" collapse="true" title="Add Users to Engagement Response"}} 13574 - { 13575 - "result": { 13576 - "success": "1", 13577 - "error": { 13578 - "code": "", 13579 - "message": "" 13580 - } 13581 - }, 13582 - "Users": { 13583 - "ocid": 1845775, 13584 - "uuid": { 13585 - "type": { 13586 - "name": "uuid" 13587 - }, 13588 - "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7", 13589 - "version": 4 13590 - }, 13591 - "blacklisted": null, 13592 - "demo": { 13593 - "1": "rayaan@one-count.com", 13594 - "2": "user_1701788987", 13595 - "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5" 13596 - }, 13597 - "email": "rayaan@one-count.com", 13598 - "espid": null, 13599 - "known": { 13600 - "type": { 13601 - "name": "smallint" 13602 - }, 13603 - "value": "1" 13604 - }, 13605 - "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b", 13606 - "partners_hash": null, 13607 - "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5", 13608 - "payment_cc_exp": null, 13609 - "payment_vendor_token": null, 13610 - "products": { 13611 - "599": "447" 13612 - }, 13613 - "remarks": null, 13614 - "resources": null, 13615 - "smartlink_hash": null, 13616 - "subscription_active_resource_info": null, 13617 - "subscription_active_term_info": { 13618 - "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}" 13619 - }, 13620 - "subscription_log": { 13621 - "type": { 13622 - "valueType": { 13623 - "name": "varchar" 13624 - } 13625 - }, 13626 - "values": [ 13627 - "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:09:01\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702303741,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}", 13628 - "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:20:49\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702304449,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}", 13629 - "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:34:26\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702305266,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}" 13630 - ] 13631 - }, 13632 - "subscription_log_by_resource": null, 13633 - "subscription_source_code": [ 13634 - "83" 13635 - ], 13636 - "targets": null, 13637 - "timestamp": { 13638 - "type": { 13639 - "name": "bigint" 13640 - }, 13641 - "value": "1701788987" 13642 - }, 13643 - "unconfirmed": null, 13644 - "update_time": null, 13645 - "username": "user_1701788987", 13646 - "vendor_blacklisted": null, 13647 - "vendor_esp": null, 13648 - "vendor_unconfirmed": null 13649 - } 13650 -} 13651 -{{/code}} 13652 - 13653 - 13654 -(% id="HCOMPONENT:Segments" class="western" %) 13655 -=== **COMPONENT: Segments** === 13656 - 13657 -* 13658 -** === 13659 - 13660 -(% class="western" %) 13661 -This resource is for manipulating segment for a resource. A segment can be searched (or) add users to segment (or) get all segment for a user. 13662 - 13663 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13664 -((( 13665 -(% class="western" %) 13666 -**Method** 13667 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13668 -((( 13669 -(% class="western" %) 13670 -**Url** 13671 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13672 -((( 13673 -(% class="western" %) 13674 -**Action** 13675 -))) 13676 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13677 -((( 13678 -(% class="western" %) 13679 -GET 13680 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13681 -((( 13682 -(% class="western" %) 13683 -/(% style="color:#212121" %)segments 13684 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13685 -((( 13686 -(% class="western" %) 13687 -Get all segments. 13688 -))) 13689 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13690 -((( 13691 -(% class="western" %) 13692 -GET 13693 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13694 -((( 13695 -(% class="western" %) 13696 -/(% style="color:#212121" %)segments(%%)/(% class="resolvedVariable" style="text-decoration:none" %)~{~{Segment id}} 13697 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13698 -((( 13699 -(% class="western" %) 13700 -Get specific segment based on segment id. 13701 -))) 13702 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13703 -((( 13704 -(% class="western" %) 13705 -POST 13706 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13707 -((( 13708 -(% class="western" %) 13709 -/(% style="color:#212121" %)segments/addUsers 13710 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13711 -((( 13712 -(% class="western" %) 13713 -Add users to segment. 13714 -))) 13715 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13716 -((( 13717 -(% class="western" %) 13718 -GET 13719 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13720 -((( 13721 -(% class="western" %) 13722 -/(% style="color:#212121" %)segments/users/(% class="resolvedVariable" style="text-decoration:none" %)~{~{ocid}} 13723 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 13724 -((( 13725 -(% class="western" %) 13726 -Get all segment user has be subscribed based on user id. 13727 -))) 13728 - 13729 -(% id="HGETAllSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13730 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Segments(%%) == 13731 - 13732 ----- 13733 - 13734 ----- 13735 - 13736 -{{panel bgColor="#D3D3D3" width="100%"}} 13737 -(% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments 13738 -{{/panel}} 13739 - 13740 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13741 - 13742 ----- 13743 - 13744 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13745 - 13746 -==== Example ==== 13747 - 13748 ----- 13749 - 13750 -(% style="color:#6b6b6b" %)Request 13751 - 13752 -{{code language="php" theme="RDark" title="Get All Segments Request"}} 13753 -<?php 13754 - 13755 -$curl = curl_init(); 13756 - 13757 -curl_setopt_array($curl, array( 13758 - CURLOPT_URL => 'https://api.onecount.net/v2/segments', 13759 - CURLOPT_RETURNTRANSFER => true, 13760 - CURLOPT_ENCODING => '', 13761 - CURLOPT_MAXREDIRS => 10, 13762 - CURLOPT_TIMEOUT => 0, 13763 - CURLOPT_FOLLOWLOCATION => true, 13764 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13765 - CURLOPT_CUSTOMREQUEST => 'GET', 13766 - CURLOPT_HTTPHEADER => array( 13767 - 'Appkey: {{ONECOUNT API KEY}}' 13768 - ), 13769 -)); 13770 - 13771 -$response = curl_exec($curl); 13772 - 13773 -curl_close($curl); 13774 -echo $response; 13775 -{{/code}} 13776 - 13777 - 13778 -(% style="color:#6b6b6b" %)Response 200 OK 13779 - 13780 -{{code language="yml" theme="RDark" collapse="true" title="Get All Segments Response"}} 13781 - { 13782 - "result": { 13783 - "success": "1", 13784 - "error": { 13785 - "code": "", 13786 - "message": "" 13787 - } 13788 - }, 13789 - "Segments": [ 13790 - { 13791 - "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43", 13792 - "Name": "2022 Use Cases PDF Download" 13793 - }, 13794 - { 13795 - "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 13796 - "Name": "58-percent conversion-rate" 13797 - }, 13798 - { 13799 - "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138", 13800 - "Name": "Audience Marketing Pop-Up" 13801 - }, 13802 - { 13803 - "Id": "68219b37-c155-4459-a5ce-497261286ffe", 13804 - "Name": "Bold Minds Reminders" 13805 - }, 13806 - { 13807 - "Id": "6450defc-7658-4182-9c2a-a8f8420f801e", 13808 - "Name": "Demo - Aviator's Guide - NL Popup" 13809 - }, 13810 - { 13811 - "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0", 13812 - "Name": "Getting 80-Percent Conversion Rates Pop-up" 13813 - }, 13814 - { 13815 - "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 13816 - "Name": "Holiday Special Offer - 3 mo. Pilot" 13817 - }, 13818 - { 13819 - "Id": "16305ad0-8e65-4085-942e-04d99fd39207", 13820 - "Name": "Identity Resolution Test II" 13821 - }, 13822 - { 13823 - "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3", 13824 - "Name": "Live ONEcount Popup Example Segment" 13825 - }, 13826 - { 13827 - "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a", 13828 - "Name": "Live webinar - June 15 - Accelerate Revenue" 13829 - }, 13830 - { 13831 - "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de", 13832 - "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign" 13833 - }, 13834 - { 13835 - "Id": "d883ecdb-5307-416d-9558-c196472021c9", 13836 - "Name": "New Year - Increase Revenue 30-Percent" 13837 - }, 13838 - { 13839 - "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73", 13840 - "Name": "OC Test" 13841 - }, 13842 - { 13843 - "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 13844 - "Name": "Something big" 13845 - }, 13846 - { 13847 - "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 13848 - "Name": "Something No Other Platform Has" 13849 - }, 13850 - { 13851 - "Id": "5eaa0345-a825-4ba0-a787-336312a77744", 13852 - "Name": "Something Revolutionary" 13853 - }, 13854 - { 13855 - "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 13856 - "Name": "Something that will change your life" 13857 - }, 13858 - { 13859 - "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 13860 - "Name": "Something You Have Always Wanted" 13861 - }, 13862 - { 13863 - "Id": "28361c73-e253-49bb-a791-5481be2070a0", 13864 - "Name": "Something You Never Thought Possible" 13865 - }, 13866 - { 13867 - "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814", 13868 - "Name": "Test behaviour " 13869 - }, 13870 - { 13871 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 13872 - "Name": "Test behaviour banner segment" 13873 - }, 13874 - { 13875 - "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561", 13876 - "Name": "Test behaviour combo" 13877 - }, 13878 - { 13879 - "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a", 13880 - "Name": "Test behaviour content" 13881 - }, 13882 - { 13883 - "Id": "89424642-1363-476e-9842-4f0a2544151f", 13884 - "Name": "Test behaviour email" 13885 - }, 13886 - { 13887 - "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c", 13888 - "Name": "Test demographic segments" 13889 - }, 13890 - { 13891 - "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd", 13892 - "Name": "Test with unknown only selecting all filters" 13893 - } 13894 - ] 13895 -} 13896 -{{/code}} 13897 - 13898 - 13899 -(% id="HGETspecificSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13900 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Segments(%%) == 13901 - 13902 ----- 13903 - 13904 -{{panel bgColor="#D3D3D3" width="100%"}} 13905 - (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments/~{~{segment id}} 13906 -{{/panel}} 13907 - 13908 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13909 - 13910 ----- 13911 - 13912 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13913 - 13914 -==== Example ==== 13915 - 13916 ----- 13917 - 13918 -(% style="color:#6b6b6b" %)Request 13919 - 13920 -{{code language="php" theme="RDark" title="Get specific Segment Request"}} 13921 - <?php 13922 - 13923 -$curl = curl_init(); 13924 - 13925 -curl_setopt_array($curl, array( 13926 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}', 13927 - CURLOPT_RETURNTRANSFER => true, 13928 - CURLOPT_ENCODING => '', 13929 - CURLOPT_MAXREDIRS => 10, 13930 - CURLOPT_TIMEOUT => 0, 13931 - CURLOPT_FOLLOWLOCATION => true, 13932 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13933 - CURLOPT_CUSTOMREQUEST => 'GET', 13934 - CURLOPT_HTTPHEADER => array( 13935 - 'Appkey: {{ONECOUNT API KEY}}' 13936 - ), 13937 -)); 13938 - 13939 -$response = curl_exec($curl); 13940 - 13941 -curl_close($curl); 13942 -echo $response; 13943 -{{/code}} 13944 - 13945 - 13946 -(% style="color:#6b6b6b" %)Response 200 OK 13947 - 13948 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Segments Response"}} 13949 - { 13950 - "result": { 13951 - "success": "1", 13952 - "error": { 13953 - "code": "", 13954 - "message": "" 13955 - } 13956 - }, 13957 - "Segments": { 13958 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 13959 - "Demos": { 13960 - "_empty_": [], 13961 - "type": "" 13962 - }, 13963 - "Description": "", 13964 - "Action": { 13965 - "action": {} 13966 - }, 13967 - "Name": "Test behaviour banner segment", 13968 - "Behaviours": [ 13969 - { 13970 - "end_date": "05/26/2022", 13971 - "date_type": "Future", 13972 - "sub_category_values": [], 13973 - "sub_category": "clicked", 13974 - "category": "1", 13975 - "targets": [ 13976 - "all" 13977 - ], 13978 - "joining_logic": "AND", 13979 - "frequency": "1", 13980 - "start_date": "04/26/2022", 13981 - "day_count": "100" 13982 - } 13983 - ], 13984 - "Accounts": [] 13985 - } 13986 -} 13987 -{{/code}} 13988 - 13989 - 13990 -(% id="HPOSTAdduserstosegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13991 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Add users to segments(%%) == 13992 - 13993 ----- 13994 - 13995 -{{panel bgColor="#D3D3D3" width="100%"}} 13996 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/addUsers 13997 -{{/panel}} 13998 - 13999 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 14000 - 14001 ----- 14002 - 14003 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 14004 - 14005 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 14006 - 14007 ----- 14008 - 14009 -{{code language="yml" theme="RDark" title="Body"}} 14010 -{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]} 14011 -{{/code}} 14012 - 14013 -==== Example ==== 14014 - 14015 ----- 14016 - 14017 -(% style="color:#6b6b6b" %)Request 14018 - 14019 -{{code language="php" theme="RDark" title="Add users to Segment Request"}} 14020 -<?php 14021 - 14022 -$curl = curl_init(); 14023 - 14024 -curl_setopt_array($curl, array( 14025 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers', 14026 - CURLOPT_RETURNTRANSFER => true, 14027 - CURLOPT_ENCODING => '', 14028 - CURLOPT_MAXREDIRS => 10, 14029 - CURLOPT_TIMEOUT => 0, 14030 - CURLOPT_FOLLOWLOCATION => true, 14031 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14032 - CURLOPT_CUSTOMREQUEST => 'POST', 14033 - CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}', 14034 - CURLOPT_HTTPHEADER => array( 14035 - 'Appkey: {{ONECOUNT API KEY}}', 14036 - 'Content-Type: application/json' 14037 - ), 14038 -)); 14039 - 14040 -$response = curl_exec($curl); 14041 - 14042 -curl_close($curl); 14043 -echo $response; 14044 -{{/code}} 14045 - 14046 - 14047 -(% style="color:#6b6b6b" %)Response 200 OK 14048 - 14049 -{{code language="yml" theme="RDark" collapse="true" title="Add users to segment Response"}} 14050 -{ 14051 - "result": { 14052 - "success": "1", 14053 - "error": { 14054 - "code": "", 14055 - "message": "" 14056 - } 14057 - }, 14058 - "Segments": { 14059 - "Error user ids": [ 14060 - 676172, 14061 - 2134321 14062 - ], 14063 - "Inserted user ids": [ 14064 - 164499 14065 - ] 14066 - } 14067 -} 14068 -{{/code}} 14069 - 14070 - 14071 -(% id="HGETallsegmentsforaUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 14072 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)all segments for a User(%%) == 14073 - 14074 ----- 14075 - 14076 -{{panel bgColor="#D3D3D3" width="100%"}} 14077 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration:none" %)~{~{ocid}} 14078 -{{/panel}} 14079 - 14080 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 14081 - 14082 ----- 14083 - 14084 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 14085 - 14086 -==== Example ==== 14087 - 14088 ----- 14089 - 14090 -(% style="color:#6b6b6b" %)Request 14091 - 14092 -{{code language="php" theme="RDark" title="Get all segments for a user Request"}} 14093 -<?php 14094 - 14095 -$curl = curl_init(); 14096 - 14097 -curl_setopt_array($curl, array( 14098 - CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••', 14099 - CURLOPT_RETURNTRANSFER => true, 14100 - CURLOPT_ENCODING => '', 14101 - CURLOPT_MAXREDIRS => 10, 14102 - CURLOPT_TIMEOUT => 0, 14103 - CURLOPT_FOLLOWLOCATION => true, 14104 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14105 - CURLOPT_CUSTOMREQUEST => 'GET', 14106 - CURLOPT_HTTPHEADER => array( 14107 - 'Appkey: {{ONECOUNT API KEY}}' 14108 - ), 14109 -)); 14110 - 14111 -$response = curl_exec($curl); 14112 - 14113 -curl_close($curl); 14114 -echo $response; 14115 -{{/code}} 14116 - 14117 - 14118 -(% style="color:#6b6b6b" %)Response 200 OK 14119 - 14120 -{{code language="yml" theme="RDark" collapse="true" title="Get all Segments for a user Response"}} 14121 -{ 14122 - "result": { 14123 - "success": "1", 14124 - "error": { 14125 - "code": "", 14126 - "message": "" 14127 - } 14128 - }, 14129 - "Segments": [ 14130 - "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 14131 - "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 14132 - "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 14133 - "28361c73-e253-49bb-a791-5481be2070a0", 14134 - "28774f7c-9fd3-4dff-a42e-683460f437c0", 14135 - "5eaa0345-a825-4ba0-a787-336312a77744", 14136 - "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 14137 - "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 14138 - "bcb403a2-c0a1-414f-90c1-277a41009c97", 14139 - "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 14140 - "d883ecdb-5307-416d-9558-c196472021c9", 14141 - "d8d1bc9d-ede2-4c82-a747-10ab9fb979de" 14142 - ] 14143 -} 14144 -{{/code}} 14145 - 14146 - 14147 -(% id="HCOMPONENT:Leads" class="western" %) 14148 -=== **COMPONENT: Leads** === 14149 - 14150 -* 14151 -** === 14152 - 14153 -(% class="western" %) 14154 -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. 14155 - 14156 -(% class="western" %) 14157 -**Telemarketing Leads** 14158 - 14159 - 14160 14160 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed. 14161 14161 14162 14162 (% class="wrapped" %) 14163 -|(% style="text-align:left; 11920 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14164 14164 ((( 14165 14165 (% class="western" %) 14166 14166 **Method** 14167 -)))|(% style="text-align:left; 11924 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14168 14168 ((( 14169 14169 (% class="western" %) 14170 14170 **Url** 14171 -)))|(% style="text-align:left; 11928 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14172 14172 ((( 14173 14173 (% class="western" %) 14174 14174 **Action** 14175 14175 ))) 14176 -|(% style="text-align:left; 11933 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14177 14177 ((( 14178 14178 (% class="western" %) 14179 14179 GET 14180 -)))|(% style="text-align:left; 11937 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14181 14181 ((( 14182 14182 (% class="western" %) 14183 14183 /stats/telemarketing 14184 -)))|(% style="text-align:left; 11941 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14185 14185 ((( 14186 14186 (% class="western" %) 14187 14187 List telemarketing stats 14188 14188 ))) 14189 -|(% style="text-align:left; 11946 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14190 14190 ((( 14191 14191 (% class="western" %) 14192 14192 GET 14193 -)))|(% style="text-align:left; 11950 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14194 14194 ((( 14195 14195 (% class="western" %) 14196 14196 /stats/telemarketing/1000 14197 -)))|(% style="text-align:left; 11954 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14198 14198 ((( 14199 14199 (% class="western" %) 14200 14200 Get telemarketing stat whose id is 1000 in the system. 14201 14201 ))) 14202 -|(% style="text-align:left; 11959 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14203 14203 ((( 14204 14204 (% class="western" %) 14205 14205 POST 14206 -)))|(% style="text-align:left; 11963 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14207 14207 ((( 14208 14208 (% class="western" %) 14209 14209 /stats/telemarketing 14210 -)))|(% style="text-align:left; 11967 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14211 14211 ((( 14212 14212 (% class="western" %) 14213 14213 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent. 14214 14214 ))) 14215 14215 11973 +\\ 11974 + 14216 14216 (% class="western" %) 14217 14217 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. 14218 14218 14219 14219 (% class="wrapped" %) 14220 -|(% style="text-align:left; 11979 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14221 14221 ((( 14222 14222 (% class="western" %) 14223 14223 **Request** 14224 -)))|(% style="text-align:left; 11983 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14225 14225 ((( 14226 14226 (% class="western" %) 14227 14227 **Type** 14228 -)))|(% style="text-align:left; 11987 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14229 14229 ((( 14230 14230 (% class="western" %) 14231 14231 **Description** 14232 14232 ))) 14233 -|(% style="text-align:left; 11992 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14234 14234 ((( 14235 14235 (% class="western" %) 14236 14236 Telemarketing 14237 -)))|(% style="text-align:left; 11996 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14238 14238 ((( 14239 14239 (% class="western" %) 14240 14240 Telemarketing 14241 -)))|(% style="text-align:left; 12000 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14242 14242 ((( 14243 14243 (% class="western" %) 14244 14244 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section. ... ... @@ -14285,48 +14285,58 @@ 14285 14285 (% class="western" %) 14286 14286 } 14287 14287 ))) 14288 -|(% style="text-align:left; 12047 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14289 14289 ((( 14290 14290 (% class="western" %) 14291 - 14292 -)))|(% style="text-align:left; 12050 +\\ 12051 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14293 14293 ((( 14294 14294 (% class="western" %) 14295 - 14296 -)))|(% style="text-align:left; 12054 +\\ 12055 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14297 14297 ((( 14298 14298 (% class="western" %) 14299 - 12058 +\\ 14300 14300 ))) 14301 14301 14302 14302 (% class="wrapped" %) 14303 -|(% style="text-align:left; 12062 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14304 14304 ((( 14305 14305 (% class="western" %) 14306 14306 **Response** 14307 -)))|(% style="text-align:left; 12066 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14308 14308 ((( 14309 14309 (% class="western" %) 14310 14310 **Type** 14311 -)))|(% style="text-align:left; 12070 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14312 14312 ((( 14313 14313 (% class="western" %) 14314 14314 **Description** 14315 14315 ))) 14316 -|(% style="text-align:left; 12075 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14317 14317 ((( 14318 14318 (% class="western" %) 14319 14319 Ids 14320 -)))|(% style="text-align:left; 12079 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14321 14321 ((( 14322 14322 (% class="western" %) 14323 14323 String 14324 -)))|(% style="text-align:left; 12083 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14325 14325 ((( 14326 14326 (% class="western" %) 14327 14327 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format. 14328 14328 ))) 14329 14329 12089 +\\ 12090 + 12091 +\\ 12092 + 12093 +\\ 12094 + 12095 +\\ 12096 + 12097 +\\ 12098 + 14330 14330 (% class="western" %) 14331 14331 **API REFERENCE** 14332 14332 ... ... @@ -14334,54 +14334,54 @@ 14334 14334 **Type: Questions** 14335 14335 14336 14336 (% class="wrapped" %) 14337 -|(% style="text-align:left; 12106 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14338 14338 ((( 14339 14339 (% class="western" %) 14340 14340 **Property Name** 14341 -)))|(% style="text-align:left; 12110 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14342 14342 ((( 14343 14343 (% class="western" %) 14344 14344 **Type** 14345 -)))|(% style="text-align:left; 12114 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14346 14346 ((( 14347 14347 (% class="western" %) 14348 14348 **Description** 14349 14349 ))) 14350 -|(% style="text-align:left; 12119 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14351 14351 ((( 14352 14352 (% class="western" %) 14353 14353 Id 14354 -)))|(% style="text-align:left; 12123 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14355 14355 ((( 14356 14356 (% class="western" %) 14357 14357 Int 14358 -)))|(% style="text-align:left; 12127 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14359 14359 ((( 14360 14360 (% class="western" %) 14361 14361 Id of the question. 14362 14362 ))) 14363 -|(% style="text-align:left; 12132 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14364 14364 ((( 14365 14365 (% class="western" %) 14366 14366 Text 14367 -)))|(% style="text-align:left; 12136 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14368 14368 ((( 14369 14369 (% class="western" %) 14370 14370 String 14371 -)))|(% style="text-align:left; 12140 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14372 14372 ((( 14373 14373 (% class="western" %) 14374 14374 Text of the question. 14375 14375 ))) 14376 -|(% style="text-align:left; 12145 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14377 14377 ((( 14378 14378 (% class="western" %) 14379 14379 Type 14380 -)))|(% style="text-align:left; 12149 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14381 14381 ((( 14382 14382 (% class="western" %) 14383 14383 Int 14384 -)))|(% style="text-align:left; 12153 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14385 14385 ((( 14386 14386 (% class="western" %) 14387 14387 Determines which type of question it is. Textbox, checkbox, select, radio. ... ... @@ -14393,28 +14393,28 @@ 14393 14393 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. 14394 14394 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. 14395 14395 ))) 14396 -|(% style="text-align:left; 12165 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14397 14397 ((( 14398 14398 (% class="western" %) 14399 14399 Choices 14400 -)))|(% style="text-align:left; 12169 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14401 14401 ((( 14402 14402 (% class="western" %) 14403 14403 choices 14404 -)))|(% style="text-align:left; 12173 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14405 14405 ((( 14406 14406 (% class="western" %) 14407 14407 If multiple choice question this field will have the choices. 14408 14408 ))) 14409 -|(% style="text-align:left; 12178 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14410 14410 ((( 14411 14411 (% class="western" %) 14412 14412 Alias 14413 -)))|(% style="text-align:left; 12182 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14414 14414 ((( 14415 14415 (% class="western" %) 14416 14416 String 14417 -)))|(% style="text-align:left; 12186 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14418 14418 ((( 14419 14419 (% class="western" %) 14420 14420 Alias for admin purpose. ... ... @@ -14421,467 +14421,481 @@ 14421 14421 ))) 14422 14422 14423 14423 (% class="western" %) 12193 +\\ 12194 + 12195 +(% class="western" %) 12196 +\\ 12197 + 12198 +(% class="western" %) 14424 14424 **Type: Choices** 14425 14425 14426 14426 (% class="wrapped" %) 14427 -|(% style="text-align:left; 12202 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14428 14428 ((( 14429 14429 (% class="western" %) 14430 14430 **Property Name** 14431 -)))|(% style="text-align:left; 12206 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14432 14432 ((( 14433 14433 (% class="western" %) 14434 14434 **Type** 14435 -)))|(% style="text-align:left; 12210 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14436 14436 ((( 14437 14437 (% class="western" %) 14438 14438 **Description** 14439 14439 ))) 14440 -|(% style="text-align:left; 12215 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14441 14441 ((( 14442 14442 (% class="western" %) 14443 14443 Id 14444 -)))|(% style="text-align:left; 12219 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14445 14445 ((( 14446 14446 (% class="western" %) 14447 14447 int 14448 -)))|(% style="text-align:left; 12223 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14449 14449 ((( 14450 14450 (% class="western" %) 14451 14451 Id of the choice. 14452 14452 ))) 14453 -|(% style="text-align:left; 12228 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14454 14454 ((( 14455 14455 (% class="western" %) 14456 14456 Text 14457 -)))|(% style="text-align:left; 12232 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14458 14458 ((( 14459 14459 (% class="western" %) 14460 14460 string 14461 -)))|(% style="text-align:left; 12236 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14462 14462 ((( 14463 14463 (% class="western" %) 14464 14464 Display text of choice. 14465 14465 ))) 14466 -|(% style="text-align:left; 12241 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14467 14467 ((( 14468 14468 (% class="western" %) 14469 14469 Value 14470 -)))|(% style="text-align:left; 12245 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14471 14471 ((( 14472 14472 (% class="western" %) 14473 14473 String 14474 -)))|(% style="text-align:left; 12249 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14475 14475 ((( 14476 14476 (% class="western" %) 14477 14477 Value stored in db. 14478 14478 ))) 14479 -|(% style="text-align:left; 12254 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14480 14480 ((( 14481 14481 (% class="western" %) 14482 14482 Order 14483 -)))|(% style="text-align:left; 12258 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14484 14484 ((( 14485 14485 (% class="western" %) 14486 14486 Int 14487 -)))|(% style="text-align:left; 12262 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14488 14488 ((( 14489 14489 (% class="western" %) 14490 14490 Display order. 14491 14491 ))) 14492 -|(% style="text-align:left; 12267 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14493 14493 ((( 14494 14494 (% class="western" %) 14495 14495 QuestionId 14496 -)))|(% style="text-align:left; 12271 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14497 14497 ((( 14498 14498 (% class="western" %) 14499 14499 Int 14500 -)))|(% style="text-align:left; 12275 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14501 14501 ((( 14502 14502 (% class="western" %) 14503 14503 Tied to which question id. 14504 14504 ))) 14505 14505 12281 +\\ 12282 + 14506 14506 (% class="western" %) 14507 14507 **Type: Users** 14508 14508 14509 14509 (% class="wrapped" %) 14510 -|(% style="text-align:left; 12287 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14511 14511 ((( 14512 14512 (% class="western" %) 14513 14513 **Property Name** 14514 -)))|(% style="text-align:left; 12291 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14515 14515 ((( 14516 14516 (% class="western" %) 14517 14517 **Type** 14518 -)))|(% style="text-align:left; 12295 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14519 14519 ((( 14520 14520 (% class="western" %) 14521 14521 **Description** 14522 14522 ))) 14523 -|(% style="text-align:left; 12300 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14524 14524 ((( 14525 14525 (% class="western" %) 14526 14526 Id 14527 -)))|(% style="text-align:left; 12304 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14528 14528 ((( 14529 14529 (% class="western" %) 14530 14530 Int 14531 -)))|(% style="text-align:left; 12308 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14532 14532 ((( 14533 14533 (% class="western" %) 14534 14534 ID of the user in ONEcount. 14535 14535 ))) 14536 -|(% style="text-align:left; 12313 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14537 14537 ((( 14538 14538 (% class="western" %) 14539 14539 PartnerId 14540 -)))|(% style="text-align:left; 12317 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14541 14541 ((( 14542 14542 (% class="western" %) 14543 14543 Int 14544 -)))|(% style="text-align:left; 12321 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14545 14545 ((( 14546 14546 (% class="western" %) 14547 14547 ID of the user in partners system (e.g. id of your system). 14548 14548 ))) 14549 -|(% style="text-align:left; 12326 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14550 14550 ((( 14551 14551 (% class="western" %) 14552 14552 Demo 14553 -)))|(% style="text-align:left; 12330 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14554 14554 ((( 14555 14555 (% class="western" %) 14556 14556 Demo 14557 -)))|(% style="text-align:left; 12334 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14558 14558 ((( 14559 14559 (% class="western" %) 14560 14560 Object of user's demo question ids and respective response values. 14561 14561 ))) 14562 -|(% style="text-align:left; 12339 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14563 14563 ((( 14564 14564 (% class="western" %) 14565 14565 RequestDate 14566 -)))|(% style="text-align:left; 12343 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14567 14567 ((( 14568 14568 (% class="western" %) 14569 14569 Date 14570 -)))|(% style="text-align:left; 12347 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14571 14571 ((( 14572 14572 (% class="western" %) 14573 14573 Request date. 14574 14574 ))) 14575 14575 12353 +\\ 12354 + 14576 14576 (% class="western" %) 14577 14577 **Type: Demo** 14578 14578 14579 14579 (% class="wrapped" %) 14580 -|(% style="text-align:left; 12359 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14581 14581 ((( 14582 14582 (% class="western" %) 14583 14583 **Property Name** 14584 -)))|(% style="text-align:left; 12363 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14585 14585 ((( 14586 14586 (% class="western" %) 14587 14587 **Type** 14588 -)))|(% style="text-align:left; 12367 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14589 14589 ((( 14590 14590 (% class="western" %) 14591 14591 **Description** 14592 14592 ))) 14593 -|(% style="text-align:left; 12372 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14594 14594 ((( 14595 14595 (% class="western" %) 14596 14596 QuestionId (e.g 6) 14597 -)))|(% style="text-align:left; 12376 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14598 14598 ((( 14599 14599 (% class="western" %) 14600 14600 String 14601 -)))|(% style="text-align:left; 12380 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14602 14602 ((( 14603 14603 (% class="western" %) 14604 14604 6 is the value of “Id” property of question resource(Text = “First Name”) 14605 14605 ))) 14606 -|(% style="text-align:left; 12385 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14607 14607 ((( 14608 14608 (% class="western" %) 14609 14609 QuestionId (e.g 7) 14610 -)))|(% style="text-align:left; 12389 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14611 14611 ((( 14612 14612 (% class="western" %) 14613 14613 String 14614 -)))|(% style="text-align:left; 12393 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14615 14615 ((( 14616 14616 (% class="western" %) 14617 14617 7 is the value of “Id” property of question resource(Text = “Last Name”) 14618 14618 ))) 14619 -|(% style="text-align:left; 12398 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14620 14620 ((( 14621 14621 (% class="western" %) 14622 14622 ... 14623 -)))|(% style="text-align:left; 12402 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14624 14624 ((( 14625 14625 (% class="western" %) 14626 14626 ... 14627 -)))|(% style="text-align:left; 12406 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14628 14628 ((( 14629 14629 (% class="western" %) 14630 14630 ... 14631 14631 ))) 14632 14632 12412 +\\ 12413 + 14633 14633 (% class="western" %) 14634 14634 **Type: Transactions** 14635 14635 14636 14636 (% class="wrapped" %) 14637 -|(% style="text-align:left; 12418 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14638 14638 ((( 14639 14639 (% class="western" %) 14640 14640 **Property Name** 14641 -)))|(% style="text-align:left; 12422 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14642 14642 ((( 14643 14643 (% class="western" %) 14644 14644 **Type** 14645 -)))|(% style="text-align:left; 12426 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14646 14646 ((( 14647 14647 (% class="western" %) 14648 14648 **Description** 14649 14649 ))) 14650 -|(% style="text-align:left; 12431 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14651 14651 ((( 14652 14652 (% class="western" %) 14653 14653 Id 14654 -)))|(% style="text-align:left; 12435 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14655 14655 ((( 14656 14656 (% class="western" %) 14657 14657 Int 14658 -)))|(% style="text-align:left; 12439 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14659 14659 ((( 14660 14660 (% class="western" %) 14661 14661 ID of the transaction. 14662 14662 ))) 14663 -|(% style="text-align:left; 12444 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14664 14664 ((( 14665 14665 (% class="western" %) 14666 14666 UserId 14667 -)))|(% style="text-align:left; 12448 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14668 14668 ((( 14669 14669 (% class="western" %) 14670 14670 Int 14671 -)))|(% style="text-align:left; 12452 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14672 14672 ((( 14673 14673 (% class="western" %) 14674 14674 Id of user in ONEcount. 14675 14675 ))) 14676 -|(% style="text-align:left; 12457 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14677 14677 ((( 14678 14678 (% class="western" %) 14679 14679 TermId 14680 -)))|(% style="text-align:left; 12461 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14681 14681 ((( 14682 14682 (% class="western" %) 14683 14683 Int 14684 -)))|(% style="text-align:left; 12465 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14685 14685 ((( 14686 14686 (% class="western" %) 14687 14687 TermId in ONEcount. 14688 14688 ))) 14689 -|(% style="text-align:left; 12470 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14690 14690 ((( 14691 14691 (% class="western" %) 14692 14692 ProductStatus 14693 -)))|(% style="text-align:left; 12474 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14694 14694 ((( 14695 14695 (% class="western" %) 14696 14696 Int 14697 -)))|(% style="text-align:left; 12478 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14698 14698 ((( 14699 14699 (% class="western" %) 14700 14700 Status ID. 14701 14701 ))) 14702 -|(% style="text-align:left; 12483 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14703 14703 ((( 14704 14704 (% class="western" %) 14705 14705 SubscriptionType 14706 -)))|(% style="text-align:left; 12487 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14707 14707 ((( 14708 14708 (% class="western" %) 14709 14709 Char 14710 -)))|(% style="text-align:left; 12491 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14711 14711 ((( 14712 14712 (% class="western" %) 14713 14713 Can be n,r or u for new, renew or unsubscribe. 14714 14714 ))) 14715 -|(% style="text-align:left; 12496 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14716 14716 ((( 14717 14717 (% class="western" %) 14718 14718 TransactionDate 14719 -)))|(% style="text-align:left; 12500 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14720 14720 ((( 14721 14721 (% class="western" %) 14722 14722 Date 14723 -)))|(% style="text-align:left; 12504 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14724 14724 ((( 14725 14725 (% class="western" %) 14726 14726 Date when the transaction occurred. 14727 14727 ))) 14728 -|(% style="text-align:left; 12509 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14729 14729 ((( 14730 14730 (% class="western" %) 14731 14731 TransactionTime 14732 -)))|(% style="text-align:left; 12513 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14733 14733 ((( 14734 14734 (% class="western" %) 14735 14735 Time 14736 -)))|(% style="text-align:left; 12517 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14737 14737 ((( 14738 14738 (% class="western" %) 14739 14739 Time of transaction. 14740 14740 ))) 14741 -|(% style="text-align:left; 12522 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14742 14742 ((( 14743 14743 (% class="western" %) 14744 14744 RequestDate 14745 -)))|(% style="text-align:left; 12526 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14746 14746 ((( 14747 14747 (% class="western" %) 14748 14748 Date 14749 -)))|(% style="text-align:left; 12530 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14750 14750 ((( 14751 14751 (% class="western" %) 14752 14752 The effective request date for the transaction. 14753 14753 ))) 14754 -|(% style="text-align:left; 12535 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14755 14755 ((( 14756 14756 (% class="western" %) 14757 14757 UserIP 14758 -)))|(% style="text-align:left; 12539 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14759 14759 ((( 14760 14760 (% class="western" %) 14761 14761 String 14762 -)))|(% style="text-align:left; 12543 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14763 14763 ((( 14764 14764 (% class="western" %) 14765 14765 IP of the user. 14766 14766 ))) 14767 -|(% style="text-align:left; 12548 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14768 14768 ((( 14769 14769 (% class="western" %) 14770 14770 Source 14771 -)))|(% style="text-align:left; 12552 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14772 14772 ((( 14773 14773 (% class="western" %) 14774 14774 String 14775 -)))|(% style="text-align:left; 12556 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14776 14776 ((( 14777 14777 (% class="western" %) 14778 14778 The transaction needs to be tied to a source code this will define it. 14779 14779 ))) 14780 -|(% style="text-align:left; 12561 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14781 14781 ((( 14782 14782 (% class="western" %) 14783 14783 MediaFilePath 14784 -)))|(% style="text-align:left; 12565 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14785 14785 ((( 14786 14786 (% class="western" %) 14787 14787 String 14788 -)))|(% style="text-align:left; 12569 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14789 14789 ((( 14790 14790 (% class="western" %) 14791 14791 The url of media associated with that transaction. Eg image, audio. 14792 14792 ))) 14793 -|(% style="text-align:left; 12574 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14794 14794 ((( 14795 14795 (% class="western" %) 14796 14796 ExpireDate 14797 -)))|(% style="text-align:left; 12578 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14798 14798 ((( 14799 14799 (% class="western" %) 14800 14800 Date 14801 -)))|(% style="text-align:left; 12582 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14802 14802 ((( 14803 14803 (% class="western" %) 14804 14804 Date when the subscription expires. 14805 14805 ))) 14806 -|(% style="text-align:left; 12587 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14807 14807 ((( 14808 14808 (% class="western" %) 14809 14809 Amount 14810 -)))|(% style="text-align:left; 12591 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14811 14811 ((( 14812 14812 (% class="western" %) 14813 14813 Float 14814 -)))|(% style="text-align:left; 12595 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14815 14815 ((( 14816 14816 (% class="western" %) 14817 14817 If there is amount (USD) included in transaction. 14818 14818 ))) 14819 14819 12601 +\\ 12602 + 14820 14820 (% class="western" %) 14821 14821 **Type: Sources** 14822 14822 14823 14823 (% class="wrapped" %) 14824 -|(% style="text-align:left; 12607 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14825 14825 ((( 14826 14826 (% class="western" %) 14827 14827 **Property Name** 14828 -)))|(% style="text-align:left; 12611 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14829 14829 ((( 14830 14830 (% class="western" %) 14831 14831 **Type** 14832 -)))|(% style="text-align:left; 12615 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14833 14833 ((( 14834 14834 (% class="western" %) 14835 14835 **Description** 14836 14836 ))) 14837 -|(% style="text-align:left; 12620 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14838 14838 ((( 14839 14839 (% class="western" %) 14840 14840 Id 14841 -)))|(% style="text-align:left; 12624 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14842 14842 ((( 14843 14843 (% class="western" %) 14844 14844 Int 14845 -)))|(% style="text-align:left; 12628 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14846 14846 ((( 14847 14847 (% class="western" %) 14848 14848 Id of the source. 14849 14849 ))) 14850 -|(% style="text-align:left; 12633 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14851 14851 ((( 14852 14852 (% class="western" %) 14853 14853 Source 14854 -)))|(% style="text-align:left; 12637 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14855 14855 ((( 14856 14856 (% class="western" %) 14857 14857 String 14858 -)))|(% style="text-align:left; 12641 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14859 14859 ((( 14860 14860 (% class="western" %) 14861 14861 Value of the source. 14862 14862 ))) 14863 -|(% style="text-align:left; 12646 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14864 14864 ((( 14865 14865 (% class="western" %) 14866 14866 Description 14867 -)))|(% style="text-align:left; 12650 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14868 14868 ((( 14869 14869 (% class="western" %) 14870 14870 Text 14871 -)))|(% style="text-align:left; 12654 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14872 14872 ((( 14873 14873 (% class="western" %) 14874 14874 Description of the source. 14875 14875 ))) 14876 -|(% style="text-align:left; 12659 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14877 14877 ((( 14878 14878 (% class="western" %) 14879 14879 ParentId 14880 -)))|(% style="text-align:left; 12663 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14881 14881 ((( 14882 14882 (% class="western" %) 14883 14883 int 14884 -)))|(% style="text-align:left; 12667 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14885 14885 ((( 14886 14886 (% class="western" %) 14887 14887 If this is a child source then list the parent source id. ... ... @@ -14888,249 +14888,256 @@ 14888 14888 ))) 14889 14889 14890 14890 (% class="western" %) 12674 +\\ 12675 + 12676 +(% class="western" %) 14891 14891 **Type: Products** 14892 14892 14893 14893 (% class="wrapped" %) 14894 -|(% style="text-align:left; 12680 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14895 14895 ((( 14896 14896 (% class="western" %) 14897 14897 **Property Name** 14898 -)))|(% style="text-align:left; 12684 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14899 14899 ((( 14900 14900 (% class="western" %) 14901 14901 **Type** 14902 -)))|(% style="text-align:left; 12688 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14903 14903 ((( 14904 14904 (% class="western" %) 14905 14905 **Description** 14906 14906 ))) 14907 -|(% style="text-align:left; 12693 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14908 14908 ((( 14909 14909 (% class="western" %) 14910 14910 Id 14911 -)))|(% style="text-align:left; 12697 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14912 14912 ((( 14913 14913 (% class="western" %) 14914 14914 Int 14915 -)))|(% style="text-align:left; 12701 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14916 14916 ((( 14917 14917 (% class="western" %) 14918 14918 Specify only for update. 14919 14919 ))) 14920 -|(% style="text-align:left; 12706 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14921 14921 ((( 14922 14922 (% class="western" %) 14923 14923 Name 14924 -)))|(% style="text-align:left; 12710 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14925 14925 ((( 14926 14926 (% class="western" %) 14927 14927 String 14928 -)))|(% style="text-align:left; 12714 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14929 14929 ((( 14930 14930 (% class="western" %) 14931 14931 Name of the Product. 14932 14932 ))) 14933 -|(% style="text-align:left; 12719 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14934 14934 ((( 14935 14935 (% class="western" %) 14936 14936 Description 14937 -)))|(% style="text-align:left; 12723 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14938 14938 ((( 14939 14939 (% class="western" %) 14940 14940 Text 14941 -)))|(% style="text-align:left; 12727 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14942 14942 ((( 14943 14943 (% class="western" %) 14944 14944 Description of the product. 14945 14945 ))) 14946 -|(% style="text-align:left; 12732 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14947 14947 ((( 14948 14948 (% class="western" %) 14949 14949 Terms 14950 -)))|(% style="text-align:left; 12736 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14951 14951 ((( 14952 14952 (% class="western" %) 14953 14953 Terms 14954 -)))|(% style="text-align:left; 12740 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14955 14955 ((( 14956 14956 (% class="western" %) 14957 14957 (Array of) Terms associated with the product. 14958 14958 ))) 14959 14959 12746 +\\ 12747 + 14960 14960 (% class="western" %) 14961 14961 **Type: Terms** 14962 14962 14963 14963 (% class="wrapped" %) 14964 -|(% style="text-align:left; 12752 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14965 14965 ((( 14966 14966 (% class="western" %) 14967 14967 **Property Name** 14968 -)))|(% style="text-align:left; 12756 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14969 14969 ((( 14970 14970 (% class="western" %) 14971 14971 **Type** 14972 -)))|(% style="text-align:left; 12760 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14973 14973 ((( 14974 14974 (% class="western" %) 14975 14975 **Description** 14976 14976 ))) 14977 -|(% style="text-align:left; 12765 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14978 14978 ((( 14979 14979 (% class="western" %) 14980 14980 Id 14981 -)))|(% style="text-align:left; 12769 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14982 14982 ((( 14983 14983 (% class="western" %) 14984 14984 int 14985 -)))|(% style="text-align:left; 12773 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14986 14986 ((( 14987 14987 (% class="western" %) 14988 14988 Id of the term. 14989 14989 ))) 14990 -|(% style="text-align:left; 12778 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14991 14991 ((( 14992 14992 (% class="western" %) 14993 14993 Name 14994 -)))|(% style="text-align:left; 12782 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14995 14995 ((( 14996 14996 (% class="western" %) 14997 14997 string 14998 -)))|(% style="text-align:left; 12786 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14999 14999 ((( 15000 15000 (% class="western" %) 15001 15001 Name of the Term. 15002 15002 ))) 15003 -|(% style="text-align:left; 12791 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15004 15004 ((( 15005 15005 (% class="western" %) 15006 15006 Description 15007 -)))|(% style="text-align:left; 12795 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15008 15008 ((( 15009 15009 (% class="western" %) 15010 15010 text 15011 -)))|(% style="text-align:left; 12799 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15012 15012 ((( 15013 15013 (% class="western" %) 15014 15014 Description of the term. 15015 15015 ))) 15016 -|(% style="text-align:left; 12804 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15017 15017 ((( 15018 15018 (% class="western" %) 15019 15019 Duration 15020 -)))|(% style="text-align:left; 12808 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15021 15021 ((( 15022 15022 (% class="western" %) 15023 15023 int 15024 -)))|(% style="text-align:left; 12812 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15025 15025 ((( 15026 15026 (% class="western" %) 15027 15027 Duration of term validity. 15028 15028 ))) 15029 -|(% style="text-align:left; 12817 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15030 15030 ((( 15031 15031 (% class="western" %) 15032 15032 DurationUnit 15033 -)))|(% style="text-align:left; 12821 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15034 15034 ((( 15035 15035 (% class="western" %) 15036 15036 sting 15037 -)))|(% style="text-align:left; 12825 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15038 15038 ((( 15039 15039 (% class="western" %) 15040 15040 Y (year), M (Month), D (Days). 15041 15041 ))) 15042 -|(% style="text-align:left; 12830 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15043 15043 ((( 15044 15044 (% class="western" %) 15045 15045 ProductId 15046 -)))|(% style="text-align:left; 12834 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15047 15047 ((( 15048 15048 (% class="western" %) 15049 15049 int 15050 -)))|(% style="text-align:left; 12838 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15051 15051 ((( 15052 15052 (% class="western" %) 15053 15053 Id of the product the term is tied to. 15054 15054 ))) 15055 -|(% style="text-align:left; 12843 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15056 15056 ((( 15057 15057 (% class="western" %) 15058 15058 Price 15059 -)))|(% style="text-align:left; 12847 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15060 15060 ((( 15061 15061 (% class="western" %) 15062 15062 float 15063 -)))|(% style="text-align:left; 12851 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15064 15064 ((( 15065 15065 (% class="western" %) 15066 15066 If there is price (USD) for the term. 15067 15067 ))) 15068 15068 12857 +\\ 12858 + 15069 15069 (% class="western" %) 15070 15070 **Type: Resources** 15071 15071 15072 15072 (% class="wrapped" %) 15073 -|(% style="text-align:left; 12863 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15074 15074 ((( 15075 15075 (% class="western" %) 15076 15076 **Property Name** 15077 -)))|(% style="text-align:left; 12867 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15078 15078 ((( 15079 15079 (% class="western" %) 15080 15080 **Type** 15081 -)))|(% style="text-align:left; 12871 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15082 15082 ((( 15083 15083 (% class="western" %) 15084 15084 **Description** 15085 15085 ))) 15086 -|(% style="text-align:left; 12876 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15087 15087 ((( 15088 15088 (% class="western" %) 15089 15089 Id 15090 -)))|(% style="text-align:left; 12880 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15091 15091 ((( 15092 15092 (% class="western" %) 15093 15093 Int 15094 -)))|(% style="text-align:left; 12884 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15095 15095 ((( 15096 15096 (% class="western" %) 15097 15097 Specify only for update. 15098 15098 ))) 15099 -|(% style="text-align:left; 12889 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15100 15100 ((( 15101 15101 (% class="western" %) 15102 15102 Name 15103 -)))|(% style="text-align:left; 12893 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15104 15104 ((( 15105 15105 (% class="western" %) 15106 15106 String 15107 -)))|(% style="text-align:left; 12897 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15108 15108 ((( 15109 15109 (% class="western" %) 15110 15110 Name of the Resource. 15111 15111 ))) 15112 -|(% style="text-align:left; 12902 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15113 15113 ((( 15114 15114 (% class="western" %) 15115 15115 Description 15116 -)))|(% style="text-align:left; 12906 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15117 15117 ((( 15118 15118 (% class="western" %) 15119 15119 Text 15120 -)))|(% style="text-align:left; 12910 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15121 15121 ((( 15122 15122 (% class="western" %) 15123 15123 Description of the Resource. 15124 15124 ))) 15125 -|(% style="text-align:left; 12915 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15126 15126 ((( 15127 15127 (% class="western" %) 15128 15128 Type 15129 -)))|(% style="text-align:left; 12919 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15130 15130 ((( 15131 15131 (% class="western" %) 15132 15132 Int 15133 -)))|(% style="text-align:left; 12923 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15134 15134 ((( 15135 15135 (% class="western" %) 15136 15136 Type Options ... ... @@ -15150,11 +15150,11 @@ 15150 15150 (% class="western" %) 15151 15151 **5 : **Function 15152 15152 ))) 15153 -|(% style="text-align:left; 12943 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15154 15154 ((( 15155 15155 (% class="western" %) 15156 15156 Value 15157 -)))|(% style="text-align:left; 12947 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15158 15158 ((( 15159 15159 (% class="western" %) 15160 15160 String ... ... @@ -15164,7 +15164,7 @@ 15164 15164 15165 15165 (% class="western" %) 15166 15166 Array 15167 -)))|(% style="text-align:left; 12957 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15168 15168 ((( 15169 15169 (% class="western" %) 15170 15170 Value of Resource Type: ... ... @@ -15179,114 +15179,116 @@ 15179 15179 Example : 15180 15180 15181 15181 (% class="western" %) 15182 -if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/]. **15183 -if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 12972 +if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/]. 12973 +**if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 15184 15184 15185 15185 (% class="western" %) 15186 15186 For Function type resource leave it blank. 15187 15187 ))) 15188 -|(% style="text-align:left; 12978 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15189 15189 ((( 15190 15190 (% class="western" %) 15191 15191 limit 15192 -)))|(% style="text-align:left; 12982 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15193 15193 ((( 15194 15194 (% class="western" %) 15195 15195 Int 15196 -)))|(% style="text-align:left; 12986 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15197 15197 ((( 15198 15198 (% class="western" %) 15199 15199 Default limit is 25 but if all the data needs to be pulled then pass limit=0. 15200 15200 ))) 15201 -|(% colspan="1" style="text-align:left; 12991 +(% class="" %)|(% colspan="1" style="text-align: left;vertical-align: top;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 15202 15202 ((( 15203 15203 FreePass 15204 -)))|(% colspan="1" style="text-align:left; 12994 +)))|(% colspan="1" style="text-align: left;vertical-align: top;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 15205 15205 ((( 15206 15206 Int 15207 -)))|(% colspan="1" style="text-align:left; 12997 +)))|(% colspan="1" style="text-align: left;vertical-align: top;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 15208 15208 ((( 15209 15209 Default value is 0. This parameter is used to provide access to protected content. 15210 15210 ))) 15211 15211 13002 +\\ 13003 + 15212 15212 (% class="western" %) 15213 15213 **Type: Telemarketing** 15214 15214 15215 15215 (% class="wrapped" %) 15216 -|(% style="text-align:left; 13008 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15217 15217 ((( 15218 15218 (% class="western" %) 15219 15219 **Property Name** 15220 -)))|(% style="text-align:left; 13012 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15221 15221 ((( 15222 15222 (% class="western" %) 15223 15223 **Type** 15224 -)))|(% style="text-align:left; 13016 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15225 15225 ((( 15226 15226 (% class="western" %) 15227 15227 **Description** 15228 15228 ))) 15229 -|(% style="text-align:left; 13021 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15230 15230 ((( 15231 15231 (% class="western" %) 15232 15232 Id 15233 -)))|(% style="text-align:left; 13025 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15234 15234 ((( 15235 15235 (% class="western" %) 15236 15236 int 15237 -)))|(% style="text-align:left; 13029 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15238 15238 ((( 15239 15239 (% class="western" %) 15240 15240 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat. 15241 15241 ))) 15242 -|(% style="text-align:left; 13034 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15243 15243 ((( 15244 15244 (% class="western" %) 15245 15245 OCID 15246 -)))|(% style="text-align:left; 13038 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15247 15247 ((( 15248 15248 (% class="western" %) 15249 15249 int 15250 -)))|(% style="text-align:left; 13042 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15251 15251 ((( 15252 15252 (% class="western" %) 15253 15253 Onecount ID of the user. 15254 15254 ))) 15255 -|(% style="text-align:left; 13047 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15256 15256 ((( 15257 15257 (% class="western" %) 15258 15258 Date 15259 -)))|(% style="text-align:left; 13051 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15260 15260 ((( 15261 15261 (% class="western" %) 15262 15262 Date 15263 -)))|(% style="text-align:left; 13055 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15264 15264 ((( 15265 15265 (% class="western" %) 15266 15266 Date when the stat occurred. Format: yyyy-mm-dd 15267 15267 ))) 15268 -|(% style="text-align:left; 13060 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15269 15269 ((( 15270 15270 (% class="western" %) 15271 15271 Time 15272 -)))|(% style="text-align:left; 13064 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15273 15273 ((( 15274 15274 (% class="western" %) 15275 15275 Time 15276 -)))|(% style="text-align:left; 13068 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15277 15277 ((( 15278 15278 (% class="western" %) 15279 15279 Time of stat. Format: h:m:s (24 hour format) 15280 15280 ))) 15281 -|(% style="text-align:left; 13073 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15282 15282 ((( 15283 15283 (% class="western" %) 15284 15284 ResourceId 15285 -)))|(% style="text-align:left; 13077 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15286 15286 ((( 15287 15287 (% class="western" %) 15288 15288 int 15289 -)))|(% style="text-align:left; 13081 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15290 15290 ((( 15291 15291 (% class="western" %) 15292 15292 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send ... ... @@ -15294,33 +15294,37 @@ 15294 15294 (% class="western" %) 15295 15295 PageTitle otherwise it will follow the process described in PageTitle. 15296 15296 ))) 15297 -|(% style="text-align:left; 13089 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15298 15298 ((( 15299 15299 (% class="western" %) 15300 15300 PageUrl 15301 -)))|(% style="text-align:left; 13093 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15302 15302 ((( 15303 15303 (% class="western" %) 15304 15304 string 15305 -)))|(% style="text-align:left; 13097 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15306 15306 ((( 15307 15307 (% class="western" %) 15308 15308 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. 15309 15309 ))) 15310 -|(% style="text-align:left; 13102 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15311 15311 ((( 15312 15312 (% class="western" %) 15313 15313 PageTitle 15314 -)))|(% style="text-align:left; 13106 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15315 15315 ((( 15316 15316 (% class="western" %) 15317 15317 string 15318 -)))|(% style="text-align:left; 13110 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15319 15319 ((( 15320 15320 (% class="western" %) 15321 15321 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. 15322 15322 13115 +(% class="western" %) 13116 +\\ 15323 15323 15324 15324 (% class="western" %) 15325 15325 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. 15326 15326 ))) 13121 + 13122 +\\
- Screen Shot 2020-02-26 at 11.14.29 AM.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Size
-
... ... @@ -1,1 +1,0 @@ 1 -397.9 KB - Content
- Screen Shot 2020-02-26 at 11.15.52 AM.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Size
-
... ... @@ -1,1 +1,0 @@ 1 -50.1 KB - Content
- Screen Shot 2020-02-26 at 11.22.13 AM.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.XWikiGuest - Size
-
... ... @@ -1,1 +1,0 @@ 1 -159.8 KB - Content
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -1082654 771 +108265481 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/1082654 77/ONEcount API Documentation1 +https://info.onecount.net//wiki/spaces/OD/pages/108265481/ONEcount API Documentation