Changes for page ONEcount API Documentation
Last modified by Rayaan Ahmed on 2025/02/09 22:20
From version 15.1
edited by Rayaan Ahmed
on 2025/02/09 22:20
on 2025/02/09 22:20
Change comment:
There is no comment for this version
To version 2.1
edited by rayaan@one-count_com
on 2023/12/12 04:31
on 2023/12/12 04:31
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
-
... ... @@ -7,9 +7,10 @@ 7 7 (% class="western" %) 8 8 REST takes advantage of the HTTP request methods to layer itself into the existing HTTP architecture. These operations consist of the following: 9 9 10 +1. ((( 10 10 (% class="western" %) 11 11 **GET** - Used for lookup of resources 12 - 13 +))) 13 13 1. ((( 14 14 (% class="western" %) 15 15 **PUT** - Used to update a resource ... ... @@ -53,28 +53,26 @@ 53 53 1. Attach a resource to a product 54 54 1. Leads 55 55 11. Create a lead 56 -1. Engagements 57 +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 64 +\\ 65 + 69 69 (% class="western" %) 70 70 **Accessing API** 71 71 72 72 (% class="western" %) 73 -**REST API URL: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/||rel="nofollow" shape="rect" class="external-link"]]** 70 +**REST API URL: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/||style="" rel="nofollow" shape="rect" class="external-link"]]** 74 74 75 75 (% class="western" %) 76 76 **Appkey**: THIS WILL BE PROVIDED TO YOU 77 77 75 +(% class="western" %) 76 +\\ 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" %) 99 +\\ 100 + 101 +(% 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 110 +(% class="western" %) 111 +\\ 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"}} 119 +{{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 139 +(% class="western" %) 140 +\\ 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 145 +\\ 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** 153 +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.158 +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.164 +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,88 @@ 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 175 +\\ 168 168 169 -(% class="wrapped" %) 170 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 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 -/users/lookup?1=user1@email.com&return=1,2 217 -)))|(% style="text-align:left; 223 +/users/lookup?1=user1@[[email.com>>url:http://email.com/||style="" rel="nofollow" shape="rect" class="external-link"]]&return=1,2 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. ... ... @@ -305,50 +305,54 @@ 305 305 Example: 306 306 307 307 (% class="western" %) 308 -{"u":"abc@one-count.com","e":"abc@one-count.com","p":"1234"} 297 +{"u":"[[abc@one-count.com>>mailto:abc@one-count.com||style="" rel="nofollow" shape="rect" class="external-link"]]","e":"abc@[[one-count.com>>url:http://one-count.com/||style="" rel="nofollow" shape="rect" class="external-link"]]","p":"1234"} 309 309 310 310 (% class="western" %) 311 311 OR 312 312 313 313 (% class="western" %) 314 -{"u":"abc@one-count.com","p":"1234"} 303 +{"u":"[[abc@one-count.com>>mailto:abc@one-count.com||style="" rel="nofollow" shape="rect" class="external-link"]]","p":"1234"} 315 315 316 316 (% class="western" %) 317 317 OR 318 318 319 319 (% class="western" %) 320 -{"e":"abc@one-count.com","p":"1234"} 309 +{"e":"[[abc@one-count.com>>mailto:abc@one-count.com||style="" rel="nofollow" shape="rect" class="external-link"]]","p":"1234"} 321 321 322 322 (% class="western" %) 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 331 ----- 320 +{{column width="100%"}} 321 + (% class="nolink" %)https:~/~/api.onecount.net/v2/users 322 +{{/column}} 332 332 333 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 324 +(% style="" %) 325 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 334 334 335 335 ---- 336 336 337 -(% 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}} 329 +(% style="" %) 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}} 338 338 339 339 ==== Example ==== 340 340 341 341 ---- 342 342 343 -(% style="color: #6b6b6b" %)Request336 +(% style="color: rgb(107,107,107);" %)Request 344 344 345 -{{code language="php" theme="RDark" title="Get All Users Request"}} 338 +{{code language="php" theme="RDark" title="Get All Users Request" collapse="true"}} 346 346 <?php 347 347 348 348 $curl = curl_init(); 349 349 350 350 curl_setopt_array($curl, array( 351 - CURLOPT_URL => ' https://api.onecount.net/v2/users',344 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users', 352 352 CURLOPT_RETURNTRANSFER => true, 353 353 CURLOPT_ENCODING => '', 354 354 CURLOPT_MAXREDIRS => 10, ... ... @@ -369,10 +369,11 @@ 369 369 370 370 {{/code}} 371 371 365 +\\ 372 372 373 -(% style="color: #6b6b6b" %)Response 200 OK367 +(% style="color: rgb(107,107,107);" %)Response 200 OK 374 374 375 -{{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"}} 376 376 { 377 377 "result": { 378 378 "success": "1", ... ... @@ -858,29 +858,41 @@ 858 858 } 859 859 {{/code}} 860 860 855 +\\ 861 861 862 -(% id="HGETspecificUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)863 -== (% 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(%%) == 864 864 865 865 ---- 866 866 862 +{{column width="100%"}} 863 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color: rgb(33,33,33);" %)~{~{OCID}} 864 +{{/column}} 865 + 866 +(% style="" %) 867 +~{~{OCID}} is user id which is provided by ONEcount 868 + 869 +(% style="" %) 870 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 871 + 867 867 ---- 868 868 869 -(% 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}} 874 +(% style="" %) 875 +(% 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}} 870 870 871 871 ==== Example ==== 872 872 873 873 ---- 874 874 875 -(% style="color: #6b6b6b" %)Request881 +(% style="color: rgb(107,107,107);" %)Request 876 876 877 -{{code language="php" theme="RDark" title="Get specific User Request"}} 883 +{{code language="php" theme="RDark" title="Get specific User Request" collapse="true"}} 878 878 <?php 879 879 880 880 $curl = curl_init(); 881 881 882 882 curl_setopt_array($curl, array( 883 - CURLOPT_URL => ' https://api.onecount.net/v2/users/{{OCID}}',889 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/8418', 884 884 CURLOPT_RETURNTRANSFER => true, 885 885 CURLOPT_ENCODING => '', 886 886 CURLOPT_MAXREDIRS => 10, ... ... @@ -899,10 +899,11 @@ 899 899 echo $response; 900 900 {{/code}} 901 901 908 +\\ 902 902 903 -(% style="color: #6b6b6b" %)Response 200 OK910 +(% style="color: rgb(107,107,107);" %)Response 200 OK 904 904 905 -{{code language="yml" theme="RDark" collapse="true" title="Get specific user Response"}}912 +{{code language="yml" theme="RDark" title="Get specific user Response" collapse="true"}} 906 906 { 907 907 "result": { 908 908 "success": "1", ... ... @@ -950,23 +950,33 @@ 950 950 } 951 951 {{/code}} 952 952 960 +\\ 953 953 954 -(% id="HPOSTUserLogin" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)955 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)962 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 963 +== (% 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(%%) == 956 956 957 957 ---- 958 958 959 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 967 +{{column width="100%"}} 968 + (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color: rgb(33,33,33);" %)/login 969 +{{/column}} 960 960 971 +(% style="" %) 972 +\\ 973 + 974 +(% style="" %) 975 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 976 + 961 961 ---- 962 962 963 -(% 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}} 979 +(% style="" %) 980 +(% 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}} 964 964 965 -=== (% style="color: #212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) ===982 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 966 966 967 967 ---- 968 968 969 -{{code language="yml" theme="RDark" title="Body"}} 986 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 970 970 {"e":"rayaan@one-count.com","p":"12345"} 971 971 {{/code}} 972 972 ... ... @@ -974,15 +974,15 @@ 974 974 975 975 ---- 976 976 977 -(% style="color: #6b6b6b" %)Request994 +(% style="color: rgb(107,107,107);" %)Request 978 978 979 -{{code language="php" theme="RDark" title="User login Request"}} 996 +{{code language="php" theme="RDark" title="User login Request" collapse="true"}} 980 980 <?php 981 981 982 982 $curl = curl_init(); 983 983 984 984 curl_setopt_array($curl, array( 985 - CURLOPT_URL => ' https://api.onecount.net/v2/users/login',1002 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/login', 986 986 CURLOPT_RETURNTRANSFER => true, 987 987 CURLOPT_ENCODING => '', 988 988 CURLOPT_MAXREDIRS => 10, ... ... @@ -1002,10 +1002,11 @@ 1002 1002 echo $response; 1003 1003 {{/code}} 1004 1004 1022 +\\ 1005 1005 1006 -(% style="color: #6b6b6b" %)Response 200 OK1024 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1007 1007 1008 -{{code language="yml" theme="RDark" collapse="true" title="Login user Response"}}1026 +{{code language="yml" theme="RDark" title="Login user Response" collapse="true"}} 1009 1009 { 1010 1010 "result": { 1011 1011 "success": "1", ... ... @@ -1020,38 +1020,48 @@ 1020 1020 } 1021 1021 {{/code}} 1022 1022 1041 +\\ 1023 1023 1024 -(% id="HGETlookupUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)1025 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)lookup User(%%) ==1043 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1044 +== (% 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(%%) == 1026 1026 1027 1027 ---- 1028 1028 1029 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1048 +{{column width="100%"}} 1049 + (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color: rgb(33,33,33);" %)/lookup?2=user_242_6298&return=1,2,3,4 1050 +{{/column}} 1030 1030 1052 +(% style="" %) 1053 +\\ 1054 + 1055 +(% style="" %) 1056 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1057 + 1031 1031 ---- 1032 1032 1033 -(% 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}} 1060 +(% style="" %) 1061 +(% 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}} 1034 1034 1035 -=== (% style="color: #212121" %)Query Params(%%) ===1063 +=== (% style="color: rgb(33,33,33);" %)Query Params(%%) === 1036 1036 1037 1037 ---- 1038 1038 1039 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)2#212121" %)user_242_6298(%%)1040 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCPiauueYitem-keysc-fznXWL" style="color:#212121" %)return#212121" %)1,2,3,41067 +(% 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(%%) 1068 +(% 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 1041 1041 1042 1042 ==== Example ==== 1043 1043 1044 1044 ---- 1045 1045 1046 -(% style="color: #6b6b6b" %)Request1074 +(% style="color: rgb(107,107,107);" %)Request 1047 1047 1048 -{{code language="php" theme="RDark" title="Lookup user Request"}} 1076 +{{code language="php" theme="RDark" title="Lookup user Request" collapse="true"}} 1049 1049 <?php 1050 1050 1051 1051 $curl = curl_init(); 1052 1052 1053 1053 curl_setopt_array($curl, array( 1054 - CURLOPT_URL => ' https://api.onecount.net/v2/users/lookup?2=user_242_6298&return=1,2,3,4',1082 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/lookup?2=user_242_6298&return=1%2C2%2C3%2C4', 1055 1055 CURLOPT_RETURNTRANSFER => true, 1056 1056 CURLOPT_ENCODING => '', 1057 1057 CURLOPT_MAXREDIRS => 10, ... ... @@ -1070,10 +1070,11 @@ 1070 1070 echo $response; 1071 1071 {{/code}} 1072 1072 1101 +\\ 1073 1073 1074 -(% style="color: #6b6b6b" %)Response 200 OK1103 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1075 1075 1076 -{{code language="yml" theme="RDark" collapse="true" title="Lookup user Response"}}1105 +{{code language="yml" theme="RDark" title="Lookup user Response" collapse="true"}} 1077 1077 { 1078 1078 "result": { 1079 1079 "success": "1", ... ... @@ -1096,351 +1096,553 @@ 1096 1096 } 1097 1097 {{/code}} 1098 1098 1128 +\\ 1099 1099 1100 -(% id="HGETPartners" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)1101 -== (% class=" imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)Partners(%%) ==1130 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1131 +== (% 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(%%) == 1102 1102 1103 1103 ---- 1104 1104 1105 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1135 +{{column width="100%"}} 1136 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/users/~{~{OCID}}/partners/~{~{Partner id}} 1137 +{{/column}} 1106 1106 1139 +(% style="" %) 1140 +\\ 1141 + 1142 +(% style="" %) 1143 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1144 + 1107 1107 ---- 1108 1108 1109 -(% 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}} 1147 +(% style="" %) 1148 +(% 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}} 1110 1110 1111 -(% id="HPOSTCreateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)1112 -== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-namejbmEtY sc-fzomuh" style="color:#212121" %)1150 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1151 +== (% 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(%%) == 1113 1113 1114 1114 ---- 1115 1115 1155 +{{column width="100%"}} 1156 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users 1157 +{{/column}} 1116 1116 1159 +(% style="" %) 1160 +\\ 1161 + 1162 +(% style="" %) 1163 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1164 + 1165 +---- 1166 + 1167 +(% style="" %) 1168 +(% 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}} 1169 + 1170 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 1171 + 1172 +---- 1173 + 1174 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 1175 +{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]} 1176 +{{/code}} 1177 + 1178 +==== Example ==== 1179 + 1180 +---- 1181 + 1182 +(% style="color: rgb(107,107,107);" %)Request 1183 + 1184 +{{code language="php" theme="RDark" title="Create User Request" collapse="true"}} 1185 +<?php 1186 + 1187 +$curl = curl_init(); 1188 + 1189 +curl_setopt_array($curl, array( 1190 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users', 1191 + CURLOPT_RETURNTRANSFER => true, 1192 + CURLOPT_ENCODING => '', 1193 + CURLOPT_MAXREDIRS => 10, 1194 + CURLOPT_TIMEOUT => 0, 1195 + CURLOPT_FOLLOWLOCATION => true, 1196 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1197 + CURLOPT_CUSTOMREQUEST => 'POST', 1198 + CURLOPT_POSTFIELDS =>'{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan6@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}', 1199 + CURLOPT_HTTPHEADER => array( 1200 + 'Appkey: {{ONECOUNT API KEY}}' 1201 + ), 1202 +)); 1203 + 1204 +$response = curl_exec($curl); 1205 + 1206 +curl_close($curl); 1207 +echo $response; 1208 +{{/code}} 1209 + 1210 +\\ 1211 + 1212 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1213 + 1214 +{{code language="yml" theme="RDark" title="Create user Response" collapse="true"}} 1215 +{ 1216 + "result": { 1217 + "success": "1", 1218 + "error": { 1219 + "code": "", 1220 + "message": "" 1221 + } 1222 + }, 1223 + "Users": { 1224 + "Id": 1845831 1225 + } 1226 +} 1227 +{{/code}} 1228 + 1229 +\\ 1230 + 1231 +(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1232 +== (% 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(%%) == 1233 + 1234 +---- 1235 + 1236 +{{column width="100%"}} 1237 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/~{~{OCID}} 1238 +{{/column}} 1239 + 1240 +(% style="" %) 1241 +\\ 1242 + 1243 +(% style="" %) 1244 +=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1245 + 1246 +---- 1247 + 1248 +(% style="" %) 1249 +(% 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}} 1250 + 1251 +=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) === 1252 + 1253 +---- 1254 + 1255 +{{code language="yml" theme="RDark" title="Body" collapse="true"}} 1256 +{"Users":{"Demo":{"6":"title1"}}} 1257 +{{/code}} 1258 + 1259 +==== Example ==== 1260 + 1261 +---- 1262 + 1263 +(% style="color: rgb(107,107,107);" %)Request 1264 + 1265 +{{code language="php" theme="RDark" title="Update User Request" collapse="true"}} 1266 +<?php 1267 + 1268 +$curl = curl_init(); 1269 + 1270 +curl_setopt_array($curl, array( 1271 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/users/{{OCID}}', 1272 + CURLOPT_RETURNTRANSFER => true, 1273 + CURLOPT_ENCODING => '', 1274 + CURLOPT_MAXREDIRS => 10, 1275 + CURLOPT_TIMEOUT => 0, 1276 + CURLOPT_FOLLOWLOCATION => true, 1277 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1278 + CURLOPT_CUSTOMREQUEST => 'PUT', 1279 + CURLOPT_POSTFIELDS =>'{"Users":{"Demo":{"6":"title"}}}', 1280 + CURLOPT_HTTPHEADER => array( 1281 + 'Appkey: {{ONECOUNT API KEY}}' 1282 + ), 1283 +)); 1284 + 1285 +$response = curl_exec($curl); 1286 + 1287 +curl_close($curl); 1288 +echo $response; 1289 + 1290 + 1291 +{{/code}} 1292 + 1293 +\\ 1294 + 1295 +(% style="color: rgb(107,107,107);" %)Response 200 OK 1296 + 1297 +{{code language="yml" theme="RDark" title="Update user Response" collapse="true"}} 1298 +{ 1299 + "result": { 1300 + "success": "1", 1301 + "error": { 1302 + "code": "", 1303 + "message": "" 1304 + } 1305 + }, 1306 + "Users": [ 1307 + { 1308 + "Id": 1845823, 1309 + "OCID_HASH": "fccaa8dc7afadccc5882528d47b27c2bb53e2788dd0ac1fe170abef77a9c4d5b" 1310 + } 1311 + ] 1312 +} 1313 +{{/code}} 1314 + 1315 +\\ 1316 + 1317 +\\ 1318 + 1319 +\\ 1320 + 1321 +\\ 1322 + 1323 +\\ 1324 + 1325 +\\ 1326 + 1327 +\\ 1328 + 1329 +\\ 1330 + 1331 +\\ 1332 + 1333 +\\ 1334 + 1335 +\\ 1336 + 1337 +\\ 1338 + 1339 +\\ 1340 + 1341 +\\ 1342 + 1343 +\\ 1344 + 1345 +\\ 1346 + 1347 +\\ 1348 + 1349 +\\ 1350 + 1351 +\\ 1352 + 1353 +\\ 1354 + 1355 +\\ 1356 + 1357 +\\ 1358 + 1359 +\\ 1360 + 1361 +\\ 1362 + 1363 +\\ 1364 + 1365 +\\ 1366 + 1367 +\\ 1368 + 1369 +\\ 1370 + 1371 +\\ 1372 + 1117 1117 (% class="western" %) 1374 +**GET method should be used to lookup users.** 1375 + 1376 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1377 +((( 1378 +(% class="western" %) 1379 +**Request** 1380 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1381 +((( 1382 +(% class="western" %) 1383 +**Type** 1384 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1385 +((( 1386 +(% class="western" %) 1387 +**Description** 1388 +))) 1389 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1390 +((( 1391 +(% class="western" %) 1392 +Lookup params 1393 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1394 +((( 1395 +(% class="western" %) 1396 +String 1397 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1398 +((( 1399 +(% class="western" %) 1400 +URL encoded key value string parameters for the lookup. Return property has csv of questions id requested back in Users object. 1401 + 1402 +(% class="western" %) 1403 +Params: Value of question Ids: Key value for Lookup question ids for e.g. 1=user1@[[email.com>>url:http://email.com/||style="" rel="nofollow" shape="rect" class="external-link"]] 1404 + 1405 +(% class="western" %) 1406 +return: csv of question id that is requested back. The Users object returned will only have these properties plus UserId (String) 1407 + 1408 +(% class="western" %) 1409 +If return is not provided, all the demographics will be returned. 1410 +))) 1411 + 1412 +\\ 1413 + 1414 +\\ 1415 + 1416 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1417 +((( 1418 +(% class="western" %) 1419 +**Response** 1420 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1421 +((( 1422 +(% class="western" %) 1423 +**Type** 1424 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1425 +((( 1426 +(% class="western" %) 1427 +**Description** 1428 +))) 1429 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1430 +((( 1431 +(% class="western" %) 1432 +Users 1433 +)))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1434 +((( 1435 +(% class="western" align="left" %) 1436 +Users 1437 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1438 +((( 1439 +(% class="western" %) 1440 +Found users returned with the demo field requested in return parameter in json format 1441 +))) 1442 + 1443 +\\ 1444 + 1445 +**Sample response for /users/(% style="color: rgb(80,80,80);" %)<OCID or ocid_hash>(%%)** 1446 + 1447 +Along with the demo in json format, the active packages and products of the user referred to as products and resources respectively are also returned. 1448 + 1449 +(% class="relative-table" style="width: 1432.1px;" %) 1450 +(% class="" %)|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1451 +((( 1452 +(% class="content-wrapper" %) 1453 +((( 1454 +(% class="confluence-embedded-file-wrapper confluence-embedded-manual-size" %)[[image:attach:Screen Shot 2020-02-26 at 11.15.52 AM.png||width="1407"]] 1455 +))) 1456 +))) 1457 + 1458 +\\ 1459 + 1460 +**Sample response for /users/lookup?(% style="color: rgb(80,80,80);" %)11=santosh@[[one-count.com>>url:http://one-count.com/||style="" rel="nofollow" shape="rect" class="external-link"]]&return=2,3(%%)** 1461 + 1462 +(% class="" %)|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1463 +((( 1464 +(% class="content-wrapper" %) 1465 +((( 1466 +(% class="confluence-embedded-file-wrapper confluence-embedded-manual-size" %)[[image:attach:Screen Shot 2020-02-26 at 11.22.13 AM.png||height="250"]] 1467 +))) 1468 +))) 1469 + 1470 +\\ 1471 + 1472 +(% class="western" %) 1118 1118 **POST method should be used to create users.** 1119 1119 1120 -(% class="wrapped" %) 1121 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1475 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1122 1122 ((( 1123 1123 (% class="western" %) 1124 1124 **Request** 1125 -)))|(% style="text-align:left; 1479 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1126 1126 ((( 1127 1127 (% class="western" %) 1128 1128 **Type** 1129 -)))|(% style="text-align:left; 1483 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1130 1130 ((( 1131 1131 (% class="western" %) 1132 1132 **Description** 1133 1133 ))) 1134 -|(% style="text-align:left; 1488 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1135 1135 ((( 1136 1136 (% class="western" %) 1137 1137 Users 1138 -)))|(% style="text-align:left; 1492 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1139 1139 ((( 1140 1140 (% class="western" %) 1141 1141 Users 1142 -)))|(% style="text-align:left; 1496 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1143 1143 ((( 1144 1144 (% class="western" %) 1145 -Users object that contains information about user to create. PartnerId Needs to be specified. PartnerId is any integer value.1499 +Users object that contains information about user to create. PartnerId Needs to be specified. 1146 1146 ))) 1147 -|(% style="text-align:left; 1501 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1148 1148 ((( 1149 1149 (% class="western" %) 1150 1150 Transactions 1151 -)))|(% style="text-align:left; 1505 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1152 1152 ((( 1153 1153 (% class="western" %) 1154 1154 Transactions 1155 -)))|(% style="text-align:left; 1509 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1156 1156 ((( 1157 1157 (% class="western" %) 1158 1158 (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. 1159 1159 ))) 1160 -|(% style="text-align:left; 1514 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1161 1161 ((( 1162 1162 (% class="western" %) 1163 1163 DedupeColumns 1164 -)))|(% style="text-align:left; 1518 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1165 1165 ((( 1166 1166 (% class="western" %) 1167 1167 String 1168 -)))|(% style="text-align:left; 1522 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1169 1169 ((( 1170 1170 (% class="western" %) 1171 1171 CSV of question id's that should be considered to find duplicate. 1172 1172 ))) 1173 -|(% style="text-align:left; 1527 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1174 1174 ((( 1175 1175 (% class="western" %) 1176 1176 Return 1177 -)))|(% style="text-align:left; 1531 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1178 1178 ((( 1179 1179 (% class="western" %) 1180 1180 String 1181 -)))|(% style="text-align:left; 1535 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1182 1182 ((( 1183 1183 (% class="western" %) 1184 1184 CSV of ONEcount QuestionId's requested back in Users object in response. 1185 1185 ))) 1186 1186 1187 -(% class="wrapped" %) 1188 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1541 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1189 1189 ((( 1190 1190 (% class="western" %) 1191 1191 **Response** 1192 -)))|(% style="text-align:left; 1545 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1193 1193 ((( 1194 1194 (% class="western" %) 1195 1195 **Type** 1196 -)))|(% style="text-align:left; 1549 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1197 1197 ((( 1198 1198 (% class="western" %) 1199 1199 **Description** 1200 1200 ))) 1201 -|(% style="text-align:left; 1554 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1202 1202 ((( 1203 1203 (% class="western" %) 1204 1204 Users 1205 1205 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1206 1206 ((( 1207 -(% class="western" style="text-align:left" %)1560 +(% class="western" align="left" %) 1208 1208 Users 1209 -)))|(% style="text-align:left; 1562 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1210 1210 ((( 1211 1211 (% class="western" %) 1212 1212 Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned. 1213 1213 ))) 1214 1214 1215 - === (% class="core-title" style="color:#212121" %)Request Headers(%%) ===1568 +\\ 1216 1216 1217 ----- 1218 - 1219 -(% 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}} 1220 - 1221 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 1222 - 1223 ----- 1224 - 1225 -{{code language="yml" theme="RDark" title="Body"}} 1226 -{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]} 1227 -{{/code}} 1228 - 1229 -==== Example ==== 1230 - 1231 ----- 1232 - 1233 -(% style="color:#6b6b6b" %)Request 1234 - 1235 -{{code language="php" theme="RDark" title="Create User Request"}} 1236 -<?php 1237 - 1238 -$curl = curl_init(); 1239 - 1240 -curl_setopt_array($curl, array( 1241 - CURLOPT_URL => 'https://api.onecount.net/v2/users', 1242 - CURLOPT_RETURNTRANSFER => true, 1243 - CURLOPT_ENCODING => '', 1244 - CURLOPT_MAXREDIRS => 10, 1245 - CURLOPT_TIMEOUT => 0, 1246 - CURLOPT_FOLLOWLOCATION => true, 1247 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1248 - CURLOPT_CUSTOMREQUEST => 'POST', 1249 - CURLOPT_POSTFIELDS =>'{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan6@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}', 1250 - CURLOPT_HTTPHEADER => array( 1251 - 'Appkey: {{ONECOUNT API KEY}}' 1252 - ), 1253 -)); 1254 - 1255 -$response = curl_exec($curl); 1256 - 1257 -curl_close($curl); 1258 -echo $response; 1259 -{{/code}} 1260 - 1261 - 1262 -(% style="color:#6b6b6b" %)Response 200 OK 1263 - 1264 -{{code language="yml" theme="RDark" collapse="true" title="Create user Response"}} 1265 -{ 1266 - "result": { 1267 - "success": "1", 1268 - "error": { 1269 - "code": "", 1270 - "message": "" 1271 - } 1272 - }, 1273 - "Users": { 1274 - "Id": 1845831 1275 - } 1276 -} 1277 -{{/code}} 1278 - 1279 - 1280 -(% id="HPUTUpdateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1281 -== (% 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 user(%%) == 1282 - 1283 ----- 1284 - 1285 - 1286 1286 (% class="western" %) 1287 1287 **PUT method should be used to update users.** 1288 1288 1289 -(% class="wrapped" %) 1290 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1573 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1291 1291 ((( 1292 1292 (% class="western" %) 1293 1293 **Request** 1294 -)))|(% style="text-align:left; 1577 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1295 1295 ((( 1296 1296 (% class="western" %) 1297 1297 **Type** 1298 -)))|(% style="text-align:left; 1581 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1299 1299 ((( 1300 1300 (% class="western" %) 1301 1301 **Description** 1302 1302 ))) 1303 -|(% style="text-align:left; 1586 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1304 1304 ((( 1305 1305 (% class="western" %) 1306 1306 Users 1307 -)))|(% style="text-align:left; 1590 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1308 1308 ((( 1309 1309 (% class="western" %) 1310 1310 Users 1311 -)))|(% style="text-align:left; 1594 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1312 1312 ((( 1313 1313 (% class="western" %) 1314 -Users object with update fields. Return property has CSVof questions id requested back in Users object.1597 +Users object with update fields. Return property has csv of questions id requested back in Users object. 1315 1315 ))) 1316 -|(% style="text-align:left; 1599 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1317 1317 ((( 1318 1318 (% class="western" %) 1319 1319 Return 1320 -)))|(% style="text-align:left; 1603 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1321 1321 ((( 1322 1322 (% class="western" %) 1323 1323 String 1324 -)))|(% style="text-align:left; 1607 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1325 1325 ((( 1326 1326 (% class="western" %) 1327 1327 CSV of ONEcount QuestionId's requested back in Users object in response 1328 1328 ))) 1329 -|(% style="text-align:left; 1612 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1330 1330 ((( 1331 1331 (% class="western" %) 1332 1332 RequestDate 1333 -)))|(% style="text-align:left; 1616 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1334 1334 ((( 1335 1335 (% class="western" %) 1336 1336 Date 1337 -)))|(% style="text-align:left; 1620 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1338 1338 ((( 1339 1339 (% class="western" %) 1340 1340 RequestDate to use for the demo update. If not provided current date will be used. 1341 1341 ))) 1342 1342 1343 -(% class="wrapped" %) 1344 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1626 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1345 1345 ((( 1346 1346 (% class="western" %) 1347 1347 **Response** 1348 -)))|(% style="text-align:left; 1630 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1349 1349 ((( 1350 1350 (% class="western" %) 1351 1351 **Type** 1352 -)))|(% style="text-align:left; 1634 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1353 1353 ((( 1354 1354 (% class="western" %) 1355 1355 **Description** 1356 1356 ))) 1357 -|(% style="text-align:left; 1639 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1358 1358 ((( 1359 1359 (% class="western" %) 1360 1360 Users 1361 1361 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1362 1362 ((( 1363 -(% class="western" style="text-align:left" %)1645 +(% class="western" align="left" %) 1364 1364 Users 1365 -)))|(% style="text-align:left; 1647 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1366 1366 ((( 1367 1367 (% class="western" %) 1368 1368 Updated user returned with the demo field requested in return parameter in json format. 1369 1369 ))) 1370 1370 1371 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1653 +(% class="western" %) 1654 +\\ 1372 1372 1373 ----- 1656 +(% class="western" %) 1657 +\\ 1374 1374 1375 -(% 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}} 1659 +(% class="western" %) 1660 +Create new users. Here in this example the JSON for request is passed in userFile.json file. 1376 1376 1377 - ===(%style="color:#212121"%)Body(%style="color:#6b6b6b"%)raw(json)(%%)===1662 +{{{curl -X POST -H “Appkey: xxx” -H "Content-Type: application/json" –data-binary -d '@userFile.json' https://api.onecount.net/v2/users}}} 1378 1378 1379 ----- 1664 +(% class="western" %) 1665 +**~ ** 1380 1380 1381 -{{code language="yml" theme="RDark" title="Body"}} 1382 -{"Users":{"Demo":{"6":"title1"}}} 1383 -{{/code}} 1667 +(% class="western" %) 1668 +**~ ** 1384 1384 1385 - ==== Example ====1670 +\\ 1386 1386 1387 ----- 1672 +(% class="western" %) 1673 +**COMPONENT: Questions** 1388 1388 1389 -(% style="color:#6b6b6b" %)Request 1390 - 1391 -{{code language="php" theme="RDark" title="Update User Request"}} 1392 -<?php 1393 - 1394 -$curl = curl_init(); 1395 - 1396 -curl_setopt_array($curl, array( 1397 - CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}', 1398 - CURLOPT_RETURNTRANSFER => true, 1399 - CURLOPT_ENCODING => '', 1400 - CURLOPT_MAXREDIRS => 10, 1401 - CURLOPT_TIMEOUT => 0, 1402 - CURLOPT_FOLLOWLOCATION => true, 1403 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1404 - CURLOPT_CUSTOMREQUEST => 'PUT', 1405 - CURLOPT_POSTFIELDS =>'{"Users":{"Demo":{"6":"title"}}}', 1406 - CURLOPT_HTTPHEADER => array( 1407 - 'Appkey: {{ONECOUNT API KEY}}' 1408 - ), 1409 -)); 1410 - 1411 -$response = curl_exec($curl); 1412 - 1413 -curl_close($curl); 1414 -echo $response; 1415 - 1416 - 1417 -{{/code}} 1418 - 1419 - 1420 -(% style="color:#6b6b6b" %)Response 200 OK 1421 - 1422 -{{code language="yml" theme="RDark" collapse="true" title="Update user Response"}} 1423 -{ 1424 - "result": { 1425 - "success": "1", 1426 - "error": { 1427 - "code": "", 1428 - "message": "" 1429 - } 1430 - }, 1431 - "Users": [ 1432 - { 1433 - "Id": 1845823, 1434 - "OCID_HASH": "fccaa8dc7afadccc5882528d47b27c2bb53e2788dd0ac1fe170abef77a9c4d5b" 1435 - } 1436 - ] 1437 -} 1438 -{{/code}} 1439 - 1440 - 1441 -(% id="HCOMPONENT:Questions" class="western" %) 1442 -=== **COMPONENT: Questions** === 1443 - 1444 1444 (% class="western" %) 1445 1445 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). 1446 1446 ... ... @@ -1453,141 +1453,131 @@ 1453 1453 (% class="western" %) 1454 1454 There can be 6 types of questions: 1455 1455 1456 -(% class="wrapped" %) 1457 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1687 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1458 1458 ((( 1459 -(% class="western" style="text-align:center" %)1689 +(% class="western" align="center" %) 1460 1460 **Type** 1461 -)))|(% style="text-align:left; 1691 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1462 1462 ((( 1463 1463 (% class="western" %) 1464 1464 **Description** 1465 1465 ))) 1466 -|(% style="text-align:left; 1696 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1467 1467 ((( 1468 -(% class="western" style="text-align:center" %)1469 - 01470 -)))|(% style="text-align:left; 1698 +(% class="western" align="center" %) 1699 +1 1700 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1471 1471 ((( 1472 1472 (% class="western" %) 1473 -Text type questions or short response type question. The response length needs to be less than 255 characters. 1703 +Textbox type questions or short response type question. The response length needs to be less than 255 characters. 1474 1474 ))) 1475 -|(% style="text-align:left; 1705 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1476 1476 ((( 1477 -(% class="western" style="text-align:center" %)1478 - 11479 -)))|(% style="text-align:left; 1707 +(% class="western" align="center" %) 1708 +2 1709 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1480 1480 ((( 1481 1481 (% class="western" %) 1482 1482 Textarea type question or long response type question. 1483 1483 ))) 1484 -|(% style="text-align:left; vertical-align:top" %)((( 1485 -(% style="text-align: left;vertical-align: top;" %) 1714 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1486 1486 ((( 1487 -(% class="western" style="text-align:center" %) 1488 -2 1489 -))) 1490 - 1716 +(% class="western" align="center" %) 1717 +3 1718 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1491 1491 ((( 1492 - 1493 -))) 1494 -)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1495 -((( 1496 1496 (% class="western" %) 1497 1497 Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *. 1498 1498 ))) 1499 -|(% style="text-align:left; vertical-align:top" %) 3|(% style="text-align:left; vertical-align:top" %)Numeric type question. 1500 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1723 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1501 1501 ((( 1502 -(% class="western" style="text-align:center" %)1725 +(% class="western" align="center" %) 1503 1503 4 1504 -)))|(% style="text-align:left; 1727 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1505 1505 ((( 1506 1506 (% class="western" %) 1507 1507 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. 1508 1508 ))) 1509 -|(% style="text-align:left; 1732 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1510 1510 ((( 1511 -(% class="western" style="text-align:center" %)1734 +(% class="western" align="center" %) 1512 1512 5 1513 -)))|(% style="text-align:left; 1736 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1514 1514 ((( 1515 1515 (% class="western" %) 1516 1516 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. 1517 1517 ))) 1518 -|(% style="text-align:left; 1741 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1519 1519 ((( 1520 -(% class="western" style="text-align:center" %)1743 +(% class="western" align="center" %) 1521 1521 6 1522 -)))|(% style="text-align:left; 1745 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1523 1523 ((( 1524 1524 (% class="western" %) 1525 1525 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. 1526 1526 ))) 1527 -|(% style="text-align:left; vertical-align:top" %) 7 |(% style="text-align:left; vertical-align:top" %)Date type question. 1528 1528 1529 -(% class="wrapped" %) 1530 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1751 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1531 1531 ((( 1532 1532 (% class="western" %) 1533 1533 **Method** 1534 -)))|(% style="text-align:left; 1755 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1535 1535 ((( 1536 1536 (% class="western" %) 1537 1537 **Url** 1538 -)))|(% style="text-align:left; 1759 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1539 1539 ((( 1540 1540 (% class="western" %) 1541 1541 **Action** 1542 1542 ))) 1543 -|(% style="text-align:left; 1764 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1544 1544 ((( 1545 1545 (% class="western" %) 1546 1546 GET 1547 -)))|(% style="text-align:left; 1768 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1548 1548 ((( 1549 1549 (% class="western" %) 1550 1550 /questions 1551 -)))|(% style="text-align:left; 1772 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1552 1552 ((( 1553 1553 (% class="western" %) 1554 1554 List all questions 1555 1555 ))) 1556 -|(% style="text-align:left; 1777 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1557 1557 ((( 1558 1558 (% class="western" %) 1559 1559 GET 1560 -)))|(% style="text-align:left; 1781 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1561 1561 ((( 1562 1562 (% class="western" %) 1563 1563 /questions/1 1564 -)))|(% style="text-align:left; 1785 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1565 1565 ((( 1566 1566 (% class="western" %) 1567 1567 Returns question id 1 1568 1568 ))) 1569 -|(% style="text-align:left; 1790 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1570 1570 ((( 1571 1571 (% class="western" %) 1572 1572 GET 1573 -)))|(% style="text-align:left; 1794 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1574 1574 ((( 1575 1575 (% class="western" %) 1576 1576 /questions/lookup?Text=Email 1577 -)))|(% style="text-align:left; 1798 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1578 1578 ((( 1579 1579 (% class="western" %) 1580 1580 Returns all questions with “Email" in question text 1581 1581 ))) 1582 -|(% style="text-align:left; 1803 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1583 1583 ((( 1584 1584 (% class="western" %) 1585 1585 POST 1586 -)))|(% style="text-align:left; 1807 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1587 1587 ((( 1588 1588 (% class="western" %) 1589 1589 /questions 1590 -)))|(% style="text-align:left; 1811 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1591 1591 ((( 1592 1592 (% class="western" %) 1593 1593 Create a new question ... ... @@ -1595,15 +1595,15 @@ 1595 1595 (% class="western" %) 1596 1596 JSON of the Questions type object needs to be sent as post data. Id field should not be sent. 1597 1597 ))) 1598 -|(% style="text-align:left; 1819 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1599 1599 ((( 1600 1600 (% class="western" %) 1601 1601 PUT 1602 -)))|(% style="text-align:left; 1823 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1603 1603 ((( 1604 1604 (% class="western" %) 1605 1605 /questions 1606 -)))|(% style="text-align:left; 1827 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1607 1607 ((( 1608 1608 (% class="western" %) 1609 1609 Update a question ... ... @@ -1610,6694 +1610,349 @@ 1610 1610 1611 1611 (% class="western" %) 1612 1612 JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update. 1613 - 1614 -(% class="western" %) 1615 -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. 1616 1616 ))) 1617 1617 1618 -(% id="HGETAllQuestions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1619 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Questions(%%) == 1836 +\\ 1620 1620 1621 ----- 1838 +(% class="western" %) 1839 +**GET method can be used to lookup questions.** 1622 1622 1623 ----- 1841 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1842 +((( 1843 +(% class="western" %) 1844 +**Request** 1845 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1846 +((( 1847 +(% class="western" %) 1848 +**Type** 1849 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1850 +((( 1851 +(% class="western" %) 1852 +**Description** 1853 +))) 1854 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1855 +((( 1856 +(% class="western" %) 1857 +Lookup params 1858 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1859 +((( 1860 +(% class="western" %) 1861 +String 1862 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1863 +((( 1864 +(% class="western" %) 1865 +URL encoded key value string parameters for the question that a user is trying to search. 1624 1624 1625 -{{panel bgColor="#D3D3D3" width="100%"}} 1626 -(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/(% style="color:#212121" %)questions 1627 -{{/panel}} 1867 +(% class="western" %) 1868 +Params: 1628 1628 1629 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1870 +(% class="western" %) 1871 +Text: Word or phrase that should be present in the question text (String) 1630 1630 1631 ----- 1873 +(% class="western" %) 1874 +Type: Look up the question type. 1875 +))) 1632 1632 1633 -(% 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}} 1877 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1878 +((( 1879 +(% class="western" %) 1880 +**Response** 1881 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1882 +((( 1883 +(% class="western" %) 1884 +**Type** 1885 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1886 +((( 1887 +(% class="western" %) 1888 +**Description** 1889 +))) 1890 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1891 +((( 1892 +(% class="western" %) 1893 +Questions 1894 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1895 +((( 1896 +(% class="western" %) 1897 +Questions 1898 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1899 +((( 1900 +(% class="western" %) 1901 +Returns found question details. 1902 +))) 1634 1634 1635 - ==== Example ====1904 +\\ 1636 1636 1637 ----- 1906 +(% class="western" %) 1907 +**POST method should be used to create questions. The data that is sent should be in JSON format and of type questions as described in references section. Questions object will only need a choices block if the question is a multiple choice question (type=4 or 5 or 6).** 1638 1638 1639 -(% style="color:#6b6b6b" %)Request 1909 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1910 +((( 1911 +(% class="western" %) 1912 +**Request** 1913 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1914 +((( 1915 +(% class="western" %) 1916 +**Type** 1917 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1918 +((( 1919 +(% class="western" %) 1920 +**Description** 1921 +))) 1922 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1923 +((( 1924 +(% class="western" %) 1925 +Questions 1926 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1927 +((( 1928 +(% class="western" %) 1929 +Questions 1930 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1931 +((( 1932 +(% class="western" %) 1933 +This defines the question contents and possible responses. 1934 +))) 1640 1640 1641 -{{code language="php" theme="RDark" title="Get All Questions Request"}} 1642 -<?php 1936 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1937 +((( 1938 +(% class="western" %) 1939 +**Response** 1940 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1941 +((( 1942 +(% class="western" %) 1943 +**Type** 1944 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1945 +((( 1946 +(% class="western" %) 1947 +**Description** 1948 +))) 1949 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1950 +((( 1951 +(% class="western" %) 1952 +QuestionId 1953 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1954 +((( 1955 +(% class="western" %) 1956 +Int 1957 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1958 +((( 1959 +(% class="western" %) 1960 +Returns ONEcount question id on successful creation of the question. 1961 +))) 1643 1643 1644 - $curl = curl_init();1963 +\\ 1645 1645 1646 -curl_setopt_array($curl, array( 1647 - CURLOPT_URL => 'https://api.onecount.net/v2/questions', 1648 - CURLOPT_RETURNTRANSFER => true, 1649 - CURLOPT_ENCODING => '', 1650 - CURLOPT_MAXREDIRS => 10, 1651 - CURLOPT_TIMEOUT => 0, 1652 - CURLOPT_FOLLOWLOCATION => true, 1653 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1654 - CURLOPT_CUSTOMREQUEST => 'GET', 1655 - CURLOPT_HTTPHEADER => array( 1656 - 'Appkey: 70856f83422599c8e36191098f1536ae06e7bbcd' 1657 - ), 1658 -)); 1965 +(% class="western" %) 1966 +PUT method should be used to update question. 1659 1659 1660 -$response = curl_exec($curl); 1968 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1969 +((( 1970 +(% class="western" %) 1971 +**Request** 1972 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1973 +((( 1974 +(% class="western" %) 1975 +**Type** 1976 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1977 +((( 1978 +(% class="western" %) 1979 +**Description** 1980 +))) 1981 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1982 +((( 1983 +(% class="western" %) 1984 +Questions 1985 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1986 +((( 1987 +(% class="western" %) 1988 +Questions 1989 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1990 +((( 1991 +(% class="western" %) 1992 +This defines the question contents and responses. 1993 +))) 1661 1661 1662 -curl_close($curl); 1663 -echo $response; 1995 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1996 +((( 1997 +(% class="western" %) 1998 +**Response** 1999 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2000 +((( 2001 +(% class="western" %) 2002 +**Type** 2003 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2004 +((( 2005 +(% class="western" %) 2006 +**Description** 2007 +))) 2008 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2009 +((( 2010 +(% class="western" %) 2011 +QuestionId 2012 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2013 +((( 2014 +(% class="western" %) 2015 +Int 2016 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2017 +((( 2018 +(% class="western" %) 2019 +Returns ONEcount question id on successful update of the question. 2020 +))) 1664 1664 2022 +(% class="western" %) 2023 +\\ 1665 1665 2025 +(% class="western" %) 2026 +Example: Get list of questions from api which has FirstName in text 1666 1666 1667 -{{/co de}}2028 +{{{curl -X GET -H “Appkey: xxx” https://api.onecount.net/v2/questions/lookup?Text=FirstName}}} 1668 1668 1669 - 1670 -(% style="color:#6b6b6b" %)Response 200 OK 1671 - 1672 -{{code language="yml" theme="RDark" collapse="true" title="Get All Questions Response"}} 2030 +(% class="western" %) 1673 1673 { 1674 - "result": { 1675 - "success": "1", 1676 - "error": { 1677 - "code": "", 1678 - "message": "" 1679 - } 1680 - }, 1681 - "Questions": [ 1682 - { 1683 - "Id": 1, 1684 - "Text": "Email", 1685 - "Type": "0", 1686 - "Alias": "Email" 1687 - }, 1688 - { 1689 - "Id": 2, 1690 - "Text": "Username", 1691 - "Type": "0", 1692 - "Alias": "Username" 1693 - }, 1694 - { 1695 - "Id": 3, 1696 - "Text": "Password", 1697 - "Type": "2", 1698 - "Alias": "Password" 1699 - }, 1700 - { 1701 - "Id": 4, 1702 - "Text": "First Name", 1703 - "Type": "0", 1704 - "Alias": "First Name" 1705 - }, 1706 - { 1707 - "Id": 5, 1708 - "Text": "Last Name", 1709 - "Type": "0", 1710 - "Alias": "Last Name" 1711 - }, 1712 - { 1713 - "Id": 6, 1714 - "Text": "Title", 1715 - "Type": "0", 1716 - "Alias": "Title" 1717 - }, 1718 - { 1719 - "Id": 7, 1720 - "Text": "Company Name", 1721 - "Type": "0", 1722 - "Alias": "Company Name" 1723 - }, 1724 - { 1725 - "Id": 8, 1726 - "Text": "Company Address", 1727 - "Type": "0", 1728 - "Alias": "Company Address" 1729 - }, 1730 - { 1731 - "Id": 9, 1732 - "Text": "Address2", 1733 - "Type": "0", 1734 - "Alias": "Address2" 1735 - }, 1736 - { 1737 - "Id": 10, 1738 - "Text": "City", 1739 - "Type": "0", 1740 - "Alias": "City" 1741 - }, 1742 - { 1743 - "Id": 11, 1744 - "Text": "State/Province", 1745 - "Type": "4", 1746 - "Alias": "State/Province", 1747 - "Choices": [ 1748 - { 1749 - "Id": 1554, 1750 - "QuestionId": 11, 1751 - "Text": "Select One", 1752 - "Value": "", 1753 - "Order": 1 1754 - }, 1755 - { 1756 - "Id": 1562, 1757 - "QuestionId": 11, 1758 - "Text": "Alabama", 1759 - "Value": "AL", 1760 - "Order": 2 1761 - }, 1762 - { 1763 - "Id": 1570, 1764 - "QuestionId": 11, 1765 - "Text": "Alaska", 1766 - "Value": "AK", 1767 - "Order": 3 1768 - }, 1769 - { 1770 - "Id": 1578, 1771 - "QuestionId": 11, 1772 - "Text": "Arizona", 1773 - "Value": "AZ", 1774 - "Order": 4 1775 - }, 1776 - { 1777 - "Id": 1586, 1778 - "QuestionId": 11, 1779 - "Text": "Arkansas", 1780 - "Value": "AR", 1781 - "Order": 5 1782 - }, 1783 - { 1784 - "Id": 1594, 1785 - "QuestionId": 11, 1786 - "Text": "California", 1787 - "Value": "CA", 1788 - "Order": 6 1789 - }, 1790 - { 1791 - "Id": 1602, 1792 - "QuestionId": 11, 1793 - "Text": "Colorado", 1794 - "Value": "CO", 1795 - "Order": 7 1796 - }, 1797 - { 1798 - "Id": 1610, 1799 - "QuestionId": 11, 1800 - "Text": "Connecticut", 1801 - "Value": "CT", 1802 - "Order": 8 1803 - }, 1804 - { 1805 - "Id": 1618, 1806 - "QuestionId": 11, 1807 - "Text": "Delaware", 1808 - "Value": "DE", 1809 - "Order": 9 1810 - }, 1811 - { 1812 - "Id": 1626, 1813 - "QuestionId": 11, 1814 - "Text": "District of Columbia", 1815 - "Value": "DC", 1816 - "Order": 10 1817 - }, 1818 - { 1819 - "Id": 1634, 1820 - "QuestionId": 11, 1821 - "Text": "Florida", 1822 - "Value": "FL", 1823 - "Order": 11 1824 - }, 1825 - { 1826 - "Id": 1642, 1827 - "QuestionId": 11, 1828 - "Text": "Georgia", 1829 - "Value": "GA", 1830 - "Order": 12 1831 - }, 1832 - { 1833 - "Id": 1650, 1834 - "QuestionId": 11, 1835 - "Text": "Hawaii", 1836 - "Value": "HI", 1837 - "Order": 13 1838 - }, 1839 - { 1840 - "Id": 1658, 1841 - "QuestionId": 11, 1842 - "Text": "Idaho", 1843 - "Value": "ID", 1844 - "Order": 14 1845 - }, 1846 - { 1847 - "Id": 1666, 1848 - "QuestionId": 11, 1849 - "Text": "Illinois", 1850 - "Value": "IL", 1851 - "Order": 15 1852 - }, 1853 - { 1854 - "Id": 1674, 1855 - "QuestionId": 11, 1856 - "Text": "Indiana", 1857 - "Value": "IN", 1858 - "Order": 16 1859 - }, 1860 - { 1861 - "Id": 1682, 1862 - "QuestionId": 11, 1863 - "Text": "Iowa", 1864 - "Value": "IA", 1865 - "Order": 17 1866 - }, 1867 - { 1868 - "Id": 1690, 1869 - "QuestionId": 11, 1870 - "Text": "Kansas", 1871 - "Value": "KS", 1872 - "Order": 18 1873 - }, 1874 - { 1875 - "Id": 1698, 1876 - "QuestionId": 11, 1877 - "Text": "Kentucky", 1878 - "Value": "KY", 1879 - "Order": 19 1880 - }, 1881 - { 1882 - "Id": 1706, 1883 - "QuestionId": 11, 1884 - "Text": "Louisiana", 1885 - "Value": "LA", 1886 - "Order": 20 1887 - }, 1888 - { 1889 - "Id": 1714, 1890 - "QuestionId": 11, 1891 - "Text": "Maine", 1892 - "Value": "ME", 1893 - "Order": 21 1894 - }, 1895 - { 1896 - "Id": 1722, 1897 - "QuestionId": 11, 1898 - "Text": "Maryland", 1899 - "Value": "MD", 1900 - "Order": 22 1901 - }, 1902 - { 1903 - "Id": 1730, 1904 - "QuestionId": 11, 1905 - "Text": "Massachusetts", 1906 - "Value": "MA", 1907 - "Order": 23 1908 - }, 1909 - { 1910 - "Id": 1738, 1911 - "QuestionId": 11, 1912 - "Text": "Michigan", 1913 - "Value": "MI", 1914 - "Order": 24 1915 - }, 1916 - { 1917 - "Id": 1746, 1918 - "QuestionId": 11, 1919 - "Text": "Minnesota", 1920 - "Value": "MN", 1921 - "Order": 25 1922 - }, 1923 - { 1924 - "Id": 1754, 1925 - "QuestionId": 11, 1926 - "Text": "Mississippi", 1927 - "Value": "MS", 1928 - "Order": 26 1929 - }, 1930 - { 1931 - "Id": 1762, 1932 - "QuestionId": 11, 1933 - "Text": "Missouri", 1934 - "Value": "MO", 1935 - "Order": 27 1936 - }, 1937 - { 1938 - "Id": 1770, 1939 - "QuestionId": 11, 1940 - "Text": "Montana", 1941 - "Value": "MT", 1942 - "Order": 28 1943 - }, 1944 - { 1945 - "Id": 1778, 1946 - "QuestionId": 11, 1947 - "Text": "Nebraska", 1948 - "Value": "NE", 1949 - "Order": 29 1950 - }, 1951 - { 1952 - "Id": 1786, 1953 - "QuestionId": 11, 1954 - "Text": "Nevada", 1955 - "Value": "NV", 1956 - "Order": 30 1957 - }, 1958 - { 1959 - "Id": 1794, 1960 - "QuestionId": 11, 1961 - "Text": "New Hampshire", 1962 - "Value": "NH", 1963 - "Order": 31 1964 - }, 1965 - { 1966 - "Id": 1802, 1967 - "QuestionId": 11, 1968 - "Text": "New Jersey", 1969 - "Value": "NJ", 1970 - "Order": 32 1971 - }, 1972 - { 1973 - "Id": 1810, 1974 - "QuestionId": 11, 1975 - "Text": "New Mexico", 1976 - "Value": "NM", 1977 - "Order": 33 1978 - }, 1979 - { 1980 - "Id": 1818, 1981 - "QuestionId": 11, 1982 - "Text": "New York", 1983 - "Value": "NY", 1984 - "Order": 34 1985 - }, 1986 - { 1987 - "Id": 1826, 1988 - "QuestionId": 11, 1989 - "Text": "North Carolina", 1990 - "Value": "NC", 1991 - "Order": 35 1992 - }, 1993 - { 1994 - "Id": 1834, 1995 - "QuestionId": 11, 1996 - "Text": "Ohio", 1997 - "Value": "OH", 1998 - "Order": 37 1999 - }, 2000 - { 2001 - "Id": 1842, 2002 - "QuestionId": 11, 2003 - "Text": "Oklahoma", 2004 - "Value": "OK", 2005 - "Order": 38 2006 - }, 2007 - { 2008 - "Id": 1850, 2009 - "QuestionId": 11, 2010 - "Text": "Oregon", 2011 - "Value": "OR", 2012 - "Order": 39 2013 - }, 2014 - { 2015 - "Id": 1858, 2016 - "QuestionId": 11, 2017 - "Text": "Pennsylvania", 2018 - "Value": "PA", 2019 - "Order": 40 2020 - }, 2021 - { 2022 - "Id": 1866, 2023 - "QuestionId": 11, 2024 - "Text": "Rhode Island", 2025 - "Value": "RI", 2026 - "Order": 41 2027 - }, 2028 - { 2029 - "Id": 1874, 2030 - "QuestionId": 11, 2031 - "Text": "South Carolina", 2032 - "Value": "SC", 2033 - "Order": 42 2034 - }, 2035 - { 2036 - "Id": 1882, 2037 - "QuestionId": 11, 2038 - "Text": "South Dakota", 2039 - "Value": "SD", 2040 - "Order": 43 2041 - }, 2042 - { 2043 - "Id": 1890, 2044 - "QuestionId": 11, 2045 - "Text": "Tennessee", 2046 - "Value": "TN", 2047 - "Order": 44 2048 - }, 2049 - { 2050 - "Id": 1898, 2051 - "QuestionId": 11, 2052 - "Text": "Texas", 2053 - "Value": "TX", 2054 - "Order": 45 2055 - }, 2056 - { 2057 - "Id": 1906, 2058 - "QuestionId": 11, 2059 - "Text": "Utah", 2060 - "Value": "UT", 2061 - "Order": 46 2062 - }, 2063 - { 2064 - "Id": 1914, 2065 - "QuestionId": 11, 2066 - "Text": "Vermont", 2067 - "Value": "VT", 2068 - "Order": 47 2069 - }, 2070 - { 2071 - "Id": 1922, 2072 - "QuestionId": 11, 2073 - "Text": "Virginia", 2074 - "Value": "VA", 2075 - "Order": 48 2076 - }, 2077 - { 2078 - "Id": 1930, 2079 - "QuestionId": 11, 2080 - "Text": "Washington", 2081 - "Value": "WA", 2082 - "Order": 49 2083 - }, 2084 - { 2085 - "Id": 1938, 2086 - "QuestionId": 11, 2087 - "Text": "West Virginia", 2088 - "Value": "WV", 2089 - "Order": 50 2090 - }, 2091 - { 2092 - "Id": 1946, 2093 - "QuestionId": 11, 2094 - "Text": "Wisconsin", 2095 - "Value": "WI", 2096 - "Order": 51 2097 - }, 2098 - { 2099 - "Id": 1954, 2100 - "QuestionId": 11, 2101 - "Text": "Wyoming", 2102 - "Value": "WY", 2103 - "Order": 52 2104 - }, 2105 - { 2106 - "Id": 1962, 2107 - "QuestionId": 11, 2108 - "Text": "American Samoa", 2109 - "Value": "AS", 2110 - "Order": 53 2111 - }, 2112 - { 2113 - "Id": 1970, 2114 - "QuestionId": 11, 2115 - "Text": "North Dakota", 2116 - "Value": "ND", 2117 - "Order": 36 2118 - }, 2119 - { 2120 - "Id": 1978, 2121 - "QuestionId": 11, 2122 - "Text": "Federated States of Micronesia", 2123 - "Value": "FM", 2124 - "Order": 54 2125 - }, 2126 - { 2127 - "Id": 1986, 2128 - "QuestionId": 11, 2129 - "Text": "Guam", 2130 - "Value": "GU", 2131 - "Order": 55 2132 - }, 2133 - { 2134 - "Id": 1994, 2135 - "QuestionId": 11, 2136 - "Text": "Marshall Islands", 2137 - "Value": "MH", 2138 - "Order": 56 2139 - }, 2140 - { 2141 - "Id": 2002, 2142 - "QuestionId": 11, 2143 - "Text": "Northern Mariana Islands", 2144 - "Value": "MP", 2145 - "Order": 57 2146 - }, 2147 - { 2148 - "Id": 2010, 2149 - "QuestionId": 11, 2150 - "Text": "Palau", 2151 - "Value": "PW", 2152 - "Order": 58 2153 - }, 2154 - { 2155 - "Id": 2018, 2156 - "QuestionId": 11, 2157 - "Text": "Puerto Rico", 2158 - "Value": "PR", 2159 - "Order": 59 2160 - }, 2161 - { 2162 - "Id": 2026, 2163 - "QuestionId": 11, 2164 - "Text": "U.S. Virgin Islands", 2165 - "Value": "VI", 2166 - "Order": 60 2167 - }, 2168 - { 2169 - "Id": 2034, 2170 - "QuestionId": 11, 2171 - "Text": "Armed Forces Africa", 2172 - "Value": "AE", 2173 - "Order": 61 2174 - }, 2175 - { 2176 - "Id": 2042, 2177 - "QuestionId": 11, 2178 - "Text": "Armed Forces Americas (except Canada)", 2179 - "Value": "AA", 2180 - "Order": 62 2181 - }, 2182 - { 2183 - "Id": 2050, 2184 - "QuestionId": 11, 2185 - "Text": "Armed Forces Canada", 2186 - "Value": "AE", 2187 - "Order": 63 2188 - }, 2189 - { 2190 - "Id": 2058, 2191 - "QuestionId": 11, 2192 - "Text": "Armed Forces Europe", 2193 - "Value": "AE", 2194 - "Order": 64 2195 - }, 2196 - { 2197 - "Id": 2066, 2198 - "QuestionId": 11, 2199 - "Text": "Armed Forces Middle East", 2200 - "Value": "AE", 2201 - "Order": 65 2202 - }, 2203 - { 2204 - "Id": 2074, 2205 - "QuestionId": 11, 2206 - "Text": "Armed Forces Pacific", 2207 - "Value": "AP", 2208 - "Order": 66 2209 - }, 2210 - { 2211 - "Id": 2082, 2212 - "QuestionId": 11, 2213 - "Text": "Non-US/Not Applicable", 2214 - "Value": "Non-US/Not Applicable", 2215 - "Order": 67 2216 - }, 2217 - { 2218 - "Id": 2090, 2219 - "QuestionId": 11, 2220 - "Text": "Ontario", 2221 - "Value": "Ontario", 2222 - "Order": 68 2223 - }, 2224 - { 2225 - "Id": 2098, 2226 - "QuestionId": 11, 2227 - "Text": "Quebec", 2228 - "Value": "Quebec", 2229 - "Order": 69 2230 - }, 2231 - { 2232 - "Id": 2106, 2233 - "QuestionId": 11, 2234 - "Text": "Nova Scotia", 2235 - "Value": "Nova Scotia", 2236 - "Order": 70 2237 - }, 2238 - { 2239 - "Id": 2114, 2240 - "QuestionId": 11, 2241 - "Text": "New Brunswick", 2242 - "Value": "New Brunswick", 2243 - "Order": 71 2244 - }, 2245 - { 2246 - "Id": 2122, 2247 - "QuestionId": 11, 2248 - "Text": "Manitoba", 2249 - "Value": "Manitoba", 2250 - "Order": 72 2251 - }, 2252 - { 2253 - "Id": 2130, 2254 - "QuestionId": 11, 2255 - "Text": "Brittish Columbia", 2256 - "Value": "Brittish Columbia", 2257 - "Order": 73 2258 - }, 2259 - { 2260 - "Id": 2138, 2261 - "QuestionId": 11, 2262 - "Text": "Prince Edward Island", 2263 - "Value": "Prince Edward Island", 2264 - "Order": 74 2265 - }, 2266 - { 2267 - "Id": 2146, 2268 - "QuestionId": 11, 2269 - "Text": "Saskatchewan", 2270 - "Value": "Saskatchewan", 2271 - "Order": 75 2272 - }, 2273 - { 2274 - "Id": 2154, 2275 - "QuestionId": 11, 2276 - "Text": "Alberta", 2277 - "Value": "Alberta", 2278 - "Order": 76 2279 - }, 2280 - { 2281 - "Id": 2162, 2282 - "QuestionId": 11, 2283 - "Text": "Newfoundland and Labrador", 2284 - "Value": "Newfoundland and Labrador", 2285 - "Order": 77 2286 - }, 2287 - { 2288 - "Id": 2170, 2289 - "QuestionId": 11, 2290 - "Text": "British Columbia", 2291 - "Value": "British Columbia", 2292 - "Order": 78 2293 - }, 2294 - { 2295 - "Id": 2178, 2296 - "QuestionId": 11, 2297 - "Text": "Ontario", 2298 - "Value": "ON", 2299 - "Order": 79 2300 - } 2301 - ] 2302 - }, 2303 - { 2304 - "Id": 12, 2305 - "Text": "Zip/Postal Code", 2306 - "Type": "0", 2307 - "Alias": "Zip/Postal Code" 2308 - }, 2309 - { 2310 - "Id": 13, 2311 - "Text": "Country", 2312 - "Type": "4", 2313 - "Alias": "Country", 2314 - "Choices": [ 2315 - { 2316 - "Id": 2, 2317 - "QuestionId": 13, 2318 - "Text": "Select One", 2319 - "Value": "", 2320 - "Order": 1 2321 - }, 2322 - { 2323 - "Id": 10, 2324 - "QuestionId": 13, 2325 - "Text": "Afghanistan", 2326 - "Value": "Afghanistan", 2327 - "Order": 3 2328 - }, 2329 - { 2330 - "Id": 18, 2331 - "QuestionId": 13, 2332 - "Text": "Albania", 2333 - "Value": "Albania", 2334 - "Order": 4 2335 - }, 2336 - { 2337 - "Id": 26, 2338 - "QuestionId": 13, 2339 - "Text": "Algeria", 2340 - "Value": "Algeria", 2341 - "Order": 5 2342 - }, 2343 - { 2344 - "Id": 34, 2345 - "QuestionId": 13, 2346 - "Text": "Andorra", 2347 - "Value": "Andorra", 2348 - "Order": 6 2349 - }, 2350 - { 2351 - "Id": 42, 2352 - "QuestionId": 13, 2353 - "Text": "Angola", 2354 - "Value": "Angola", 2355 - "Order": 7 2356 - }, 2357 - { 2358 - "Id": 50, 2359 - "QuestionId": 13, 2360 - "Text": "Antigua and Barbuda", 2361 - "Value": "Antigua and Barbuda", 2362 - "Order": 8 2363 - }, 2364 - { 2365 - "Id": 58, 2366 - "QuestionId": 13, 2367 - "Text": "Argentina", 2368 - "Value": "Argentina", 2369 - "Order": 9 2370 - }, 2371 - { 2372 - "Id": 66, 2373 - "QuestionId": 13, 2374 - "Text": "Armenia", 2375 - "Value": "Armenia", 2376 - "Order": 10 2377 - }, 2378 - { 2379 - "Id": 74, 2380 - "QuestionId": 13, 2381 - "Text": "Australia", 2382 - "Value": "Australia", 2383 - "Order": 11 2384 - }, 2385 - { 2386 - "Id": 82, 2387 - "QuestionId": 13, 2388 - "Text": "Austria", 2389 - "Value": "Austria", 2390 - "Order": 12 2391 - }, 2392 - { 2393 - "Id": 90, 2394 - "QuestionId": 13, 2395 - "Text": "Azerbaijan", 2396 - "Value": "Azerbaijan", 2397 - "Order": 13 2398 - }, 2399 - { 2400 - "Id": 98, 2401 - "QuestionId": 13, 2402 - "Text": "Bahamas", 2403 - "Value": "Bahamas", 2404 - "Order": 14 2405 - }, 2406 - { 2407 - "Id": 106, 2408 - "QuestionId": 13, 2409 - "Text": "Bahrain", 2410 - "Value": "Bahrain", 2411 - "Order": 15 2412 - }, 2413 - { 2414 - "Id": 114, 2415 - "QuestionId": 13, 2416 - "Text": "Bangladesh", 2417 - "Value": "Bangladesh", 2418 - "Order": 16 2419 - }, 2420 - { 2421 - "Id": 122, 2422 - "QuestionId": 13, 2423 - "Text": "Barbados", 2424 - "Value": "Barbados", 2425 - "Order": 17 2426 - }, 2427 - { 2428 - "Id": 130, 2429 - "QuestionId": 13, 2430 - "Text": "Belarus", 2431 - "Value": "Belarus", 2432 - "Order": 18 2433 - }, 2434 - { 2435 - "Id": 138, 2436 - "QuestionId": 13, 2437 - "Text": "Belgium", 2438 - "Value": "Belgium", 2439 - "Order": 19 2440 - }, 2441 - { 2442 - "Id": 146, 2443 - "QuestionId": 13, 2444 - "Text": "Belize", 2445 - "Value": "Belize", 2446 - "Order": 20 2447 - }, 2448 - { 2449 - "Id": 154, 2450 - "QuestionId": 13, 2451 - "Text": "Benin", 2452 - "Value": "Benin", 2453 - "Order": 21 2454 - }, 2455 - { 2456 - "Id": 162, 2457 - "QuestionId": 13, 2458 - "Text": "Bhutan", 2459 - "Value": "Bhutan", 2460 - "Order": 22 2461 - }, 2462 - { 2463 - "Id": 170, 2464 - "QuestionId": 13, 2465 - "Text": "Bolivia", 2466 - "Value": "Bolivia", 2467 - "Order": 23 2468 - }, 2469 - { 2470 - "Id": 178, 2471 - "QuestionId": 13, 2472 - "Text": "Bosnia and Herzegovina", 2473 - "Value": "Bosnia and Herzegovina", 2474 - "Order": 24 2475 - }, 2476 - { 2477 - "Id": 186, 2478 - "QuestionId": 13, 2479 - "Text": "Botswana", 2480 - "Value": "Botswana", 2481 - "Order": 25 2482 - }, 2483 - { 2484 - "Id": 194, 2485 - "QuestionId": 13, 2486 - "Text": "Brazil", 2487 - "Value": "Brazil", 2488 - "Order": 26 2489 - }, 2490 - { 2491 - "Id": 202, 2492 - "QuestionId": 13, 2493 - "Text": "Brunei", 2494 - "Value": "Brunei", 2495 - "Order": 27 2496 - }, 2497 - { 2498 - "Id": 210, 2499 - "QuestionId": 13, 2500 - "Text": "Bulgaria", 2501 - "Value": "Bulgaria", 2502 - "Order": 28 2503 - }, 2504 - { 2505 - "Id": 218, 2506 - "QuestionId": 13, 2507 - "Text": "Burkina Faso", 2508 - "Value": "Burkina Faso", 2509 - "Order": 29 2510 - }, 2511 - { 2512 - "Id": 226, 2513 - "QuestionId": 13, 2514 - "Text": "Burundi", 2515 - "Value": "Burundi", 2516 - "Order": 30 2517 - }, 2518 - { 2519 - "Id": 234, 2520 - "QuestionId": 13, 2521 - "Text": "Cambodia", 2522 - "Value": "Cambodia", 2523 - "Order": 31 2524 - }, 2525 - { 2526 - "Id": 242, 2527 - "QuestionId": 13, 2528 - "Text": "Cameroon", 2529 - "Value": "Cameroon", 2530 - "Order": 32 2531 - }, 2532 - { 2533 - "Id": 250, 2534 - "QuestionId": 13, 2535 - "Text": "Canada", 2536 - "Value": "Canada", 2537 - "Order": 33 2538 - }, 2539 - { 2540 - "Id": 258, 2541 - "QuestionId": 13, 2542 - "Text": "Cape Verde", 2543 - "Value": "Cape Verde", 2544 - "Order": 34 2545 - }, 2546 - { 2547 - "Id": 266, 2548 - "QuestionId": 13, 2549 - "Text": "Central African Republic", 2550 - "Value": "Central African Republic", 2551 - "Order": 35 2552 - }, 2553 - { 2554 - "Id": 274, 2555 - "QuestionId": 13, 2556 - "Text": "Chad", 2557 - "Value": "Chad", 2558 - "Order": 36 2559 - }, 2560 - { 2561 - "Id": 282, 2562 - "QuestionId": 13, 2563 - "Text": "Chile", 2564 - "Value": "Chile", 2565 - "Order": 37 2566 - }, 2567 - { 2568 - "Id": 290, 2569 - "QuestionId": 13, 2570 - "Text": "China", 2571 - "Value": "China", 2572 - "Order": 38 2573 - }, 2574 - { 2575 - "Id": 298, 2576 - "QuestionId": 13, 2577 - "Text": "Colombia", 2578 - "Value": "Colombia", 2579 - "Order": 39 2580 - }, 2581 - { 2582 - "Id": 306, 2583 - "QuestionId": 13, 2584 - "Text": "Comoros", 2585 - "Value": "Comoros", 2586 - "Order": 40 2587 - }, 2588 - { 2589 - "Id": 314, 2590 - "QuestionId": 13, 2591 - "Text": "Congo (Brazzaville)", 2592 - "Value": "Congo (Brazzaville)", 2593 - "Order": 41 2594 - }, 2595 - { 2596 - "Id": 322, 2597 - "QuestionId": 13, 2598 - "Text": "Congo", 2599 - "Value": "Congo", 2600 - "Order": 42 2601 - }, 2602 - { 2603 - "Id": 330, 2604 - "QuestionId": 13, 2605 - "Text": "Costa Rica", 2606 - "Value": "Costa Rica", 2607 - "Order": 43 2608 - }, 2609 - { 2610 - "Id": 338, 2611 - "QuestionId": 13, 2612 - "Text": "Cote d'Ivoire", 2613 - "Value": "Cote d'Ivoire", 2614 - "Order": 44 2615 - }, 2616 - { 2617 - "Id": 346, 2618 - "QuestionId": 13, 2619 - "Text": "Croatia", 2620 - "Value": "Croatia", 2621 - "Order": 45 2622 - }, 2623 - { 2624 - "Id": 354, 2625 - "QuestionId": 13, 2626 - "Text": "Cuba", 2627 - "Value": "Cuba", 2628 - "Order": 46 2629 - }, 2630 - { 2631 - "Id": 362, 2632 - "QuestionId": 13, 2633 - "Text": "Cyprus", 2634 - "Value": "Cyprus", 2635 - "Order": 47 2636 - }, 2637 - { 2638 - "Id": 370, 2639 - "QuestionId": 13, 2640 - "Text": "Czech Republic", 2641 - "Value": "Czech Republic", 2642 - "Order": 48 2643 - }, 2644 - { 2645 - "Id": 378, 2646 - "QuestionId": 13, 2647 - "Text": "Denmark", 2648 - "Value": "Denmark", 2649 - "Order": 49 2650 - }, 2651 - { 2652 - "Id": 386, 2653 - "QuestionId": 13, 2654 - "Text": "Djibouti", 2655 - "Value": "Djibouti", 2656 - "Order": 50 2657 - }, 2658 - { 2659 - "Id": 394, 2660 - "QuestionId": 13, 2661 - "Text": "Dominica", 2662 - "Value": "Dominica", 2663 - "Order": 51 2664 - }, 2665 - { 2666 - "Id": 402, 2667 - "QuestionId": 13, 2668 - "Text": "Dominican Republic", 2669 - "Value": "Dominican Republic", 2670 - "Order": 52 2671 - }, 2672 - { 2673 - "Id": 410, 2674 - "QuestionId": 13, 2675 - "Text": "East Timor", 2676 - "Value": "East Timor", 2677 - "Order": 53 2678 - }, 2679 - { 2680 - "Id": 418, 2681 - "QuestionId": 13, 2682 - "Text": "Ecuador", 2683 - "Value": "Ecuador", 2684 - "Order": 54 2685 - }, 2686 - { 2687 - "Id": 426, 2688 - "QuestionId": 13, 2689 - "Text": "Egypt", 2690 - "Value": "Egypt", 2691 - "Order": 55 2692 - }, 2693 - { 2694 - "Id": 434, 2695 - "QuestionId": 13, 2696 - "Text": "El Salvador", 2697 - "Value": "El Salvador", 2698 - "Order": 56 2699 - }, 2700 - { 2701 - "Id": 442, 2702 - "QuestionId": 13, 2703 - "Text": "Equatorial Guinea", 2704 - "Value": "Equatorial Guinea", 2705 - "Order": 57 2706 - }, 2707 - { 2708 - "Id": 450, 2709 - "QuestionId": 13, 2710 - "Text": "Eritrea", 2711 - "Value": "Eritrea", 2712 - "Order": 58 2713 - }, 2714 - { 2715 - "Id": 458, 2716 - "QuestionId": 13, 2717 - "Text": "Estonia", 2718 - "Value": "Estonia", 2719 - "Order": 59 2720 - }, 2721 - { 2722 - "Id": 466, 2723 - "QuestionId": 13, 2724 - "Text": "Ethiopia", 2725 - "Value": "Ethiopia", 2726 - "Order": 60 2727 - }, 2728 - { 2729 - "Id": 474, 2730 - "QuestionId": 13, 2731 - "Text": "Fiji", 2732 - "Value": "Fiji", 2733 - "Order": 61 2734 - }, 2735 - { 2736 - "Id": 482, 2737 - "QuestionId": 13, 2738 - "Text": "Finland", 2739 - "Value": "Finland", 2740 - "Order": 62 2741 - }, 2742 - { 2743 - "Id": 490, 2744 - "QuestionId": 13, 2745 - "Text": "France", 2746 - "Value": "France", 2747 - "Order": 63 2748 - }, 2749 - { 2750 - "Id": 498, 2751 - "QuestionId": 13, 2752 - "Text": "Gabon", 2753 - "Value": "Gabon", 2754 - "Order": 64 2755 - }, 2756 - { 2757 - "Id": 506, 2758 - "QuestionId": 13, 2759 - "Text": "Gambia, The", 2760 - "Value": "Gambia, The", 2761 - "Order": 65 2762 - }, 2763 - { 2764 - "Id": 514, 2765 - "QuestionId": 13, 2766 - "Text": "Georgia", 2767 - "Value": "Georgia", 2768 - "Order": 66 2769 - }, 2770 - { 2771 - "Id": 522, 2772 - "QuestionId": 13, 2773 - "Text": "Germany", 2774 - "Value": "Germany", 2775 - "Order": 67 2776 - }, 2777 - { 2778 - "Id": 530, 2779 - "QuestionId": 13, 2780 - "Text": "Ghana", 2781 - "Value": "Ghana", 2782 - "Order": 68 2783 - }, 2784 - { 2785 - "Id": 538, 2786 - "QuestionId": 13, 2787 - "Text": "Greece", 2788 - "Value": "Greece", 2789 - "Order": 69 2790 - }, 2791 - { 2792 - "Id": 546, 2793 - "QuestionId": 13, 2794 - "Text": "Grenada", 2795 - "Value": "Grenada", 2796 - "Order": 70 2797 - }, 2798 - { 2799 - "Id": 554, 2800 - "QuestionId": 13, 2801 - "Text": "Guatemala", 2802 - "Value": "Guatemala", 2803 - "Order": 71 2804 - }, 2805 - { 2806 - "Id": 562, 2807 - "QuestionId": 13, 2808 - "Text": "Guinea", 2809 - "Value": "Guinea", 2810 - "Order": 72 2811 - }, 2812 - { 2813 - "Id": 570, 2814 - "QuestionId": 13, 2815 - "Text": "Guinea-Bissau", 2816 - "Value": "Guinea-Bissau", 2817 - "Order": 73 2818 - }, 2819 - { 2820 - "Id": 578, 2821 - "QuestionId": 13, 2822 - "Text": "Guyana", 2823 - "Value": "Guyana", 2824 - "Order": 74 2825 - }, 2826 - { 2827 - "Id": 586, 2828 - "QuestionId": 13, 2829 - "Text": "Haiti", 2830 - "Value": "Haiti", 2831 - "Order": 75 2832 - }, 2833 - { 2834 - "Id": 594, 2835 - "QuestionId": 13, 2836 - "Text": "Honduras", 2837 - "Value": "Honduras", 2838 - "Order": 76 2839 - }, 2840 - { 2841 - "Id": 602, 2842 - "QuestionId": 13, 2843 - "Text": "Hungary", 2844 - "Value": "Hungary", 2845 - "Order": 77 2846 - }, 2847 - { 2848 - "Id": 610, 2849 - "QuestionId": 13, 2850 - "Text": "Iceland", 2851 - "Value": "Iceland", 2852 - "Order": 78 2853 - }, 2854 - { 2855 - "Id": 618, 2856 - "QuestionId": 13, 2857 - "Text": "India", 2858 - "Value": "India", 2859 - "Order": 79 2860 - }, 2861 - { 2862 - "Id": 626, 2863 - "QuestionId": 13, 2864 - "Text": "Indonesia", 2865 - "Value": "Indonesia", 2866 - "Order": 80 2867 - }, 2868 - { 2869 - "Id": 634, 2870 - "QuestionId": 13, 2871 - "Text": "Iran", 2872 - "Value": "Iran", 2873 - "Order": 81 2874 - }, 2875 - { 2876 - "Id": 642, 2877 - "QuestionId": 13, 2878 - "Text": "Iraq", 2879 - "Value": "Iraq", 2880 - "Order": 82 2881 - }, 2882 - { 2883 - "Id": 650, 2884 - "QuestionId": 13, 2885 - "Text": "Ireland", 2886 - "Value": "Ireland", 2887 - "Order": 83 2888 - }, 2889 - { 2890 - "Id": 658, 2891 - "QuestionId": 13, 2892 - "Text": "Israel", 2893 - "Value": "Israel", 2894 - "Order": 84 2895 - }, 2896 - { 2897 - "Id": 666, 2898 - "QuestionId": 13, 2899 - "Text": "Italy", 2900 - "Value": "Italy", 2901 - "Order": 85 2902 - }, 2903 - { 2904 - "Id": 674, 2905 - "QuestionId": 13, 2906 - "Text": "Jamaica", 2907 - "Value": "Jamaica", 2908 - "Order": 86 2909 - }, 2910 - { 2911 - "Id": 682, 2912 - "QuestionId": 13, 2913 - "Text": "Japan", 2914 - "Value": "Japan", 2915 - "Order": 87 2916 - }, 2917 - { 2918 - "Id": 690, 2919 - "QuestionId": 13, 2920 - "Text": "Jordan", 2921 - "Value": "Jordan", 2922 - "Order": 88 2923 - }, 2924 - { 2925 - "Id": 698, 2926 - "QuestionId": 13, 2927 - "Text": "Kazakhstan", 2928 - "Value": "Kazakhstan", 2929 - "Order": 89 2930 - }, 2931 - { 2932 - "Id": 706, 2933 - "QuestionId": 13, 2934 - "Text": "Kenya", 2935 - "Value": "Kenya", 2936 - "Order": 90 2937 - }, 2938 - { 2939 - "Id": 714, 2940 - "QuestionId": 13, 2941 - "Text": "Kiribati", 2942 - "Value": "Kiribati", 2943 - "Order": 91 2944 - }, 2945 - { 2946 - "Id": 722, 2947 - "QuestionId": 13, 2948 - "Text": "Korea, North", 2949 - "Value": "Korea, North", 2950 - "Order": 92 2951 - }, 2952 - { 2953 - "Id": 730, 2954 - "QuestionId": 13, 2955 - "Text": "Korea, South", 2956 - "Value": "Korea, South", 2957 - "Order": 93 2958 - }, 2959 - { 2960 - "Id": 738, 2961 - "QuestionId": 13, 2962 - "Text": "Kuwait", 2963 - "Value": "Kuwait", 2964 - "Order": 94 2965 - }, 2966 - { 2967 - "Id": 746, 2968 - "QuestionId": 13, 2969 - "Text": "Kyrgyzstan", 2970 - "Value": "Kyrgyzstan", 2971 - "Order": 95 2972 - }, 2973 - { 2974 - "Id": 754, 2975 - "QuestionId": 13, 2976 - "Text": "Laos", 2977 - "Value": "Laos", 2978 - "Order": 96 2979 - }, 2980 - { 2981 - "Id": 762, 2982 - "QuestionId": 13, 2983 - "Text": "Latvia", 2984 - "Value": "Latvia", 2985 - "Order": 97 2986 - }, 2987 - { 2988 - "Id": 770, 2989 - "QuestionId": 13, 2990 - "Text": "Lebanon", 2991 - "Value": "Lebanon", 2992 - "Order": 98 2993 - }, 2994 - { 2995 - "Id": 778, 2996 - "QuestionId": 13, 2997 - "Text": "Lesotho", 2998 - "Value": "Lesotho", 2999 - "Order": 99 3000 - }, 3001 - { 3002 - "Id": 786, 3003 - "QuestionId": 13, 3004 - "Text": "Liberia", 3005 - "Value": "Liberia", 3006 - "Order": 100 3007 - }, 3008 - { 3009 - "Id": 794, 3010 - "QuestionId": 13, 3011 - "Text": "Libya", 3012 - "Value": "Libya", 3013 - "Order": 101 3014 - }, 3015 - { 3016 - "Id": 802, 3017 - "QuestionId": 13, 3018 - "Text": "Liechtenstein", 3019 - "Value": "Liechtenstein", 3020 - "Order": 102 3021 - }, 3022 - { 3023 - "Id": 810, 3024 - "QuestionId": 13, 3025 - "Text": "Lithuania", 3026 - "Value": "Lithuania", 3027 - "Order": 103 3028 - }, 3029 - { 3030 - "Id": 818, 3031 - "QuestionId": 13, 3032 - "Text": "Luxembourg", 3033 - "Value": "Luxembourg", 3034 - "Order": 104 3035 - }, 3036 - { 3037 - "Id": 826, 3038 - "QuestionId": 13, 3039 - "Text": "Macedonia", 3040 - "Value": "Macedonia", 3041 - "Order": 105 3042 - }, 3043 - { 3044 - "Id": 834, 3045 - "QuestionId": 13, 3046 - "Text": "Madagascar", 3047 - "Value": "Madagascar", 3048 - "Order": 106 3049 - }, 3050 - { 3051 - "Id": 842, 3052 - "QuestionId": 13, 3053 - "Text": "Malawi", 3054 - "Value": "Malawi", 3055 - "Order": 107 3056 - }, 3057 - { 3058 - "Id": 850, 3059 - "QuestionId": 13, 3060 - "Text": "Malaysia", 3061 - "Value": "Malaysia", 3062 - "Order": 108 3063 - }, 3064 - { 3065 - "Id": 858, 3066 - "QuestionId": 13, 3067 - "Text": "Maldives", 3068 - "Value": "Maldives", 3069 - "Order": 109 3070 - }, 3071 - { 3072 - "Id": 866, 3073 - "QuestionId": 13, 3074 - "Text": "Mali", 3075 - "Value": "Mali", 3076 - "Order": 110 3077 - }, 3078 - { 3079 - "Id": 874, 3080 - "QuestionId": 13, 3081 - "Text": "Malta", 3082 - "Value": "Malta", 3083 - "Order": 111 3084 - }, 3085 - { 3086 - "Id": 882, 3087 - "QuestionId": 13, 3088 - "Text": "Marshall Islands", 3089 - "Value": "Marshall Islands", 3090 - "Order": 112 3091 - }, 3092 - { 3093 - "Id": 890, 3094 - "QuestionId": 13, 3095 - "Text": "Mauritania", 3096 - "Value": "Mauritania", 3097 - "Order": 113 3098 - }, 3099 - { 3100 - "Id": 898, 3101 - "QuestionId": 13, 3102 - "Text": "Mauritius", 3103 - "Value": "Mauritius", 3104 - "Order": 114 3105 - }, 3106 - { 3107 - "Id": 906, 3108 - "QuestionId": 13, 3109 - "Text": "Mexico", 3110 - "Value": "Mexico", 3111 - "Order": 115 3112 - }, 3113 - { 3114 - "Id": 914, 3115 - "QuestionId": 13, 3116 - "Text": "Micronesia", 3117 - "Value": "Micronesia", 3118 - "Order": 116 3119 - }, 3120 - { 3121 - "Id": 922, 3122 - "QuestionId": 13, 3123 - "Text": "Moldova", 3124 - "Value": "Moldova", 3125 - "Order": 117 3126 - }, 3127 - { 3128 - "Id": 930, 3129 - "QuestionId": 13, 3130 - "Text": "Monaco", 3131 - "Value": "Monaco", 3132 - "Order": 118 3133 - }, 3134 - { 3135 - "Id": 938, 3136 - "QuestionId": 13, 3137 - "Text": "Mongolia", 3138 - "Value": "Mongolia", 3139 - "Order": 119 3140 - }, 3141 - { 3142 - "Id": 946, 3143 - "QuestionId": 13, 3144 - "Text": "Morocco", 3145 - "Value": "Morocco", 3146 - "Order": 120 3147 - }, 3148 - { 3149 - "Id": 954, 3150 - "QuestionId": 13, 3151 - "Text": "Mozambique", 3152 - "Value": "Mozambique", 3153 - "Order": 121 3154 - }, 3155 - { 3156 - "Id": 962, 3157 - "QuestionId": 13, 3158 - "Text": "Myanmar", 3159 - "Value": "Myanmar", 3160 - "Order": 122 3161 - }, 3162 - { 3163 - "Id": 970, 3164 - "QuestionId": 13, 3165 - "Text": "Namibia", 3166 - "Value": "Namibia", 3167 - "Order": 123 3168 - }, 3169 - { 3170 - "Id": 978, 3171 - "QuestionId": 13, 3172 - "Text": "Nauru", 3173 - "Value": "Nauru", 3174 - "Order": 124 3175 - }, 3176 - { 3177 - "Id": 986, 3178 - "QuestionId": 13, 3179 - "Text": "Nepa", 3180 - "Value": "Nepa", 3181 - "Order": 125 3182 - }, 3183 - { 3184 - "Id": 994, 3185 - "QuestionId": 13, 3186 - "Text": "Netherlands", 3187 - "Value": "Netherlands", 3188 - "Order": 126 3189 - }, 3190 - { 3191 - "Id": 1002, 3192 - "QuestionId": 13, 3193 - "Text": "New Zealand", 3194 - "Value": "New Zealand", 3195 - "Order": 127 3196 - }, 3197 - { 3198 - "Id": 1010, 3199 - "QuestionId": 13, 3200 - "Text": "Nicaragua", 3201 - "Value": "Nicaragua", 3202 - "Order": 128 3203 - }, 3204 - { 3205 - "Id": 1018, 3206 - "QuestionId": 13, 3207 - "Text": "Niger", 3208 - "Value": "Niger", 3209 - "Order": 129 3210 - }, 3211 - { 3212 - "Id": 1026, 3213 - "QuestionId": 13, 3214 - "Text": "Nigeria", 3215 - "Value": "Nigeria", 3216 - "Order": 130 3217 - }, 3218 - { 3219 - "Id": 1034, 3220 - "QuestionId": 13, 3221 - "Text": "Norway", 3222 - "Value": "Norway", 3223 - "Order": 131 3224 - }, 3225 - { 3226 - "Id": 1042, 3227 - "QuestionId": 13, 3228 - "Text": "Oman", 3229 - "Value": "Oman", 3230 - "Order": 132 3231 - }, 3232 - { 3233 - "Id": 1050, 3234 - "QuestionId": 13, 3235 - "Text": "Pakistan", 3236 - "Value": "Pakistan", 3237 - "Order": 133 3238 - }, 3239 - { 3240 - "Id": 1058, 3241 - "QuestionId": 13, 3242 - "Text": "Palau", 3243 - "Value": "Palau", 3244 - "Order": 134 3245 - }, 3246 - { 3247 - "Id": 1066, 3248 - "QuestionId": 13, 3249 - "Text": "Panama", 3250 - "Value": "Panama", 3251 - "Order": 135 3252 - }, 3253 - { 3254 - "Id": 1074, 3255 - "QuestionId": 13, 3256 - "Text": "Papua New Guinea", 3257 - "Value": "Papua New Guinea", 3258 - "Order": 136 3259 - }, 3260 - { 3261 - "Id": 1082, 3262 - "QuestionId": 13, 3263 - "Text": "Paraguay", 3264 - "Value": "Paraguay", 3265 - "Order": 137 3266 - }, 3267 - { 3268 - "Id": 1090, 3269 - "QuestionId": 13, 3270 - "Text": "Peru", 3271 - "Value": "Peru", 3272 - "Order": 138 3273 - }, 3274 - { 3275 - "Id": 1098, 3276 - "QuestionId": 13, 3277 - "Text": "Philippines", 3278 - "Value": "Philippines", 3279 - "Order": 139 3280 - }, 3281 - { 3282 - "Id": 1106, 3283 - "QuestionId": 13, 3284 - "Text": "Poland", 3285 - "Value": "Poland", 3286 - "Order": 140 3287 - }, 3288 - { 3289 - "Id": 1114, 3290 - "QuestionId": 13, 3291 - "Text": "Portugal", 3292 - "Value": "Portugal", 3293 - "Order": 141 3294 - }, 3295 - { 3296 - "Id": 1122, 3297 - "QuestionId": 13, 3298 - "Text": "Qatar", 3299 - "Value": "Qatar", 3300 - "Order": 142 3301 - }, 3302 - { 3303 - "Id": 1130, 3304 - "QuestionId": 13, 3305 - "Text": "Romania", 3306 - "Value": "Romania", 3307 - "Order": 143 3308 - }, 3309 - { 3310 - "Id": 1138, 3311 - "QuestionId": 13, 3312 - "Text": "Russia", 3313 - "Value": "Russia", 3314 - "Order": 144 3315 - }, 3316 - { 3317 - "Id": 1146, 3318 - "QuestionId": 13, 3319 - "Text": "Rwanda", 3320 - "Value": "Rwanda", 3321 - "Order": 145 3322 - }, 3323 - { 3324 - "Id": 1154, 3325 - "QuestionId": 13, 3326 - "Text": "Saint Kitts and Nevis", 3327 - "Value": "Saint Kitts and Nevis", 3328 - "Order": 146 3329 - }, 3330 - { 3331 - "Id": 1162, 3332 - "QuestionId": 13, 3333 - "Text": "Saint Lucia", 3334 - "Value": "Saint Lucia", 3335 - "Order": 147 3336 - }, 3337 - { 3338 - "Id": 1170, 3339 - "QuestionId": 13, 3340 - "Text": "Saint Vincent", 3341 - "Value": "Saint Vincent", 3342 - "Order": 148 3343 - }, 3344 - { 3345 - "Id": 1178, 3346 - "QuestionId": 13, 3347 - "Text": "Samoa", 3348 - "Value": "Samoa", 3349 - "Order": 149 3350 - }, 3351 - { 3352 - "Id": 1186, 3353 - "QuestionId": 13, 3354 - "Text": "San Marino", 3355 - "Value": "San Marino", 3356 - "Order": 150 3357 - }, 3358 - { 3359 - "Id": 1194, 3360 - "QuestionId": 13, 3361 - "Text": "Sao Tome and Principe", 3362 - "Value": "Sao Tome and Principe", 3363 - "Order": 151 3364 - }, 3365 - { 3366 - "Id": 1202, 3367 - "QuestionId": 13, 3368 - "Text": "Saudi Arabia", 3369 - "Value": "Saudi Arabia", 3370 - "Order": 152 3371 - }, 3372 - { 3373 - "Id": 1210, 3374 - "QuestionId": 13, 3375 - "Text": "Senegal", 3376 - "Value": "Senegal", 3377 - "Order": 153 3378 - }, 3379 - { 3380 - "Id": 1218, 3381 - "QuestionId": 13, 3382 - "Text": "Serbia and Montenegro", 3383 - "Value": "Serbia and Montenegro", 3384 - "Order": 154 3385 - }, 3386 - { 3387 - "Id": 1226, 3388 - "QuestionId": 13, 3389 - "Text": "Seychelles", 3390 - "Value": "Seychelles", 3391 - "Order": 155 3392 - }, 3393 - { 3394 - "Id": 1234, 3395 - "QuestionId": 13, 3396 - "Text": "Sierra Leone", 3397 - "Value": "Sierra Leone", 3398 - "Order": 156 3399 - }, 3400 - { 3401 - "Id": 1242, 3402 - "QuestionId": 13, 3403 - "Text": "Singapore", 3404 - "Value": "Singapore", 3405 - "Order": 157 3406 - }, 3407 - { 3408 - "Id": 1250, 3409 - "QuestionId": 13, 3410 - "Text": "Slovakia", 3411 - "Value": "Slovakia", 3412 - "Order": 158 3413 - }, 3414 - { 3415 - "Id": 1258, 3416 - "QuestionId": 13, 3417 - "Text": "Slovenia", 3418 - "Value": "Slovenia", 3419 - "Order": 159 3420 - }, 3421 - { 3422 - "Id": 1266, 3423 - "QuestionId": 13, 3424 - "Text": "Solomon Islands", 3425 - "Value": "Solomon Islands", 3426 - "Order": 160 3427 - }, 3428 - { 3429 - "Id": 1274, 3430 - "QuestionId": 13, 3431 - "Text": "Somalia", 3432 - "Value": "Somalia", 3433 - "Order": 161 3434 - }, 3435 - { 3436 - "Id": 1282, 3437 - "QuestionId": 13, 3438 - "Text": "South Africa", 3439 - "Value": "South Africa", 3440 - "Order": 162 3441 - }, 3442 - { 3443 - "Id": 1290, 3444 - "QuestionId": 13, 3445 - "Text": "Spain", 3446 - "Value": "Spain", 3447 - "Order": 163 3448 - }, 3449 - { 3450 - "Id": 1298, 3451 - "QuestionId": 13, 3452 - "Text": "Sri Lanka", 3453 - "Value": "Sri Lanka", 3454 - "Order": 164 3455 - }, 3456 - { 3457 - "Id": 1306, 3458 - "QuestionId": 13, 3459 - "Text": "Sudan", 3460 - "Value": "Sudan", 3461 - "Order": 165 3462 - }, 3463 - { 3464 - "Id": 1314, 3465 - "QuestionId": 13, 3466 - "Text": "Suriname", 3467 - "Value": "Suriname", 3468 - "Order": 166 3469 - }, 3470 - { 3471 - "Id": 1322, 3472 - "QuestionId": 13, 3473 - "Text": "Swaziland", 3474 - "Value": "Swaziland", 3475 - "Order": 167 3476 - }, 3477 - { 3478 - "Id": 1330, 3479 - "QuestionId": 13, 3480 - "Text": "Sweden", 3481 - "Value": "Sweden", 3482 - "Order": 168 3483 - }, 3484 - { 3485 - "Id": 1338, 3486 - "QuestionId": 13, 3487 - "Text": "Switzerland", 3488 - "Value": "Switzerland", 3489 - "Order": 169 3490 - }, 3491 - { 3492 - "Id": 1346, 3493 - "QuestionId": 13, 3494 - "Text": "Syria", 3495 - "Value": "Syria", 3496 - "Order": 170 3497 - }, 3498 - { 3499 - "Id": 1354, 3500 - "QuestionId": 13, 3501 - "Text": "Taiwan", 3502 - "Value": "Taiwan", 3503 - "Order": 171 3504 - }, 3505 - { 3506 - "Id": 1362, 3507 - "QuestionId": 13, 3508 - "Text": "Tajikistan", 3509 - "Value": "Tajikistan", 3510 - "Order": 172 3511 - }, 3512 - { 3513 - "Id": 1370, 3514 - "QuestionId": 13, 3515 - "Text": "Tanzania", 3516 - "Value": "Tanzania", 3517 - "Order": 173 3518 - }, 3519 - { 3520 - "Id": 1378, 3521 - "QuestionId": 13, 3522 - "Text": "Thailand", 3523 - "Value": "Thailand", 3524 - "Order": 174 3525 - }, 3526 - { 3527 - "Id": 1386, 3528 - "QuestionId": 13, 3529 - "Text": "Togo", 3530 - "Value": "Togo", 3531 - "Order": 175 3532 - }, 3533 - { 3534 - "Id": 1394, 3535 - "QuestionId": 13, 3536 - "Text": "Tonga", 3537 - "Value": "Tonga", 3538 - "Order": 176 3539 - }, 3540 - { 3541 - "Id": 1402, 3542 - "QuestionId": 13, 3543 - "Text": "Trinidad and Tobago", 3544 - "Value": "Trinidad and Tobago", 3545 - "Order": 177 3546 - }, 3547 - { 3548 - "Id": 1410, 3549 - "QuestionId": 13, 3550 - "Text": "Tunisia", 3551 - "Value": "Tunisia", 3552 - "Order": 178 3553 - }, 3554 - { 3555 - "Id": 1418, 3556 - "QuestionId": 13, 3557 - "Text": "Turkey", 3558 - "Value": "Turkey", 3559 - "Order": 179 3560 - }, 3561 - { 3562 - "Id": 1426, 3563 - "QuestionId": 13, 3564 - "Text": "Turkmenistan", 3565 - "Value": "Turkmenistan", 3566 - "Order": 180 3567 - }, 3568 - { 3569 - "Id": 1434, 3570 - "QuestionId": 13, 3571 - "Text": "Tuvalu", 3572 - "Value": "Tuvalu", 3573 - "Order": 181 3574 - }, 3575 - { 3576 - "Id": 1442, 3577 - "QuestionId": 13, 3578 - "Text": "Uganda", 3579 - "Value": "Uganda", 3580 - "Order": 182 3581 - }, 3582 - { 3583 - "Id": 1450, 3584 - "QuestionId": 13, 3585 - "Text": "Ukraine", 3586 - "Value": "Ukraine", 3587 - "Order": 183 3588 - }, 3589 - { 3590 - "Id": 1458, 3591 - "QuestionId": 13, 3592 - "Text": "United Arab Emirates", 3593 - "Value": "United Arab Emirates", 3594 - "Order": 184 3595 - }, 3596 - { 3597 - "Id": 1466, 3598 - "QuestionId": 13, 3599 - "Text": "United Kingdom", 3600 - "Value": "United Kingdom", 3601 - "Order": 185 3602 - }, 3603 - { 3604 - "Id": 1474, 3605 - "QuestionId": 13, 3606 - "Text": "United States", 3607 - "Value": "United States", 3608 - "Order": 2 3609 - }, 3610 - { 3611 - "Id": 1482, 3612 - "QuestionId": 13, 3613 - "Text": "Uruguay", 3614 - "Value": "Uruguay", 3615 - "Order": 186 3616 - }, 3617 - { 3618 - "Id": 1490, 3619 - "QuestionId": 13, 3620 - "Text": "Uzbekistan", 3621 - "Value": "Uzbekistan", 3622 - "Order": 187 3623 - }, 3624 - { 3625 - "Id": 1498, 3626 - "QuestionId": 13, 3627 - "Text": "Vanuatu", 3628 - "Value": "Vanuatu", 3629 - "Order": 188 3630 - }, 3631 - { 3632 - "Id": 1506, 3633 - "QuestionId": 13, 3634 - "Text": "Vatican City", 3635 - "Value": "Vatican City", 3636 - "Order": 189 3637 - }, 3638 - { 3639 - "Id": 1514, 3640 - "QuestionId": 13, 3641 - "Text": "Venezuela", 3642 - "Value": "Venezuela", 3643 - "Order": 190 3644 - }, 3645 - { 3646 - "Id": 1522, 3647 - "QuestionId": 13, 3648 - "Text": "Vietnam", 3649 - "Value": "Vietnam", 3650 - "Order": 191 3651 - }, 3652 - { 3653 - "Id": 1530, 3654 - "QuestionId": 13, 3655 - "Text": "Yemen", 3656 - "Value": "Yemen", 3657 - "Order": 192 3658 - }, 3659 - { 3660 - "Id": 1538, 3661 - "QuestionId": 13, 3662 - "Text": "Zambia", 3663 - "Value": "Zambia", 3664 - "Order": 193 3665 - }, 3666 - { 3667 - "Id": 1546, 3668 - "QuestionId": 13, 3669 - "Text": "Zimbabwe", 3670 - "Value": "Zimbabwe", 3671 - "Order": 194 3672 - }, 3673 - { 3674 - "Id": 2186, 3675 - "QuestionId": 13, 3676 - "Text": "British Columbia", 3677 - "Value": "British Columbia", 3678 - "Order": 195 3679 - } 3680 - ] 3681 - }, 3682 - { 3683 - "Id": 14, 3684 - "Text": "Phone", 3685 - "Type": "0", 3686 - "Alias": "Phone" 3687 - }, 3688 - { 3689 - "Id": 15, 3690 - "Text": "Fax", 3691 - "Type": "0", 3692 - "Alias": "Fax" 3693 - }, 3694 - { 3695 - "Id": 18, 3696 - "Text": " NEW QUESTION", 3697 - "Type": "0", 3698 - "Alias": "" 3699 - }, 3700 - { 3701 - "Id": 26, 3702 - "Text": " NEW QUESTION", 3703 - "Type": "0", 3704 - "Alias": "" 3705 - }, 3706 - { 3707 - "Id": 34, 3708 - "Text": " NEW QUESTION", 3709 - "Type": "0", 3710 - "Alias": "" 3711 - }, 3712 - { 3713 - "Id": 42, 3714 - "Text": " NEW QUESTION", 3715 - "Type": "0", 3716 - "Alias": "" 3717 - }, 3718 - { 3719 - "Id": 50, 3720 - "Text": " NEW QUESTION", 3721 - "Type": "0", 3722 - "Alias": "" 3723 - }, 3724 - { 3725 - "Id": 58, 3726 - "Text": " NEW QUESTION", 3727 - "Type": "0", 3728 - "Alias": "" 3729 - }, 3730 - { 3731 - "Id": 66, 3732 - "Text": " NEW QUESTION", 3733 - "Type": "0", 3734 - "Alias": "" 3735 - }, 3736 - { 3737 - "Id": 74, 3738 - "Text": " NEW QUESTION", 3739 - "Type": "0", 3740 - "Alias": "" 3741 - }, 3742 - { 3743 - "Id": 82, 3744 - "Text": " NEW QUESTION", 3745 - "Type": "0", 3746 - "Alias": "" 3747 - }, 3748 - { 3749 - "Id": 90, 3750 - "Text": " NEW QUESTION", 3751 - "Type": "0", 3752 - "Alias": "" 3753 - } 3754 - ] 3755 -} 3756 -{{/code}} 3757 3757 2033 +(% class="western" %) 2034 +"result": { 3758 3758 3759 -(% id="HGETspecificQuestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)3760 - == (% class="imuBmisc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtYsc-fzomuh"style="color:#212121"%)specific Question(%%) ==2036 +(% class="western" %) 2037 +"success": "1", 3761 3761 3762 ----- 2039 +(% class="western" %) 2040 +"error": { 3763 3763 3764 -{{panel bgColor="#D3D3D3" width="100%"}} 3765 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}} 3766 -{{/panel}} 2042 +(% class="western" %) 2043 +"code": "0", 3767 3767 3768 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2045 +(% class="western" %) 2046 +"message": "" 3769 3769 3770 ----- 3771 - 3772 -(% 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}} 3773 - 3774 -==== Example ==== 3775 - 3776 ----- 3777 - 3778 -(% style="color:#6b6b6b" %)Request 3779 - 3780 -{{code language="php" theme="RDark" title="Get specific Question Request"}} 3781 -<?php 3782 - 3783 -$curl = curl_init(); 3784 - 3785 -curl_setopt_array($curl, array( 3786 - CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}', 3787 - CURLOPT_RETURNTRANSFER => true, 3788 - CURLOPT_ENCODING => '', 3789 - CURLOPT_MAXREDIRS => 10, 3790 - CURLOPT_TIMEOUT => 0, 3791 - CURLOPT_FOLLOWLOCATION => true, 3792 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 3793 - CURLOPT_CUSTOMREQUEST => 'GET', 3794 - CURLOPT_HTTPHEADER => array( 3795 - 'Appkey: {{ONECOUNT API KEY}}' 3796 - ), 3797 -)); 3798 - 3799 -$response = curl_exec($curl); 3800 - 3801 -curl_close($curl); 3802 -echo $response; 3803 -{{/code}} 3804 - 3805 - 3806 -(% style="color:#6b6b6b" %)Response 200 OK 3807 - 3808 -{{code language="yml" theme="RDark" collapse="true" title="Get specific question Response"}} 3809 -{ 3810 - "result": { 3811 - "success": "1", 3812 - "error": { 3813 - "code": "", 3814 - "message": "" 3815 - } 3816 - }, 3817 - "Questions": [ 3818 - { 3819 - "Id": 3, 3820 - "Text": "Password", 3821 - "Type": "2", 3822 - "Alias": "Password" 3823 - } 3824 - ] 2048 +(% class="western" %) 3825 3825 } 3826 -{{/code}} 3827 3827 2051 +(% class="western" %) 2052 +}, 3828 3828 3829 -(% id="HGETlookupquestionbytext" style="margin-left: 0.0px;"class="sc-fznLPX cxTVKx" %)3830 - == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh"style="color:#212121"%)lookup question by text(%%) ==2054 +(% class="western" %) 2055 +"Questions": [ 3831 3831 3832 ----- 3833 - 3834 -{{panel bgColor="#D3D3D3" width="100%"}} 3835 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Text=COUNTRY 3836 -{{/panel}} 3837 - 3838 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 3839 - 3840 ----- 3841 - 3842 -(% 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}} 3843 - 3844 -=== (% style="color:#212121" %)Query Params(%%) === 3845 - 3846 ----- 3847 - 3848 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Text COUNTRY(%%) 3849 - 3850 - 3851 -==== Example ==== 3852 - 3853 ----- 3854 - 3855 -(% style="color:#6b6b6b" %)Request 3856 - 3857 -{{code language="php" theme="RDark" title="Lookup question by text Request"}} 3858 -<?php 3859 - 3860 -$curl = curl_init(); 3861 - 3862 -curl_setopt_array($curl, array( 3863 - CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Text=COUNTRY', 3864 - CURLOPT_RETURNTRANSFER => true, 3865 - CURLOPT_ENCODING => '', 3866 - CURLOPT_MAXREDIRS => 10, 3867 - CURLOPT_TIMEOUT => 0, 3868 - CURLOPT_FOLLOWLOCATION => true, 3869 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 3870 - CURLOPT_CUSTOMREQUEST => 'GET', 3871 - CURLOPT_HTTPHEADER => array( 3872 - 'Appkey: {{ONECOUNT API KEY}}' 3873 - ), 3874 -)); 3875 - 3876 -$response = curl_exec($curl); 3877 - 3878 -curl_close($curl); 3879 -echo $response; 3880 -{{/code}} 3881 - 3882 - 3883 -(% style="color:#6b6b6b" %)Response 200 OK 3884 - 3885 -{{code language="yml" theme="RDark" collapse="true" title="Lookup question by title Response"}} 2057 +(% class="western" %) 3886 3886 { 3887 - "result": { 3888 - "success": "1", 3889 - "error": { 3890 - "code": "", 3891 - "message": "" 3892 - } 3893 - }, 3894 - "Questions": [ 3895 - { 3896 - "Id": 13, 3897 - "Text": "Country", 3898 - "Type": "4", 3899 - "Alias": "Country", 3900 - "Choices": [ 3901 - { 3902 - "Id": 2, 3903 - "QuestionId": 13, 3904 - "Text": "Select One", 3905 - "Value": "", 3906 - "Order": 1 3907 - }, 3908 - { 3909 - "Id": 10, 3910 - "QuestionId": 13, 3911 - "Text": "Afghanistan", 3912 - "Value": "Afghanistan", 3913 - "Order": 3 3914 - }, 3915 - { 3916 - "Id": 18, 3917 - "QuestionId": 13, 3918 - "Text": "Albania", 3919 - "Value": "Albania", 3920 - "Order": 4 3921 - }, 3922 - { 3923 - "Id": 26, 3924 - "QuestionId": 13, 3925 - "Text": "Algeria", 3926 - "Value": "Algeria", 3927 - "Order": 5 3928 - }, 3929 - { 3930 - "Id": 34, 3931 - "QuestionId": 13, 3932 - "Text": "Andorra", 3933 - "Value": "Andorra", 3934 - "Order": 6 3935 - }, 3936 - { 3937 - "Id": 42, 3938 - "QuestionId": 13, 3939 - "Text": "Angola", 3940 - "Value": "Angola", 3941 - "Order": 7 3942 - }, 3943 - { 3944 - "Id": 50, 3945 - "QuestionId": 13, 3946 - "Text": "Antigua and Barbuda", 3947 - "Value": "Antigua and Barbuda", 3948 - "Order": 8 3949 - }, 3950 - { 3951 - "Id": 58, 3952 - "QuestionId": 13, 3953 - "Text": "Argentina", 3954 - "Value": "Argentina", 3955 - "Order": 9 3956 - }, 3957 - { 3958 - "Id": 66, 3959 - "QuestionId": 13, 3960 - "Text": "Armenia", 3961 - "Value": "Armenia", 3962 - "Order": 10 3963 - }, 3964 - { 3965 - "Id": 74, 3966 - "QuestionId": 13, 3967 - "Text": "Australia", 3968 - "Value": "Australia", 3969 - "Order": 11 3970 - }, 3971 - { 3972 - "Id": 82, 3973 - "QuestionId": 13, 3974 - "Text": "Austria", 3975 - "Value": "Austria", 3976 - "Order": 12 3977 - }, 3978 - { 3979 - "Id": 90, 3980 - "QuestionId": 13, 3981 - "Text": "Azerbaijan", 3982 - "Value": "Azerbaijan", 3983 - "Order": 13 3984 - }, 3985 - { 3986 - "Id": 98, 3987 - "QuestionId": 13, 3988 - "Text": "Bahamas", 3989 - "Value": "Bahamas", 3990 - "Order": 14 3991 - }, 3992 - { 3993 - "Id": 106, 3994 - "QuestionId": 13, 3995 - "Text": "Bahrain", 3996 - "Value": "Bahrain", 3997 - "Order": 15 3998 - }, 3999 - { 4000 - "Id": 114, 4001 - "QuestionId": 13, 4002 - "Text": "Bangladesh", 4003 - "Value": "Bangladesh", 4004 - "Order": 16 4005 - }, 4006 - { 4007 - "Id": 122, 4008 - "QuestionId": 13, 4009 - "Text": "Barbados", 4010 - "Value": "Barbados", 4011 - "Order": 17 4012 - }, 4013 - { 4014 - "Id": 130, 4015 - "QuestionId": 13, 4016 - "Text": "Belarus", 4017 - "Value": "Belarus", 4018 - "Order": 18 4019 - }, 4020 - { 4021 - "Id": 138, 4022 - "QuestionId": 13, 4023 - "Text": "Belgium", 4024 - "Value": "Belgium", 4025 - "Order": 19 4026 - }, 4027 - { 4028 - "Id": 146, 4029 - "QuestionId": 13, 4030 - "Text": "Belize", 4031 - "Value": "Belize", 4032 - "Order": 20 4033 - }, 4034 - { 4035 - "Id": 154, 4036 - "QuestionId": 13, 4037 - "Text": "Benin", 4038 - "Value": "Benin", 4039 - "Order": 21 4040 - }, 4041 - { 4042 - "Id": 162, 4043 - "QuestionId": 13, 4044 - "Text": "Bhutan", 4045 - "Value": "Bhutan", 4046 - "Order": 22 4047 - }, 4048 - { 4049 - "Id": 170, 4050 - "QuestionId": 13, 4051 - "Text": "Bolivia", 4052 - "Value": "Bolivia", 4053 - "Order": 23 4054 - }, 4055 - { 4056 - "Id": 178, 4057 - "QuestionId": 13, 4058 - "Text": "Bosnia and Herzegovina", 4059 - "Value": "Bosnia and Herzegovina", 4060 - "Order": 24 4061 - }, 4062 - { 4063 - "Id": 186, 4064 - "QuestionId": 13, 4065 - "Text": "Botswana", 4066 - "Value": "Botswana", 4067 - "Order": 25 4068 - }, 4069 - { 4070 - "Id": 194, 4071 - "QuestionId": 13, 4072 - "Text": "Brazil", 4073 - "Value": "Brazil", 4074 - "Order": 26 4075 - }, 4076 - { 4077 - "Id": 202, 4078 - "QuestionId": 13, 4079 - "Text": "Brunei", 4080 - "Value": "Brunei", 4081 - "Order": 27 4082 - }, 4083 - { 4084 - "Id": 210, 4085 - "QuestionId": 13, 4086 - "Text": "Bulgaria", 4087 - "Value": "Bulgaria", 4088 - "Order": 28 4089 - }, 4090 - { 4091 - "Id": 218, 4092 - "QuestionId": 13, 4093 - "Text": "Burkina Faso", 4094 - "Value": "Burkina Faso", 4095 - "Order": 29 4096 - }, 4097 - { 4098 - "Id": 226, 4099 - "QuestionId": 13, 4100 - "Text": "Burundi", 4101 - "Value": "Burundi", 4102 - "Order": 30 4103 - }, 4104 - { 4105 - "Id": 234, 4106 - "QuestionId": 13, 4107 - "Text": "Cambodia", 4108 - "Value": "Cambodia", 4109 - "Order": 31 4110 - }, 4111 - { 4112 - "Id": 242, 4113 - "QuestionId": 13, 4114 - "Text": "Cameroon", 4115 - "Value": "Cameroon", 4116 - "Order": 32 4117 - }, 4118 - { 4119 - "Id": 250, 4120 - "QuestionId": 13, 4121 - "Text": "Canada", 4122 - "Value": "Canada", 4123 - "Order": 33 4124 - }, 4125 - { 4126 - "Id": 258, 4127 - "QuestionId": 13, 4128 - "Text": "Cape Verde", 4129 - "Value": "Cape Verde", 4130 - "Order": 34 4131 - }, 4132 - { 4133 - "Id": 266, 4134 - "QuestionId": 13, 4135 - "Text": "Central African Republic", 4136 - "Value": "Central African Republic", 4137 - "Order": 35 4138 - }, 4139 - { 4140 - "Id": 274, 4141 - "QuestionId": 13, 4142 - "Text": "Chad", 4143 - "Value": "Chad", 4144 - "Order": 36 4145 - }, 4146 - { 4147 - "Id": 282, 4148 - "QuestionId": 13, 4149 - "Text": "Chile", 4150 - "Value": "Chile", 4151 - "Order": 37 4152 - }, 4153 - { 4154 - "Id": 290, 4155 - "QuestionId": 13, 4156 - "Text": "China", 4157 - "Value": "China", 4158 - "Order": 38 4159 - }, 4160 - { 4161 - "Id": 298, 4162 - "QuestionId": 13, 4163 - "Text": "Colombia", 4164 - "Value": "Colombia", 4165 - "Order": 39 4166 - }, 4167 - { 4168 - "Id": 306, 4169 - "QuestionId": 13, 4170 - "Text": "Comoros", 4171 - "Value": "Comoros", 4172 - "Order": 40 4173 - }, 4174 - { 4175 - "Id": 314, 4176 - "QuestionId": 13, 4177 - "Text": "Congo (Brazzaville)", 4178 - "Value": "Congo (Brazzaville)", 4179 - "Order": 41 4180 - }, 4181 - { 4182 - "Id": 322, 4183 - "QuestionId": 13, 4184 - "Text": "Congo", 4185 - "Value": "Congo", 4186 - "Order": 42 4187 - }, 4188 - { 4189 - "Id": 330, 4190 - "QuestionId": 13, 4191 - "Text": "Costa Rica", 4192 - "Value": "Costa Rica", 4193 - "Order": 43 4194 - }, 4195 - { 4196 - "Id": 338, 4197 - "QuestionId": 13, 4198 - "Text": "Cote d'Ivoire", 4199 - "Value": "Cote d'Ivoire", 4200 - "Order": 44 4201 - }, 4202 - { 4203 - "Id": 346, 4204 - "QuestionId": 13, 4205 - "Text": "Croatia", 4206 - "Value": "Croatia", 4207 - "Order": 45 4208 - }, 4209 - { 4210 - "Id": 354, 4211 - "QuestionId": 13, 4212 - "Text": "Cuba", 4213 - "Value": "Cuba", 4214 - "Order": 46 4215 - }, 4216 - { 4217 - "Id": 362, 4218 - "QuestionId": 13, 4219 - "Text": "Cyprus", 4220 - "Value": "Cyprus", 4221 - "Order": 47 4222 - }, 4223 - { 4224 - "Id": 370, 4225 - "QuestionId": 13, 4226 - "Text": "Czech Republic", 4227 - "Value": "Czech Republic", 4228 - "Order": 48 4229 - }, 4230 - { 4231 - "Id": 378, 4232 - "QuestionId": 13, 4233 - "Text": "Denmark", 4234 - "Value": "Denmark", 4235 - "Order": 49 4236 - }, 4237 - { 4238 - "Id": 386, 4239 - "QuestionId": 13, 4240 - "Text": "Djibouti", 4241 - "Value": "Djibouti", 4242 - "Order": 50 4243 - }, 4244 - { 4245 - "Id": 394, 4246 - "QuestionId": 13, 4247 - "Text": "Dominica", 4248 - "Value": "Dominica", 4249 - "Order": 51 4250 - }, 4251 - { 4252 - "Id": 402, 4253 - "QuestionId": 13, 4254 - "Text": "Dominican Republic", 4255 - "Value": "Dominican Republic", 4256 - "Order": 52 4257 - }, 4258 - { 4259 - "Id": 410, 4260 - "QuestionId": 13, 4261 - "Text": "East Timor", 4262 - "Value": "East Timor", 4263 - "Order": 53 4264 - }, 4265 - { 4266 - "Id": 418, 4267 - "QuestionId": 13, 4268 - "Text": "Ecuador", 4269 - "Value": "Ecuador", 4270 - "Order": 54 4271 - }, 4272 - { 4273 - "Id": 426, 4274 - "QuestionId": 13, 4275 - "Text": "Egypt", 4276 - "Value": "Egypt", 4277 - "Order": 55 4278 - }, 4279 - { 4280 - "Id": 434, 4281 - "QuestionId": 13, 4282 - "Text": "El Salvador", 4283 - "Value": "El Salvador", 4284 - "Order": 56 4285 - }, 4286 - { 4287 - "Id": 442, 4288 - "QuestionId": 13, 4289 - "Text": "Equatorial Guinea", 4290 - "Value": "Equatorial Guinea", 4291 - "Order": 57 4292 - }, 4293 - { 4294 - "Id": 450, 4295 - "QuestionId": 13, 4296 - "Text": "Eritrea", 4297 - "Value": "Eritrea", 4298 - "Order": 58 4299 - }, 4300 - { 4301 - "Id": 458, 4302 - "QuestionId": 13, 4303 - "Text": "Estonia", 4304 - "Value": "Estonia", 4305 - "Order": 59 4306 - }, 4307 - { 4308 - "Id": 466, 4309 - "QuestionId": 13, 4310 - "Text": "Ethiopia", 4311 - "Value": "Ethiopia", 4312 - "Order": 60 4313 - }, 4314 - { 4315 - "Id": 474, 4316 - "QuestionId": 13, 4317 - "Text": "Fiji", 4318 - "Value": "Fiji", 4319 - "Order": 61 4320 - }, 4321 - { 4322 - "Id": 482, 4323 - "QuestionId": 13, 4324 - "Text": "Finland", 4325 - "Value": "Finland", 4326 - "Order": 62 4327 - }, 4328 - { 4329 - "Id": 490, 4330 - "QuestionId": 13, 4331 - "Text": "France", 4332 - "Value": "France", 4333 - "Order": 63 4334 - }, 4335 - { 4336 - "Id": 498, 4337 - "QuestionId": 13, 4338 - "Text": "Gabon", 4339 - "Value": "Gabon", 4340 - "Order": 64 4341 - }, 4342 - { 4343 - "Id": 506, 4344 - "QuestionId": 13, 4345 - "Text": "Gambia, The", 4346 - "Value": "Gambia, The", 4347 - "Order": 65 4348 - }, 4349 - { 4350 - "Id": 514, 4351 - "QuestionId": 13, 4352 - "Text": "Georgia", 4353 - "Value": "Georgia", 4354 - "Order": 66 4355 - }, 4356 - { 4357 - "Id": 522, 4358 - "QuestionId": 13, 4359 - "Text": "Germany", 4360 - "Value": "Germany", 4361 - "Order": 67 4362 - }, 4363 - { 4364 - "Id": 530, 4365 - "QuestionId": 13, 4366 - "Text": "Ghana", 4367 - "Value": "Ghana", 4368 - "Order": 68 4369 - }, 4370 - { 4371 - "Id": 538, 4372 - "QuestionId": 13, 4373 - "Text": "Greece", 4374 - "Value": "Greece", 4375 - "Order": 69 4376 - }, 4377 - { 4378 - "Id": 546, 4379 - "QuestionId": 13, 4380 - "Text": "Grenada", 4381 - "Value": "Grenada", 4382 - "Order": 70 4383 - }, 4384 - { 4385 - "Id": 554, 4386 - "QuestionId": 13, 4387 - "Text": "Guatemala", 4388 - "Value": "Guatemala", 4389 - "Order": 71 4390 - }, 4391 - { 4392 - "Id": 562, 4393 - "QuestionId": 13, 4394 - "Text": "Guinea", 4395 - "Value": "Guinea", 4396 - "Order": 72 4397 - }, 4398 - { 4399 - "Id": 570, 4400 - "QuestionId": 13, 4401 - "Text": "Guinea-Bissau", 4402 - "Value": "Guinea-Bissau", 4403 - "Order": 73 4404 - }, 4405 - { 4406 - "Id": 578, 4407 - "QuestionId": 13, 4408 - "Text": "Guyana", 4409 - "Value": "Guyana", 4410 - "Order": 74 4411 - }, 4412 - { 4413 - "Id": 586, 4414 - "QuestionId": 13, 4415 - "Text": "Haiti", 4416 - "Value": "Haiti", 4417 - "Order": 75 4418 - }, 4419 - { 4420 - "Id": 594, 4421 - "QuestionId": 13, 4422 - "Text": "Honduras", 4423 - "Value": "Honduras", 4424 - "Order": 76 4425 - }, 4426 - { 4427 - "Id": 602, 4428 - "QuestionId": 13, 4429 - "Text": "Hungary", 4430 - "Value": "Hungary", 4431 - "Order": 77 4432 - }, 4433 - { 4434 - "Id": 610, 4435 - "QuestionId": 13, 4436 - "Text": "Iceland", 4437 - "Value": "Iceland", 4438 - "Order": 78 4439 - }, 4440 - { 4441 - "Id": 618, 4442 - "QuestionId": 13, 4443 - "Text": "India", 4444 - "Value": "India", 4445 - "Order": 79 4446 - }, 4447 - { 4448 - "Id": 626, 4449 - "QuestionId": 13, 4450 - "Text": "Indonesia", 4451 - "Value": "Indonesia", 4452 - "Order": 80 4453 - }, 4454 - { 4455 - "Id": 634, 4456 - "QuestionId": 13, 4457 - "Text": "Iran", 4458 - "Value": "Iran", 4459 - "Order": 81 4460 - }, 4461 - { 4462 - "Id": 642, 4463 - "QuestionId": 13, 4464 - "Text": "Iraq", 4465 - "Value": "Iraq", 4466 - "Order": 82 4467 - }, 4468 - { 4469 - "Id": 650, 4470 - "QuestionId": 13, 4471 - "Text": "Ireland", 4472 - "Value": "Ireland", 4473 - "Order": 83 4474 - }, 4475 - { 4476 - "Id": 658, 4477 - "QuestionId": 13, 4478 - "Text": "Israel", 4479 - "Value": "Israel", 4480 - "Order": 84 4481 - }, 4482 - { 4483 - "Id": 666, 4484 - "QuestionId": 13, 4485 - "Text": "Italy", 4486 - "Value": "Italy", 4487 - "Order": 85 4488 - }, 4489 - { 4490 - "Id": 674, 4491 - "QuestionId": 13, 4492 - "Text": "Jamaica", 4493 - "Value": "Jamaica", 4494 - "Order": 86 4495 - }, 4496 - { 4497 - "Id": 682, 4498 - "QuestionId": 13, 4499 - "Text": "Japan", 4500 - "Value": "Japan", 4501 - "Order": 87 4502 - }, 4503 - { 4504 - "Id": 690, 4505 - "QuestionId": 13, 4506 - "Text": "Jordan", 4507 - "Value": "Jordan", 4508 - "Order": 88 4509 - }, 4510 - { 4511 - "Id": 698, 4512 - "QuestionId": 13, 4513 - "Text": "Kazakhstan", 4514 - "Value": "Kazakhstan", 4515 - "Order": 89 4516 - }, 4517 - { 4518 - "Id": 706, 4519 - "QuestionId": 13, 4520 - "Text": "Kenya", 4521 - "Value": "Kenya", 4522 - "Order": 90 4523 - }, 4524 - { 4525 - "Id": 714, 4526 - "QuestionId": 13, 4527 - "Text": "Kiribati", 4528 - "Value": "Kiribati", 4529 - "Order": 91 4530 - }, 4531 - { 4532 - "Id": 722, 4533 - "QuestionId": 13, 4534 - "Text": "Korea, North", 4535 - "Value": "Korea, North", 4536 - "Order": 92 4537 - }, 4538 - { 4539 - "Id": 730, 4540 - "QuestionId": 13, 4541 - "Text": "Korea, South", 4542 - "Value": "Korea, South", 4543 - "Order": 93 4544 - }, 4545 - { 4546 - "Id": 738, 4547 - "QuestionId": 13, 4548 - "Text": "Kuwait", 4549 - "Value": "Kuwait", 4550 - "Order": 94 4551 - }, 4552 - { 4553 - "Id": 746, 4554 - "QuestionId": 13, 4555 - "Text": "Kyrgyzstan", 4556 - "Value": "Kyrgyzstan", 4557 - "Order": 95 4558 - }, 4559 - { 4560 - "Id": 754, 4561 - "QuestionId": 13, 4562 - "Text": "Laos", 4563 - "Value": "Laos", 4564 - "Order": 96 4565 - }, 4566 - { 4567 - "Id": 762, 4568 - "QuestionId": 13, 4569 - "Text": "Latvia", 4570 - "Value": "Latvia", 4571 - "Order": 97 4572 - }, 4573 - { 4574 - "Id": 770, 4575 - "QuestionId": 13, 4576 - "Text": "Lebanon", 4577 - "Value": "Lebanon", 4578 - "Order": 98 4579 - }, 4580 - { 4581 - "Id": 778, 4582 - "QuestionId": 13, 4583 - "Text": "Lesotho", 4584 - "Value": "Lesotho", 4585 - "Order": 99 4586 - }, 4587 - { 4588 - "Id": 786, 4589 - "QuestionId": 13, 4590 - "Text": "Liberia", 4591 - "Value": "Liberia", 4592 - "Order": 100 4593 - }, 4594 - { 4595 - "Id": 794, 4596 - "QuestionId": 13, 4597 - "Text": "Libya", 4598 - "Value": "Libya", 4599 - "Order": 101 4600 - }, 4601 - { 4602 - "Id": 802, 4603 - "QuestionId": 13, 4604 - "Text": "Liechtenstein", 4605 - "Value": "Liechtenstein", 4606 - "Order": 102 4607 - }, 4608 - { 4609 - "Id": 810, 4610 - "QuestionId": 13, 4611 - "Text": "Lithuania", 4612 - "Value": "Lithuania", 4613 - "Order": 103 4614 - }, 4615 - { 4616 - "Id": 818, 4617 - "QuestionId": 13, 4618 - "Text": "Luxembourg", 4619 - "Value": "Luxembourg", 4620 - "Order": 104 4621 - }, 4622 - { 4623 - "Id": 826, 4624 - "QuestionId": 13, 4625 - "Text": "Macedonia", 4626 - "Value": "Macedonia", 4627 - "Order": 105 4628 - }, 4629 - { 4630 - "Id": 834, 4631 - "QuestionId": 13, 4632 - "Text": "Madagascar", 4633 - "Value": "Madagascar", 4634 - "Order": 106 4635 - }, 4636 - { 4637 - "Id": 842, 4638 - "QuestionId": 13, 4639 - "Text": "Malawi", 4640 - "Value": "Malawi", 4641 - "Order": 107 4642 - }, 4643 - { 4644 - "Id": 850, 4645 - "QuestionId": 13, 4646 - "Text": "Malaysia", 4647 - "Value": "Malaysia", 4648 - "Order": 108 4649 - }, 4650 - { 4651 - "Id": 858, 4652 - "QuestionId": 13, 4653 - "Text": "Maldives", 4654 - "Value": "Maldives", 4655 - "Order": 109 4656 - }, 4657 - { 4658 - "Id": 866, 4659 - "QuestionId": 13, 4660 - "Text": "Mali", 4661 - "Value": "Mali", 4662 - "Order": 110 4663 - }, 4664 - { 4665 - "Id": 874, 4666 - "QuestionId": 13, 4667 - "Text": "Malta", 4668 - "Value": "Malta", 4669 - "Order": 111 4670 - }, 4671 - { 4672 - "Id": 882, 4673 - "QuestionId": 13, 4674 - "Text": "Marshall Islands", 4675 - "Value": "Marshall Islands", 4676 - "Order": 112 4677 - }, 4678 - { 4679 - "Id": 890, 4680 - "QuestionId": 13, 4681 - "Text": "Mauritania", 4682 - "Value": "Mauritania", 4683 - "Order": 113 4684 - }, 4685 - { 4686 - "Id": 898, 4687 - "QuestionId": 13, 4688 - "Text": "Mauritius", 4689 - "Value": "Mauritius", 4690 - "Order": 114 4691 - }, 4692 - { 4693 - "Id": 906, 4694 - "QuestionId": 13, 4695 - "Text": "Mexico", 4696 - "Value": "Mexico", 4697 - "Order": 115 4698 - }, 4699 - { 4700 - "Id": 914, 4701 - "QuestionId": 13, 4702 - "Text": "Micronesia", 4703 - "Value": "Micronesia", 4704 - "Order": 116 4705 - }, 4706 - { 4707 - "Id": 922, 4708 - "QuestionId": 13, 4709 - "Text": "Moldova", 4710 - "Value": "Moldova", 4711 - "Order": 117 4712 - }, 4713 - { 4714 - "Id": 930, 4715 - "QuestionId": 13, 4716 - "Text": "Monaco", 4717 - "Value": "Monaco", 4718 - "Order": 118 4719 - }, 4720 - { 4721 - "Id": 938, 4722 - "QuestionId": 13, 4723 - "Text": "Mongolia", 4724 - "Value": "Mongolia", 4725 - "Order": 119 4726 - }, 4727 - { 4728 - "Id": 946, 4729 - "QuestionId": 13, 4730 - "Text": "Morocco", 4731 - "Value": "Morocco", 4732 - "Order": 120 4733 - }, 4734 - { 4735 - "Id": 954, 4736 - "QuestionId": 13, 4737 - "Text": "Mozambique", 4738 - "Value": "Mozambique", 4739 - "Order": 121 4740 - }, 4741 - { 4742 - "Id": 962, 4743 - "QuestionId": 13, 4744 - "Text": "Myanmar", 4745 - "Value": "Myanmar", 4746 - "Order": 122 4747 - }, 4748 - { 4749 - "Id": 970, 4750 - "QuestionId": 13, 4751 - "Text": "Namibia", 4752 - "Value": "Namibia", 4753 - "Order": 123 4754 - }, 4755 - { 4756 - "Id": 978, 4757 - "QuestionId": 13, 4758 - "Text": "Nauru", 4759 - "Value": "Nauru", 4760 - "Order": 124 4761 - }, 4762 - { 4763 - "Id": 986, 4764 - "QuestionId": 13, 4765 - "Text": "Nepa", 4766 - "Value": "Nepa", 4767 - "Order": 125 4768 - }, 4769 - { 4770 - "Id": 994, 4771 - "QuestionId": 13, 4772 - "Text": "Netherlands", 4773 - "Value": "Netherlands", 4774 - "Order": 126 4775 - }, 4776 - { 4777 - "Id": 1002, 4778 - "QuestionId": 13, 4779 - "Text": "New Zealand", 4780 - "Value": "New Zealand", 4781 - "Order": 127 4782 - }, 4783 - { 4784 - "Id": 1010, 4785 - "QuestionId": 13, 4786 - "Text": "Nicaragua", 4787 - "Value": "Nicaragua", 4788 - "Order": 128 4789 - }, 4790 - { 4791 - "Id": 1018, 4792 - "QuestionId": 13, 4793 - "Text": "Niger", 4794 - "Value": "Niger", 4795 - "Order": 129 4796 - }, 4797 - { 4798 - "Id": 1026, 4799 - "QuestionId": 13, 4800 - "Text": "Nigeria", 4801 - "Value": "Nigeria", 4802 - "Order": 130 4803 - }, 4804 - { 4805 - "Id": 1034, 4806 - "QuestionId": 13, 4807 - "Text": "Norway", 4808 - "Value": "Norway", 4809 - "Order": 131 4810 - }, 4811 - { 4812 - "Id": 1042, 4813 - "QuestionId": 13, 4814 - "Text": "Oman", 4815 - "Value": "Oman", 4816 - "Order": 132 4817 - }, 4818 - { 4819 - "Id": 1050, 4820 - "QuestionId": 13, 4821 - "Text": "Pakistan", 4822 - "Value": "Pakistan", 4823 - "Order": 133 4824 - }, 4825 - { 4826 - "Id": 1058, 4827 - "QuestionId": 13, 4828 - "Text": "Palau", 4829 - "Value": "Palau", 4830 - "Order": 134 4831 - }, 4832 - { 4833 - "Id": 1066, 4834 - "QuestionId": 13, 4835 - "Text": "Panama", 4836 - "Value": "Panama", 4837 - "Order": 135 4838 - }, 4839 - { 4840 - "Id": 1074, 4841 - "QuestionId": 13, 4842 - "Text": "Papua New Guinea", 4843 - "Value": "Papua New Guinea", 4844 - "Order": 136 4845 - }, 4846 - { 4847 - "Id": 1082, 4848 - "QuestionId": 13, 4849 - "Text": "Paraguay", 4850 - "Value": "Paraguay", 4851 - "Order": 137 4852 - }, 4853 - { 4854 - "Id": 1090, 4855 - "QuestionId": 13, 4856 - "Text": "Peru", 4857 - "Value": "Peru", 4858 - "Order": 138 4859 - }, 4860 - { 4861 - "Id": 1098, 4862 - "QuestionId": 13, 4863 - "Text": "Philippines", 4864 - "Value": "Philippines", 4865 - "Order": 139 4866 - }, 4867 - { 4868 - "Id": 1106, 4869 - "QuestionId": 13, 4870 - "Text": "Poland", 4871 - "Value": "Poland", 4872 - "Order": 140 4873 - }, 4874 - { 4875 - "Id": 1114, 4876 - "QuestionId": 13, 4877 - "Text": "Portugal", 4878 - "Value": "Portugal", 4879 - "Order": 141 4880 - }, 4881 - { 4882 - "Id": 1122, 4883 - "QuestionId": 13, 4884 - "Text": "Qatar", 4885 - "Value": "Qatar", 4886 - "Order": 142 4887 - }, 4888 - { 4889 - "Id": 1130, 4890 - "QuestionId": 13, 4891 - "Text": "Romania", 4892 - "Value": "Romania", 4893 - "Order": 143 4894 - }, 4895 - { 4896 - "Id": 1138, 4897 - "QuestionId": 13, 4898 - "Text": "Russia", 4899 - "Value": "Russia", 4900 - "Order": 144 4901 - }, 4902 - { 4903 - "Id": 1146, 4904 - "QuestionId": 13, 4905 - "Text": "Rwanda", 4906 - "Value": "Rwanda", 4907 - "Order": 145 4908 - }, 4909 - { 4910 - "Id": 1154, 4911 - "QuestionId": 13, 4912 - "Text": "Saint Kitts and Nevis", 4913 - "Value": "Saint Kitts and Nevis", 4914 - "Order": 146 4915 - }, 4916 - { 4917 - "Id": 1162, 4918 - "QuestionId": 13, 4919 - "Text": "Saint Lucia", 4920 - "Value": "Saint Lucia", 4921 - "Order": 147 4922 - }, 4923 - { 4924 - "Id": 1170, 4925 - "QuestionId": 13, 4926 - "Text": "Saint Vincent", 4927 - "Value": "Saint Vincent", 4928 - "Order": 148 4929 - }, 4930 - { 4931 - "Id": 1178, 4932 - "QuestionId": 13, 4933 - "Text": "Samoa", 4934 - "Value": "Samoa", 4935 - "Order": 149 4936 - }, 4937 - { 4938 - "Id": 1186, 4939 - "QuestionId": 13, 4940 - "Text": "San Marino", 4941 - "Value": "San Marino", 4942 - "Order": 150 4943 - }, 4944 - { 4945 - "Id": 1194, 4946 - "QuestionId": 13, 4947 - "Text": "Sao Tome and Principe", 4948 - "Value": "Sao Tome and Principe", 4949 - "Order": 151 4950 - }, 4951 - { 4952 - "Id": 1202, 4953 - "QuestionId": 13, 4954 - "Text": "Saudi Arabia", 4955 - "Value": "Saudi Arabia", 4956 - "Order": 152 4957 - }, 4958 - { 4959 - "Id": 1210, 4960 - "QuestionId": 13, 4961 - "Text": "Senegal", 4962 - "Value": "Senegal", 4963 - "Order": 153 4964 - }, 4965 - { 4966 - "Id": 1218, 4967 - "QuestionId": 13, 4968 - "Text": "Serbia and Montenegro", 4969 - "Value": "Serbia and Montenegro", 4970 - "Order": 154 4971 - }, 4972 - { 4973 - "Id": 1226, 4974 - "QuestionId": 13, 4975 - "Text": "Seychelles", 4976 - "Value": "Seychelles", 4977 - "Order": 155 4978 - }, 4979 - { 4980 - "Id": 1234, 4981 - "QuestionId": 13, 4982 - "Text": "Sierra Leone", 4983 - "Value": "Sierra Leone", 4984 - "Order": 156 4985 - }, 4986 - { 4987 - "Id": 1242, 4988 - "QuestionId": 13, 4989 - "Text": "Singapore", 4990 - "Value": "Singapore", 4991 - "Order": 157 4992 - }, 4993 - { 4994 - "Id": 1250, 4995 - "QuestionId": 13, 4996 - "Text": "Slovakia", 4997 - "Value": "Slovakia", 4998 - "Order": 158 4999 - }, 5000 - { 5001 - "Id": 1258, 5002 - "QuestionId": 13, 5003 - "Text": "Slovenia", 5004 - "Value": "Slovenia", 5005 - "Order": 159 5006 - }, 5007 - { 5008 - "Id": 1266, 5009 - "QuestionId": 13, 5010 - "Text": "Solomon Islands", 5011 - "Value": "Solomon Islands", 5012 - "Order": 160 5013 - }, 5014 - { 5015 - "Id": 1274, 5016 - "QuestionId": 13, 5017 - "Text": "Somalia", 5018 - "Value": "Somalia", 5019 - "Order": 161 5020 - }, 5021 - { 5022 - "Id": 1282, 5023 - "QuestionId": 13, 5024 - "Text": "South Africa", 5025 - "Value": "South Africa", 5026 - "Order": 162 5027 - }, 5028 - { 5029 - "Id": 1290, 5030 - "QuestionId": 13, 5031 - "Text": "Spain", 5032 - "Value": "Spain", 5033 - "Order": 163 5034 - }, 5035 - { 5036 - "Id": 1298, 5037 - "QuestionId": 13, 5038 - "Text": "Sri Lanka", 5039 - "Value": "Sri Lanka", 5040 - "Order": 164 5041 - }, 5042 - { 5043 - "Id": 1306, 5044 - "QuestionId": 13, 5045 - "Text": "Sudan", 5046 - "Value": "Sudan", 5047 - "Order": 165 5048 - }, 5049 - { 5050 - "Id": 1314, 5051 - "QuestionId": 13, 5052 - "Text": "Suriname", 5053 - "Value": "Suriname", 5054 - "Order": 166 5055 - }, 5056 - { 5057 - "Id": 1322, 5058 - "QuestionId": 13, 5059 - "Text": "Swaziland", 5060 - "Value": "Swaziland", 5061 - "Order": 167 5062 - }, 5063 - { 5064 - "Id": 1330, 5065 - "QuestionId": 13, 5066 - "Text": "Sweden", 5067 - "Value": "Sweden", 5068 - "Order": 168 5069 - }, 5070 - { 5071 - "Id": 1338, 5072 - "QuestionId": 13, 5073 - "Text": "Switzerland", 5074 - "Value": "Switzerland", 5075 - "Order": 169 5076 - }, 5077 - { 5078 - "Id": 1346, 5079 - "QuestionId": 13, 5080 - "Text": "Syria", 5081 - "Value": "Syria", 5082 - "Order": 170 5083 - }, 5084 - { 5085 - "Id": 1354, 5086 - "QuestionId": 13, 5087 - "Text": "Taiwan", 5088 - "Value": "Taiwan", 5089 - "Order": 171 5090 - }, 5091 - { 5092 - "Id": 1362, 5093 - "QuestionId": 13, 5094 - "Text": "Tajikistan", 5095 - "Value": "Tajikistan", 5096 - "Order": 172 5097 - }, 5098 - { 5099 - "Id": 1370, 5100 - "QuestionId": 13, 5101 - "Text": "Tanzania", 5102 - "Value": "Tanzania", 5103 - "Order": 173 5104 - }, 5105 - { 5106 - "Id": 1378, 5107 - "QuestionId": 13, 5108 - "Text": "Thailand", 5109 - "Value": "Thailand", 5110 - "Order": 174 5111 - }, 5112 - { 5113 - "Id": 1386, 5114 - "QuestionId": 13, 5115 - "Text": "Togo", 5116 - "Value": "Togo", 5117 - "Order": 175 5118 - }, 5119 - { 5120 - "Id": 1394, 5121 - "QuestionId": 13, 5122 - "Text": "Tonga", 5123 - "Value": "Tonga", 5124 - "Order": 176 5125 - }, 5126 - { 5127 - "Id": 1402, 5128 - "QuestionId": 13, 5129 - "Text": "Trinidad and Tobago", 5130 - "Value": "Trinidad and Tobago", 5131 - "Order": 177 5132 - }, 5133 - { 5134 - "Id": 1410, 5135 - "QuestionId": 13, 5136 - "Text": "Tunisia", 5137 - "Value": "Tunisia", 5138 - "Order": 178 5139 - }, 5140 - { 5141 - "Id": 1418, 5142 - "QuestionId": 13, 5143 - "Text": "Turkey", 5144 - "Value": "Turkey", 5145 - "Order": 179 5146 - }, 5147 - { 5148 - "Id": 1426, 5149 - "QuestionId": 13, 5150 - "Text": "Turkmenistan", 5151 - "Value": "Turkmenistan", 5152 - "Order": 180 5153 - }, 5154 - { 5155 - "Id": 1434, 5156 - "QuestionId": 13, 5157 - "Text": "Tuvalu", 5158 - "Value": "Tuvalu", 5159 - "Order": 181 5160 - }, 5161 - { 5162 - "Id": 1442, 5163 - "QuestionId": 13, 5164 - "Text": "Uganda", 5165 - "Value": "Uganda", 5166 - "Order": 182 5167 - }, 5168 - { 5169 - "Id": 1450, 5170 - "QuestionId": 13, 5171 - "Text": "Ukraine", 5172 - "Value": "Ukraine", 5173 - "Order": 183 5174 - }, 5175 - { 5176 - "Id": 1458, 5177 - "QuestionId": 13, 5178 - "Text": "United Arab Emirates", 5179 - "Value": "United Arab Emirates", 5180 - "Order": 184 5181 - }, 5182 - { 5183 - "Id": 1466, 5184 - "QuestionId": 13, 5185 - "Text": "United Kingdom", 5186 - "Value": "United Kingdom", 5187 - "Order": 185 5188 - }, 5189 - { 5190 - "Id": 1474, 5191 - "QuestionId": 13, 5192 - "Text": "United States", 5193 - "Value": "United States", 5194 - "Order": 2 5195 - }, 5196 - { 5197 - "Id": 1482, 5198 - "QuestionId": 13, 5199 - "Text": "Uruguay", 5200 - "Value": "Uruguay", 5201 - "Order": 186 5202 - }, 5203 - { 5204 - "Id": 1490, 5205 - "QuestionId": 13, 5206 - "Text": "Uzbekistan", 5207 - "Value": "Uzbekistan", 5208 - "Order": 187 5209 - }, 5210 - { 5211 - "Id": 1498, 5212 - "QuestionId": 13, 5213 - "Text": "Vanuatu", 5214 - "Value": "Vanuatu", 5215 - "Order": 188 5216 - }, 5217 - { 5218 - "Id": 1506, 5219 - "QuestionId": 13, 5220 - "Text": "Vatican City", 5221 - "Value": "Vatican City", 5222 - "Order": 189 5223 - }, 5224 - { 5225 - "Id": 1514, 5226 - "QuestionId": 13, 5227 - "Text": "Venezuela", 5228 - "Value": "Venezuela", 5229 - "Order": 190 5230 - }, 5231 - { 5232 - "Id": 1522, 5233 - "QuestionId": 13, 5234 - "Text": "Vietnam", 5235 - "Value": "Vietnam", 5236 - "Order": 191 5237 - }, 5238 - { 5239 - "Id": 1530, 5240 - "QuestionId": 13, 5241 - "Text": "Yemen", 5242 - "Value": "Yemen", 5243 - "Order": 192 5244 - }, 5245 - { 5246 - "Id": 1538, 5247 - "QuestionId": 13, 5248 - "Text": "Zambia", 5249 - "Value": "Zambia", 5250 - "Order": 193 5251 - }, 5252 - { 5253 - "Id": 1546, 5254 - "QuestionId": 13, 5255 - "Text": "Zimbabwe", 5256 - "Value": "Zimbabwe", 5257 - "Order": 194 5258 - }, 5259 - { 5260 - "Id": 2186, 5261 - "QuestionId": 13, 5262 - "Text": "British Columbia", 5263 - "Value": "British Columbia", 5264 - "Order": 195 5265 - } 5266 - ] 5267 - } 5268 - ] 5269 -} 5270 -{{/code}} 5271 5271 2060 +(% class="western" %) 2061 +"Id": "6", 5272 5272 5273 -(% id="HGETlookupquestionbyType" style="margin-left: 0.0px;"class="sc-fznLPX cxTVKx" %)5274 - == (% class="imuBmi sc-fzoaKM" style="color:#007f31"%)GET (% class="documentation-core-item-request-namejbmEtY sc-fzomuh"style="color:#212121" %)lookup question by Type(%%) ==2063 +(% class="western" %) 2064 +"Text": "FirstName", 5275 5275 5276 ----- 2066 +(% class="western" %) 2067 +"Type": "1", 5277 5277 5278 -{{panel bgColor="#D3D3D3" width="100%"}} 5279 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Type=4 5280 -{{/panel}} 2069 +(% class="western" %) 2070 +"Alias": "FName" 5281 5281 5282 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 5283 - 5284 ----- 5285 - 5286 -(% 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}} 5287 - 5288 -=== (% style="color:#212121" %)Query Params(%%) === 5289 - 5290 ----- 5291 - 5292 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Type 4(%%) 5293 - 5294 - 5295 -==== Example ==== 5296 - 5297 ----- 5298 - 5299 -(% style="color:#6b6b6b" %)Request 5300 - 5301 -{{code language="php" theme="RDark" title="Lookup question by Type Request"}} 5302 -<?php 5303 - 5304 -$curl = curl_init(); 5305 - 5306 -curl_setopt_array($curl, array( 5307 - CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Type=4', 5308 - CURLOPT_RETURNTRANSFER => true, 5309 - CURLOPT_ENCODING => '', 5310 - CURLOPT_MAXREDIRS => 10, 5311 - CURLOPT_TIMEOUT => 0, 5312 - CURLOPT_FOLLOWLOCATION => true, 5313 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 5314 - CURLOPT_CUSTOMREQUEST => 'GET', 5315 - CURLOPT_HTTPHEADER => array( 5316 - 'Appkey: {{ONECOUNT API KEY}}' 5317 - ), 5318 -)); 5319 - 5320 -$response = curl_exec($curl); 5321 - 5322 -curl_close($curl); 5323 -echo $response; 5324 -{{/code}} 5325 - 5326 - 5327 -(% style="color:#6b6b6b" %)Response 200 OK 5328 - 5329 -{{code language="yml" theme="RDark" collapse="true" title="Lookup question by type Response"}} 5330 -{ 5331 - "result": { 5332 - "success": "1", 5333 - "error": { 5334 - "code": "", 5335 - "message": "" 5336 - } 5337 - }, 5338 - "Questions": [ 5339 - { 5340 - "Id": 11, 5341 - "Text": "State/Province", 5342 - "Type": "4", 5343 - "Alias": "State/Province", 5344 - "Choices": [ 5345 - { 5346 - "Id": 1554, 5347 - "QuestionId": 11, 5348 - "Text": "Select One", 5349 - "Value": "", 5350 - "Order": 1 5351 - }, 5352 - { 5353 - "Id": 1562, 5354 - "QuestionId": 11, 5355 - "Text": "Alabama", 5356 - "Value": "AL", 5357 - "Order": 2 5358 - }, 5359 - { 5360 - "Id": 1570, 5361 - "QuestionId": 11, 5362 - "Text": "Alaska", 5363 - "Value": "AK", 5364 - "Order": 3 5365 - }, 5366 - { 5367 - "Id": 1578, 5368 - "QuestionId": 11, 5369 - "Text": "Arizona", 5370 - "Value": "AZ", 5371 - "Order": 4 5372 - }, 5373 - { 5374 - "Id": 1586, 5375 - "QuestionId": 11, 5376 - "Text": "Arkansas", 5377 - "Value": "AR", 5378 - "Order": 5 5379 - }, 5380 - { 5381 - "Id": 1594, 5382 - "QuestionId": 11, 5383 - "Text": "California", 5384 - "Value": "CA", 5385 - "Order": 6 5386 - }, 5387 - { 5388 - "Id": 1602, 5389 - "QuestionId": 11, 5390 - "Text": "Colorado", 5391 - "Value": "CO", 5392 - "Order": 7 5393 - }, 5394 - { 5395 - "Id": 1610, 5396 - "QuestionId": 11, 5397 - "Text": "Connecticut", 5398 - "Value": "CT", 5399 - "Order": 8 5400 - }, 5401 - { 5402 - "Id": 1618, 5403 - "QuestionId": 11, 5404 - "Text": "Delaware", 5405 - "Value": "DE", 5406 - "Order": 9 5407 - }, 5408 - { 5409 - "Id": 1626, 5410 - "QuestionId": 11, 5411 - "Text": "District of Columbia", 5412 - "Value": "DC", 5413 - "Order": 10 5414 - }, 5415 - { 5416 - "Id": 1634, 5417 - "QuestionId": 11, 5418 - "Text": "Florida", 5419 - "Value": "FL", 5420 - "Order": 11 5421 - }, 5422 - { 5423 - "Id": 1642, 5424 - "QuestionId": 11, 5425 - "Text": "Georgia", 5426 - "Value": "GA", 5427 - "Order": 12 5428 - }, 5429 - { 5430 - "Id": 1650, 5431 - "QuestionId": 11, 5432 - "Text": "Hawaii", 5433 - "Value": "HI", 5434 - "Order": 13 5435 - }, 5436 - { 5437 - "Id": 1658, 5438 - "QuestionId": 11, 5439 - "Text": "Idaho", 5440 - "Value": "ID", 5441 - "Order": 14 5442 - }, 5443 - { 5444 - "Id": 1666, 5445 - "QuestionId": 11, 5446 - "Text": "Illinois", 5447 - "Value": "IL", 5448 - "Order": 15 5449 - }, 5450 - { 5451 - "Id": 1674, 5452 - "QuestionId": 11, 5453 - "Text": "Indiana", 5454 - "Value": "IN", 5455 - "Order": 16 5456 - }, 5457 - { 5458 - "Id": 1682, 5459 - "QuestionId": 11, 5460 - "Text": "Iowa", 5461 - "Value": "IA", 5462 - "Order": 17 5463 - }, 5464 - { 5465 - "Id": 1690, 5466 - "QuestionId": 11, 5467 - "Text": "Kansas", 5468 - "Value": "KS", 5469 - "Order": 18 5470 - }, 5471 - { 5472 - "Id": 1698, 5473 - "QuestionId": 11, 5474 - "Text": "Kentucky", 5475 - "Value": "KY", 5476 - "Order": 19 5477 - }, 5478 - { 5479 - "Id": 1706, 5480 - "QuestionId": 11, 5481 - "Text": "Louisiana", 5482 - "Value": "LA", 5483 - "Order": 20 5484 - }, 5485 - { 5486 - "Id": 1714, 5487 - "QuestionId": 11, 5488 - "Text": "Maine", 5489 - "Value": "ME", 5490 - "Order": 21 5491 - }, 5492 - { 5493 - "Id": 1722, 5494 - "QuestionId": 11, 5495 - "Text": "Maryland", 5496 - "Value": "MD", 5497 - "Order": 22 5498 - }, 5499 - { 5500 - "Id": 1730, 5501 - "QuestionId": 11, 5502 - "Text": "Massachusetts", 5503 - "Value": "MA", 5504 - "Order": 23 5505 - }, 5506 - { 5507 - "Id": 1738, 5508 - "QuestionId": 11, 5509 - "Text": "Michigan", 5510 - "Value": "MI", 5511 - "Order": 24 5512 - }, 5513 - { 5514 - "Id": 1746, 5515 - "QuestionId": 11, 5516 - "Text": "Minnesota", 5517 - "Value": "MN", 5518 - "Order": 25 5519 - }, 5520 - { 5521 - "Id": 1754, 5522 - "QuestionId": 11, 5523 - "Text": "Mississippi", 5524 - "Value": "MS", 5525 - "Order": 26 5526 - }, 5527 - { 5528 - "Id": 1762, 5529 - "QuestionId": 11, 5530 - "Text": "Missouri", 5531 - "Value": "MO", 5532 - "Order": 27 5533 - }, 5534 - { 5535 - "Id": 1770, 5536 - "QuestionId": 11, 5537 - "Text": "Montana", 5538 - "Value": "MT", 5539 - "Order": 28 5540 - }, 5541 - { 5542 - "Id": 1778, 5543 - "QuestionId": 11, 5544 - "Text": "Nebraska", 5545 - "Value": "NE", 5546 - "Order": 29 5547 - }, 5548 - { 5549 - "Id": 1786, 5550 - "QuestionId": 11, 5551 - "Text": "Nevada", 5552 - "Value": "NV", 5553 - "Order": 30 5554 - }, 5555 - { 5556 - "Id": 1794, 5557 - "QuestionId": 11, 5558 - "Text": "New Hampshire", 5559 - "Value": "NH", 5560 - "Order": 31 5561 - }, 5562 - { 5563 - "Id": 1802, 5564 - "QuestionId": 11, 5565 - "Text": "New Jersey", 5566 - "Value": "NJ", 5567 - "Order": 32 5568 - }, 5569 - { 5570 - "Id": 1810, 5571 - "QuestionId": 11, 5572 - "Text": "New Mexico", 5573 - "Value": "NM", 5574 - "Order": 33 5575 - }, 5576 - { 5577 - "Id": 1818, 5578 - "QuestionId": 11, 5579 - "Text": "New York", 5580 - "Value": "NY", 5581 - "Order": 34 5582 - }, 5583 - { 5584 - "Id": 1826, 5585 - "QuestionId": 11, 5586 - "Text": "North Carolina", 5587 - "Value": "NC", 5588 - "Order": 35 5589 - }, 5590 - { 5591 - "Id": 1834, 5592 - "QuestionId": 11, 5593 - "Text": "Ohio", 5594 - "Value": "OH", 5595 - "Order": 37 5596 - }, 5597 - { 5598 - "Id": 1842, 5599 - "QuestionId": 11, 5600 - "Text": "Oklahoma", 5601 - "Value": "OK", 5602 - "Order": 38 5603 - }, 5604 - { 5605 - "Id": 1850, 5606 - "QuestionId": 11, 5607 - "Text": "Oregon", 5608 - "Value": "OR", 5609 - "Order": 39 5610 - }, 5611 - { 5612 - "Id": 1858, 5613 - "QuestionId": 11, 5614 - "Text": "Pennsylvania", 5615 - "Value": "PA", 5616 - "Order": 40 5617 - }, 5618 - { 5619 - "Id": 1866, 5620 - "QuestionId": 11, 5621 - "Text": "Rhode Island", 5622 - "Value": "RI", 5623 - "Order": 41 5624 - }, 5625 - { 5626 - "Id": 1874, 5627 - "QuestionId": 11, 5628 - "Text": "South Carolina", 5629 - "Value": "SC", 5630 - "Order": 42 5631 - }, 5632 - { 5633 - "Id": 1882, 5634 - "QuestionId": 11, 5635 - "Text": "South Dakota", 5636 - "Value": "SD", 5637 - "Order": 43 5638 - }, 5639 - { 5640 - "Id": 1890, 5641 - "QuestionId": 11, 5642 - "Text": "Tennessee", 5643 - "Value": "TN", 5644 - "Order": 44 5645 - }, 5646 - { 5647 - "Id": 1898, 5648 - "QuestionId": 11, 5649 - "Text": "Texas", 5650 - "Value": "TX", 5651 - "Order": 45 5652 - }, 5653 - { 5654 - "Id": 1906, 5655 - "QuestionId": 11, 5656 - "Text": "Utah", 5657 - "Value": "UT", 5658 - "Order": 46 5659 - }, 5660 - { 5661 - "Id": 1914, 5662 - "QuestionId": 11, 5663 - "Text": "Vermont", 5664 - "Value": "VT", 5665 - "Order": 47 5666 - }, 5667 - { 5668 - "Id": 1922, 5669 - "QuestionId": 11, 5670 - "Text": "Virginia", 5671 - "Value": "VA", 5672 - "Order": 48 5673 - }, 5674 - { 5675 - "Id": 1930, 5676 - "QuestionId": 11, 5677 - "Text": "Washington", 5678 - "Value": "WA", 5679 - "Order": 49 5680 - }, 5681 - { 5682 - "Id": 1938, 5683 - "QuestionId": 11, 5684 - "Text": "West Virginia", 5685 - "Value": "WV", 5686 - "Order": 50 5687 - }, 5688 - { 5689 - "Id": 1946, 5690 - "QuestionId": 11, 5691 - "Text": "Wisconsin", 5692 - "Value": "WI", 5693 - "Order": 51 5694 - }, 5695 - { 5696 - "Id": 1954, 5697 - "QuestionId": 11, 5698 - "Text": "Wyoming", 5699 - "Value": "WY", 5700 - "Order": 52 5701 - }, 5702 - { 5703 - "Id": 1962, 5704 - "QuestionId": 11, 5705 - "Text": "American Samoa", 5706 - "Value": "AS", 5707 - "Order": 53 5708 - }, 5709 - { 5710 - "Id": 1970, 5711 - "QuestionId": 11, 5712 - "Text": "North Dakota", 5713 - "Value": "ND", 5714 - "Order": 36 5715 - }, 5716 - { 5717 - "Id": 1978, 5718 - "QuestionId": 11, 5719 - "Text": "Federated States of Micronesia", 5720 - "Value": "FM", 5721 - "Order": 54 5722 - }, 5723 - { 5724 - "Id": 1986, 5725 - "QuestionId": 11, 5726 - "Text": "Guam", 5727 - "Value": "GU", 5728 - "Order": 55 5729 - }, 5730 - { 5731 - "Id": 1994, 5732 - "QuestionId": 11, 5733 - "Text": "Marshall Islands", 5734 - "Value": "MH", 5735 - "Order": 56 5736 - }, 5737 - { 5738 - "Id": 2002, 5739 - "QuestionId": 11, 5740 - "Text": "Northern Mariana Islands", 5741 - "Value": "MP", 5742 - "Order": 57 5743 - }, 5744 - { 5745 - "Id": 2010, 5746 - "QuestionId": 11, 5747 - "Text": "Palau", 5748 - "Value": "PW", 5749 - "Order": 58 5750 - }, 5751 - { 5752 - "Id": 2018, 5753 - "QuestionId": 11, 5754 - "Text": "Puerto Rico", 5755 - "Value": "PR", 5756 - "Order": 59 5757 - }, 5758 - { 5759 - "Id": 2026, 5760 - "QuestionId": 11, 5761 - "Text": "U.S. Virgin Islands", 5762 - "Value": "VI", 5763 - "Order": 60 5764 - }, 5765 - { 5766 - "Id": 2034, 5767 - "QuestionId": 11, 5768 - "Text": "Armed Forces Africa", 5769 - "Value": "AE", 5770 - "Order": 61 5771 - }, 5772 - { 5773 - "Id": 2042, 5774 - "QuestionId": 11, 5775 - "Text": "Armed Forces Americas (except Canada)", 5776 - "Value": "AA", 5777 - "Order": 62 5778 - }, 5779 - { 5780 - "Id": 2050, 5781 - "QuestionId": 11, 5782 - "Text": "Armed Forces Canada", 5783 - "Value": "AE", 5784 - "Order": 63 5785 - }, 5786 - { 5787 - "Id": 2058, 5788 - "QuestionId": 11, 5789 - "Text": "Armed Forces Europe", 5790 - "Value": "AE", 5791 - "Order": 64 5792 - }, 5793 - { 5794 - "Id": 2066, 5795 - "QuestionId": 11, 5796 - "Text": "Armed Forces Middle East", 5797 - "Value": "AE", 5798 - "Order": 65 5799 - }, 5800 - { 5801 - "Id": 2074, 5802 - "QuestionId": 11, 5803 - "Text": "Armed Forces Pacific", 5804 - "Value": "AP", 5805 - "Order": 66 5806 - }, 5807 - { 5808 - "Id": 2082, 5809 - "QuestionId": 11, 5810 - "Text": "Non-US/Not Applicable", 5811 - "Value": "Non-US/Not Applicable", 5812 - "Order": 67 5813 - }, 5814 - { 5815 - "Id": 2090, 5816 - "QuestionId": 11, 5817 - "Text": "Ontario", 5818 - "Value": "Ontario", 5819 - "Order": 68 5820 - }, 5821 - { 5822 - "Id": 2098, 5823 - "QuestionId": 11, 5824 - "Text": "Quebec", 5825 - "Value": "Quebec", 5826 - "Order": 69 5827 - }, 5828 - { 5829 - "Id": 2106, 5830 - "QuestionId": 11, 5831 - "Text": "Nova Scotia", 5832 - "Value": "Nova Scotia", 5833 - "Order": 70 5834 - }, 5835 - { 5836 - "Id": 2114, 5837 - "QuestionId": 11, 5838 - "Text": "New Brunswick", 5839 - "Value": "New Brunswick", 5840 - "Order": 71 5841 - }, 5842 - { 5843 - "Id": 2122, 5844 - "QuestionId": 11, 5845 - "Text": "Manitoba", 5846 - "Value": "Manitoba", 5847 - "Order": 72 5848 - }, 5849 - { 5850 - "Id": 2130, 5851 - "QuestionId": 11, 5852 - "Text": "Brittish Columbia", 5853 - "Value": "Brittish Columbia", 5854 - "Order": 73 5855 - }, 5856 - { 5857 - "Id": 2138, 5858 - "QuestionId": 11, 5859 - "Text": "Prince Edward Island", 5860 - "Value": "Prince Edward Island", 5861 - "Order": 74 5862 - }, 5863 - { 5864 - "Id": 2146, 5865 - "QuestionId": 11, 5866 - "Text": "Saskatchewan", 5867 - "Value": "Saskatchewan", 5868 - "Order": 75 5869 - }, 5870 - { 5871 - "Id": 2154, 5872 - "QuestionId": 11, 5873 - "Text": "Alberta", 5874 - "Value": "Alberta", 5875 - "Order": 76 5876 - }, 5877 - { 5878 - "Id": 2162, 5879 - "QuestionId": 11, 5880 - "Text": "Newfoundland and Labrador", 5881 - "Value": "Newfoundland and Labrador", 5882 - "Order": 77 5883 - }, 5884 - { 5885 - "Id": 2170, 5886 - "QuestionId": 11, 5887 - "Text": "British Columbia", 5888 - "Value": "British Columbia", 5889 - "Order": 78 5890 - }, 5891 - { 5892 - "Id": 2178, 5893 - "QuestionId": 11, 5894 - "Text": "Ontario", 5895 - "Value": "ON", 5896 - "Order": 79 5897 - } 5898 - ] 5899 - }, 5900 - { 5901 - "Id": 13, 5902 - "Text": "Country", 5903 - "Type": "4", 5904 - "Alias": "Country", 5905 - "Choices": [ 5906 - { 5907 - "Id": 2, 5908 - "QuestionId": 13, 5909 - "Text": "Select One", 5910 - "Value": "", 5911 - "Order": 1 5912 - }, 5913 - { 5914 - "Id": 10, 5915 - "QuestionId": 13, 5916 - "Text": "Afghanistan", 5917 - "Value": "Afghanistan", 5918 - "Order": 3 5919 - }, 5920 - { 5921 - "Id": 18, 5922 - "QuestionId": 13, 5923 - "Text": "Albania", 5924 - "Value": "Albania", 5925 - "Order": 4 5926 - }, 5927 - { 5928 - "Id": 26, 5929 - "QuestionId": 13, 5930 - "Text": "Algeria", 5931 - "Value": "Algeria", 5932 - "Order": 5 5933 - }, 5934 - { 5935 - "Id": 34, 5936 - "QuestionId": 13, 5937 - "Text": "Andorra", 5938 - "Value": "Andorra", 5939 - "Order": 6 5940 - }, 5941 - { 5942 - "Id": 42, 5943 - "QuestionId": 13, 5944 - "Text": "Angola", 5945 - "Value": "Angola", 5946 - "Order": 7 5947 - }, 5948 - { 5949 - "Id": 50, 5950 - "QuestionId": 13, 5951 - "Text": "Antigua and Barbuda", 5952 - "Value": "Antigua and Barbuda", 5953 - "Order": 8 5954 - }, 5955 - { 5956 - "Id": 58, 5957 - "QuestionId": 13, 5958 - "Text": "Argentina", 5959 - "Value": "Argentina", 5960 - "Order": 9 5961 - }, 5962 - { 5963 - "Id": 66, 5964 - "QuestionId": 13, 5965 - "Text": "Armenia", 5966 - "Value": "Armenia", 5967 - "Order": 10 5968 - }, 5969 - { 5970 - "Id": 74, 5971 - "QuestionId": 13, 5972 - "Text": "Australia", 5973 - "Value": "Australia", 5974 - "Order": 11 5975 - }, 5976 - { 5977 - "Id": 82, 5978 - "QuestionId": 13, 5979 - "Text": "Austria", 5980 - "Value": "Austria", 5981 - "Order": 12 5982 - }, 5983 - { 5984 - "Id": 90, 5985 - "QuestionId": 13, 5986 - "Text": "Azerbaijan", 5987 - "Value": "Azerbaijan", 5988 - "Order": 13 5989 - }, 5990 - { 5991 - "Id": 98, 5992 - "QuestionId": 13, 5993 - "Text": "Bahamas", 5994 - "Value": "Bahamas", 5995 - "Order": 14 5996 - }, 5997 - { 5998 - "Id": 106, 5999 - "QuestionId": 13, 6000 - "Text": "Bahrain", 6001 - "Value": "Bahrain", 6002 - "Order": 15 6003 - }, 6004 - { 6005 - "Id": 114, 6006 - "QuestionId": 13, 6007 - "Text": "Bangladesh", 6008 - "Value": "Bangladesh", 6009 - "Order": 16 6010 - }, 6011 - { 6012 - "Id": 122, 6013 - "QuestionId": 13, 6014 - "Text": "Barbados", 6015 - "Value": "Barbados", 6016 - "Order": 17 6017 - }, 6018 - { 6019 - "Id": 130, 6020 - "QuestionId": 13, 6021 - "Text": "Belarus", 6022 - "Value": "Belarus", 6023 - "Order": 18 6024 - }, 6025 - { 6026 - "Id": 138, 6027 - "QuestionId": 13, 6028 - "Text": "Belgium", 6029 - "Value": "Belgium", 6030 - "Order": 19 6031 - }, 6032 - { 6033 - "Id": 146, 6034 - "QuestionId": 13, 6035 - "Text": "Belize", 6036 - "Value": "Belize", 6037 - "Order": 20 6038 - }, 6039 - { 6040 - "Id": 154, 6041 - "QuestionId": 13, 6042 - "Text": "Benin", 6043 - "Value": "Benin", 6044 - "Order": 21 6045 - }, 6046 - { 6047 - "Id": 162, 6048 - "QuestionId": 13, 6049 - "Text": "Bhutan", 6050 - "Value": "Bhutan", 6051 - "Order": 22 6052 - }, 6053 - { 6054 - "Id": 170, 6055 - "QuestionId": 13, 6056 - "Text": "Bolivia", 6057 - "Value": "Bolivia", 6058 - "Order": 23 6059 - }, 6060 - { 6061 - "Id": 178, 6062 - "QuestionId": 13, 6063 - "Text": "Bosnia and Herzegovina", 6064 - "Value": "Bosnia and Herzegovina", 6065 - "Order": 24 6066 - }, 6067 - { 6068 - "Id": 186, 6069 - "QuestionId": 13, 6070 - "Text": "Botswana", 6071 - "Value": "Botswana", 6072 - "Order": 25 6073 - }, 6074 - { 6075 - "Id": 194, 6076 - "QuestionId": 13, 6077 - "Text": "Brazil", 6078 - "Value": "Brazil", 6079 - "Order": 26 6080 - }, 6081 - { 6082 - "Id": 202, 6083 - "QuestionId": 13, 6084 - "Text": "Brunei", 6085 - "Value": "Brunei", 6086 - "Order": 27 6087 - }, 6088 - { 6089 - "Id": 210, 6090 - "QuestionId": 13, 6091 - "Text": "Bulgaria", 6092 - "Value": "Bulgaria", 6093 - "Order": 28 6094 - }, 6095 - { 6096 - "Id": 218, 6097 - "QuestionId": 13, 6098 - "Text": "Burkina Faso", 6099 - "Value": "Burkina Faso", 6100 - "Order": 29 6101 - }, 6102 - { 6103 - "Id": 226, 6104 - "QuestionId": 13, 6105 - "Text": "Burundi", 6106 - "Value": "Burundi", 6107 - "Order": 30 6108 - }, 6109 - { 6110 - "Id": 234, 6111 - "QuestionId": 13, 6112 - "Text": "Cambodia", 6113 - "Value": "Cambodia", 6114 - "Order": 31 6115 - }, 6116 - { 6117 - "Id": 242, 6118 - "QuestionId": 13, 6119 - "Text": "Cameroon", 6120 - "Value": "Cameroon", 6121 - "Order": 32 6122 - }, 6123 - { 6124 - "Id": 250, 6125 - "QuestionId": 13, 6126 - "Text": "Canada", 6127 - "Value": "Canada", 6128 - "Order": 33 6129 - }, 6130 - { 6131 - "Id": 258, 6132 - "QuestionId": 13, 6133 - "Text": "Cape Verde", 6134 - "Value": "Cape Verde", 6135 - "Order": 34 6136 - }, 6137 - { 6138 - "Id": 266, 6139 - "QuestionId": 13, 6140 - "Text": "Central African Republic", 6141 - "Value": "Central African Republic", 6142 - "Order": 35 6143 - }, 6144 - { 6145 - "Id": 274, 6146 - "QuestionId": 13, 6147 - "Text": "Chad", 6148 - "Value": "Chad", 6149 - "Order": 36 6150 - }, 6151 - { 6152 - "Id": 282, 6153 - "QuestionId": 13, 6154 - "Text": "Chile", 6155 - "Value": "Chile", 6156 - "Order": 37 6157 - }, 6158 - { 6159 - "Id": 290, 6160 - "QuestionId": 13, 6161 - "Text": "China", 6162 - "Value": "China", 6163 - "Order": 38 6164 - }, 6165 - { 6166 - "Id": 298, 6167 - "QuestionId": 13, 6168 - "Text": "Colombia", 6169 - "Value": "Colombia", 6170 - "Order": 39 6171 - }, 6172 - { 6173 - "Id": 306, 6174 - "QuestionId": 13, 6175 - "Text": "Comoros", 6176 - "Value": "Comoros", 6177 - "Order": 40 6178 - }, 6179 - { 6180 - "Id": 314, 6181 - "QuestionId": 13, 6182 - "Text": "Congo (Brazzaville)", 6183 - "Value": "Congo (Brazzaville)", 6184 - "Order": 41 6185 - }, 6186 - { 6187 - "Id": 322, 6188 - "QuestionId": 13, 6189 - "Text": "Congo", 6190 - "Value": "Congo", 6191 - "Order": 42 6192 - }, 6193 - { 6194 - "Id": 330, 6195 - "QuestionId": 13, 6196 - "Text": "Costa Rica", 6197 - "Value": "Costa Rica", 6198 - "Order": 43 6199 - }, 6200 - { 6201 - "Id": 338, 6202 - "QuestionId": 13, 6203 - "Text": "Cote d'Ivoire", 6204 - "Value": "Cote d'Ivoire", 6205 - "Order": 44 6206 - }, 6207 - { 6208 - "Id": 346, 6209 - "QuestionId": 13, 6210 - "Text": "Croatia", 6211 - "Value": "Croatia", 6212 - "Order": 45 6213 - }, 6214 - { 6215 - "Id": 354, 6216 - "QuestionId": 13, 6217 - "Text": "Cuba", 6218 - "Value": "Cuba", 6219 - "Order": 46 6220 - }, 6221 - { 6222 - "Id": 362, 6223 - "QuestionId": 13, 6224 - "Text": "Cyprus", 6225 - "Value": "Cyprus", 6226 - "Order": 47 6227 - }, 6228 - { 6229 - "Id": 370, 6230 - "QuestionId": 13, 6231 - "Text": "Czech Republic", 6232 - "Value": "Czech Republic", 6233 - "Order": 48 6234 - }, 6235 - { 6236 - "Id": 378, 6237 - "QuestionId": 13, 6238 - "Text": "Denmark", 6239 - "Value": "Denmark", 6240 - "Order": 49 6241 - }, 6242 - { 6243 - "Id": 386, 6244 - "QuestionId": 13, 6245 - "Text": "Djibouti", 6246 - "Value": "Djibouti", 6247 - "Order": 50 6248 - }, 6249 - { 6250 - "Id": 394, 6251 - "QuestionId": 13, 6252 - "Text": "Dominica", 6253 - "Value": "Dominica", 6254 - "Order": 51 6255 - }, 6256 - { 6257 - "Id": 402, 6258 - "QuestionId": 13, 6259 - "Text": "Dominican Republic", 6260 - "Value": "Dominican Republic", 6261 - "Order": 52 6262 - }, 6263 - { 6264 - "Id": 410, 6265 - "QuestionId": 13, 6266 - "Text": "East Timor", 6267 - "Value": "East Timor", 6268 - "Order": 53 6269 - }, 6270 - { 6271 - "Id": 418, 6272 - "QuestionId": 13, 6273 - "Text": "Ecuador", 6274 - "Value": "Ecuador", 6275 - "Order": 54 6276 - }, 6277 - { 6278 - "Id": 426, 6279 - "QuestionId": 13, 6280 - "Text": "Egypt", 6281 - "Value": "Egypt", 6282 - "Order": 55 6283 - }, 6284 - { 6285 - "Id": 434, 6286 - "QuestionId": 13, 6287 - "Text": "El Salvador", 6288 - "Value": "El Salvador", 6289 - "Order": 56 6290 - }, 6291 - { 6292 - "Id": 442, 6293 - "QuestionId": 13, 6294 - "Text": "Equatorial Guinea", 6295 - "Value": "Equatorial Guinea", 6296 - "Order": 57 6297 - }, 6298 - { 6299 - "Id": 450, 6300 - "QuestionId": 13, 6301 - "Text": "Eritrea", 6302 - "Value": "Eritrea", 6303 - "Order": 58 6304 - }, 6305 - { 6306 - "Id": 458, 6307 - "QuestionId": 13, 6308 - "Text": "Estonia", 6309 - "Value": "Estonia", 6310 - "Order": 59 6311 - }, 6312 - { 6313 - "Id": 466, 6314 - "QuestionId": 13, 6315 - "Text": "Ethiopia", 6316 - "Value": "Ethiopia", 6317 - "Order": 60 6318 - }, 6319 - { 6320 - "Id": 474, 6321 - "QuestionId": 13, 6322 - "Text": "Fiji", 6323 - "Value": "Fiji", 6324 - "Order": 61 6325 - }, 6326 - { 6327 - "Id": 482, 6328 - "QuestionId": 13, 6329 - "Text": "Finland", 6330 - "Value": "Finland", 6331 - "Order": 62 6332 - }, 6333 - { 6334 - "Id": 490, 6335 - "QuestionId": 13, 6336 - "Text": "France", 6337 - "Value": "France", 6338 - "Order": 63 6339 - }, 6340 - { 6341 - "Id": 498, 6342 - "QuestionId": 13, 6343 - "Text": "Gabon", 6344 - "Value": "Gabon", 6345 - "Order": 64 6346 - }, 6347 - { 6348 - "Id": 506, 6349 - "QuestionId": 13, 6350 - "Text": "Gambia, The", 6351 - "Value": "Gambia, The", 6352 - "Order": 65 6353 - }, 6354 - { 6355 - "Id": 514, 6356 - "QuestionId": 13, 6357 - "Text": "Georgia", 6358 - "Value": "Georgia", 6359 - "Order": 66 6360 - }, 6361 - { 6362 - "Id": 522, 6363 - "QuestionId": 13, 6364 - "Text": "Germany", 6365 - "Value": "Germany", 6366 - "Order": 67 6367 - }, 6368 - { 6369 - "Id": 530, 6370 - "QuestionId": 13, 6371 - "Text": "Ghana", 6372 - "Value": "Ghana", 6373 - "Order": 68 6374 - }, 6375 - { 6376 - "Id": 538, 6377 - "QuestionId": 13, 6378 - "Text": "Greece", 6379 - "Value": "Greece", 6380 - "Order": 69 6381 - }, 6382 - { 6383 - "Id": 546, 6384 - "QuestionId": 13, 6385 - "Text": "Grenada", 6386 - "Value": "Grenada", 6387 - "Order": 70 6388 - }, 6389 - { 6390 - "Id": 554, 6391 - "QuestionId": 13, 6392 - "Text": "Guatemala", 6393 - "Value": "Guatemala", 6394 - "Order": 71 6395 - }, 6396 - { 6397 - "Id": 562, 6398 - "QuestionId": 13, 6399 - "Text": "Guinea", 6400 - "Value": "Guinea", 6401 - "Order": 72 6402 - }, 6403 - { 6404 - "Id": 570, 6405 - "QuestionId": 13, 6406 - "Text": "Guinea-Bissau", 6407 - "Value": "Guinea-Bissau", 6408 - "Order": 73 6409 - }, 6410 - { 6411 - "Id": 578, 6412 - "QuestionId": 13, 6413 - "Text": "Guyana", 6414 - "Value": "Guyana", 6415 - "Order": 74 6416 - }, 6417 - { 6418 - "Id": 586, 6419 - "QuestionId": 13, 6420 - "Text": "Haiti", 6421 - "Value": "Haiti", 6422 - "Order": 75 6423 - }, 6424 - { 6425 - "Id": 594, 6426 - "QuestionId": 13, 6427 - "Text": "Honduras", 6428 - "Value": "Honduras", 6429 - "Order": 76 6430 - }, 6431 - { 6432 - "Id": 602, 6433 - "QuestionId": 13, 6434 - "Text": "Hungary", 6435 - "Value": "Hungary", 6436 - "Order": 77 6437 - }, 6438 - { 6439 - "Id": 610, 6440 - "QuestionId": 13, 6441 - "Text": "Iceland", 6442 - "Value": "Iceland", 6443 - "Order": 78 6444 - }, 6445 - { 6446 - "Id": 618, 6447 - "QuestionId": 13, 6448 - "Text": "India", 6449 - "Value": "India", 6450 - "Order": 79 6451 - }, 6452 - { 6453 - "Id": 626, 6454 - "QuestionId": 13, 6455 - "Text": "Indonesia", 6456 - "Value": "Indonesia", 6457 - "Order": 80 6458 - }, 6459 - { 6460 - "Id": 634, 6461 - "QuestionId": 13, 6462 - "Text": "Iran", 6463 - "Value": "Iran", 6464 - "Order": 81 6465 - }, 6466 - { 6467 - "Id": 642, 6468 - "QuestionId": 13, 6469 - "Text": "Iraq", 6470 - "Value": "Iraq", 6471 - "Order": 82 6472 - }, 6473 - { 6474 - "Id": 650, 6475 - "QuestionId": 13, 6476 - "Text": "Ireland", 6477 - "Value": "Ireland", 6478 - "Order": 83 6479 - }, 6480 - { 6481 - "Id": 658, 6482 - "QuestionId": 13, 6483 - "Text": "Israel", 6484 - "Value": "Israel", 6485 - "Order": 84 6486 - }, 6487 - { 6488 - "Id": 666, 6489 - "QuestionId": 13, 6490 - "Text": "Italy", 6491 - "Value": "Italy", 6492 - "Order": 85 6493 - }, 6494 - { 6495 - "Id": 674, 6496 - "QuestionId": 13, 6497 - "Text": "Jamaica", 6498 - "Value": "Jamaica", 6499 - "Order": 86 6500 - }, 6501 - { 6502 - "Id": 682, 6503 - "QuestionId": 13, 6504 - "Text": "Japan", 6505 - "Value": "Japan", 6506 - "Order": 87 6507 - }, 6508 - { 6509 - "Id": 690, 6510 - "QuestionId": 13, 6511 - "Text": "Jordan", 6512 - "Value": "Jordan", 6513 - "Order": 88 6514 - }, 6515 - { 6516 - "Id": 698, 6517 - "QuestionId": 13, 6518 - "Text": "Kazakhstan", 6519 - "Value": "Kazakhstan", 6520 - "Order": 89 6521 - }, 6522 - { 6523 - "Id": 706, 6524 - "QuestionId": 13, 6525 - "Text": "Kenya", 6526 - "Value": "Kenya", 6527 - "Order": 90 6528 - }, 6529 - { 6530 - "Id": 714, 6531 - "QuestionId": 13, 6532 - "Text": "Kiribati", 6533 - "Value": "Kiribati", 6534 - "Order": 91 6535 - }, 6536 - { 6537 - "Id": 722, 6538 - "QuestionId": 13, 6539 - "Text": "Korea, North", 6540 - "Value": "Korea, North", 6541 - "Order": 92 6542 - }, 6543 - { 6544 - "Id": 730, 6545 - "QuestionId": 13, 6546 - "Text": "Korea, South", 6547 - "Value": "Korea, South", 6548 - "Order": 93 6549 - }, 6550 - { 6551 - "Id": 738, 6552 - "QuestionId": 13, 6553 - "Text": "Kuwait", 6554 - "Value": "Kuwait", 6555 - "Order": 94 6556 - }, 6557 - { 6558 - "Id": 746, 6559 - "QuestionId": 13, 6560 - "Text": "Kyrgyzstan", 6561 - "Value": "Kyrgyzstan", 6562 - "Order": 95 6563 - }, 6564 - { 6565 - "Id": 754, 6566 - "QuestionId": 13, 6567 - "Text": "Laos", 6568 - "Value": "Laos", 6569 - "Order": 96 6570 - }, 6571 - { 6572 - "Id": 762, 6573 - "QuestionId": 13, 6574 - "Text": "Latvia", 6575 - "Value": "Latvia", 6576 - "Order": 97 6577 - }, 6578 - { 6579 - "Id": 770, 6580 - "QuestionId": 13, 6581 - "Text": "Lebanon", 6582 - "Value": "Lebanon", 6583 - "Order": 98 6584 - }, 6585 - { 6586 - "Id": 778, 6587 - "QuestionId": 13, 6588 - "Text": "Lesotho", 6589 - "Value": "Lesotho", 6590 - "Order": 99 6591 - }, 6592 - { 6593 - "Id": 786, 6594 - "QuestionId": 13, 6595 - "Text": "Liberia", 6596 - "Value": "Liberia", 6597 - "Order": 100 6598 - }, 6599 - { 6600 - "Id": 794, 6601 - "QuestionId": 13, 6602 - "Text": "Libya", 6603 - "Value": "Libya", 6604 - "Order": 101 6605 - }, 6606 - { 6607 - "Id": 802, 6608 - "QuestionId": 13, 6609 - "Text": "Liechtenstein", 6610 - "Value": "Liechtenstein", 6611 - "Order": 102 6612 - }, 6613 - { 6614 - "Id": 810, 6615 - "QuestionId": 13, 6616 - "Text": "Lithuania", 6617 - "Value": "Lithuania", 6618 - "Order": 103 6619 - }, 6620 - { 6621 - "Id": 818, 6622 - "QuestionId": 13, 6623 - "Text": "Luxembourg", 6624 - "Value": "Luxembourg", 6625 - "Order": 104 6626 - }, 6627 - { 6628 - "Id": 826, 6629 - "QuestionId": 13, 6630 - "Text": "Macedonia", 6631 - "Value": "Macedonia", 6632 - "Order": 105 6633 - }, 6634 - { 6635 - "Id": 834, 6636 - "QuestionId": 13, 6637 - "Text": "Madagascar", 6638 - "Value": "Madagascar", 6639 - "Order": 106 6640 - }, 6641 - { 6642 - "Id": 842, 6643 - "QuestionId": 13, 6644 - "Text": "Malawi", 6645 - "Value": "Malawi", 6646 - "Order": 107 6647 - }, 6648 - { 6649 - "Id": 850, 6650 - "QuestionId": 13, 6651 - "Text": "Malaysia", 6652 - "Value": "Malaysia", 6653 - "Order": 108 6654 - }, 6655 - { 6656 - "Id": 858, 6657 - "QuestionId": 13, 6658 - "Text": "Maldives", 6659 - "Value": "Maldives", 6660 - "Order": 109 6661 - }, 6662 - { 6663 - "Id": 866, 6664 - "QuestionId": 13, 6665 - "Text": "Mali", 6666 - "Value": "Mali", 6667 - "Order": 110 6668 - }, 6669 - { 6670 - "Id": 874, 6671 - "QuestionId": 13, 6672 - "Text": "Malta", 6673 - "Value": "Malta", 6674 - "Order": 111 6675 - }, 6676 - { 6677 - "Id": 882, 6678 - "QuestionId": 13, 6679 - "Text": "Marshall Islands", 6680 - "Value": "Marshall Islands", 6681 - "Order": 112 6682 - }, 6683 - { 6684 - "Id": 890, 6685 - "QuestionId": 13, 6686 - "Text": "Mauritania", 6687 - "Value": "Mauritania", 6688 - "Order": 113 6689 - }, 6690 - { 6691 - "Id": 898, 6692 - "QuestionId": 13, 6693 - "Text": "Mauritius", 6694 - "Value": "Mauritius", 6695 - "Order": 114 6696 - }, 6697 - { 6698 - "Id": 906, 6699 - "QuestionId": 13, 6700 - "Text": "Mexico", 6701 - "Value": "Mexico", 6702 - "Order": 115 6703 - }, 6704 - { 6705 - "Id": 914, 6706 - "QuestionId": 13, 6707 - "Text": "Micronesia", 6708 - "Value": "Micronesia", 6709 - "Order": 116 6710 - }, 6711 - { 6712 - "Id": 922, 6713 - "QuestionId": 13, 6714 - "Text": "Moldova", 6715 - "Value": "Moldova", 6716 - "Order": 117 6717 - }, 6718 - { 6719 - "Id": 930, 6720 - "QuestionId": 13, 6721 - "Text": "Monaco", 6722 - "Value": "Monaco", 6723 - "Order": 118 6724 - }, 6725 - { 6726 - "Id": 938, 6727 - "QuestionId": 13, 6728 - "Text": "Mongolia", 6729 - "Value": "Mongolia", 6730 - "Order": 119 6731 - }, 6732 - { 6733 - "Id": 946, 6734 - "QuestionId": 13, 6735 - "Text": "Morocco", 6736 - "Value": "Morocco", 6737 - "Order": 120 6738 - }, 6739 - { 6740 - "Id": 954, 6741 - "QuestionId": 13, 6742 - "Text": "Mozambique", 6743 - "Value": "Mozambique", 6744 - "Order": 121 6745 - }, 6746 - { 6747 - "Id": 962, 6748 - "QuestionId": 13, 6749 - "Text": "Myanmar", 6750 - "Value": "Myanmar", 6751 - "Order": 122 6752 - }, 6753 - { 6754 - "Id": 970, 6755 - "QuestionId": 13, 6756 - "Text": "Namibia", 6757 - "Value": "Namibia", 6758 - "Order": 123 6759 - }, 6760 - { 6761 - "Id": 978, 6762 - "QuestionId": 13, 6763 - "Text": "Nauru", 6764 - "Value": "Nauru", 6765 - "Order": 124 6766 - }, 6767 - { 6768 - "Id": 986, 6769 - "QuestionId": 13, 6770 - "Text": "Nepa", 6771 - "Value": "Nepa", 6772 - "Order": 125 6773 - }, 6774 - { 6775 - "Id": 994, 6776 - "QuestionId": 13, 6777 - "Text": "Netherlands", 6778 - "Value": "Netherlands", 6779 - "Order": 126 6780 - }, 6781 - { 6782 - "Id": 1002, 6783 - "QuestionId": 13, 6784 - "Text": "New Zealand", 6785 - "Value": "New Zealand", 6786 - "Order": 127 6787 - }, 6788 - { 6789 - "Id": 1010, 6790 - "QuestionId": 13, 6791 - "Text": "Nicaragua", 6792 - "Value": "Nicaragua", 6793 - "Order": 128 6794 - }, 6795 - { 6796 - "Id": 1018, 6797 - "QuestionId": 13, 6798 - "Text": "Niger", 6799 - "Value": "Niger", 6800 - "Order": 129 6801 - }, 6802 - { 6803 - "Id": 1026, 6804 - "QuestionId": 13, 6805 - "Text": "Nigeria", 6806 - "Value": "Nigeria", 6807 - "Order": 130 6808 - }, 6809 - { 6810 - "Id": 1034, 6811 - "QuestionId": 13, 6812 - "Text": "Norway", 6813 - "Value": "Norway", 6814 - "Order": 131 6815 - }, 6816 - { 6817 - "Id": 1042, 6818 - "QuestionId": 13, 6819 - "Text": "Oman", 6820 - "Value": "Oman", 6821 - "Order": 132 6822 - }, 6823 - { 6824 - "Id": 1050, 6825 - "QuestionId": 13, 6826 - "Text": "Pakistan", 6827 - "Value": "Pakistan", 6828 - "Order": 133 6829 - }, 6830 - { 6831 - "Id": 1058, 6832 - "QuestionId": 13, 6833 - "Text": "Palau", 6834 - "Value": "Palau", 6835 - "Order": 134 6836 - }, 6837 - { 6838 - "Id": 1066, 6839 - "QuestionId": 13, 6840 - "Text": "Panama", 6841 - "Value": "Panama", 6842 - "Order": 135 6843 - }, 6844 - { 6845 - "Id": 1074, 6846 - "QuestionId": 13, 6847 - "Text": "Papua New Guinea", 6848 - "Value": "Papua New Guinea", 6849 - "Order": 136 6850 - }, 6851 - { 6852 - "Id": 1082, 6853 - "QuestionId": 13, 6854 - "Text": "Paraguay", 6855 - "Value": "Paraguay", 6856 - "Order": 137 6857 - }, 6858 - { 6859 - "Id": 1090, 6860 - "QuestionId": 13, 6861 - "Text": "Peru", 6862 - "Value": "Peru", 6863 - "Order": 138 6864 - }, 6865 - { 6866 - "Id": 1098, 6867 - "QuestionId": 13, 6868 - "Text": "Philippines", 6869 - "Value": "Philippines", 6870 - "Order": 139 6871 - }, 6872 - { 6873 - "Id": 1106, 6874 - "QuestionId": 13, 6875 - "Text": "Poland", 6876 - "Value": "Poland", 6877 - "Order": 140 6878 - }, 6879 - { 6880 - "Id": 1114, 6881 - "QuestionId": 13, 6882 - "Text": "Portugal", 6883 - "Value": "Portugal", 6884 - "Order": 141 6885 - }, 6886 - { 6887 - "Id": 1122, 6888 - "QuestionId": 13, 6889 - "Text": "Qatar", 6890 - "Value": "Qatar", 6891 - "Order": 142 6892 - }, 6893 - { 6894 - "Id": 1130, 6895 - "QuestionId": 13, 6896 - "Text": "Romania", 6897 - "Value": "Romania", 6898 - "Order": 143 6899 - }, 6900 - { 6901 - "Id": 1138, 6902 - "QuestionId": 13, 6903 - "Text": "Russia", 6904 - "Value": "Russia", 6905 - "Order": 144 6906 - }, 6907 - { 6908 - "Id": 1146, 6909 - "QuestionId": 13, 6910 - "Text": "Rwanda", 6911 - "Value": "Rwanda", 6912 - "Order": 145 6913 - }, 6914 - { 6915 - "Id": 1154, 6916 - "QuestionId": 13, 6917 - "Text": "Saint Kitts and Nevis", 6918 - "Value": "Saint Kitts and Nevis", 6919 - "Order": 146 6920 - }, 6921 - { 6922 - "Id": 1162, 6923 - "QuestionId": 13, 6924 - "Text": "Saint Lucia", 6925 - "Value": "Saint Lucia", 6926 - "Order": 147 6927 - }, 6928 - { 6929 - "Id": 1170, 6930 - "QuestionId": 13, 6931 - "Text": "Saint Vincent", 6932 - "Value": "Saint Vincent", 6933 - "Order": 148 6934 - }, 6935 - { 6936 - "Id": 1178, 6937 - "QuestionId": 13, 6938 - "Text": "Samoa", 6939 - "Value": "Samoa", 6940 - "Order": 149 6941 - }, 6942 - { 6943 - "Id": 1186, 6944 - "QuestionId": 13, 6945 - "Text": "San Marino", 6946 - "Value": "San Marino", 6947 - "Order": 150 6948 - }, 6949 - { 6950 - "Id": 1194, 6951 - "QuestionId": 13, 6952 - "Text": "Sao Tome and Principe", 6953 - "Value": "Sao Tome and Principe", 6954 - "Order": 151 6955 - }, 6956 - { 6957 - "Id": 1202, 6958 - "QuestionId": 13, 6959 - "Text": "Saudi Arabia", 6960 - "Value": "Saudi Arabia", 6961 - "Order": 152 6962 - }, 6963 - { 6964 - "Id": 1210, 6965 - "QuestionId": 13, 6966 - "Text": "Senegal", 6967 - "Value": "Senegal", 6968 - "Order": 153 6969 - }, 6970 - { 6971 - "Id": 1218, 6972 - "QuestionId": 13, 6973 - "Text": "Serbia and Montenegro", 6974 - "Value": "Serbia and Montenegro", 6975 - "Order": 154 6976 - }, 6977 - { 6978 - "Id": 1226, 6979 - "QuestionId": 13, 6980 - "Text": "Seychelles", 6981 - "Value": "Seychelles", 6982 - "Order": 155 6983 - }, 6984 - { 6985 - "Id": 1234, 6986 - "QuestionId": 13, 6987 - "Text": "Sierra Leone", 6988 - "Value": "Sierra Leone", 6989 - "Order": 156 6990 - }, 6991 - { 6992 - "Id": 1242, 6993 - "QuestionId": 13, 6994 - "Text": "Singapore", 6995 - "Value": "Singapore", 6996 - "Order": 157 6997 - }, 6998 - { 6999 - "Id": 1250, 7000 - "QuestionId": 13, 7001 - "Text": "Slovakia", 7002 - "Value": "Slovakia", 7003 - "Order": 158 7004 - }, 7005 - { 7006 - "Id": 1258, 7007 - "QuestionId": 13, 7008 - "Text": "Slovenia", 7009 - "Value": "Slovenia", 7010 - "Order": 159 7011 - }, 7012 - { 7013 - "Id": 1266, 7014 - "QuestionId": 13, 7015 - "Text": "Solomon Islands", 7016 - "Value": "Solomon Islands", 7017 - "Order": 160 7018 - }, 7019 - { 7020 - "Id": 1274, 7021 - "QuestionId": 13, 7022 - "Text": "Somalia", 7023 - "Value": "Somalia", 7024 - "Order": 161 7025 - }, 7026 - { 7027 - "Id": 1282, 7028 - "QuestionId": 13, 7029 - "Text": "South Africa", 7030 - "Value": "South Africa", 7031 - "Order": 162 7032 - }, 7033 - { 7034 - "Id": 1290, 7035 - "QuestionId": 13, 7036 - "Text": "Spain", 7037 - "Value": "Spain", 7038 - "Order": 163 7039 - }, 7040 - { 7041 - "Id": 1298, 7042 - "QuestionId": 13, 7043 - "Text": "Sri Lanka", 7044 - "Value": "Sri Lanka", 7045 - "Order": 164 7046 - }, 7047 - { 7048 - "Id": 1306, 7049 - "QuestionId": 13, 7050 - "Text": "Sudan", 7051 - "Value": "Sudan", 7052 - "Order": 165 7053 - }, 7054 - { 7055 - "Id": 1314, 7056 - "QuestionId": 13, 7057 - "Text": "Suriname", 7058 - "Value": "Suriname", 7059 - "Order": 166 7060 - }, 7061 - { 7062 - "Id": 1322, 7063 - "QuestionId": 13, 7064 - "Text": "Swaziland", 7065 - "Value": "Swaziland", 7066 - "Order": 167 7067 - }, 7068 - { 7069 - "Id": 1330, 7070 - "QuestionId": 13, 7071 - "Text": "Sweden", 7072 - "Value": "Sweden", 7073 - "Order": 168 7074 - }, 7075 - { 7076 - "Id": 1338, 7077 - "QuestionId": 13, 7078 - "Text": "Switzerland", 7079 - "Value": "Switzerland", 7080 - "Order": 169 7081 - }, 7082 - { 7083 - "Id": 1346, 7084 - "QuestionId": 13, 7085 - "Text": "Syria", 7086 - "Value": "Syria", 7087 - "Order": 170 7088 - }, 7089 - { 7090 - "Id": 1354, 7091 - "QuestionId": 13, 7092 - "Text": "Taiwan", 7093 - "Value": "Taiwan", 7094 - "Order": 171 7095 - }, 7096 - { 7097 - "Id": 1362, 7098 - "QuestionId": 13, 7099 - "Text": "Tajikistan", 7100 - "Value": "Tajikistan", 7101 - "Order": 172 7102 - }, 7103 - { 7104 - "Id": 1370, 7105 - "QuestionId": 13, 7106 - "Text": "Tanzania", 7107 - "Value": "Tanzania", 7108 - "Order": 173 7109 - }, 7110 - { 7111 - "Id": 1378, 7112 - "QuestionId": 13, 7113 - "Text": "Thailand", 7114 - "Value": "Thailand", 7115 - "Order": 174 7116 - }, 7117 - { 7118 - "Id": 1386, 7119 - "QuestionId": 13, 7120 - "Text": "Togo", 7121 - "Value": "Togo", 7122 - "Order": 175 7123 - }, 7124 - { 7125 - "Id": 1394, 7126 - "QuestionId": 13, 7127 - "Text": "Tonga", 7128 - "Value": "Tonga", 7129 - "Order": 176 7130 - }, 7131 - { 7132 - "Id": 1402, 7133 - "QuestionId": 13, 7134 - "Text": "Trinidad and Tobago", 7135 - "Value": "Trinidad and Tobago", 7136 - "Order": 177 7137 - }, 7138 - { 7139 - "Id": 1410, 7140 - "QuestionId": 13, 7141 - "Text": "Tunisia", 7142 - "Value": "Tunisia", 7143 - "Order": 178 7144 - }, 7145 - { 7146 - "Id": 1418, 7147 - "QuestionId": 13, 7148 - "Text": "Turkey", 7149 - "Value": "Turkey", 7150 - "Order": 179 7151 - }, 7152 - { 7153 - "Id": 1426, 7154 - "QuestionId": 13, 7155 - "Text": "Turkmenistan", 7156 - "Value": "Turkmenistan", 7157 - "Order": 180 7158 - }, 7159 - { 7160 - "Id": 1434, 7161 - "QuestionId": 13, 7162 - "Text": "Tuvalu", 7163 - "Value": "Tuvalu", 7164 - "Order": 181 7165 - }, 7166 - { 7167 - "Id": 1442, 7168 - "QuestionId": 13, 7169 - "Text": "Uganda", 7170 - "Value": "Uganda", 7171 - "Order": 182 7172 - }, 7173 - { 7174 - "Id": 1450, 7175 - "QuestionId": 13, 7176 - "Text": "Ukraine", 7177 - "Value": "Ukraine", 7178 - "Order": 183 7179 - }, 7180 - { 7181 - "Id": 1458, 7182 - "QuestionId": 13, 7183 - "Text": "United Arab Emirates", 7184 - "Value": "United Arab Emirates", 7185 - "Order": 184 7186 - }, 7187 - { 7188 - "Id": 1466, 7189 - "QuestionId": 13, 7190 - "Text": "United Kingdom", 7191 - "Value": "United Kingdom", 7192 - "Order": 185 7193 - }, 7194 - { 7195 - "Id": 1474, 7196 - "QuestionId": 13, 7197 - "Text": "United States", 7198 - "Value": "United States", 7199 - "Order": 2 7200 - }, 7201 - { 7202 - "Id": 1482, 7203 - "QuestionId": 13, 7204 - "Text": "Uruguay", 7205 - "Value": "Uruguay", 7206 - "Order": 186 7207 - }, 7208 - { 7209 - "Id": 1490, 7210 - "QuestionId": 13, 7211 - "Text": "Uzbekistan", 7212 - "Value": "Uzbekistan", 7213 - "Order": 187 7214 - }, 7215 - { 7216 - "Id": 1498, 7217 - "QuestionId": 13, 7218 - "Text": "Vanuatu", 7219 - "Value": "Vanuatu", 7220 - "Order": 188 7221 - }, 7222 - { 7223 - "Id": 1506, 7224 - "QuestionId": 13, 7225 - "Text": "Vatican City", 7226 - "Value": "Vatican City", 7227 - "Order": 189 7228 - }, 7229 - { 7230 - "Id": 1514, 7231 - "QuestionId": 13, 7232 - "Text": "Venezuela", 7233 - "Value": "Venezuela", 7234 - "Order": 190 7235 - }, 7236 - { 7237 - "Id": 1522, 7238 - "QuestionId": 13, 7239 - "Text": "Vietnam", 7240 - "Value": "Vietnam", 7241 - "Order": 191 7242 - }, 7243 - { 7244 - "Id": 1530, 7245 - "QuestionId": 13, 7246 - "Text": "Yemen", 7247 - "Value": "Yemen", 7248 - "Order": 192 7249 - }, 7250 - { 7251 - "Id": 1538, 7252 - "QuestionId": 13, 7253 - "Text": "Zambia", 7254 - "Value": "Zambia", 7255 - "Order": 193 7256 - }, 7257 - { 7258 - "Id": 1546, 7259 - "QuestionId": 13, 7260 - "Text": "Zimbabwe", 7261 - "Value": "Zimbabwe", 7262 - "Order": 194 7263 - }, 7264 - { 7265 - "Id": 2186, 7266 - "QuestionId": 13, 7267 - "Text": "British Columbia", 7268 - "Value": "British Columbia", 7269 - "Order": 195 7270 - } 7271 - ] 7272 - }, 7273 - { 7274 - "Id": 178, 7275 - "Text": "Job Function", 7276 - "Type": "4", 7277 - "Alias": "Job Function", 7278 - "Choices": [ 7279 - { 7280 - "Id": 2266, 7281 - "QuestionId": 178, 7282 - "Text": "Select One", 7283 - "Value": "", 7284 - "Order": 1 7285 - }, 7286 - { 7287 - "Id": 2274, 7288 - "QuestionId": 178, 7289 - "Text": "Sales", 7290 - "Value": "Sales", 7291 - "Order": 2 7292 - }, 7293 - { 7294 - "Id": 2282, 7295 - "QuestionId": 178, 7296 - "Text": "Marketing", 7297 - "Value": "Marketing", 7298 - "Order": 3 7299 - }, 7300 - { 7301 - "Id": 2290, 7302 - "QuestionId": 178, 7303 - "Text": "New Media", 7304 - "Value": "New Media", 7305 - "Order": 4 7306 - }, 7307 - { 7308 - "Id": 2298, 7309 - "QuestionId": 178, 7310 - "Text": "Audience Development", 7311 - "Value": "Audience Development", 7312 - "Order": 5 7313 - }, 7314 - { 7315 - "Id": 2306, 7316 - "QuestionId": 178, 7317 - "Text": "Editorial", 7318 - "Value": "Editorial", 7319 - "Order": 6 7320 - }, 7321 - { 7322 - "Id": 2314, 7323 - "QuestionId": 178, 7324 - "Text": "Information Technology", 7325 - "Value": "IT", 7326 - "Order": 7 7327 - }, 7328 - { 7329 - "Id": 2322, 7330 - "QuestionId": 178, 7331 - "Text": "Corporate", 7332 - "Value": "Corporate", 7333 - "Order": 8 7334 - }, 7335 - { 7336 - "Id": 2418, 7337 - "QuestionId": 178, 7338 - "Text": "Other", 7339 - "Value": "Other", 7340 - "Order": 9 7341 - } 7342 - ] 7343 - }, 7344 - { 7345 - "Id": 202, 7346 - "Text": "Type of Publication", 7347 - "Type": "4", 7348 - "Alias": "Type of Publication", 7349 - "Choices": [ 7350 - { 7351 - "Id": 2330, 7352 - "QuestionId": 202, 7353 - "Text": "Select One", 7354 - "Value": "", 7355 - "Order": 1 7356 - }, 7357 - { 7358 - "Id": 2338, 7359 - "QuestionId": 202, 7360 - "Text": "Magazine", 7361 - "Value": "Magazine", 7362 - "Order": 2 7363 - }, 7364 - { 7365 - "Id": 2346, 7366 - "QuestionId": 202, 7367 - "Text": "Newspaper", 7368 - "Value": "Newspaper", 7369 - "Order": 3 7370 - }, 7371 - { 7372 - "Id": 2354, 7373 - "QuestionId": 202, 7374 - "Text": "Digital Publisher", 7375 - "Value": "Digital Publisher", 7376 - "Order": 4 7377 - }, 7378 - { 7379 - "Id": 2362, 7380 - "QuestionId": 202, 7381 - "Text": "Book Publisher", 7382 - "Value": "Book Publisher", 7383 - "Order": 5 7384 - }, 7385 - { 7386 - "Id": 2370, 7387 - "QuestionId": 202, 7388 - "Text": "Newsletter/Email", 7389 - "Value": "Newsletter/Email", 7390 - "Order": 6 7391 - } 7392 - ] 7393 - }, 7394 - { 7395 - "Id": 226, 7396 - "Text": "What is your time frame for deployment?", 7397 - "Type": "4", 7398 - "Alias": "What is your time frame for deployment?", 7399 - "Choices": [ 7400 - { 7401 - "Id": 2378, 7402 - "QuestionId": 226, 7403 - "Text": "Select One", 7404 - "Value": "", 7405 - "Order": 1 7406 - }, 7407 - { 7408 - "Id": 2386, 7409 - "QuestionId": 226, 7410 - "Text": "0-3 months", 7411 - "Value": "0-3", 7412 - "Order": 2 7413 - }, 7414 - { 7415 - "Id": 2394, 7416 - "QuestionId": 226, 7417 - "Text": "3-6 months", 7418 - "Value": "3-6", 7419 - "Order": 3 7420 - }, 7421 - { 7422 - "Id": 2402, 7423 - "QuestionId": 226, 7424 - "Text": "6-12 months", 7425 - "Value": "6-12", 7426 - "Order": 4 7427 - }, 7428 - { 7429 - "Id": 2410, 7430 - "QuestionId": 226, 7431 - "Text": "No Formal Plans", 7432 - "Value": "No Formal Plans", 7433 - "Order": 5 7434 - } 7435 - ] 7436 - }, 7437 - { 7438 - "Id": 250, 7439 - "Text": "Industry", 7440 - "Type": "4", 7441 - "Alias": "Industry", 7442 - "Choices": [ 7443 - { 7444 - "Id": 2426, 7445 - "QuestionId": 250, 7446 - "Text": "Agency", 7447 - "Value": "Agency", 7448 - "Order": 2 7449 - }, 7450 - { 7451 - "Id": 2434, 7452 - "QuestionId": 250, 7453 - "Text": "Association", 7454 - "Value": "Association", 7455 - "Order": 3 7456 - }, 7457 - { 7458 - "Id": 2442, 7459 - "QuestionId": 250, 7460 - "Text": "Direct Marketing", 7461 - "Value": "Direct Marketing", 7462 - "Order": 4 7463 - }, 7464 - { 7465 - "Id": 2450, 7466 - "QuestionId": 250, 7467 - "Text": "Publisher", 7468 - "Value": "Publisher", 7469 - "Order": 5 7470 - }, 7471 - { 7472 - "Id": 2458, 7473 - "QuestionId": 250, 7474 - "Text": "Service Bureau", 7475 - "Value": "Service Bureau", 7476 - "Order": 6 7477 - }, 7478 - { 7479 - "Id": 2466, 7480 - "QuestionId": 250, 7481 - "Text": "Select One", 7482 - "Value": "Government", 7483 - "Order": 1 7484 - }, 7485 - { 7486 - "Id": 2737, 7487 - "QuestionId": 250, 7488 - "Text": "Other", 7489 - "Value": "Other", 7490 - "Order": 7 7491 - }, 7492 - { 7493 - "Id": 3051, 7494 - "QuestionId": 250, 7495 - "Text": "Business Services", 7496 - "Value": "Business Services", 7497 - "Order": 8 7498 - }, 7499 - { 7500 - "Id": 3059, 7501 - "QuestionId": 250, 7502 - "Text": "Business Services, Media & Internet", 7503 - "Value": "Business Services, Media & Internet", 7504 - "Order": 9 7505 - }, 7506 - { 7507 - "Id": 3067, 7508 - "QuestionId": 250, 7509 - "Text": "Business Services,Consumer Services", 7510 - "Value": "Business Services,Consumer Services", 7511 - "Order": 10 7512 - }, 7513 - { 7514 - "Id": 3075, 7515 - "QuestionId": 250, 7516 - "Text": "Business Services,Finance", 7517 - "Value": "Business Services,Finance", 7518 - "Order": 11 7519 - }, 7520 - { 7521 - "Id": 3083, 7522 - "QuestionId": 250, 7523 - "Text": "Business Services,Retail,Media & Internet", 7524 - "Value": "Business Services,Retail,Media & Internet", 7525 - "Order": 12 7526 - }, 7527 - { 7528 - "Id": 3091, 7529 - "QuestionId": 250, 7530 - "Text": "Business Services,Telecommunications", 7531 - "Value": "Business Services,Telecommunications", 7532 - "Order": 13 7533 - }, 7534 - { 7535 - "Id": 3099, 7536 - "QuestionId": 250, 7537 - "Text": "Energy, Utilities & Waste Treatment", 7538 - "Value": "Energy, Utilities & Waste Treatment", 7539 - "Order": 14 7540 - }, 7541 - { 7542 - "Id": 3107, 7543 - "QuestionId": 250, 7544 - "Text": "Finance", 7545 - "Value": "Finance", 7546 - "Order": 15 7547 - }, 7548 - { 7549 - "Id": 3115, 7550 - "QuestionId": 250, 7551 - "Text": "Hospitality", 7552 - "Value": "Hospitality", 7553 - "Order": 16 7554 - }, 7555 - { 7556 - "Id": 3123, 7557 - "QuestionId": 250, 7558 - "Text": "Hospitality,Media & Internet", 7559 - "Value": "Hospitality,Media & Internet", 7560 - "Order": 17 7561 - }, 7562 - { 7563 - "Id": 3131, 7564 - "QuestionId": 250, 7565 - "Text": "Insurance", 7566 - "Value": "Insurance", 7567 - "Order": 18 7568 - }, 7569 - { 7570 - "Id": 3139, 7571 - "QuestionId": 250, 7572 - "Text": "Insurance, Finance", 7573 - "Value": "Insurance, Finance", 7574 - "Order": 19 7575 - }, 7576 - { 7577 - "Id": 3147, 7578 - "QuestionId": 250, 7579 - "Text": "Manufacturing", 7580 - "Value": "Manufacturing", 7581 - "Order": 20 7582 - }, 7583 - { 7584 - "Id": 3155, 7585 - "QuestionId": 250, 7586 - "Text": "Manufacturing,Business Services", 7587 - "Value": "Manufacturing,Business Services", 7588 - "Order": 21 7589 - }, 7590 - { 7591 - "Id": 3163, 7592 - "QuestionId": 250, 7593 - "Text": "Manufacturing,Retail,Healthcare", 7594 - "Value": "Manufacturing,Retail,Healthcare", 7595 - "Order": 22 7596 - }, 7597 - { 7598 - "Id": 3171, 7599 - "QuestionId": 250, 7600 - "Text": "Media & Internet", 7601 - "Value": "Media & Internet", 7602 - "Order": 23 7603 - }, 7604 - { 7605 - "Id": 3179, 7606 - "QuestionId": 250, 7607 - "Text": "Media & Internet,Business Services", 7608 - "Value": "Media & Internet,Business Services", 7609 - "Order": 24 7610 - }, 7611 - { 7612 - "Id": 3187, 7613 - "QuestionId": 250, 7614 - "Text": "Organizations", 7615 - "Value": "Organizations", 7616 - "Order": 25 7617 - }, 7618 - { 7619 - "Id": 3195, 7620 - "QuestionId": 250, 7621 - "Text": "Real Estate", 7622 - "Value": "Real Estate", 7623 - "Order": 26 7624 - }, 7625 - { 7626 - "Id": 3203, 7627 - "QuestionId": 250, 7628 - "Text": "Retail", 7629 - "Value": "Retail", 7630 - "Order": 27 7631 - }, 7632 - { 7633 - "Id": 3211, 7634 - "QuestionId": 250, 7635 - "Text": "Retail,Software,Consumer Services", 7636 - "Value": "Retail,Software,Consumer Services", 7637 - "Order": 28 7638 - }, 7639 - { 7640 - "Id": 3219, 7641 - "QuestionId": 250, 7642 - "Text": "Software", 7643 - "Value": "Software", 7644 - "Order": 29 7645 - }, 7646 - { 7647 - "Id": 3227, 7648 - "QuestionId": 250, 7649 - "Text": "Retail, Manufacturing", 7650 - "Value": "Retail, Manufacturing", 7651 - "Order": 30 7652 - }, 7653 - { 7654 - "Id": 3235, 7655 - "QuestionId": 250, 7656 - "Text": "Software,Manufacturing,Retail", 7657 - "Value": "Software,Manufacturing,Retail", 7658 - "Order": 31 7659 - }, 7660 - { 7661 - "Id": 3243, 7662 - "QuestionId": 250, 7663 - "Text": "Business Services,Media & Internet", 7664 - "Value": "Business Services,Media & Internet", 7665 - "Order": 32 7666 - }, 7667 - { 7668 - "Id": 3251, 7669 - "QuestionId": 250, 7670 - "Text": "Telecommunications", 7671 - "Value": "Telecommunications", 7672 - "Order": 33 7673 - } 7674 - ] 7675 - }, 7676 - { 7677 - "Id": 274, 7678 - "Text": "How many employees work at your company?_Copy", 7679 - "Type": "4", 7680 - "Alias": "ALL", 7681 - "Choices": [ 7682 - { 7683 - "Id": 2698, 7684 - "QuestionId": 274, 7685 - "Text": "1-25", 7686 - "Value": "01", 7687 - "Order": 1 7688 - }, 7689 - { 7690 - "Id": 2706, 7691 - "QuestionId": 274, 7692 - "Text": "26-100", 7693 - "Value": "02", 7694 - "Order": 2 7695 - }, 7696 - { 7697 - "Id": 2714, 7698 - "QuestionId": 274, 7699 - "Text": "101-250", 7700 - "Value": "03", 7701 - "Order": 3 7702 - }, 7703 - { 7704 - "Id": 2722, 7705 - "QuestionId": 274, 7706 - "Text": "251-500", 7707 - "Value": "04", 7708 - "Order": 4 7709 - }, 7710 - { 7711 - "Id": 2730, 7712 - "QuestionId": 274, 7713 - "Text": "500+", 7714 - "Value": "05", 7715 - "Order": 5 7716 - } 7717 - ] 7718 - }, 7719 - { 7720 - "Id": 281, 7721 - "Text": "How many employees work at your company?_Copy", 7722 - "Type": "4", 7723 - "Alias": "How many employees work at your company?_Copy", 7724 - "Choices": [ 7725 - { 7726 - "Id": 2745, 7727 - "QuestionId": 281, 7728 - "Text": "1-25", 7729 - "Value": "01", 7730 - "Order": 1 7731 - }, 7732 - { 7733 - "Id": 2753, 7734 - "QuestionId": 281, 7735 - "Text": "26-100", 7736 - "Value": "02", 7737 - "Order": 2 7738 - }, 7739 - { 7740 - "Id": 2761, 7741 - "QuestionId": 281, 7742 - "Text": "101-250", 7743 - "Value": "03", 7744 - "Order": 3 7745 - }, 7746 - { 7747 - "Id": 2769, 7748 - "QuestionId": 281, 7749 - "Text": "251-500", 7750 - "Value": "04", 7751 - "Order": 4 7752 - }, 7753 - { 7754 - "Id": 2777, 7755 - "QuestionId": 281, 7756 - "Text": "500+", 7757 - "Value": "05", 7758 - "Order": 5 7759 - } 7760 - ] 7761 - }, 7762 - { 7763 - "Id": 291, 7764 - "Text": "DAS Question Update", 7765 - "Type": "4", 7766 - "Alias": "DAS Question Update", 7767 - "Choices": [ 7768 - { 7769 - "Id": 2859, 7770 - "QuestionId": 291, 7771 - "Text": "Choice a Update", 7772 - "Value": "a Update", 7773 - "Order": 1 7774 - }, 7775 - { 7776 - "Id": 2867, 7777 - "QuestionId": 291, 7778 - "Text": "Choice b Update", 7779 - "Value": "b Update", 7780 - "Order": 2 7781 - } 7782 - ] 7783 - }, 7784 - { 7785 - "Id": 363, 7786 - "Text": "Group Size", 7787 - "Type": "4", 7788 - "Alias": "Group Size", 7789 - "Choices": [ 7790 - { 7791 - "Id": 3027, 7792 - "QuestionId": 363, 7793 - "Text": "NA", 7794 - "Value": "NA", 7795 - "Order": 1 7796 - }, 7797 - { 7798 - "Id": 3035, 7799 - "QuestionId": 363, 7800 - "Text": "0-10", 7801 - "Value": "0-10", 7802 - "Order": 2 7803 - }, 7804 - { 7805 - "Id": 3043, 7806 - "QuestionId": 363, 7807 - "Text": "10-25", 7808 - "Value": "10-25", 7809 - "Order": 3 7810 - } 7811 - ] 7812 - }, 7813 - { 7814 - "Id": 399, 7815 - "Text": "What best describes your job title?", 7816 - "Type": "4", 7817 - "Alias": "1105-title", 7818 - "Choices": [ 7819 - { 7820 - "Id": 3255, 7821 - "QuestionId": 399, 7822 - "Text": "CIO, CTO, CKO, Technical/VP", 7823 - "Value": "CIO", 7824 - "Order": 1 7825 - }, 7826 - { 7827 - "Id": 3263, 7828 - "QuestionId": 399, 7829 - "Text": "Corporate Management", 7830 - "Value": "corporate", 7831 - "Order": 2 7832 - }, 7833 - { 7834 - "Id": 3271, 7835 - "QuestionId": 399, 7836 - "Text": "IS/IT Director/Manager", 7837 - "Value": "it", 7838 - "Order": 3 7839 - }, 7840 - { 7841 - "Id": 3279, 7842 - "QuestionId": 399, 7843 - "Text": "Director of Softare Development", 7844 - "Value": "software director", 7845 - "Order": 4 7846 - }, 7847 - { 7848 - "Id": 3287, 7849 - "QuestionId": 399, 7850 - "Text": "Application Development Manager", 7851 - "Value": "ADM", 7852 - "Order": 5 7853 - } 7854 - ] 7855 - }, 7856 - { 7857 - "Id": 407, 7858 - "Text": "What is your organization's (or largest client, if you are a consultant) primary business at this location?", 7859 - "Type": "4", 7860 - "Alias": "1105 largest client", 7861 - "Choices": [ 7862 - { 7863 - "Id": 3295, 7864 - "QuestionId": 407, 7865 - "Text": "Aerospace", 7866 - "Value": "aerospace", 7867 - "Order": 1 7868 - }, 7869 - { 7870 - "Id": 3303, 7871 - "QuestionId": 407, 7872 - "Text": "Agriculture/Mining/Gas/Oil", 7873 - "Value": "ag", 7874 - "Order": 2 7875 - }, 7876 - { 7877 - "Id": 3311, 7878 - "QuestionId": 407, 7879 - "Text": "Business Services/Consultants", 7880 - "Value": "bs", 7881 - "Order": 3 7882 - }, 7883 - { 7884 - "Id": 3319, 7885 - "QuestionId": 407, 7886 - "Text": "Construction/Architecture/Engineering", 7887 - "Value": "construction", 7888 - "Order": 4 7889 - }, 7890 - { 7891 - "Id": 3327, 7892 - "QuestionId": 407, 7893 - "Text": "Education/Training", 7894 - "Value": "education", 7895 - "Order": 5 7896 - } 7897 - ] 7898 - }, 7899 - { 7900 - "Id": 415, 7901 - "Text": "What is the total number of employees in your entire organzation?", 7902 - "Type": "4", 7903 - "Alias": "1105 num employees", 7904 - "Choices": [ 7905 - { 7906 - "Id": 3335, 7907 - "QuestionId": 415, 7908 - "Text": "10,000 or more", 7909 - "Value": "10000", 7910 - "Order": 1 7911 - }, 7912 - { 7913 - "Id": 3343, 7914 - "QuestionId": 415, 7915 - "Text": "5,000 - 9,999", 7916 - "Value": "5000", 7917 - "Order": 2 7918 - }, 7919 - { 7920 - "Id": 3351, 7921 - "QuestionId": 415, 7922 - "Text": "1,000 - 4,999", 7923 - "Value": "1000", 7924 - "Order": 3 7925 - }, 7926 - { 7927 - "Id": 3359, 7928 - "QuestionId": 415, 7929 - "Text": "500 - 999", 7930 - "Value": "500", 7931 - "Order": 4 7932 - }, 7933 - { 7934 - "Id": 3367, 7935 - "QuestionId": 415, 7936 - "Text": "100 - 499", 7937 - "Value": "100", 7938 - "Order": 5 7939 - }, 7940 - { 7941 - "Id": 3375, 7942 - "QuestionId": 415, 7943 - "Text": "Under 100", 7944 - "Value": "Under 100", 7945 - "Order": 6 7946 - } 7947 - ] 7948 - }, 7949 - { 7950 - "Id": 423, 7951 - "Text": "saaa", 7952 - "Type": "4", 7953 - "Alias": "test", 7954 - "Choices": [ 7955 - { 7956 - "Id": 3383, 7957 - "QuestionId": 423, 7958 - "Text": "1", 7959 - "Value": "1", 7960 - "Order": 1 7961 - }, 7962 - { 7963 - "Id": 3391, 7964 - "QuestionId": 423, 7965 - "Text": "3", 7966 - "Value": "3", 7967 - "Order": 2 7968 - } 7969 - ] 7970 - } 7971 - ] 2072 +(% class="western" %) 7972 7972 } 7973 -{{/code}} 7974 7974 2075 +(% class="western" %) 2076 +] 7975 7975 7976 -(% id="HPOSTCreatequestiontypenumeric2Ctext2Cpassword2Ctextareaanddate" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 7977 -== (% 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 question type numeric, text, password, textarea and date(%%) == 7978 - 7979 ----- 7980 - 7981 -{{panel bgColor="#D3D3D3" width="100%"}} 7982 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions 7983 -{{/panel}} 7984 - 7985 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 7986 - 7987 ----- 7988 - 7989 -(% 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}} 7990 - 7991 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 7992 - 7993 ----- 7994 - 7995 -{{code language="yml" theme="RDark" title="Body"}} 7996 -{"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"} 7997 -{{/code}} 7998 - 7999 -==== Example ==== 8000 - 8001 ----- 8002 - 8003 -(% style="color:#6b6b6b" %)Request 8004 - 8005 -{{code language="php" theme="RDark" title="Create Question Request"}} 8006 -<?php 8007 - 8008 -$curl = curl_init(); 8009 - 8010 -curl_setopt_array($curl, array( 8011 - CURLOPT_URL => 'https://api.onecount.net/v2/questions', 8012 - CURLOPT_RETURNTRANSFER => true, 8013 - CURLOPT_ENCODING => '', 8014 - CURLOPT_MAXREDIRS => 10, 8015 - CURLOPT_TIMEOUT => 0, 8016 - CURLOPT_FOLLOWLOCATION => true, 8017 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8018 - CURLOPT_CUSTOMREQUEST => 'POST', 8019 - CURLOPT_POSTFIELDS =>'{"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}', 8020 - CURLOPT_HTTPHEADER => array( 8021 - 'Appkey: {{ONECOUNT API KEY}}' 8022 - ), 8023 -)); 8024 - 8025 -$response = curl_exec($curl); 8026 - 8027 -curl_close($curl); 8028 -echo $response; 8029 -{{/code}} 8030 - 8031 - 8032 -(% style="color:#6b6b6b" %)Response 200 OK 8033 - 8034 -{{code language="yml" theme="RDark" collapse="true" title="Create question Response"}} 8035 -{ 8036 - "result": { 8037 - "success": "1", 8038 - "error": { 8039 - "code": "", 8040 - "message": "" 8041 - } 8042 - }, 8043 - "Questions": [ 8044 - { 8045 - "Id": 455 8046 - } 8047 - ] 2078 +(% class="western" %) 8048 8048 } 8049 -{{/code}} 8050 8050 2081 +(% class="western" %) 2082 +\\ 8051 8051 8052 -(% id="HPOSTCreatequestiontypeselect2Cradioandcheckbox"yle="margin-left: 0.0px;"class="sc-fznLPX cxTVKx"%)8053 - == (% 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 question type select, radio and checkbox(%%) ==2084 +(% class="western" %) 2085 +**COMPONENT: Products** 8054 8054 8055 ----- 8056 - 8057 -{{panel bgColor="#D3D3D3" width="100%"}} 8058 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions 8059 -{{/panel}} 8060 - 8061 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8062 - 8063 ----- 8064 - 8065 -(% 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}} 8066 - 8067 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8068 - 8069 ----- 8070 - 8071 -{{code language="yml" theme="RDark" title="Body"}} 8072 -{"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"}]} 8073 -{{/code}} 8074 - 8075 -==== Example ==== 8076 - 8077 ----- 8078 - 8079 -(% style="color:#6b6b6b" %)Request 8080 - 8081 -{{code language="php" theme="RDark" title="Create Question Request"}} 8082 -<?php 8083 - 8084 -$curl = curl_init(); 8085 - 8086 -curl_setopt_array($curl, array( 8087 - CURLOPT_URL => 'https://api.onecount.net/v2/questions', 8088 - CURLOPT_RETURNTRANSFER => true, 8089 - CURLOPT_ENCODING => '', 8090 - CURLOPT_MAXREDIRS => 10, 8091 - CURLOPT_TIMEOUT => 0, 8092 - CURLOPT_FOLLOWLOCATION => true, 8093 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8094 - CURLOPT_CUSTOMREQUEST => 'POST', 8095 - CURLOPT_POSTFIELDS =>'{"Text":"Test from API 5","Type":4,"Alias":"Test from API 5", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]}', 8096 - CURLOPT_HTTPHEADER => array( 8097 - 'Appkey: {{ONECOUNT API KEY}}' 8098 - ), 8099 -)); 8100 - 8101 -$response = curl_exec($curl); 8102 - 8103 -curl_close($curl); 8104 -echo $response; 8105 -{{/code}} 8106 - 8107 - 8108 -(% style="color:#6b6b6b" %)Response 200 OK 8109 - 8110 -{{code language="yml" theme="RDark" collapse="true" title="Create question Response"}} 8111 -{ 8112 - "result": { 8113 - "success": "1", 8114 - "error": { 8115 - "code": "", 8116 - "message": "" 8117 - } 8118 - }, 8119 - "Questions": [ 8120 - { 8121 - "Id": 495 8122 - } 8123 - ] 8124 -} 8125 -{{/code}} 8126 - 8127 - 8128 -(% id="HPUTUpdatequestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8129 -== (% 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 question(%%) == 8130 - 8131 - 8132 -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. 8133 - 8134 -{{panel bgColor="#D3D3D3" width="100%"}} 8135 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}} 8136 -{{/panel}} 8137 - 8138 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8139 - 8140 ----- 8141 - 8142 -(% 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}} 8143 - 8144 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8145 - 8146 ----- 8147 - 8148 -{{code language="yml" theme="RDark" title="Body"}} 8149 -{"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"}]} 8150 -{{/code}} 8151 - 8152 -==== Example ==== 8153 - 8154 ----- 8155 - 8156 -(% style="color:#6b6b6b" %)Request 8157 - 8158 -{{code language="php" theme="RDark" title="Update Question Request"}} 8159 -<?php 8160 - 8161 -$curl = curl_init(); 8162 - 8163 -curl_setopt_array($curl, array( 8164 - CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}', 8165 - CURLOPT_RETURNTRANSFER => true, 8166 - CURLOPT_ENCODING => '', 8167 - CURLOPT_MAXREDIRS => 10, 8168 - CURLOPT_TIMEOUT => 0, 8169 - CURLOPT_FOLLOWLOCATION => true, 8170 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8171 - CURLOPT_CUSTOMREQUEST => 'PUT', 8172 - CURLOPT_POSTFIELDS =>'{"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"}]}', 8173 - CURLOPT_HTTPHEADER => array( 8174 - 'Appkey: {{ONECOUNT API KEY}}' 8175 - ), 8176 -)); 8177 - 8178 -$response = curl_exec($curl); 8179 - 8180 -curl_close($curl); 8181 -echo $response; 8182 - 8183 - 8184 -{{/code}} 8185 - 8186 - 8187 -(% style="color:#6b6b6b" %)Response 200 OK 8188 - 8189 -{{code language="yml" theme="RDark" collapse="true" title="Update Question Response"}} 8190 -{ 8191 - "result": { 8192 - "success": "1", 8193 - "error": { 8194 - "code": "", 8195 - "message": "" 8196 - } 8197 - }, 8198 - "Questions": [ 8199 - { 8200 - "Id": 503 8201 - } 8202 - ] 8203 -} 8204 -{{/code}} 8205 - 8206 - 8207 -(% id="HCOMPONENT:Products" class="western" %) 8208 -=== **COMPONENT: Products** === 8209 - 8210 8210 (% class="western" %) 8211 8211 This resource is for manipulating products resource. A product can be created, updated or searched. 8212 8212 8213 -(% class="wrapped" %) 8214 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2090 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8215 8215 ((( 8216 8216 (% class="western" %) 8217 8217 **Method** 8218 -)))|(% style="text-align:left; 2094 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8219 8219 ((( 8220 8220 (% class="western" %) 8221 8221 **Url** 8222 -)))|(% style="text-align:left; 2098 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8223 8223 ((( 8224 8224 (% class="western" %) 8225 8225 **Action** 8226 8226 ))) 8227 -|(% style="text-align:left; 2103 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8228 8228 ((( 8229 8229 (% class="western" %) 8230 8230 GET 8231 -)))|(% style="text-align:left; 2107 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8232 8232 ((( 8233 8233 (% class="western" %) 8234 8234 /products 8235 -)))|(% style="text-align:left; 2111 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8236 8236 ((( 8237 8237 (% class="western" %) 8238 8238 Get all product details 8239 8239 ))) 8240 -|(% style="text-align:left; 2116 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8241 8241 ((( 8242 8242 (% class="western" %) 8243 8243 GET 8244 -)))|(% style="text-align:left; 2120 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8245 8245 ((( 8246 8246 (% class="western" %) 8247 8247 /products/5 8248 -)))|(% style="text-align:left; 2124 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8249 8249 ((( 8250 8250 (% class="western" %) 8251 8251 Get product id 5 8252 8252 ))) 8253 -|(% style="text-align:left; 2129 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8254 8254 ((( 8255 8255 (% class="western" %) 8256 8256 GET 8257 -)))|(% style="text-align:left; 2133 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8258 8258 ((( 8259 8259 (% class="western" %) 8260 8260 /products/lookup?Title=productname 8261 -)))|(% style="text-align:left; 2137 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8262 8262 ((( 8263 8263 (% class="western" %) 8264 8264 Lookup products by Title 8265 8265 ))) 8266 -|(% style="text-align:left; 2142 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8267 8267 ((( 8268 8268 (% class="western" %) 8269 8269 POST 8270 -)))|(% style="text-align:left; 2146 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8271 8271 ((( 8272 8272 (% class="western" %) 8273 8273 /products 8274 -)))|(% style="text-align:left; 2150 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8275 8275 ((( 8276 8276 (% class="western" %) 8277 8277 JSON of the Products type object needs to be sent as post data. Id field should not be sent. 8278 8278 ))) 8279 -|(% style="text-align:left; 2155 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8280 8280 ((( 8281 8281 (% class="western" %) 8282 8282 PUT 8283 -)))|(% style="text-align:left; 2159 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8284 8284 ((( 8285 8285 (% class="western" %) 8286 8286 /products/5 8287 -)))|(% style="text-align:left; 2163 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8288 8288 ((( 8289 8289 (% class="western" %) 8290 8290 JSON of the Products type object needs to be sent as post data. Id field is mandatory for update. 8291 8291 ))) 8292 -|(% style="text-align:left; 2168 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8293 8293 ((( 8294 8294 (% class="western" %) 8295 8295 POST 8296 -)))|(% style="text-align:left; 2172 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8297 8297 ((( 8298 8298 (% class="western" %) 8299 8299 /products/attachResource 8300 -)))|(% style="text-align:left; 2176 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8301 8301 ((( 8302 8302 (% class="western" %) 8303 8303 JSON of the Product and Resource ids to be sent as post data. ... ... @@ -8312,1259 +8312,484 @@ 8312 8312 {"ProductID":"65","ResourceID":”121"} 8313 8313 ))) 8314 8314 8315 -(% id="HGETAllProducts" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8316 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Products(%%) == 2191 +\\ 8317 8317 8318 ----- 2193 +(% class="western" %) 2194 +**GET method should be used to lookup products.** 8319 8319 8320 ----- 2196 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2197 +((( 2198 +(% class="western" %) 2199 +**Request** 2200 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2201 +((( 2202 +(% class="western" %) 2203 +**Type** 2204 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2205 +((( 2206 +(% class="western" %) 2207 +**Description** 2208 +))) 2209 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2210 +((( 2211 +(% class="western" %) 2212 +Lookup params 2213 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2214 +((( 2215 +(% class="western" %) 2216 +String 2217 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2218 +((( 2219 +(% class="western" %) 2220 +URL encoded key value string parameter for the lookup. 8321 8321 8322 -{{panel bgColor="#D3D3D3" width="100%"}} 8323 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products 8324 -{{/panel}} 2222 +(% class="western" %) 2223 +Params: 8325 8325 8326 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2225 +(% class="western" %) 2226 +Name: Name of the Product for lookup (String) 2227 +))) 8327 8327 8328 ----- 2229 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2230 +((( 2231 +(% class="western" %) 2232 +**Response** 2233 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2234 +((( 2235 +(% class="western" %) 2236 +**Type** 2237 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2238 +((( 2239 +(% class="western" %) 2240 +**Description** 2241 +))) 2242 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2243 +((( 2244 +(% class="western" %) 2245 +Products 2246 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2247 +((( 2248 +(% class="western" %) 2249 +Products 2250 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2251 +((( 2252 +(% class="western" %) 2253 +Returns found product details. 2254 +))) 8329 8329 8330 - (% 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}}2256 +\\ 8331 8331 8332 -==== Example ==== 2258 +(% class="western" %) 2259 +**POST method should be used to create products.** 8333 8333 8334 ----- 2261 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2262 +((( 2263 +(% class="western" %) 2264 +**Request** 2265 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2266 +((( 2267 +(% class="western" %) 2268 +**Type** 2269 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2270 +((( 2271 +(% class="western" %) 2272 +**Description** 2273 +))) 2274 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2275 +((( 2276 +(% class="western" %) 2277 +Products 2278 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2279 +((( 2280 +(% class="western" %) 2281 +Products 2282 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2283 +((( 2284 +(% class="western" %) 2285 +Product details in json to be sent as post data. Id should not be set. 8335 8335 8336 -(% style="color:#6b6b6b" %)Request 2287 +(% class="western" %) 2288 +Example: 8337 8337 8338 -{{code language="php" theme="RDark" title="Get All Products Request"}} 8339 -<?php 2290 +(% class="western" %) 2291 +{"Title":"Test123","Description": "Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17} 2292 +))) 8340 8340 8341 -$curl = curl_init(); 2294 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2295 +((( 2296 +(% class="western" %) 2297 +**Response** 2298 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2299 +((( 2300 +(% class="western" %) 2301 +**Type** 2302 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2303 +((( 2304 +(% class="western" %) 2305 +**Description** 2306 +))) 2307 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2308 +((( 2309 +(% class="western" %) 2310 +ProductId 2311 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2312 +((( 2313 +(% class="western" %) 2314 +int 2315 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2316 +((( 2317 +(% class="western" %) 2318 +Product Id of the newly created product. 2319 +))) 8342 8342 8343 -curl_setopt_array($curl, array( 8344 - CURLOPT_URL => 'https://api.onecount.net/v2/products', 8345 - CURLOPT_RETURNTRANSFER => true, 8346 - CURLOPT_ENCODING => '', 8347 - CURLOPT_MAXREDIRS => 10, 8348 - CURLOPT_TIMEOUT => 0, 8349 - CURLOPT_FOLLOWLOCATION => true, 8350 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8351 - CURLOPT_CUSTOMREQUEST => 'GET', 8352 - CURLOPT_HTTPHEADER => array( 8353 - 'Appkey: {{ONECOUNT API KEY}}' 8354 - ), 8355 -)); 2321 +\\ 8356 8356 8357 -$response = curl_exec($curl); 2323 +(% class="western" %) 2324 +PUT method should be used to update an individual product given the product info. 8358 8358 8359 -curl_close($curl); 8360 -echo $response; 2326 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2327 +((( 2328 +(% class="western" %) 2329 +**Request** 2330 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2331 +((( 2332 +(% class="western" %) 2333 +**Type** 2334 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2335 +((( 2336 +(% class="western" %) 2337 +**Description** 2338 +))) 2339 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2340 +((( 2341 +(% class="western" %) 2342 +Products 2343 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2344 +((( 2345 +(% class="western" %) 2346 +Product 2347 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2348 +((( 2349 +(% class="western" %) 2350 +Product details to be updated in json format to be sent with request. Id property needs to be set to identify the product to be updated. If you send term and resource along with product creation then it will automatically attach term to product and resource to product. 8361 8361 2352 +(% class="western" %) 2353 +**Possible Request Params**: Title, Description, PrimaryFormId, ResourceID 8362 8362 8363 -{{/code}} 2355 +(% class="western" %) 2356 +**Example**: 8364 8364 2358 +(% class="western" %) 2359 +{"Title":"Test123","Description": "Testss","PrimaryFormId":10,"ResourceID":17} 2360 +))) 8365 8365 8366 -(% style="color:#6b6b6b" %)Response 200 OK 2362 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2363 +((( 2364 +(% class="western" %) 2365 +**Response** 2366 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2367 +((( 2368 +(% class="western" %) 2369 +**Type** 2370 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2371 +((( 2372 +(% class="western" %) 2373 +**Description** 2374 +))) 2375 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2376 +((( 2377 +(% class="western" %) 2378 +ProductId 2379 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2380 +((( 2381 +(% class="western" %) 2382 +Int 2383 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2384 +((( 2385 +(% class="western" %) 2386 +Product id of the updated product. 2387 +))) 8367 8367 8368 -{{code language="yml" theme="RDark" collapse="true" title="Get All Products Response"}} 8369 - { 8370 - "result": { 8371 - "success": "1", 8372 - "error": { 8373 - "code": "", 8374 - "message": "" 8375 - } 8376 - }, 8377 - "Products": [ 8378 - { 8379 - "ProductId": 26, 8380 - "Title": "ONEcount Product Demo", 8381 - "Description": "", 8382 - "ResourceIDs": [], 8383 - "PrimaryFormID": [ 8384 - "307", 8385 - "34" 8386 - ], 8387 - "Terms": { 8388 - "Id": 26, 8389 - "Name": "Please contact me to arrange a demo", 8390 - "Description": "", 8391 - "Duration": 1, 8392 - "DurationUnit": "I", 8393 - "Price": "0", 8394 - "ProductId": 26 8395 - } 8396 - }, 8397 - { 8398 - "ProductId": 34, 8399 - "Title": "ONEcount Promotional Emails", 8400 - "Description": "Master List of ONEcount prospects to receive promotional emails, etc.", 8401 - "ResourceIDs": [ 8402 - 98, 8403 - 114 8404 - ], 8405 - "PrimaryFormID": [ 8406 - "194" 8407 - ], 8408 - "Terms": { 8409 - "Id": 34, 8410 - "Name": "ONEcount Promotional Emails", 8411 - "Description": "ONEcount promotional emails", 8412 - "Duration": 1, 8413 - "DurationUnit": "I", 8414 - "Price": "0", 8415 - "ProductId": 34 8416 - } 8417 - }, 8418 - { 8419 - "ProductId": 42, 8420 - "Title": "ONEcount Staff", 8421 - "Description": "ONEcount/GCN Media Staff", 8422 - "ResourceIDs": [ 8423 - 18 8424 - ], 8425 - "PrimaryFormID": [ 8426 - "186" 8427 - ], 8428 - "Terms": { 8429 - "Id": 42, 8430 - "Name": "ONEcount Staff List", 8431 - "Description": "List of ONEcount/GCN Media Staff", 8432 - "Duration": 1, 8433 - "DurationUnit": "I", 8434 - "Price": "0", 8435 - "ProductId": 42 8436 - } 8437 - }, 8438 - { 8439 - "ProductId": 49, 8440 - "Title": "ONEcount Medical Publishers", 8441 - "Description": "For blasts to medical publishers and associations", 8442 - "ResourceIDs": [ 8443 - 137 8444 - ], 8445 - "PrimaryFormID": [ 8446 - "170" 8447 - ], 8448 - "Terms": { 8449 - "Id": 49, 8450 - "Name": "ONEcount Medical Publishers", 8451 - "Description": "ONEcount Medical Publishers and Associations", 8452 - "Duration": 1, 8453 - "DurationUnit": "I", 8454 - "Price": "0", 8455 - "ProductId": 49 8456 - } 8457 - }, 8458 - { 8459 - "ProductId": 57, 8460 - "Title": "000 Pop-Up Form", 8461 - "Description": "", 8462 - "ResourceIDs": [ 8463 - 145 8464 - ], 8465 - "PrimaryFormID": [ 8466 - "170" 8467 - ], 8468 - "Terms": { 8469 - "Id": 57, 8470 - "Name": "000 Pop-Up Term", 8471 - "Description": "", 8472 - "Duration": 1, 8473 - "DurationUnit": "I", 8474 - "Price": "0", 8475 - "ProductId": 57 8476 - } 8477 - }, 8478 - { 8479 - "ProductId": 65, 8480 - "Title": "TEST", 8481 - "Description": "", 8482 - "ResourceIDs": [], 8483 - "PrimaryFormID": [ 8484 - "194" 8485 - ], 8486 - "Terms": {} 8487 - }, 8488 - { 8489 - "ProductId": 67, 8490 - "Title": "Gated Product Example PKG", 8491 - "Description": "", 8492 - "ResourceIDs": [], 8493 - "PrimaryFormID": [ 8494 - "195" 8495 - ], 8496 - "Terms": { 8497 - "Id": 59, 8498 - "Name": "Get it for free", 8499 - "Description": "", 8500 - "Duration": 1, 8501 - "DurationUnit": "I", 8502 - "Price": "0", 8503 - "ProductId": 67 8504 - } 8505 - }, 8506 - { 8507 - "ProductId": 75, 8508 - "Title": "SB: Apple Moves To Limit Tracking in Safari: Prove", 8509 - "Description": "", 8510 - "ResourceIDs": [], 8511 - "PrimaryFormID": [], 8512 - "Terms": {} 8513 - }, 8514 - { 8515 - "ProductId": 83, 8516 - "Title": "SB: Audience Extension: Turning Identity Into Cash", 8517 - "Description": "", 8518 - "ResourceIDs": [], 8519 - "PrimaryFormID": [], 8520 - "Terms": {} 8521 - }, 8522 - { 8523 - "ProductId": 91, 8524 - "Title": "DAS_freepass_00", 8525 - "Description": "", 8526 - "ResourceIDs": [ 8527 - 187 8528 - ], 8529 - "PrimaryFormID": [ 8530 - "267" 8531 - ], 8532 - "Terms": { 8533 - "Id": 67, 8534 - "Name": "DAS_freepass_00", 8535 - "Description": "", 8536 - "Duration": 30, 8537 - "DurationUnit": "D", 8538 - "Price": "0", 8539 - "ProductId": 91 8540 - } 8541 - }, 8542 - { 8543 - "ProductId": 99, 8544 - "Title": "Test12311111", 8545 - "Description": "Testss", 8546 - "ResourceIDs": [], 8547 - "PrimaryFormID": [ 8548 - "10" 8549 - ], 8550 - "Terms": { 8551 - "Id": 75, 8552 - "Name": "Product123", 8553 - "Description": null, 8554 - "Duration": 0, 8555 - "DurationUnit": "", 8556 - "Price": "0", 8557 - "ProductId": 99 8558 - } 8559 - }, 8560 - { 8561 - "ProductId": 107, 8562 - "Title": "Test123-456", 8563 - "Description": "Testss updated", 8564 - "ResourceIDs": [ 8565 - 98 8566 - ], 8567 - "PrimaryFormID": [ 8568 - "10" 8569 - ], 8570 - "Terms": { 8571 - "Id": 83, 8572 - "Name": "Product123", 8573 - "Description": null, 8574 - "Duration": 0, 8575 - "DurationUnit": "", 8576 - "Price": "0", 8577 - "ProductId": 107 8578 - } 8579 - }, 8580 - { 8581 - "ProductId": 109, 8582 - "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM", 8583 - "Description": "", 8584 - "ResourceIDs": [ 8585 - 197 8586 - ], 8587 - "PrimaryFormID": [], 8588 - "Terms": { 8589 - "Id": 93, 8590 - "Name": "Enhanced Analytics Webinar", 8591 - "Description": "Check the box to register for the February 26th webinar.", 8592 - "Duration": 1, 8593 - "DurationUnit": "I", 8594 - "Price": "0", 8595 - "ProductId": 109 8596 - } 8597 - } 8598 - ] 8599 -} 8600 -{{/code}} 2389 +\\ 8601 8601 2391 +(% class="western" %) 2392 +**COMPONENT: Terms** 8602 8602 8603 -(% id="HGETspecificProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8604 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Product(%%) == 8605 - 8606 ----- 8607 - 8608 -{{panel bgColor="#D3D3D3" width="100%"}} 8609 - (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color:#212121" %)/products/~{~{product id}} 8610 -{{/panel}} 8611 - 8612 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8613 - 8614 ----- 8615 - 8616 -(% 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}} 8617 - 8618 -==== Example ==== 8619 - 8620 ----- 8621 - 8622 -(% style="color:#6b6b6b" %)Request 8623 - 8624 -{{code language="php" theme="RDark" title="Get specific Product Request"}} 8625 - <?php 8626 - 8627 -$curl = curl_init(); 8628 - 8629 -curl_setopt_array($curl, array( 8630 - CURLOPT_URL => 'https://api.onecount.net/v2/users/products/{{product id}}', 8631 - CURLOPT_RETURNTRANSFER => true, 8632 - CURLOPT_ENCODING => '', 8633 - CURLOPT_MAXREDIRS => 10, 8634 - CURLOPT_TIMEOUT => 0, 8635 - CURLOPT_FOLLOWLOCATION => true, 8636 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8637 - CURLOPT_CUSTOMREQUEST => 'GET', 8638 - CURLOPT_HTTPHEADER => array( 8639 - 'Appkey: {{ONECOUNT API KEY}}' 8640 - ), 8641 -)); 8642 - 8643 -$response = curl_exec($curl); 8644 - 8645 -curl_close($curl); 8646 -echo $response; 8647 -{{/code}} 8648 - 8649 - 8650 -(% style="color:#6b6b6b" %)Response 200 OK 8651 - 8652 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Product Response"}} 8653 - { 8654 - "result": { 8655 - "success": "1", 8656 - "error": { 8657 - "code": "", 8658 - "message": "" 8659 - } 8660 - }, 8661 - "Products": [ 8662 - { 8663 - "ProductId": 109, 8664 - "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM", 8665 - "Description": "", 8666 - "ResourceIDs": [ 8667 - 197 8668 - ], 8669 - "PrimaryFormID": [], 8670 - "Terms": { 8671 - "Id": 93, 8672 - "Name": "Enhanced Analytics Webinar", 8673 - "Description": "Check the box to register for the February 26th webinar.", 8674 - "Duration": 1, 8675 - "DurationUnit": "I", 8676 - "Price": "0", 8677 - "ProductId": 109 8678 - } 8679 - } 8680 - ] 8681 -} 8682 -{{/code}} 8683 - 8684 - 8685 -(% id="HGETlookupProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8686 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Product(%%) == 8687 - 8688 ----- 8689 - 8690 -{{panel bgColor="#D3D3D3" width="100%"}} 8691 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/lookup?Title=~{~{Product Name}} 8692 -{{/panel}} 8693 - 8694 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8695 - 8696 ----- 8697 - 8698 -(% 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}} 8699 - 8700 -=== (% style="color:#212121" %)Query Params(%%) === 8701 - 8702 ----- 8703 - 8704 -(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Title (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Product Name}}(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %) 8705 - 8706 -==== Example ==== 8707 - 8708 ----- 8709 - 8710 -(% style="color:#6b6b6b" %)Request 8711 - 8712 -{{code language="php" theme="RDark" title="Lookup Product Request"}} 8713 - <?php 8714 - 8715 -$curl = curl_init(); 8716 - 8717 -curl_setopt_array($curl, array( 8718 - CURLOPT_URL => 'https://api.onecount.net/v2/products/lookup?Title={{Product Name}}', 8719 - CURLOPT_RETURNTRANSFER => true, 8720 - CURLOPT_ENCODING => '', 8721 - CURLOPT_MAXREDIRS => 10, 8722 - CURLOPT_TIMEOUT => 0, 8723 - CURLOPT_FOLLOWLOCATION => true, 8724 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8725 - CURLOPT_CUSTOMREQUEST => 'GET', 8726 - CURLOPT_HTTPHEADER => array( 8727 - 'Appkey: {{ONECOUNT API KEY}}' 8728 - ), 8729 -)); 8730 - 8731 -$response = curl_exec($curl); 8732 - 8733 -curl_close($curl); 8734 -echo $response; 8735 -{{/code}} 8736 - 8737 - 8738 -(% style="color:#6b6b6b" %)Response 200 OK 8739 - 8740 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Product Response"}} 8741 - { 8742 - "result": { 8743 - "success": "1", 8744 - "error": { 8745 - "code": "", 8746 - "message": "" 8747 - } 8748 - }, 8749 - "Products": [ 8750 - { 8751 - "ProductId": 107, 8752 - "Title": "Test123-456", 8753 - "Description": "Testss updated", 8754 - "Terms": { 8755 - "Id": 83, 8756 - "Name": "Product123", 8757 - "Description": null, 8758 - "Duration": 0, 8759 - "DurationUnit": "", 8760 - "Price": "0", 8761 - "ProductId": 107 8762 - } 8763 - } 8764 - ] 8765 -} 8766 -{{/code}} 8767 - 8768 - 8769 -(% id="HPOSTCreateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8770 -== (% 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(%%) == 8771 - 8772 ----- 8773 - 8774 -{{panel bgColor="#D3D3D3" width="100%"}} 8775 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products 8776 -{{/panel}} 8777 - 8778 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8779 - 8780 ----- 8781 - 8782 -(% 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}} 8783 - 8784 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8785 - 8786 ----- 8787 - 8788 -{{code language="yml" theme="RDark" title="Body"}} 8789 -{"Title":"Test API package creation 2","Description": "Test API package creation 2","Terms":{"Name":"Test term for API 2"},"PrimaryFormId":0} 8790 -{{/code}} 8791 - 8792 -==== Example ==== 8793 - 8794 ----- 8795 - 8796 -(% style="color:#6b6b6b" %)Request 8797 - 8798 -{{code language="php" theme="RDark" title="Create Product Request"}} 8799 - <?php 8800 - 8801 -$curl = curl_init(); 8802 - 8803 -curl_setopt_array($curl, array( 8804 - CURLOPT_URL => 'https://api.onecount.net/v2/products', 8805 - CURLOPT_RETURNTRANSFER => true, 8806 - CURLOPT_ENCODING => '', 8807 - CURLOPT_MAXREDIRS => 10, 8808 - CURLOPT_TIMEOUT => 0, 8809 - CURLOPT_FOLLOWLOCATION => true, 8810 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8811 - CURLOPT_CUSTOMREQUEST => 'POST', 8812 - CURLOPT_POSTFIELDS =>'{"Title":"Test API package creation 1","Description": "Test API package creation 1","Terms":{"Name":"Test term for API 1"},"PrimaryFormId":0}', 8813 - CURLOPT_HTTPHEADER => array( 8814 - 'Appkey: {{ONECOUNT API KEY}}' 8815 - ), 8816 -)); 8817 - 8818 -$response = curl_exec($curl); 8819 - 8820 -curl_close($curl); 8821 -echo $response; 8822 -{{/code}} 8823 - 8824 - 8825 -(% style="color:#6b6b6b" %)Response 200 OK 8826 - 8827 -{{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}} 8828 - { 8829 - "result": { 8830 - "success": "1", 8831 - "error": { 8832 - "code": "", 8833 - "message": "" 8834 - } 8835 - }, 8836 - "Products": [ 8837 - { 8838 - "ProductId": 599 8839 - } 8840 - ] 8841 -} 8842 -{{/code}} 8843 - 8844 - 8845 -(% id="HPUTUpdateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8846 -== (% 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(%%) == 8847 - 8848 ----- 8849 - 8850 -{{panel bgColor="#D3D3D3" width="100%"}} 8851 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/~{~{Product id}} 8852 -{{/panel}} 8853 - 8854 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8855 - 8856 ----- 8857 - 8858 -(% 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}} 8859 - 8860 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8861 - 8862 ----- 8863 - 8864 -{{code language="yml" theme="RDark" title="Body"}} 8865 -{"Title":"Test API package 23","Description": "Test API package 23","PrimaryFormId":0} 8866 -{{/code}} 8867 - 8868 -==== Example ==== 8869 - 8870 ----- 8871 - 8872 -(% style="color:#6b6b6b" %)Request 8873 - 8874 -{{code language="php" theme="RDark" title="Update Product Request"}} 8875 -<?php 8876 - 8877 -$curl = curl_init(); 8878 - 8879 -curl_setopt_array($curl, array( 8880 - CURLOPT_URL => 'https://api.onecount.net/v2/products/{{Product id}}', 8881 - CURLOPT_RETURNTRANSFER => true, 8882 - CURLOPT_ENCODING => '', 8883 - CURLOPT_MAXREDIRS => 10, 8884 - CURLOPT_TIMEOUT => 0, 8885 - CURLOPT_FOLLOWLOCATION => true, 8886 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8887 - CURLOPT_CUSTOMREQUEST => 'PUT', 8888 - CURLOPT_POSTFIELDS =>'{"Title":"Test API package 1","Description": "Test API package 1","PrimaryFormId":0}', 8889 - CURLOPT_HTTPHEADER => array( 8890 - 'Appkey: {{ONECOUNT API KEY}}' 8891 - ), 8892 -)); 8893 - 8894 -$response = curl_exec($curl); 8895 - 8896 -curl_close($curl); 8897 -echo $response; 8898 - 8899 -{{/code}} 8900 - 8901 - 8902 -(% style="color:#6b6b6b" %)Response 200 OK 8903 - 8904 -{{code language="yml" theme="RDark" collapse="true" title="Update Product Response"}} 8905 - { 8906 - "result": { 8907 - "success": "1", 8908 - "error": { 8909 - "code": "", 8910 - "message": "" 8911 - } 8912 - }, 8913 - "Products": [ 8914 - { 8915 - "ProductId": 599, 8916 - "Title": "Test API package 1", 8917 - "Description": "Test API package 1" 8918 - } 8919 - ] 8920 -} 8921 -{{/code}} 8922 - 8923 - 8924 -(% id="HPOSTAttachResourcetoProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8925 -== (% 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(%%) == 8926 - 8927 ----- 8928 - 8929 -{{panel bgColor="#D3D3D3" width="100%"}} 8930 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/attachResource 8931 -{{/panel}} 8932 - 8933 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8934 - 8935 ----- 8936 - 8937 -(% 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}} 8938 - 8939 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8940 - 8941 ----- 8942 - 8943 -{{code language="yml" theme="RDark" title="Body"}} 8944 -{"ProductID":"599","ResourceID":"903"} 8945 -{{/code}} 8946 - 8947 -==== Example ==== 8948 - 8949 ----- 8950 - 8951 -(% style="color:#6b6b6b" %)Request 8952 - 8953 -{{code language="php" theme="RDark" title="Attach Resource to Product Request"}} 8954 - <?php 8955 - 8956 -$curl = curl_init(); 8957 - 8958 -curl_setopt_array($curl, array( 8959 - CURLOPT_URL => 'https://api.onecount.net/v2/products/attachResource', 8960 - CURLOPT_RETURNTRANSFER => true, 8961 - CURLOPT_ENCODING => '', 8962 - CURLOPT_MAXREDIRS => 10, 8963 - CURLOPT_TIMEOUT => 0, 8964 - CURLOPT_FOLLOWLOCATION => true, 8965 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8966 - CURLOPT_CUSTOMREQUEST => 'POST', 8967 - CURLOPT_POSTFIELDS =>'{"ProductID":"599","ResourceID":"903"}', 8968 - CURLOPT_HTTPHEADER => array( 8969 - 'Appkey: {{ONECOUNT API KEY}}' 8970 - ), 8971 -)); 8972 - 8973 -$response = curl_exec($curl); 8974 - 8975 -curl_close($curl); 8976 -echo $response; 8977 -{{/code}} 8978 - 8979 - 8980 -(% style="color:#6b6b6b" %)Response 200 OK 8981 - 8982 -{{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}} 8983 - { 8984 - "result": { 8985 - "success": "1", 8986 - "error": { 8987 - "code": "", 8988 - "message": "" 8989 - } 8990 - }, 8991 - "Products": "599" 8992 -} 8993 -{{/code}} 8994 - 8995 -(% id="HCOMPONENT:Terms" class="western" %) 8996 -=== **COMPONENT: Terms** === 8997 - 8998 8998 (% class="western" %) 8999 8999 This resource is for manipulating terms resource. A term can be created, updated or searched. 9000 9000 9001 -(% class="wrapped" %) 9002 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2397 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9003 9003 ((( 9004 9004 (% class="western" %) 9005 9005 **Method** 9006 -)))|(% style="text-align:left; 2401 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9007 9007 ((( 9008 9008 (% class="western" %) 9009 9009 **Url** 9010 -)))|(% style="text-align:left; 2405 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9011 9011 ((( 9012 9012 (% class="western" %) 9013 9013 **Action** 9014 9014 ))) 9015 -|(% style="text-align:left; 2410 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9016 9016 ((( 9017 9017 (% class="western" %) 9018 9018 GET 9019 -)))|(% style="text-align:left; 2414 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9020 9020 ((( 9021 9021 (% class="western" %) 9022 9022 /terms/5 9023 -)))|(% style="text-align:left; 2418 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9024 9024 ((( 9025 9025 (% class="western" %) 9026 9026 Get term id 5 9027 9027 ))) 9028 -|(% style="text-align:left; 2423 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9029 9029 ((( 9030 9030 (% class="western" %) 9031 9031 GET 9032 -)))|(% style="text-align:left; 2427 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9033 9033 ((( 9034 9034 (% class="western" %) 9035 9035 /terms/lookup?Name=termname 9036 -)))|(% style="text-align:left; 2431 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9037 9037 ((( 9038 9038 (% class="western" %) 9039 9039 Lookup terms by Name 9040 9040 ))) 9041 -|(% style="text-align:left; 2436 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9042 9042 ((( 9043 9043 (% class="western" %) 9044 9044 POST 9045 -)))|(% style="text-align:left; 2440 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9046 9046 ((( 9047 9047 (% class="western" %) 9048 9048 /terms 9049 -)))|(% style="text-align:left; 2444 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9050 9050 ((( 9051 9051 (% class="western" %) 9052 9052 JSON of the terms type object needs to be sent as post data. Id field should not be sent. 9053 9053 ))) 9054 -|(% style="text-align:left; 2449 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9055 9055 ((( 9056 9056 (% class="western" %) 9057 9057 PUT 9058 -)))|(% style="text-align:left; 2453 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9059 9059 ((( 9060 9060 (% class="western" %) 9061 9061 /terms/5 9062 -)))|(% style="text-align:left; 2457 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9063 9063 ((( 9064 9064 (% class="western" %) 9065 9065 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update. 9066 9066 ))) 9067 9067 9068 -(% id="HGETAllTerms" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9069 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Terms(%%) == 2463 +\\ 9070 9070 9071 ----- 2465 +(% class="western" %) 2466 +**GET method should be used to lookup products.** 9072 9072 9073 ----- 2468 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2469 +((( 2470 +(% class="western" %) 2471 +**Request** 2472 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2473 +((( 2474 +(% class="western" %) 2475 +**Type** 2476 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2477 +((( 2478 +(% class="western" %) 2479 +**Description** 2480 +))) 2481 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2482 +((( 2483 +(% class="western" %) 2484 +Lookup params 2485 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2486 +((( 2487 +(% class="western" %) 2488 +String 2489 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2490 +((( 2491 +(% class="western" %) 2492 +URL encoded key value string parameter for the lookup. 9074 9074 9075 -{{panel bgColor="#D3D3D3" width="100%"}} 9076 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms 9077 -{{/panel}} 2494 +(% class="western" %) 2495 +Params: 9078 9078 9079 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2497 +(% class="western" %) 2498 +Name: Name of the term for lookup (String) 2499 +))) 9080 9080 9081 ----- 2501 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2502 +((( 2503 +(% class="western" %) 2504 +**Response** 2505 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2506 +((( 2507 +(% class="western" %) 2508 +**Type** 2509 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2510 +((( 2511 +(% class="western" %) 2512 +**Description** 2513 +))) 2514 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2515 +((( 2516 +(% class="western" %) 2517 +Terms 2518 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2519 +((( 2520 +(% class="western" %) 2521 +Terms 2522 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2523 +((( 2524 +(% class="western" %) 2525 +Returns found term details. 2526 +))) 9082 9082 9083 - (% 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}}2528 +\\ 9084 9084 9085 -==== Example ==== 2530 +(% class="western" %) 2531 +**POST method should be used to create products.** 9086 9086 9087 ----- 2533 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2534 +((( 2535 +(% class="western" %) 2536 +**Request** 2537 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2538 +((( 2539 +(% class="western" %) 2540 +**Type** 2541 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2542 +((( 2543 +(% class="western" %) 2544 +**Description** 2545 +))) 2546 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2547 +((( 2548 +(% class="western" %) 2549 +Terms 2550 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2551 +((( 2552 +(% class="western" %) 2553 +Terms 2554 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2555 +((( 2556 +(% class="western" %) 2557 +Term details in json to be sent as post data. Id should not be set. 9088 9088 9089 -(% style="color:#6b6b6b" %)Request 2559 +(% class="western" %) 2560 +**Possible Request Params**: Name, Description, Duration, DurationUnit, Price, ProductId, Active, ProductStatusId, Quantity, QuantityTxt 9090 9090 9091 - {{codelanguage="php" theme="RDark"title="Get All Terms Request"}}9092 - <?php2562 +(% class="western" %) 2563 +**Example**: 9093 9093 9094 -$curl = curl_init(); 2565 +(% class="western" %) 2566 +{"Name":"Test123","Description":Testss","Duration":10,"ProductId":17} 2567 +))) 9095 9095 9096 -curl_setopt_array($curl, array( 9097 - CURLOPT_URL => 'https://api.onecount.net/v2/terms', 9098 - CURLOPT_RETURNTRANSFER => true, 9099 - CURLOPT_ENCODING => '', 9100 - CURLOPT_MAXREDIRS => 10, 9101 - CURLOPT_TIMEOUT => 0, 9102 - CURLOPT_FOLLOWLOCATION => true, 9103 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9104 - CURLOPT_CUSTOMREQUEST => 'GET', 9105 - CURLOPT_HTTPHEADER => array( 9106 - 'Appkey: {{ONECOUNT API KEY}}' 9107 - ), 9108 -)); 2569 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2570 +((( 2571 +(% class="western" %) 2572 +**Response** 2573 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2574 +((( 2575 +(% class="western" %) 2576 +**Type** 2577 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2578 +((( 2579 +(% class="western" %) 2580 +**Description** 2581 +))) 2582 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2583 +((( 2584 +(% class="western" %) 2585 +TermId 2586 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2587 +((( 2588 +(% class="western" %) 2589 +int 2590 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2591 +((( 2592 +(% class="western" %) 2593 +Term Id of the newly created term. 2594 +))) 9109 9109 9110 - $response = curl_exec($curl);2596 +\\ 9111 9111 9112 -curl_close($curl); 9113 -echo $response; 9114 -{{/code}} 2598 +(% class="western" %) 2599 +PUT method should be used to update an individual term given the term info. 9115 9115 2601 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2602 +((( 2603 +(% class="western" %) 2604 +**Request** 2605 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2606 +((( 2607 +(% class="western" %) 2608 +**Type** 2609 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2610 +((( 2611 +(% class="western" %) 2612 +**Description** 2613 +))) 2614 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2615 +((( 2616 +(% class="western" %) 2617 +Terms 2618 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2619 +((( 2620 +(% class="western" %) 2621 +Term 2622 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2623 +((( 2624 +(% class="western" %) 2625 +Term details to be updated in json format to be sent with request. Id property needs to be set to identify the term to be updated. 9116 9116 9117 -(% style="color:#6b6b6b" %)Response 200 OK 2627 +(% class="western" %) 2628 +\\ 9118 9118 9119 -{{code language="yml" theme="RDark" collapse="true" title="Get All Terms Response"}} 9120 - { 9121 - "result": { 9122 - "success": "1", 9123 - "error": { 9124 - "code": "", 9125 - "message": "" 9126 - } 9127 - }, 9128 - "Terms": [ 9129 - { 9130 - "Id": 26, 9131 - "Name": "Please contact me to arrange a demo", 9132 - "Description": "", 9133 - "Duration": 1, 9134 - "DurationUnit": "I", 9135 - "Price": "0", 9136 - "ProductId": 26 9137 - }, 9138 - { 9139 - "Id": 34, 9140 - "Name": "ONEcount Promotional Emails", 9141 - "Description": "ONEcount promotional emails", 9142 - "Duration": 1, 9143 - "DurationUnit": "I", 9144 - "Price": "0", 9145 - "ProductId": 34 9146 - }, 9147 - { 9148 - "Id": 42, 9149 - "Name": "ONEcount Staff List", 9150 - "Description": "List of ONEcount/GCN Media Staff", 9151 - "Duration": 1, 9152 - "DurationUnit": "I", 9153 - "Price": "0", 9154 - "ProductId": 42 9155 - }, 9156 - { 9157 - "Id": 49, 9158 - "Name": "ONEcount Medical Publishers", 9159 - "Description": "ONEcount Medical Publishers and Associations", 9160 - "Duration": 1, 9161 - "DurationUnit": "I", 9162 - "Price": "0", 9163 - "ProductId": 49 9164 - }, 9165 - { 9166 - "Id": 57, 9167 - "Name": "000 Pop-Up Term", 9168 - "Description": "", 9169 - "Duration": 1, 9170 - "DurationUnit": "I", 9171 - "Price": "0", 9172 - "ProductId": 57 9173 - }, 9174 - { 9175 - "Id": 59, 9176 - "Name": "Get it for free", 9177 - "Description": "", 9178 - "Duration": 1, 9179 - "DurationUnit": "I", 9180 - "Price": "0", 9181 - "ProductId": 67 9182 - }, 9183 - { 9184 - "Id": 67, 9185 - "Name": "DAS_freepass_00", 9186 - "Description": "", 9187 - "Duration": 30, 9188 - "DurationUnit": "D", 9189 - "Price": "0", 9190 - "ProductId": 91 9191 - }, 9192 - { 9193 - "Id": 75, 9194 - "Name": "Product123", 9195 - "Description": null, 9196 - "Duration": 0, 9197 - "DurationUnit": "", 9198 - "Price": "0", 9199 - "ProductId": 99 9200 - }, 9201 - { 9202 - "Id": 83, 9203 - "Name": "Product123", 9204 - "Description": null, 9205 - "Duration": 0, 9206 - "DurationUnit": "", 9207 - "Price": "0", 9208 - "ProductId": 107 9209 - }, 9210 - { 9211 - "Id": 91, 9212 - "Name": "Test123 update ", 9213 - "Description": "Testss updated", 9214 - "Duration": 10, 9215 - "DurationUnit": "", 9216 - "Price": "0", 9217 - "ProductId": 107 9218 - }, 9219 - { 9220 - "Id": 93, 9221 - "Name": "Enhanced Analytics Webinar", 9222 - "Description": "Check the box to register for the February 26th webinar.", 9223 - "Duration": 1, 9224 - "DurationUnit": "I", 9225 - "Price": "0", 9226 - "ProductId": 109 9227 - }, 9228 - { 9229 - "Id": 423, 9230 - "Name": "Test term for API", 9231 - "Description": null, 9232 - "Duration": 0, 9233 - "DurationUnit": "", 9234 - "Price": "0.00", 9235 - "ProductId": 591 9236 - }, 9237 - { 9238 - "Id": 431, 9239 - "Name": "Test term for API 1", 9240 - "Description": null, 9241 - "Duration": 0, 9242 - "DurationUnit": "", 9243 - "Price": "0.00", 9244 - "ProductId": 599 9245 - } 9246 - ] 9247 -} 9248 -{{/code}} 2630 +(% class="western" %) 2631 +**Example**: 9249 9249 2633 +(% class="western" %) 2634 +{"Name":"Test123","Description":Testss","Duration":10,"ProductId":17} 2635 +))) 9250 9250 9251 -(% id="HGETspecificTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9252 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Term(%%) == 2637 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2638 +((( 2639 +(% class="western" %) 2640 +**Response** 2641 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2642 +((( 2643 +(% class="western" %) 2644 +**Type** 2645 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2646 +((( 2647 +(% class="western" %) 2648 +**Description** 2649 +))) 2650 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2651 +((( 2652 +(% class="western" %) 2653 +TermId 2654 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2655 +((( 2656 +(% class="western" %) 2657 +Int 2658 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2659 +((( 2660 +(% class="western" %) 2661 +term id of the updated term. 2662 +))) 9253 9253 9254 - ----2664 +\\ 9255 9255 9256 -{{panel bgColor="#D3D3D3" width="100%"}} 9257 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}} 9258 -{{/panel}} 2666 +(% class="western" %) 2667 +**COMPONENT: Resources** 9259 9259 9260 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9261 - 9262 ----- 9263 - 9264 -(% 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}} 9265 - 9266 -==== Example ==== 9267 - 9268 ----- 9269 - 9270 -(% style="color:#6b6b6b" %)Request 9271 - 9272 -{{code language="php" theme="RDark" title="Get specific Term Request"}} 9273 - <?php 9274 - 9275 -$curl = curl_init(); 9276 - 9277 -curl_setopt_array($curl, array( 9278 - CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}', 9279 - CURLOPT_RETURNTRANSFER => true, 9280 - CURLOPT_ENCODING => '', 9281 - CURLOPT_MAXREDIRS => 10, 9282 - CURLOPT_TIMEOUT => 0, 9283 - CURLOPT_FOLLOWLOCATION => true, 9284 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9285 - CURLOPT_CUSTOMREQUEST => 'GET', 9286 - CURLOPT_HTTPHEADER => array( 9287 - 'Appkey: {{ONECOUNT API KEY}}' 9288 - ), 9289 -)); 9290 - 9291 -$response = curl_exec($curl); 9292 - 9293 -curl_close($curl); 9294 -echo $response; 9295 -{{/code}} 9296 - 9297 - 9298 -(% style="color:#6b6b6b" %)Response 200 OK 9299 - 9300 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Term Response"}} 9301 - { 9302 - "result": { 9303 - "success": "1", 9304 - "error": { 9305 - "code": "", 9306 - "message": "" 9307 - } 9308 - }, 9309 - "Terms": [ 9310 - { 9311 - "Id": 431, 9312 - "Name": "Test term for API 1", 9313 - "Description": null, 9314 - "Duration": 0, 9315 - "DurationUnit": "", 9316 - "Price": "0.00", 9317 - "ProductId": 599 9318 - } 9319 - ] 9320 -} 9321 -{{/code}} 9322 - 9323 - 9324 -(% id="HGETlookupTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9325 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Term(%%) == 9326 - 9327 ----- 9328 - 9329 -{{panel bgColor="#D3D3D3" width="100%"}} 9330 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/lookup?Name={(%%){Term Name}} 9331 -{{/panel}} 9332 - 9333 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9334 - 9335 ----- 9336 - 9337 -(% 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}} 9338 - 9339 -=== (% style="color:#212121" %)Query Params(%%) === 9340 - 9341 ----- 9342 - 9343 -(% 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" %)~{~{Term Name}} 9344 - 9345 -==== Example ==== 9346 - 9347 ----- 9348 - 9349 -(% style="color:#6b6b6b" %)Request 9350 - 9351 -{{code language="php" theme="RDark" title="Lookup Term Request"}} 9352 - <?php 9353 - 9354 -$curl = curl_init(); 9355 - 9356 -curl_setopt_array($curl, array( 9357 - CURLOPT_URL => 'https://api.onecount.net/v2/terms/lookup?Name={{Term Name}}', 9358 - CURLOPT_RETURNTRANSFER => true, 9359 - CURLOPT_ENCODING => '', 9360 - CURLOPT_MAXREDIRS => 10, 9361 - CURLOPT_TIMEOUT => 0, 9362 - CURLOPT_FOLLOWLOCATION => true, 9363 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9364 - CURLOPT_CUSTOMREQUEST => 'GET', 9365 - CURLOPT_HTTPHEADER => array( 9366 - 'Appkey: {{ONECOUNT API KEY}}' 9367 - ), 9368 -)); 9369 - 9370 -$response = curl_exec($curl); 9371 - 9372 -curl_close($curl); 9373 -echo $response; 9374 -{{/code}} 9375 - 9376 - 9377 -(% style="color:#6b6b6b" %)Response 200 OK 9378 - 9379 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Term Response"}} 9380 -{ 9381 - "result": { 9382 - "success": "1", 9383 - "error": { 9384 - "code": "", 9385 - "message": "" 9386 - } 9387 - }, 9388 - "Terms": [ 9389 - { 9390 - "Id": 431, 9391 - "Name": "Test term for API 1", 9392 - "Description": null, 9393 - "Duration": 0, 9394 - "DurationUnit": "", 9395 - "Price": "0.00", 9396 - "ProductId": 599 9397 - } 9398 - ] 9399 -} 9400 -{{/code}} 9401 - 9402 - 9403 -(% id="HPOSTCreateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9404 -== (% 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(%%) == 9405 - 9406 ----- 9407 - 9408 -{{panel bgColor="#D3D3D3" width="100%"}} 9409 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms 9410 -{{/panel}} 9411 - 9412 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9413 - 9414 ----- 9415 - 9416 -(% 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}} 9417 - 9418 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 9419 - 9420 ----- 9421 - 9422 -{{code language="yml" theme="RDark" title="Body"}} 9423 -{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599} 9424 -{{/code}} 9425 - 9426 -==== Example ==== 9427 - 9428 ----- 9429 - 9430 -(% style="color:#6b6b6b" %)Request 9431 - 9432 -{{code language="php" theme="RDark" title="Create Term Request"}} 9433 -<?php 9434 - 9435 -$curl = curl_init(); 9436 - 9437 -curl_setopt_array($curl, array( 9438 - CURLOPT_URL => 'https://api.onecount.net/v2/terms', 9439 - CURLOPT_RETURNTRANSFER => true, 9440 - CURLOPT_ENCODING => '', 9441 - CURLOPT_MAXREDIRS => 10, 9442 - CURLOPT_TIMEOUT => 0, 9443 - CURLOPT_FOLLOWLOCATION => true, 9444 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9445 - CURLOPT_CUSTOMREQUEST => 'POST', 9446 - CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599} 9447 - 9448 -', 9449 - CURLOPT_HTTPHEADER => array( 9450 - 'Appkey: {{ONECOUNT API KEY}}' 9451 - ), 9452 -)); 9453 - 9454 -$response = curl_exec($curl); 9455 - 9456 -curl_close($curl); 9457 -echo $response; 9458 - 9459 - 9460 -{{/code}} 9461 - 9462 - 9463 -(% style="color:#6b6b6b" %)Response 200 OK 9464 - 9465 -{{code language="yml" theme="RDark" collapse="true" title="Create Term Response"}} 9466 -{ 9467 - "result": { 9468 - "success": "1", 9469 - "error": { 9470 - "code": "", 9471 - "message": "" 9472 - } 9473 - }, 9474 - "Terms": [ 9475 - { 9476 - "Id": 447 9477 - } 9478 - ] 9479 -} 9480 -{{/code}} 9481 - 9482 - 9483 -(% id="HPUTUpdateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9484 -== (% 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(%%) == 9485 - 9486 ----- 9487 - 9488 -{{panel bgColor="#D3D3D3" width="100%"}} 9489 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}} 9490 -{{/panel}} 9491 - 9492 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9493 - 9494 ----- 9495 - 9496 -(% 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}} 9497 - 9498 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 9499 - 9500 ----- 9501 - 9502 -{{code language="yml" theme="RDark" title="Body"}} 9503 -{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599} 9504 -{{/code}} 9505 - 9506 -==== Example ==== 9507 - 9508 ----- 9509 - 9510 -(% style="color:#6b6b6b" %)Request 9511 - 9512 -{{code language="php" theme="RDark" title="Update Term Request"}} 9513 - <?php 9514 - 9515 -$curl = curl_init(); 9516 - 9517 -curl_setopt_array($curl, array( 9518 - CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}', 9519 - CURLOPT_RETURNTRANSFER => true, 9520 - CURLOPT_ENCODING => '', 9521 - CURLOPT_MAXREDIRS => 10, 9522 - CURLOPT_TIMEOUT => 0, 9523 - CURLOPT_FOLLOWLOCATION => true, 9524 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9525 - CURLOPT_CUSTOMREQUEST => 'PUT', 9526 - CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}', 9527 - CURLOPT_HTTPHEADER => array( 9528 - 'Appkey: {{ONECOUNT API KEY}}' 9529 - ), 9530 -)); 9531 - 9532 -$response = curl_exec($curl); 9533 - 9534 -curl_close($curl); 9535 -echo $response; 9536 -{{/code}} 9537 - 9538 - 9539 -(% style="color:#6b6b6b" %)Response 200 OK 9540 - 9541 -{{code language="yml" theme="RDark" collapse="true" title="Update Term Response"}} 9542 - { 9543 - "result": { 9544 - "success": "1", 9545 - "error": { 9546 - "code": "", 9547 - "message": "" 9548 - } 9549 - }, 9550 - "Terms": [ 9551 - { 9552 - "Id": 447, 9553 - "Name": "Test API term creation update", 9554 - "Description": "Test API term creation update", 9555 - "Duration": 10, 9556 - "DurationUnit": "", 9557 - "Price": "0.00", 9558 - "ProductId": 599 9559 - } 9560 - ] 9561 -} 9562 -{{/code}} 9563 - 9564 - 9565 -(% id="HCOMPONENT:Resources" class="western" %) 9566 -=== **COMPONENT: Resources** === 9567 - 9568 9568 (% class="western" %) 9569 9569 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. 9570 9570 ... ... @@ -9603,4710 +9603,880 @@ 9603 9603 (% class="western" %) 9604 9604 This resource is for manipulating resources resource. A resource can be created, updated or searched. 9605 9605 9606 -(% class="wrapped" %) 9607 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2707 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9608 9608 ((( 9609 9609 (% class="western" %) 9610 9610 **Method** 9611 -)))|(% style="text-align:left; 2711 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9612 9612 ((( 9613 9613 (% class="western" %) 9614 9614 **Url** 9615 -)))|(% style="text-align:left; 2715 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9616 9616 ((( 9617 9617 (% class="western" %) 9618 9618 **Action** 9619 9619 ))) 9620 -|(% style="text-align:left; 2720 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9621 9621 ((( 9622 9622 (% class="western" %) 9623 9623 GET 9624 -)))|(% style="text-align:left; 2724 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9625 9625 ((( 9626 9626 (% class="western" %) 9627 9627 /resources/5 9628 -)))|(% style="text-align:left; 2728 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9629 9629 ((( 9630 9630 (% class="western" %) 9631 9631 Get resource id 5 9632 9632 ))) 9633 -|(% style="text-align:left; 2733 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9634 9634 ((( 9635 9635 (% class="western" %) 9636 9636 GET 9637 -)))|(% style="text-align:left; 2737 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9638 9638 ((( 9639 9639 (% class="western" %) 9640 9640 /resources/lookup?Name=resourcename 9641 -)))|(% style="text-align:left; 2741 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9642 9642 ((( 9643 9643 (% class="western" %) 9644 9644 Lookup resources by Name 9645 9645 ))) 9646 -|(% style="text-align:left; 2746 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9647 9647 ((( 9648 9648 (% class="western" %) 9649 9649 POST 9650 -)))|(% style="text-align:left; 2750 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9651 9651 ((( 9652 9652 (% class="western" %) 9653 9653 /resources 9654 -)))|(% style="text-align:left; 2754 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9655 9655 ((( 9656 9656 (% class="western" %) 9657 9657 JSON of the resources type object needs to be sent as post data. Id field should not be sent. 9658 9658 ))) 9659 -|(% style="text-align:left; 2759 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9660 9660 ((( 9661 9661 (% class="western" %) 9662 9662 PUT 9663 -)))|(% style="text-align:left; 2763 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9664 9664 ((( 9665 9665 (% class="western" %) 9666 9666 /resources/5 9667 -)))|(% style="text-align:left; 2767 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9668 9668 ((( 9669 9669 (% class="western" %) 9670 9670 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update. 9671 9671 ))) 9672 9672 9673 -(% id="HGETAllResources" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9674 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Resources(%%) == 2773 +\\ 9675 9675 9676 ----- 2775 +(% class="western" %) 2776 +**GET method should be used to lookup resources.** 9677 9677 9678 ----- 2778 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2779 +((( 2780 +(% class="western" %) 2781 +**Request** 2782 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2783 +((( 2784 +(% class="western" %) 2785 +**Type** 2786 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2787 +((( 2788 +(% class="western" %) 2789 +**Description** 2790 +))) 2791 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2792 +((( 2793 +(% class="western" %) 2794 +Lookup params 2795 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2796 +((( 2797 +(% class="western" %) 2798 +String 2799 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2800 +((( 2801 +(% class="western" %) 2802 +URL encoded key value string parameter for the lookup. 9679 9679 9680 -{{panel bgColor="#D3D3D3" width="100%"}} 9681 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources 9682 -{{/panel}} 2804 +(% class="western" %) 2805 +Params: 9683 9683 9684 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2807 +(% class="western" %) 2808 +Name: Name of the resource for lookup (String) 2809 +))) 9685 9685 9686 ----- 2811 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2812 +((( 2813 +(% class="western" %) 2814 +**Response** 2815 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2816 +((( 2817 +(% class="western" %) 2818 +**Type** 2819 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2820 +((( 2821 +(% class="western" %) 2822 +**Description** 2823 +))) 2824 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2825 +((( 2826 +(% class="western" %) 2827 +Resources 2828 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2829 +((( 2830 +(% class="western" %) 2831 +Resources 2832 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2833 +((( 2834 +(% class="western" %) 2835 +Returns found resource details. 2836 +))) 9687 9687 9688 - (% 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}}2838 +\\ 9689 9689 9690 -==== Example ==== 2840 +(% class="western" %) 2841 +**POST method should be used to create resources.** 9691 9691 9692 ----- 2843 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2844 +((( 2845 +(% class="western" %) 2846 +**Request** 2847 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2848 +((( 2849 +(% class="western" %) 2850 +**Type** 2851 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2852 +((( 2853 +(% class="western" %) 2854 +**Description** 2855 +))) 2856 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2857 +((( 2858 +(% class="western" %) 2859 +Resources 2860 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2861 +((( 2862 +(% class="western" %) 2863 +Resources 2864 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2865 +((( 2866 +(% class="western" %) 2867 +resource details in json to be sent as post data. Id should not be set. 9693 9693 9694 -(% style="color:#6b6b6b" %)Request 2869 +(% class="western" %) 2870 +**Possible Request Params**: Name, Description, Type, Value, FreePass 9695 9695 9696 - {{codelanguage="php" theme="RDark"title="Get All Resource Request"}}9697 - <?php2872 +(% class="western" %) 2873 +**Example**: 9698 9698 9699 -$curl = curl_init(); 2875 +(% class="western" %) 2876 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 9700 9700 9701 -curl_setopt_array($curl, array( 9702 - CURLOPT_URL => 'https://api.onecount.net/v2/resources', 9703 - CURLOPT_RETURNTRANSFER => true, 9704 - CURLOPT_ENCODING => '', 9705 - CURLOPT_MAXREDIRS => 10, 9706 - CURLOPT_TIMEOUT => 0, 9707 - CURLOPT_FOLLOWLOCATION => true, 9708 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9709 - CURLOPT_CUSTOMREQUEST => 'GET', 9710 - CURLOPT_HTTPHEADER => array( 9711 - 'Appkey: {{ONECOUNT API KEY}}' 9712 - ), 9713 -)); 2878 +(% class="western" %) 2879 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 9714 9714 9715 -$response = curl_exec($curl); 2881 +(% class="western" %) 2882 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”, "FreePass":1} 9716 9716 9717 -c url_close($curl);9718 -e cho $response;9719 - {{/code}}2884 +(% class="western" %) 2885 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 2886 +))) 9720 9720 2888 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2889 +((( 2890 +(% class="western" %) 2891 +**Response** 2892 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2893 +((( 2894 +(% class="western" %) 2895 +**Type** 2896 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2897 +((( 2898 +(% class="western" %) 2899 +**Description** 2900 +))) 2901 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2902 +((( 2903 +(% class="western" %) 2904 +ResourceId 2905 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2906 +((( 2907 +(% class="western" %) 2908 +int 2909 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2910 +((( 2911 +(% class="western" %) 2912 +Resource Id of the newly created resource. 2913 +))) 9721 9721 9722 - (% style="color:#6b6b6b" %)Response 200 OK2915 +\\ 9723 9723 9724 -{{code language="yml" theme="RDark" collapse="true" title="Get All Resource Response"}} 9725 - { 9726 - "result": { 9727 - "success": "1", 9728 - "error": { 9729 - "code": "", 9730 - "message": "" 9731 - } 9732 - }, 9733 - "Resources": [ 9734 - { 9735 - "Id": 18, 9736 - "Name": "ONEcount/GCN Staff Newsletter Resource", 9737 - "Description": "ONEcount/GCN Staff Newsletter List", 9738 - "Type": "2", 9739 - "Value": "57|53|55", 9740 - "FreePass": 0 9741 - }, 9742 - { 9743 - "Id": 26, 9744 - "Name": "GCN TEST GROUP", 9745 - "Description": "THESE USER WILL GET TEST MESSAGE", 9746 - "Type": "2", 9747 - "Value": "47", 9748 - "FreePass": 0 9749 - }, 9750 - { 9751 - "Id": 98, 9752 - "Name": "ONEcount Prospects List", 9753 - "Description": "Newsletter List of ONEcount Prospects", 9754 - "Type": "2", 9755 - "Value": "55", 9756 - "FreePass": 0 9757 - }, 9758 - { 9759 - "Id": 106, 9760 - "Name": "Google Ads Form", 9761 - "Description": "", 9762 - "Type": "3", 9763 - "Value": "http://ocreg.one-count.com/onecount/reg/registerForm.cgi?form=186&brand=OC", 9764 - "FreePass": 0 9765 - }, 9766 - { 9767 - "Id": 114, 9768 - "Name": "secure files", 9769 - "Description": "", 9770 - "Type": "3", 9771 - "Value": "/download.php", 9772 - "FreePass": 0 9773 - }, 9774 - { 9775 - "Id": 130, 9776 - "Name": "REQUEST A DEMO", 9777 - "Description": "", 9778 - "Type": "3", 9779 - "Value": "http://ocreg.one-count.com/onecount/flexreg/displayform.cgi?g=0&form=34", 9780 - "FreePass": 0 9781 - }, 9782 - { 9783 - "Id": 137, 9784 - "Name": "ONEcount Medical Publishers", 9785 - "Description": "ONEcount Medical Publishers and Associations", 9786 - "Type": "2", 9787 - "Value": "61", 9788 - "FreePass": 0 9789 - }, 9790 - { 9791 - "Id": 145, 9792 - "Name": "Pop-Up Test Page", 9793 - "Description": "", 9794 - "Type": "3", 9795 - "Value": "http://omar.gcnmedia.com/projects/form/gated.html", 9796 - "FreePass": 0 9797 - }, 9798 - { 9799 - "Id": 146, 9800 - "Name": "Platform Resource", 9801 - "Description": "Test Resource", 9802 - "Type": "3", 9803 - "Value": "/Platform", 9804 - "FreePass": 0 9805 - }, 9806 - { 9807 - "Id": 153, 9808 - "Name": "Submitted", 9809 - "Description": "", 9810 - "Type": "3", 9811 - "Value": "http://gcn-reg.onecount.net/onecount/reg/tSuccessView.php?brand=oc", 9812 - "FreePass": 0 9813 - } 9814 - ] 9815 -} 9816 -{{/code}} 2917 +(% class="western" %) 2918 +PUT method should be used to update an individual resource given the resource info. 9817 9817 2920 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2921 +((( 2922 +(% class="western" %) 2923 +**Request** 2924 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2925 +((( 2926 +(% class="western" %) 2927 +**Type** 2928 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2929 +((( 2930 +(% class="western" %) 2931 +**Description** 2932 +))) 2933 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2934 +((( 2935 +(% class="western" %) 2936 +Resources 2937 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2938 +((( 2939 +(% class="western" %) 2940 +Resource 2941 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2942 +((( 2943 +(% class="western" %) 2944 +Resource details to be updated injsonformat to be sent withrequest. Id property needs to be set to identify the resource to be updated. 9818 9818 9819 -(% id="HGETspecificResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)9820 - == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Resource(%%) ==2946 +(% class="western" %) 2947 +\\ 9821 9821 9822 ----- 2949 +(% class="western" %) 2950 +Examples: 9823 9823 9824 -{{panel bgColor="#D3D3D3" width="100%"}} 9825 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/{(%%){Resource ID}} 9826 -{{/panel}} 2952 +(% class="western" %) 2953 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 9827 9827 9828 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2955 +(% class="western" %) 2956 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 9829 9829 9830 ----- 2958 +(% class="western" %) 2959 +{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”,"FreePass":1} 9831 9831 9832 -(% 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}} 2961 +(% class="western" %) 2962 +{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 2963 +))) 9833 9833 9834 -==== Example ==== 2965 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2966 +((( 2967 +(% class="western" %) 2968 +**Response** 2969 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2970 +((( 2971 +(% class="western" %) 2972 +**Type** 2973 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2974 +((( 2975 +(% class="western" %) 2976 +**Description** 2977 +))) 2978 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2979 +((( 2980 +(% class="western" %) 2981 +ResourceId 2982 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2983 +((( 2984 +(% class="western" %) 2985 +Int 2986 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 2987 +((( 2988 +(% class="western" %) 2989 +resource id of the updated resource. 2990 +))) 9835 9835 9836 - ----2992 +\\ 9837 9837 9838 - (% style="color:#6b6b6b" %)Request2994 +\\ 9839 9839 9840 - {{codelanguage="php" theme="RDark"title="Get specific Resource Request"}}9841 - <?php2996 +(% class="western" %) 2997 +\\ 9842 9842 9843 -$curl = curl_init(); 2999 +(% class="western" %) 3000 +**COMPONENT: Source Codes 3001 +** 9844 9844 9845 -curl_setopt_array($curl, array( 9846 - CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{Resource ID}}', 9847 - CURLOPT_RETURNTRANSFER => true, 9848 - CURLOPT_ENCODING => '', 9849 - CURLOPT_MAXREDIRS => 10, 9850 - CURLOPT_TIMEOUT => 0, 9851 - CURLOPT_FOLLOWLOCATION => true, 9852 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9853 - CURLOPT_CUSTOMREQUEST => 'GET', 9854 - CURLOPT_HTTPHEADER => array( 9855 - 'Appkey: {{ONECOUNT API KEY}}' 9856 - ), 9857 -)); 9858 - 9859 -$response = curl_exec($curl); 9860 - 9861 -curl_close($curl); 9862 -echo $response; 9863 -{{/code}} 9864 - 9865 - 9866 -(% style="color:#6b6b6b" %)Response 200 OK 9867 - 9868 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Resource Response"}} 9869 - { 9870 - "result": { 9871 - "success": "1", 9872 - "error": { 9873 - "code": "", 9874 - "message": "" 9875 - } 9876 - }, 9877 - "Resources": [ 9878 - { 9879 - "Id": 623, 9880 - "Name": "TOP 3 THINGS - NonStop Local News", 9881 - "Description": "Tap into Non-Stop News from Montana Right Now! From the Big Story to the 3 Things to Know - we have the moment's essential headlines.", 9882 - "Type": "2", 9883 - "Value": "", 9884 - "FreePass": 0 9885 - } 9886 - ] 9887 -} 9888 -{{/code}} 9889 - 9890 - 9891 -(% id="HGETlookupResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9892 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Resource(%%) == 9893 - 9894 ----- 9895 - 9896 -{{panel bgColor="#D3D3D3" width="100%"}} 9897 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/lookup?Name={(%%){Resource Name}} 9898 -{{/panel}} 9899 - 9900 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9901 - 9902 ----- 9903 - 9904 -(% 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}} 9905 - 9906 -=== (% style="color:#212121" %)Query Params(%%) === 9907 - 9908 ----- 9909 - 9910 -(% 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}} 9911 - 9912 -==== Example ==== 9913 - 9914 ----- 9915 - 9916 -(% style="color:#6b6b6b" %)Request 9917 - 9918 -{{code language="php" theme="RDark" title="Lookup Resource Request"}} 9919 - <?php 9920 - 9921 -$curl = curl_init(); 9922 - 9923 -curl_setopt_array($curl, array( 9924 - CURLOPT_URL => 'https://api.onecount.net/v2/resources/lookup?Name={{Resource Name}}', 9925 - CURLOPT_RETURNTRANSFER => true, 9926 - CURLOPT_ENCODING => '', 9927 - CURLOPT_MAXREDIRS => 10, 9928 - CURLOPT_TIMEOUT => 0, 9929 - CURLOPT_FOLLOWLOCATION => true, 9930 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9931 - CURLOPT_CUSTOMREQUEST => 'GET', 9932 - CURLOPT_HTTPHEADER => array( 9933 - 'Appkey: {{ONECOUNT API KEY}}' 9934 - ), 9935 -)); 9936 - 9937 -$response = curl_exec($curl); 9938 - 9939 -curl_close($curl); 9940 -echo $response; 9941 -{{/code}} 9942 - 9943 - 9944 -(% style="color:#6b6b6b" %)Response 200 OK 9945 - 9946 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Resource Response"}} 9947 - { 9948 - "result": { 9949 - "success": "1", 9950 - "error": { 9951 - "code": "", 9952 - "message": "" 9953 - } 9954 - }, 9955 - "Resources": [ 9956 - { 9957 - "Id": 479, 9958 - "Name": "Virtualization Review", 9959 - "Description": "", 9960 - "Type": "0", 9961 - "Value": "", 9962 - "FreePass": 0 9963 - } 9964 - ] 9965 -} 9966 -{{/code}} 9967 - 9968 - 9969 -(% id="HPOSTCreateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9970 -== (% 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(%%) == 9971 - 9972 ----- 9973 - 9974 -{{panel bgColor="#D3D3D3" width="100%"}} 9975 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources 9976 -{{/panel}} 9977 - 9978 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9979 - 9980 ----- 9981 - 9982 -(% 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}} 9983 - 9984 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 9985 - 9986 ----- 9987 - 9988 -{{code language="yml" theme="RDark" title="Body"}} 9989 -{"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} 9990 -{{/code}} 9991 - 9992 -==== Example ==== 9993 - 9994 ----- 9995 - 9996 -(% style="color:#6b6b6b" %)Request 9997 - 9998 -{{code language="php" theme="RDark" title="Create Resource Request"}} 9999 - <?php 10000 - 10001 -$curl = curl_init(); 10002 - 10003 -curl_setopt_array($curl, array( 10004 - CURLOPT_URL => 'https://api.onecount.net/v2/resources', 10005 - CURLOPT_RETURNTRANSFER => true, 10006 - CURLOPT_ENCODING => '', 10007 - CURLOPT_MAXREDIRS => 10, 10008 - CURLOPT_TIMEOUT => 0, 10009 - CURLOPT_FOLLOWLOCATION => true, 10010 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10011 - CURLOPT_CUSTOMREQUEST => 'POST', 10012 - 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}', 10013 - CURLOPT_HTTPHEADER => array( 10014 - 'Appkey: {{ONECOUNT API KEY}}' 10015 - ), 10016 -)); 10017 - 10018 -$response = curl_exec($curl); 10019 - 10020 -curl_close($curl); 10021 -echo $response; 10022 -{{/code}} 10023 - 10024 - 10025 -(% style="color:#6b6b6b" %)Response 200 OK 10026 - 10027 -{{code language="yml" theme="RDark" collapse="true" title="Create Resource Response"}} 10028 - { 10029 - "result": { 10030 - "success": "1", 10031 - "error": { 10032 - "code": "", 10033 - "message": "" 10034 - } 10035 - }, 10036 - "Resources": [ 10037 - { 10038 - "Id": 871, 10039 - "Name": "Test API product creation 21", 10040 - "Description": "Test API product creation 21", 10041 - "Type": "3", 10042 - "Value": "http://one-count.com", 10043 - "FreePass": 1 10044 - } 10045 - ] 10046 -} 10047 -{{/code}} 10048 - 10049 - 10050 -(% id="HPUTUpdateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10051 -== (% 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(%%) == 10052 - 10053 ----- 10054 - 10055 -{{panel bgColor="#D3D3D3" width="100%"}} 10056 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/~{~{resource id}} 10057 -{{/panel}} 10058 - 10059 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10060 - 10061 ----- 10062 - 10063 -(% 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}} 10064 - 10065 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10066 - 10067 ----- 10068 - 10069 -{{code language="yml" theme="RDark" title="Body"}} 10070 -{"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} 10071 -{{/code}} 10072 - 10073 -==== Example ==== 10074 - 10075 ----- 10076 - 10077 -(% style="color:#6b6b6b" %)Request 10078 - 10079 -{{code language="php" theme="RDark" title="Update Resource Request"}} 10080 - <?php 10081 - 10082 -$curl = curl_init(); 10083 - 10084 -curl_setopt_array($curl, array( 10085 - CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{resource id}}', 10086 - CURLOPT_RETURNTRANSFER => true, 10087 - CURLOPT_ENCODING => '', 10088 - CURLOPT_MAXREDIRS => 10, 10089 - CURLOPT_TIMEOUT => 0, 10090 - CURLOPT_FOLLOWLOCATION => true, 10091 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10092 - CURLOPT_CUSTOMREQUEST => 'PUT', 10093 - 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}', 10094 - CURLOPT_HTTPHEADER => array( 10095 - 'Appkey: {{ONECOUNT API KEY}}' 10096 - ), 10097 -)); 10098 - 10099 -$response = curl_exec($curl); 10100 - 10101 -curl_close($curl); 10102 -echo $response; 10103 -{{/code}} 10104 - 10105 - 10106 -(% style="color:#6b6b6b" %)Response 200 OK 10107 - 10108 -{{code language="yml" theme="RDark" collapse="true" title="Update Resource Response"}} 10109 - { 10110 - "result": { 10111 - "success": "1", 10112 - "error": { 10113 - "code": "", 10114 - "message": "" 10115 - } 10116 - }, 10117 - "Resources": [ 10118 - { 10119 - "Id": 903, 10120 - "Name": "Test API product creation 23", 10121 - "Description": "Test API product creation 23", 10122 - "Type": "3", 10123 - "Value": "http://one-count.com", 10124 - "FreePass": 1 10125 - }, 10126 - { 10127 - "Id": 903, 10128 - "Name": "Test API product creation 23", 10129 - "Description": "Test API product creation 23", 10130 - "Type": "3", 10131 - "Value": "onecount.net", 10132 - "FreePass": 1 10133 - } 10134 - ] 10135 -} 10136 -{{/code}} 10137 - 10138 -(% id="HGETspecificResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10139 -== (% class="imuBmi sc-fzoaKM" id="cke_bm_37074S" style="color:#007f31; display:none" %) (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET(% class="imuBmi sc-fzoaKM" style="color:#212121" %) users, resource id and request date based on subscription type and start date(%%) == 10140 - 10141 ----- 10142 - 10143 - 10144 -This API will pull all the users, resource id and request date based on subscription type and start date. There are 3 types of subscription type (n, r, u) where 10145 - 10146 -n = New subscription 10147 - 10148 -r = Renew subscription 10149 - 10150 -u = unsubscribe 10151 - 10152 -start date is used to pull users who has subscription activity from the start date to current date(todays date) you can go only past 30days as a start date. 10153 - 10154 -{{panel bgColor="#D3D3D3" width="100%"}} 10155 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources(%%)/analytics?type=~{~{Subscription Type}}&start_date=~{~{Start Date}} 10156 -{{/panel}} 10157 - 10158 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10159 - 10160 ----- 10161 - 10162 -(% 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}} 10163 - 10164 -==== Example ==== 10165 - 10166 ----- 10167 - 10168 -(% style="color:#6b6b6b" %)Request 10169 - 10170 -{{code language="php" title="GET users, resource id and request date based on subscription type and start date"}} 10171 - <?php 10172 - 10173 -$curl = curl_init(); 10174 - 10175 -curl_setopt_array($curl, array( 10176 - CURLOPT_URL => ' https://api.onecount.net/v2/resources/analytics?type={{Subscription Type}}&start_date={{Start Date}}', 10177 - CURLOPT_RETURNTRANSFER => true, 10178 - CURLOPT_ENCODING => '', 10179 - CURLOPT_MAXREDIRS => 10, 10180 - CURLOPT_TIMEOUT => 0, 10181 - CURLOPT_FOLLOWLOCATION => true, 10182 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10183 - CURLOPT_CUSTOMREQUEST => 'GET', 10184 - CURLOPT_HTTPHEADER => array( 10185 - 'Appkey: {{ONECOUNT API KEY}}' 10186 - ), 10187 -)); 10188 - 10189 -$response = curl_exec($curl); 10190 - 10191 -curl_close($curl); 10192 -echo $response; 10193 -{{/code}} 10194 - 10195 - 10196 -(% style="color:#6b6b6b" %)Response 200 OK 10197 - 10198 -{{code language="yml" title="GET users, resource id and request date based on subscription type and start date"}} 10199 - { 10200 - "result": { 10201 - "success": "1", 10202 - "error": { 10203 - "code": "", 10204 - "message": "" 10205 - } 10206 - }, 10207 - "Resources": [ 10208 - "Resources Users": [ 10209 - { 10210 - "resource_uid": "11462", 10211 - "ocid": 74204991, 10212 - "request_date": 20250118 10213 - }, 10214 - { 10215 - "resource_uid": "11462", 10216 - "ocid": 121746390, 10217 - "request_date": 20250118 10218 - }, 10219 - { 10220 - "resource_uid": "11462", 10221 - "ocid": 45412583, 10222 - "request_date": 20250118 10223 - } 10224 - ] 10225 -} 10226 -{{/code}} 10227 - 10228 - 10229 -(% id="HCOMPONENT:SourceCodes" class="western" %) 10230 -=== **COMPONENT: Source Codes** === 10231 - 10232 -* 10233 -** === 10234 - 10235 10235 (% class="western" %) 10236 10236 This resource is for manipulating source code for a resource. A source code can be created, updated or searched. 10237 10237 10238 -(% class="wrapped" %) 10239 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3006 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10240 10240 ((( 10241 10241 (% class="western" %) 10242 10242 **Method** 10243 -)))|(% style="text-align:left; 3010 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10244 10244 ((( 10245 10245 (% class="western" %) 10246 10246 **Url** 10247 -)))|(% style="text-align:left; 3014 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10248 10248 ((( 10249 10249 (% class="western" %) 10250 10250 **Action** 10251 10251 ))) 10252 -|(% style="text-align:left; 3019 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10253 10253 ((( 10254 10254 (% class="western" %) 10255 10255 GET 10256 -)))|(% style="text-align:left; 3023 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10257 10257 ((( 10258 10258 (% class="western" %) 10259 10259 /sources/1 10260 -)))|(% style="text-align:left; 3027 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10261 10261 ((( 10262 10262 (% class="western" %) 10263 10263 Get source id 1. 10264 10264 ))) 10265 -|(% style="text-align:left; 3032 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10266 10266 ((( 10267 10267 (% class="western" %) 10268 10268 GET 10269 -)))|(% style="text-align:left; 3036 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10270 10270 ((( 10271 10271 (% class="western" %) 10272 10272 /sources/lookup?Source=sourcename 10273 -)))|(% style="text-align:left; 3040 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10274 10274 ((( 10275 10275 (% class="western" %) 10276 10276 Lookup sources by source. 10277 10277 ))) 10278 -|(% style="text-align:left; 3045 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10279 10279 ((( 10280 10280 (% class="western" %) 10281 10281 POST 10282 -)))|(% style="text-align:left; 3049 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10283 10283 ((( 10284 10284 (% class="western" %) 10285 10285 /sources 10286 -)))|(% style="text-align:left; 3053 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10287 10287 ((( 10288 10288 (% class="western" %) 10289 10289 JSON of the Sources type object needs to be sent as post data. Id field should not be sent. 10290 10290 ))) 10291 -|(% style="text-align:left; 3058 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10292 10292 ((( 10293 10293 (% class="western" %) 10294 10294 PUT 10295 -)))|(% style="text-align:left; 3062 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10296 10296 ((( 10297 10297 (% class="western" %) 10298 10298 /sources 10299 -)))|(% style="text-align:left; 3066 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10300 10300 ((( 10301 10301 (% class="western" %) 10302 10302 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update. 10303 10303 ))) 10304 10304 10305 -(% id="HGETAllSourcecodes" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10306 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Source codes(%%) == 3072 +\\ 10307 10307 10308 ----- 10309 - 10310 ----- 10311 - 10312 -{{panel bgColor="#D3D3D3" width="100%"}} 10313 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources 10314 -{{/panel}} 10315 - 10316 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10317 - 10318 ----- 10319 - 10320 -(% 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}} 10321 - 10322 -==== Example ==== 10323 - 10324 ----- 10325 - 10326 -(% style="color:#6b6b6b" %)Request 10327 - 10328 -{{code language="php" theme="RDark" title="Get All Source code Request"}} 10329 - <?php 10330 - 10331 -$curl = curl_init(); 10332 - 10333 -curl_setopt_array($curl, array( 10334 - CURLOPT_URL => 'https://api.onecount.net/v2/sources', 10335 - CURLOPT_RETURNTRANSFER => true, 10336 - CURLOPT_ENCODING => '', 10337 - CURLOPT_MAXREDIRS => 10, 10338 - CURLOPT_TIMEOUT => 0, 10339 - CURLOPT_FOLLOWLOCATION => true, 10340 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10341 - CURLOPT_CUSTOMREQUEST => 'GET', 10342 - CURLOPT_HTTPHEADER => array( 10343 - 'Appkey: {{ONECOUNT API KEY}}' 10344 - ), 10345 -)); 10346 - 10347 -$response = curl_exec($curl); 10348 - 10349 -curl_close($curl); 10350 -echo $response; 10351 -{{/code}} 10352 - 10353 - 10354 -(% style="color:#6b6b6b" %)Response 200 OK 10355 - 10356 -{{code language="yml" theme="RDark" collapse="true" title="Get All Source code Response"}} 10357 - { 10358 - "result": { 10359 - "success": "1", 10360 - "error": { 10361 - "code": "", 10362 - "message": "" 10363 - } 10364 - }, 10365 - "Sources": [ 10366 - { 10367 - "Id": 26, 10368 - "Source": "GCN-Member", 10369 - "Description": "Uploaded from Reston VA", 10370 - "Parent": 0 10371 - }, 10372 - { 10373 - "Id": 34, 10374 - "Source": "SugarID", 10375 - "Description": "Sugar IDs cleaned contacts list and cleaned leads list sent by Sean Fulton for upload.", 10376 - "Parent": 0 10377 - }, 10378 - { 10379 - "Id": 42, 10380 - "Source": "DEMOFORM", 10381 - "Description": "\"Request a Demo\" form from one-count.com", 10382 - "Parent": 0 10383 - }, 10384 - { 10385 - "Id": 50, 10386 - "Source": "ABM ANNUAL 2014", 10387 - "Description": "ABM Annual 2014 - Registration List for Sponsors", 10388 - "Parent": 0 10389 - }, 10390 - { 10391 - "Id": 58, 10392 - "Source": "BIMS REG LIST", 10393 - "Description": "BIMS Registration List for Sponsors (2013/2014)", 10394 - "Parent": 0 10395 - }, 10396 - { 10397 - "Id": 66, 10398 - "Source": "SIPA 13", 10399 - "Description": "SIPA 2013 - sponsor - attendees", 10400 - "Parent": 0 10401 - }, 10402 - { 10403 - "Id": 74, 10404 - "Source": "Google Ads", 10405 - "Description": "From Google Banner Ads", 10406 - "Parent": 0 10407 - }, 10408 - { 10409 - "Id": 82, 10410 - "Source": "EDIT PROFILE", 10411 - "Description": "FOR EDIT PROFILE FORM", 10412 - "Parent": 0 10413 - }, 10414 - { 10415 - "Id": 83, 10416 - "Source": "Test Source Code", 10417 - "Description": "", 10418 - "Parent": 0 10419 - }, 10420 - { 10421 - "Id": 91, 10422 - "Source": "NEWSLETTER", 10423 - "Description": "Newsletter", 10424 - "Parent": 0 10425 - }, 10426 - { 10427 - "Id": 99, 10428 - "Source": "INFOTANKS-comps-only_12032019", 10429 - "Description": "", 10430 - "Parent": 0 10431 - }, 10432 - { 10433 - "Id": 107, 10434 - "Source": "INFOTANKS-DMP-only_12102019", 10435 - "Description": "", 10436 - "Parent": 0 10437 - }, 10438 - { 10439 - "Id": 109, 10440 - "Source": "BMVM", 10441 - "Description": "Active Attendees", 10442 - "Parent": 0 10443 - }, 10444 - { 10445 - "Id": 115, 10446 - "Source": "USECASES", 10447 - "Description": "Use Case PDF", 10448 - "Parent": 0 10449 - }, 10450 - { 10451 - "Id": 123, 10452 - "Source": "Borrell Miami 2022", 10453 - "Description": "", 10454 - "Parent": 0 10455 - }, 10456 - { 10457 - "Id": 131, 10458 - "Source": "05092022-telemarketing", 10459 - "Description": "", 10460 - "Parent": 0 10461 - }, 10462 - { 10463 - "Id": 139, 10464 - "Source": "WEBINAR6.15.22", 10465 - "Description": "Live Webinar Series June 15, 2022", 10466 - "Parent": 0 10467 - }, 10468 - { 10469 - "Id": 147, 10470 - "Source": "LMA Show List", 10471 - "Description": "", 10472 - "Parent": 0 10473 - }, 10474 - { 10475 - "Id": 155, 10476 - "Source": "AAA", 10477 - "Description": "", 10478 - "Parent": 0 10479 - }, 10480 - { 10481 - "Id": 163, 10482 - "Source": "MGS2022", 10483 - "Description": "", 10484 - "Parent": 0 10485 - }, 10486 - { 10487 - "Id": 171, 10488 - "Source": "MGS2023", 10489 - "Description": "", 10490 - "Parent": 0 10491 - }, 10492 - { 10493 - "Id": 179, 10494 - "Source": "Sugar Leads", 10495 - "Description": "", 10496 - "Parent": 0 10497 - }, 10498 - { 10499 - "Id": 187, 10500 - "Source": "seansbox", 10501 - "Description": "", 10502 - "Parent": 0 10503 - }, 10504 - { 10505 - "Id": 191, 10506 - "Source": "SEEITLIVE", 10507 - "Description": "Lunch & Learn Webinar Series with Special Partner Guests", 10508 - "Parent": 0 10509 - }, 10510 - { 10511 - "Id": 199, 10512 - "Source": "80-percent-conversion-rates", 10513 - "Description": "", 10514 - "Parent": 0 10515 - } 10516 - ] 10517 -} 10518 -{{/code}} 10519 - 10520 - 10521 -(% id="HGETspecificSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10522 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Source code(%%) == 10523 - 10524 ----- 10525 - 10526 -{{panel bgColor="#D3D3D3" width="100%"}} 10527 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}} 10528 -{{/panel}} 10529 - 10530 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10531 - 10532 ----- 10533 - 10534 -(% 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}} 10535 - 10536 -==== Example ==== 10537 - 10538 ----- 10539 - 10540 -(% style="color:#6b6b6b" %)Request 10541 - 10542 -{{code language="php" theme="RDark" title="Get specific Source Request"}} 10543 - <?php 10544 - 10545 -$curl = curl_init(); 10546 - 10547 -curl_setopt_array($curl, array( 10548 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}', 10549 - CURLOPT_RETURNTRANSFER => true, 10550 - CURLOPT_ENCODING => '', 10551 - CURLOPT_MAXREDIRS => 10, 10552 - CURLOPT_TIMEOUT => 0, 10553 - CURLOPT_FOLLOWLOCATION => true, 10554 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10555 - CURLOPT_CUSTOMREQUEST => 'GET', 10556 - CURLOPT_HTTPHEADER => array( 10557 - 'Appkey: {{ONECOUNT API KEY}}' 10558 - ), 10559 -)); 10560 - 10561 -$response = curl_exec($curl); 10562 - 10563 -curl_close($curl); 10564 -echo $response; 10565 -{{/code}} 10566 - 10567 - 10568 -(% style="color:#6b6b6b" %)Response 200 OK 10569 - 10570 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Source Response"}} 10571 - { 10572 - "result": { 10573 - "success": "1", 10574 - "error": { 10575 - "code": "", 10576 - "message": "" 10577 - } 10578 - }, 10579 - "Sources": [ 10580 - { 10581 - "Id": 26, 10582 - "Source": "GCN-Member", 10583 - "Description": "Uploaded from Reston VA", 10584 - "Parent": 0 10585 - } 10586 - ] 10587 -} 10588 -{{/code}} 10589 - 10590 - 10591 -(% id="HGETlookupSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10592 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Source code(%%) == 10593 - 10594 ----- 10595 - 10596 -{{panel bgColor="#D3D3D3" width="100%"}} 10597 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/lookup?Source={(%%){Source code Name}} 10598 -{{/panel}} 10599 - 10600 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10601 - 10602 ----- 10603 - 10604 -(% 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}} 10605 - 10606 -=== (% style="color:#212121" %)Query Params(%%) === 10607 - 10608 ----- 10609 - 10610 -(% 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}} 10611 - 10612 -==== Example ==== 10613 - 10614 ----- 10615 - 10616 -(% style="color:#6b6b6b" %)Request 10617 - 10618 -{{code language="php" theme="RDark" title="Lookup Source code Request"}} 10619 - <?php 10620 - 10621 -$curl = curl_init(); 10622 - 10623 -curl_setopt_array($curl, array( 10624 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/lookup?Source={{Source code Name}}', 10625 - CURLOPT_RETURNTRANSFER => true, 10626 - CURLOPT_ENCODING => '', 10627 - CURLOPT_MAXREDIRS => 10, 10628 - CURLOPT_TIMEOUT => 0, 10629 - CURLOPT_FOLLOWLOCATION => true, 10630 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10631 - CURLOPT_CUSTOMREQUEST => 'GET', 10632 - CURLOPT_HTTPHEADER => array( 10633 - 'Appkey: {{ONECOUNT API KEY}}' 10634 - ), 10635 -)); 10636 - 10637 -$response = curl_exec($curl); 10638 - 10639 -curl_close($curl); 10640 -echo $response; 10641 -{{/code}} 10642 - 10643 - 10644 -(% style="color:#6b6b6b" %)Response 200 OK 10645 - 10646 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Source code Response"}} 10647 - { 10648 - "result": { 10649 - "success": "1", 10650 - "error": { 10651 - "code": "", 10652 - "message": "" 10653 - } 10654 - }, 10655 - "Sources": [ 10656 - { 10657 - "Id": 26, 10658 - "Source": "GCN-Member", 10659 - "Description": "Uploaded from Reston VA", 10660 - "Parent": 0 10661 - } 10662 - ] 10663 -} 10664 -{{/code}} 10665 - 10666 - 10667 -(% id="HPOSTCreateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10668 -== (% 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(%%) == 10669 - 10670 ----- 10671 - 10672 -{{panel bgColor="#D3D3D3" width="100%"}} 10673 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources 10674 -{{/panel}} 10675 - 10676 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10677 - 10678 ----- 10679 - 10680 -(% 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}} 10681 - 10682 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10683 - 10684 ----- 10685 - 10686 -{{code language="yml" theme="RDark" title="Body"}} 10687 -{"Source":"Test source code from API"} 10688 -{{/code}} 10689 - 10690 -==== Example ==== 10691 - 10692 ----- 10693 - 10694 -(% style="color:#6b6b6b" %)Request 10695 - 10696 -{{code language="php" theme="RDark" title="Create Source code Request"}} 10697 - <?php 10698 - 10699 -$curl = curl_init(); 10700 - 10701 -curl_setopt_array($curl, array( 10702 - CURLOPT_URL => 'https://api.onecount.net/v2/sources', 10703 - CURLOPT_RETURNTRANSFER => true, 10704 - CURLOPT_ENCODING => '', 10705 - CURLOPT_MAXREDIRS => 10, 10706 - CURLOPT_TIMEOUT => 0, 10707 - CURLOPT_FOLLOWLOCATION => true, 10708 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10709 - CURLOPT_CUSTOMREQUEST => 'POST', 10710 - CURLOPT_POSTFIELDS =>'{"Source":"Test source code from API"}', 10711 - CURLOPT_HTTPHEADER => array( 10712 - 'Appkey: {{ONECOUNT API KEY}}' 10713 - ), 10714 -)); 10715 - 10716 -$response = curl_exec($curl); 10717 - 10718 -curl_close($curl); 10719 -echo $response; 10720 -{{/code}} 10721 - 10722 - 10723 -(% style="color:#6b6b6b" %)Response 200 OK 10724 - 10725 -{{code language="yml" theme="RDark" collapse="true" title="Create Source code Response"}} 10726 - { 10727 - "result": { 10728 - "success": "1", 10729 - "error": { 10730 - "code": "", 10731 - "message": "" 10732 - } 10733 - }, 10734 - "Sources": [ 10735 - { 10736 - "Id": 223, 10737 - "Source": "Test source code from API", 10738 - "Description": "", 10739 - "Parent": 0 10740 - } 10741 - ] 10742 -} 10743 -{{/code}} 10744 - 10745 - 10746 -(% id="HPUTUpdateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10747 -== (% 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(%%) == 10748 - 10749 ----- 10750 - 10751 -{{panel bgColor="#D3D3D3" width="100%"}} 10752 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}} 10753 -{{/panel}} 10754 - 10755 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10756 - 10757 ----- 10758 - 10759 -(% 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}} 10760 - 10761 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10762 - 10763 ----- 10764 - 10765 -{{code language="yml" theme="RDark" title="Body"}} 10766 -{"Source":"Test API","Parent":215} 10767 -{{/code}} 10768 - 10769 -==== Example ==== 10770 - 10771 ----- 10772 - 10773 -(% style="color:#6b6b6b" %)Request 10774 - 10775 -{{code language="php" theme="RDark" title="Update Source code Request"}} 10776 - <?php 10777 - 10778 -$curl = curl_init(); 10779 - 10780 -curl_setopt_array($curl, array( 10781 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}', 10782 - CURLOPT_RETURNTRANSFER => true, 10783 - CURLOPT_ENCODING => '', 10784 - CURLOPT_MAXREDIRS => 10, 10785 - CURLOPT_TIMEOUT => 0, 10786 - CURLOPT_FOLLOWLOCATION => true, 10787 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10788 - CURLOPT_CUSTOMREQUEST => 'PUT', 10789 - CURLOPT_POSTFIELDS =>'{"Source":"Test API","Parent":215}', 10790 - CURLOPT_HTTPHEADER => array( 10791 - 'Appkey: {{ONECOUNT API KEY}}' 10792 - ), 10793 -)); 10794 - 10795 -$response = curl_exec($curl); 10796 - 10797 -curl_close($curl); 10798 -echo $response; 10799 -{{/code}} 10800 - 10801 - 10802 -(% style="color:#6b6b6b" %)Response 200 OK 10803 - 10804 -{{code language="yml" theme="RDark" collapse="true" title="Update Source code Response"}} 10805 - { 10806 - "result": { 10807 - "success": "1", 10808 - "error": { 10809 - "code": "", 10810 - "message": "" 10811 - } 10812 - }, 10813 - "Sources": [ 10814 - { 10815 - "Id": 223, 10816 - "Source": "Test API", 10817 - "Description": "", 10818 - "Parent": 215 10819 - } 10820 - ] 10821 -} 10822 -{{/code}} 10823 - 10824 - 10825 -(% id="HCOMPONENT:Transactions" class="western" %) 10826 -=== **COMPONENT: Transactions** === 10827 - 10828 10828 (% class="western" %) 10829 - This resourceisfor manipulatingtransactions resource.Atransactioncanbecreated orsearched.3075 +**Sources can be looked up given the code or Id. GET method should be used for lookup.** 10830 10830 10831 -(% class="wrapped" %) 10832 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3077 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10833 10833 ((( 10834 10834 (% class="western" %) 10835 -** Method**10836 -)))|(% style="text-align:left; 3080 +**Request** 3081 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10837 10837 ((( 10838 10838 (% class="western" %) 10839 -** Url**10840 -)))|(% style="text-align:left; 3084 +**Type** 3085 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10841 10841 ((( 10842 10842 (% class="western" %) 10843 -** Action**3088 +**Description** 10844 10844 ))) 10845 -|(% style="text-align:left; 3090 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10846 10846 ((( 10847 10847 (% class="western" %) 10848 - GET10849 -)))|(% style="text-align:left; 3093 +Lookup params 3094 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10850 10850 ((( 10851 10851 (% class="western" %) 10852 - /transactions10853 -)))|(% style="text-align:left; 3097 +String 3098 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10854 10854 ((( 10855 10855 (% class="western" %) 10856 -List all transactions 3101 +URL encoded key value string parameter for the lookup. 3102 + 3103 +(% class="western" %) 3104 +Params: 3105 + 3106 +(% class="western" %) 3107 +Source: Source value (String) 10857 10857 ))) 10858 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3109 + 3110 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10859 10859 ((( 10860 10860 (% class="western" %) 10861 - GET10862 -)))|(% style="text-align:left; 3113 +**Response** 3114 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10863 10863 ((( 10864 10864 (% class="western" %) 10865 - /transactions/lookup?UserId=110866 -)))|(% style="text-align:left; 3117 +**Type** 3118 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10867 10867 ((( 10868 10868 (% class="western" %) 10869 - Lookup all transactionof UserId = 13121 +**Description** 10870 10870 ))) 10871 -|(% style="text-align:left; 3123 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10872 10872 ((( 10873 10873 (% class="western" %) 10874 - POST10875 -)))|(% style="text-align:left; 3126 +Sources 3127 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10876 10876 ((( 10877 10877 (% class="western" %) 10878 - /transactions10879 -)))|(% style="text-align:left; 3130 +Sources 3131 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10880 10880 ((( 10881 10881 (% class="western" %) 10882 - JSON of theTransactionstypeobjectneedstobesents post data. Id fieldshould not be sent.3134 +Returns found source details. 10883 10883 ))) 10884 10884 10885 -(% id="HGETAllTransactions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10886 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Transactions(%%) == 3137 +\\ 10887 10887 10888 ----- 3139 +(% class="western" %) 3140 +\\ 10889 10889 10890 ----- 10891 - 10892 -{{panel bgColor="#D3D3D3" width="100%"}} 10893 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions 10894 -{{/panel}} 10895 - 10896 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10897 - 10898 ----- 10899 - 10900 -(% 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}} 10901 - 10902 -==== Example ==== 10903 - 10904 ----- 10905 - 10906 -(% style="color:#6b6b6b" %)Request 10907 - 10908 -{{code language="php" theme="RDark" title="Get All Transaction Request"}} 10909 - <?php 10910 - 10911 -$curl = curl_init(); 10912 - 10913 -curl_setopt_array($curl, array( 10914 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions', 10915 - CURLOPT_RETURNTRANSFER => true, 10916 - CURLOPT_ENCODING => '', 10917 - CURLOPT_MAXREDIRS => 10, 10918 - CURLOPT_TIMEOUT => 0, 10919 - CURLOPT_FOLLOWLOCATION => true, 10920 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10921 - CURLOPT_CUSTOMREQUEST => 'GET', 10922 - CURLOPT_HTTPHEADER => array( 10923 - 'Appkey: {{ONECOUNT API KEY}}' 10924 - ), 10925 -)); 10926 - 10927 -$response = curl_exec($curl); 10928 - 10929 -curl_close($curl); 10930 -echo $response; 10931 -{{/code}} 10932 - 10933 - 10934 -(% style="color:#6b6b6b" %)Response 200 OK 10935 - 10936 -{{code language="yml" theme="RDark" collapse="true" title="Get All Transaction Response"}} 10937 - { 10938 - "result": { 10939 - "success": "1", 10940 - "error": { 10941 - "code": "", 10942 - "message": "" 10943 - } 10944 - }, 10945 - "Transactions": [ 10946 - { 10947 - "Id": 10, 10948 - "UserId": 10, 10949 - "TermId": 2, 10950 - "TransactionDate": "2014-07-17", 10951 - "TransactionTime": "10:02:13", 10952 - "RequestDate": "2014-07-17", 10953 - "UserIP": "74.201.38.1", 10954 - "SubscriptionType": "n", 10955 - "ProductId": 2, 10956 - "Source": 10, 10957 - "ProductStatus": 2, 10958 - "MediaFilePath": "", 10959 - "Amount": "" 10960 - }, 10961 - { 10962 - "Id": 26, 10963 - "UserId": 10, 10964 - "TermId": 2, 10965 - "TransactionDate": "2014-07-17", 10966 - "TransactionTime": "10:41:59", 10967 - "RequestDate": "2014-07-17", 10968 - "UserIP": "74.201.38.1", 10969 - "SubscriptionType": "r", 10970 - "ProductId": 2, 10971 - "Source": 10, 10972 - "ProductStatus": 2, 10973 - "MediaFilePath": "", 10974 - "Amount": "" 10975 - }, 10976 - { 10977 - "Id": 50, 10978 - "UserId": 26, 10979 - "TermId": 2, 10980 - "TransactionDate": "2014-07-17", 10981 - "TransactionTime": "12:25:38", 10982 - "RequestDate": "2014-07-17", 10983 - "UserIP": "74.201.38.1", 10984 - "SubscriptionType": "n", 10985 - "ProductId": 2, 10986 - "Source": 10, 10987 - "ProductStatus": 2, 10988 - "MediaFilePath": "", 10989 - "Amount": "" 10990 - }, 10991 - { 10992 - "Id": 58, 10993 - "UserId": 10, 10994 - "TermId": 2, 10995 - "TransactionDate": "2014-07-17", 10996 - "TransactionTime": "12:25:43", 10997 - "RequestDate": "2014-07-17", 10998 - "UserIP": "74.201.38.1", 10999 - "SubscriptionType": "r", 11000 - "ProductId": 2, 11001 - "Source": 10, 11002 - "ProductStatus": 2, 11003 - "MediaFilePath": "", 11004 - "Amount": "" 11005 - }, 11006 - { 11007 - "Id": 66, 11008 - "UserId": 42, 11009 - "TermId": 2, 11010 - "TransactionDate": "2014-07-17", 11011 - "TransactionTime": "12:57:11", 11012 - "RequestDate": "2014-07-17", 11013 - "UserIP": "74.201.38.1", 11014 - "SubscriptionType": "n", 11015 - "ProductId": 2, 11016 - "Source": 26, 11017 - "ProductStatus": 2, 11018 - "MediaFilePath": "", 11019 - "Amount": "" 11020 - }, 11021 - { 11022 - "Id": 74, 11023 - "UserId": 50, 11024 - "TermId": 2, 11025 - "TransactionDate": "2014-07-17", 11026 - "TransactionTime": "12:57:11", 11027 - "RequestDate": "2014-07-17", 11028 - "UserIP": "74.201.38.1", 11029 - "SubscriptionType": "n", 11030 - "ProductId": 2, 11031 - "Source": 26, 11032 - "ProductStatus": 2, 11033 - "MediaFilePath": "", 11034 - "Amount": "" 11035 - }, 11036 - { 11037 - "Id": 82, 11038 - "UserId": 58, 11039 - "TermId": 2, 11040 - "TransactionDate": "2014-07-17", 11041 - "TransactionTime": "12:57:11", 11042 - "RequestDate": "2014-07-17", 11043 - "UserIP": "74.201.38.1", 11044 - "SubscriptionType": "n", 11045 - "ProductId": 2, 11046 - "Source": 26, 11047 - "ProductStatus": 2, 11048 - "MediaFilePath": "", 11049 - "Amount": "" 11050 - }, 11051 - { 11052 - "Id": 90, 11053 - "UserId": 66, 11054 - "TermId": 2, 11055 - "TransactionDate": "2014-07-17", 11056 - "TransactionTime": "12:57:11", 11057 - "RequestDate": "2014-07-17", 11058 - "UserIP": "74.201.38.1", 11059 - "SubscriptionType": "n", 11060 - "ProductId": 2, 11061 - "Source": 26, 11062 - "ProductStatus": 2, 11063 - "MediaFilePath": "", 11064 - "Amount": "" 11065 - }, 11066 - { 11067 - "Id": 98, 11068 - "UserId": 74, 11069 - "TermId": 2, 11070 - "TransactionDate": "2014-07-17", 11071 - "TransactionTime": "12:57:11", 11072 - "RequestDate": "2014-07-17", 11073 - "UserIP": "74.201.38.1", 11074 - "SubscriptionType": "n", 11075 - "ProductId": 2, 11076 - "Source": 26, 11077 - "ProductStatus": 2, 11078 - "MediaFilePath": "", 11079 - "Amount": "" 11080 - }, 11081 - { 11082 - "Id": 106, 11083 - "UserId": 82, 11084 - "TermId": 2, 11085 - "TransactionDate": "2014-07-17", 11086 - "TransactionTime": "12:57:11", 11087 - "RequestDate": "2014-07-17", 11088 - "UserIP": "74.201.38.1", 11089 - "SubscriptionType": "n", 11090 - "ProductId": 2, 11091 - "Source": 26, 11092 - "ProductStatus": 2, 11093 - "MediaFilePath": "", 11094 - "Amount": "" 11095 - }, 11096 - { 11097 - "Id": 114, 11098 - "UserId": 90, 11099 - "TermId": 2, 11100 - "TransactionDate": "2014-07-17", 11101 - "TransactionTime": "12:57:11", 11102 - "RequestDate": "2014-07-17", 11103 - "UserIP": "74.201.38.1", 11104 - "SubscriptionType": "n", 11105 - "ProductId": 2, 11106 - "Source": 26, 11107 - "ProductStatus": 2, 11108 - "MediaFilePath": "", 11109 - "Amount": "" 11110 - }, 11111 - { 11112 - "Id": 122, 11113 - "UserId": 98, 11114 - "TermId": 2, 11115 - "TransactionDate": "2014-07-17", 11116 - "TransactionTime": "12:57:11", 11117 - "RequestDate": "2014-07-17", 11118 - "UserIP": "74.201.38.1", 11119 - "SubscriptionType": "n", 11120 - "ProductId": 2, 11121 - "Source": 26, 11122 - "ProductStatus": 2, 11123 - "MediaFilePath": "", 11124 - "Amount": "" 11125 - }, 11126 - { 11127 - "Id": 130, 11128 - "UserId": 42, 11129 - "TermId": 2, 11130 - "TransactionDate": "2014-07-17", 11131 - "TransactionTime": "12:59:10", 11132 - "RequestDate": "2014-07-17", 11133 - "UserIP": "74.201.38.1", 11134 - "SubscriptionType": "r", 11135 - "ProductId": 2, 11136 - "Source": 10, 11137 - "ProductStatus": 2, 11138 - "MediaFilePath": "", 11139 - "Amount": "" 11140 - }, 11141 - { 11142 - "Id": 138, 11143 - "UserId": 50, 11144 - "TermId": 2, 11145 - "TransactionDate": "2014-07-17", 11146 - "TransactionTime": "12:59:10", 11147 - "RequestDate": "2014-07-17", 11148 - "UserIP": "74.201.38.1", 11149 - "SubscriptionType": "r", 11150 - "ProductId": 2, 11151 - "Source": 10, 11152 - "ProductStatus": 2, 11153 - "MediaFilePath": "", 11154 - "Amount": "" 11155 - }, 11156 - { 11157 - "Id": 146, 11158 - "UserId": 58, 11159 - "TermId": 2, 11160 - "TransactionDate": "2014-07-17", 11161 - "TransactionTime": "12:59:10", 11162 - "RequestDate": "2014-07-17", 11163 - "UserIP": "74.201.38.1", 11164 - "SubscriptionType": "r", 11165 - "ProductId": 2, 11166 - "Source": 10, 11167 - "ProductStatus": 2, 11168 - "MediaFilePath": "", 11169 - "Amount": "" 11170 - }, 11171 - { 11172 - "Id": 154, 11173 - "UserId": 66, 11174 - "TermId": 2, 11175 - "TransactionDate": "2014-07-17", 11176 - "TransactionTime": "12:59:10", 11177 - "RequestDate": "2014-07-17", 11178 - "UserIP": "74.201.38.1", 11179 - "SubscriptionType": "r", 11180 - "ProductId": 2, 11181 - "Source": 10, 11182 - "ProductStatus": 2, 11183 - "MediaFilePath": "", 11184 - "Amount": "" 11185 - }, 11186 - { 11187 - "Id": 162, 11188 - "UserId": 74, 11189 - "TermId": 2, 11190 - "TransactionDate": "2014-07-17", 11191 - "TransactionTime": "12:59:10", 11192 - "RequestDate": "2014-07-17", 11193 - "UserIP": "74.201.38.1", 11194 - "SubscriptionType": "r", 11195 - "ProductId": 2, 11196 - "Source": 10, 11197 - "ProductStatus": 2, 11198 - "MediaFilePath": "", 11199 - "Amount": "" 11200 - }, 11201 - { 11202 - "Id": 170, 11203 - "UserId": 82, 11204 - "TermId": 2, 11205 - "TransactionDate": "2014-07-17", 11206 - "TransactionTime": "12:59:10", 11207 - "RequestDate": "2014-07-17", 11208 - "UserIP": "74.201.38.1", 11209 - "SubscriptionType": "r", 11210 - "ProductId": 2, 11211 - "Source": 10, 11212 - "ProductStatus": 2, 11213 - "MediaFilePath": "", 11214 - "Amount": "" 11215 - }, 11216 - { 11217 - "Id": 178, 11218 - "UserId": 90, 11219 - "TermId": 2, 11220 - "TransactionDate": "2014-07-17", 11221 - "TransactionTime": "12:59:10", 11222 - "RequestDate": "2014-07-17", 11223 - "UserIP": "74.201.38.1", 11224 - "SubscriptionType": "r", 11225 - "ProductId": 2, 11226 - "Source": 10, 11227 - "ProductStatus": 2, 11228 - "MediaFilePath": "", 11229 - "Amount": "" 11230 - }, 11231 - { 11232 - "Id": 186, 11233 - "UserId": 98, 11234 - "TermId": 2, 11235 - "TransactionDate": "2014-07-17", 11236 - "TransactionTime": "12:59:10", 11237 - "RequestDate": "2014-07-17", 11238 - "UserIP": "74.201.38.1", 11239 - "SubscriptionType": "r", 11240 - "ProductId": 2, 11241 - "Source": 10, 11242 - "ProductStatus": 2, 11243 - "MediaFilePath": "", 11244 - "Amount": "" 11245 - }, 11246 - { 11247 - "Id": 194, 11248 - "UserId": 162, 11249 - "TermId": 2, 11250 - "TransactionDate": "2014-07-17", 11251 - "TransactionTime": "13:00:42", 11252 - "RequestDate": "2014-07-17", 11253 - "UserIP": "74.201.38.1", 11254 - "SubscriptionType": "n", 11255 - "ProductId": 2, 11256 - "Source": 10, 11257 - "ProductStatus": 2, 11258 - "MediaFilePath": "", 11259 - "Amount": "" 11260 - }, 11261 - { 11262 - "Id": 202, 11263 - "UserId": 170, 11264 - "TermId": 2, 11265 - "TransactionDate": "2014-07-17", 11266 - "TransactionTime": "13:00:42", 11267 - "RequestDate": "2014-07-17", 11268 - "UserIP": "74.201.38.1", 11269 - "SubscriptionType": "n", 11270 - "ProductId": 2, 11271 - "Source": 10, 11272 - "ProductStatus": 2, 11273 - "MediaFilePath": "", 11274 - "Amount": "" 11275 - }, 11276 - { 11277 - "Id": 210, 11278 - "UserId": 178, 11279 - "TermId": 2, 11280 - "TransactionDate": "2014-07-17", 11281 - "TransactionTime": "13:00:42", 11282 - "RequestDate": "2014-07-17", 11283 - "UserIP": "74.201.38.1", 11284 - "SubscriptionType": "n", 11285 - "ProductId": 2, 11286 - "Source": 10, 11287 - "ProductStatus": 2, 11288 - "MediaFilePath": "", 11289 - "Amount": "" 11290 - }, 11291 - { 11292 - "Id": 218, 11293 - "UserId": 186, 11294 - "TermId": 2, 11295 - "TransactionDate": "2014-07-17", 11296 - "TransactionTime": "13:00:42", 11297 - "RequestDate": "2014-07-17", 11298 - "UserIP": "74.201.38.1", 11299 - "SubscriptionType": "n", 11300 - "ProductId": 2, 11301 - "Source": 10, 11302 - "ProductStatus": 2, 11303 - "MediaFilePath": "", 11304 - "Amount": "" 11305 - }, 11306 - { 11307 - "Id": 226, 11308 - "UserId": 194, 11309 - "TermId": 2, 11310 - "TransactionDate": "2014-07-17", 11311 - "TransactionTime": "13:00:42", 11312 - "RequestDate": "2014-07-17", 11313 - "UserIP": "74.201.38.1", 11314 - "SubscriptionType": "n", 11315 - "ProductId": 2, 11316 - "Source": 10, 11317 - "ProductStatus": 2, 11318 - "MediaFilePath": "", 11319 - "Amount": "" 11320 - }, 11321 - { 11322 - "Id": 234, 11323 - "UserId": 202, 11324 - "TermId": 2, 11325 - "TransactionDate": "2014-07-17", 11326 - "TransactionTime": "13:00:42", 11327 - "RequestDate": "2014-07-17", 11328 - "UserIP": "74.201.38.1", 11329 - "SubscriptionType": "n", 11330 - "ProductId": 2, 11331 - "Source": 10, 11332 - "ProductStatus": 2, 11333 - "MediaFilePath": "", 11334 - "Amount": "" 11335 - }, 11336 - { 11337 - "Id": 242, 11338 - "UserId": 210, 11339 - "TermId": 2, 11340 - "TransactionDate": "2014-07-17", 11341 - "TransactionTime": "13:00:42", 11342 - "RequestDate": "2014-07-17", 11343 - "UserIP": "74.201.38.1", 11344 - "SubscriptionType": "n", 11345 - "ProductId": 2, 11346 - "Source": 10, 11347 - "ProductStatus": 2, 11348 - "MediaFilePath": "", 11349 - "Amount": "" 11350 - }, 11351 - { 11352 - "Id": 250, 11353 - "UserId": 218, 11354 - "TermId": 2, 11355 - "TransactionDate": "2014-07-17", 11356 - "TransactionTime": "13:00:42", 11357 - "RequestDate": "2014-07-17", 11358 - "UserIP": "74.201.38.1", 11359 - "SubscriptionType": "n", 11360 - "ProductId": 2, 11361 - "Source": 10, 11362 - "ProductStatus": 2, 11363 - "MediaFilePath": "", 11364 - "Amount": "" 11365 - }, 11366 - { 11367 - "Id": 258, 11368 - "UserId": 282, 11369 - "TermId": 2, 11370 - "TransactionDate": "2014-07-17", 11371 - "TransactionTime": "13:02:19", 11372 - "RequestDate": "2014-07-17", 11373 - "UserIP": "74.201.38.1", 11374 - "SubscriptionType": "n", 11375 - "ProductId": 2, 11376 - "Source": 10, 11377 - "ProductStatus": 2, 11378 - "MediaFilePath": "", 11379 - "Amount": "" 11380 - }, 11381 - { 11382 - "Id": 266, 11383 - "UserId": 290, 11384 - "TermId": 2, 11385 - "TransactionDate": "2014-07-17", 11386 - "TransactionTime": "13:02:19", 11387 - "RequestDate": "2014-07-17", 11388 - "UserIP": "74.201.38.1", 11389 - "SubscriptionType": "n", 11390 - "ProductId": 2, 11391 - "Source": 10, 11392 - "ProductStatus": 2, 11393 - "MediaFilePath": "", 11394 - "Amount": "" 11395 - }, 11396 - { 11397 - "Id": 274, 11398 - "UserId": 298, 11399 - "TermId": 2, 11400 - "TransactionDate": "2014-07-17", 11401 - "TransactionTime": "13:02:19", 11402 - "RequestDate": "2014-07-17", 11403 - "UserIP": "74.201.38.1", 11404 - "SubscriptionType": "n", 11405 - "ProductId": 2, 11406 - "Source": 10, 11407 - "ProductStatus": 2, 11408 - "MediaFilePath": "", 11409 - "Amount": "" 11410 - }, 11411 - { 11412 - "Id": 282, 11413 - "UserId": 306, 11414 - "TermId": 2, 11415 - "TransactionDate": "2014-07-17", 11416 - "TransactionTime": "13:02:19", 11417 - "RequestDate": "2014-07-17", 11418 - "UserIP": "74.201.38.1", 11419 - "SubscriptionType": "n", 11420 - "ProductId": 2, 11421 - "Source": 10, 11422 - "ProductStatus": 2, 11423 - "MediaFilePath": "", 11424 - "Amount": "" 11425 - }, 11426 - { 11427 - "Id": 290, 11428 - "UserId": 314, 11429 - "TermId": 2, 11430 - "TransactionDate": "2014-07-17", 11431 - "TransactionTime": "13:02:19", 11432 - "RequestDate": "2014-07-17", 11433 - "UserIP": "74.201.38.1", 11434 - "SubscriptionType": "n", 11435 - "ProductId": 2, 11436 - "Source": 10, 11437 - "ProductStatus": 2, 11438 - "MediaFilePath": "", 11439 - "Amount": "" 11440 - }, 11441 - { 11442 - "Id": 298, 11443 - "UserId": 322, 11444 - "TermId": 2, 11445 - "TransactionDate": "2014-07-17", 11446 - "TransactionTime": "13:02:19", 11447 - "RequestDate": "2014-07-17", 11448 - "UserIP": "74.201.38.1", 11449 - "SubscriptionType": "n", 11450 - "ProductId": 2, 11451 - "Source": 10, 11452 - "ProductStatus": 2, 11453 - "MediaFilePath": "", 11454 - "Amount": "" 11455 - }, 11456 - { 11457 - "Id": 306, 11458 - "UserId": 330, 11459 - "TermId": 2, 11460 - "TransactionDate": "2014-07-17", 11461 - "TransactionTime": "13:02:19", 11462 - "RequestDate": "2014-07-17", 11463 - "UserIP": "74.201.38.1", 11464 - "SubscriptionType": "n", 11465 - "ProductId": 2, 11466 - "Source": 10, 11467 - "ProductStatus": 2, 11468 - "MediaFilePath": "", 11469 - "Amount": "" 11470 - }, 11471 - { 11472 - "Id": 466, 11473 - "UserId": 698, 11474 - "TermId": 2, 11475 - "TransactionDate": "2014-07-17", 11476 - "TransactionTime": "13:13:06", 11477 - "RequestDate": "2014-07-17", 11478 - "UserIP": "74.201.38.1", 11479 - "SubscriptionType": "n", 11480 - "ProductId": 2, 11481 - "Source": 26, 11482 - "ProductStatus": 2, 11483 - "MediaFilePath": "", 11484 - "Amount": "" 11485 - }, 11486 - { 11487 - "Id": 474, 11488 - "UserId": 706, 11489 - "TermId": 2, 11490 - "TransactionDate": "2014-07-17", 11491 - "TransactionTime": "13:13:06", 11492 - "RequestDate": "2014-07-17", 11493 - "UserIP": "74.201.38.1", 11494 - "SubscriptionType": "n", 11495 - "ProductId": 2, 11496 - "Source": 26, 11497 - "ProductStatus": 2, 11498 - "MediaFilePath": "", 11499 - "Amount": "" 11500 - }, 11501 - { 11502 - "Id": 482, 11503 - "UserId": 714, 11504 - "TermId": 2, 11505 - "TransactionDate": "2014-07-17", 11506 - "TransactionTime": "13:13:06", 11507 - "RequestDate": "2014-07-17", 11508 - "UserIP": "74.201.38.1", 11509 - "SubscriptionType": "n", 11510 - "ProductId": 2, 11511 - "Source": 26, 11512 - "ProductStatus": 2, 11513 - "MediaFilePath": "", 11514 - "Amount": "" 11515 - }, 11516 - { 11517 - "Id": 490, 11518 - "UserId": 722, 11519 - "TermId": 2, 11520 - "TransactionDate": "2014-07-17", 11521 - "TransactionTime": "13:13:06", 11522 - "RequestDate": "2014-07-17", 11523 - "UserIP": "74.201.38.1", 11524 - "SubscriptionType": "n", 11525 - "ProductId": 2, 11526 - "Source": 26, 11527 - "ProductStatus": 2, 11528 - "MediaFilePath": "", 11529 - "Amount": "" 11530 - }, 11531 - { 11532 - "Id": 498, 11533 - "UserId": 730, 11534 - "TermId": 2, 11535 - "TransactionDate": "2014-07-17", 11536 - "TransactionTime": "13:13:06", 11537 - "RequestDate": "2014-07-17", 11538 - "UserIP": "74.201.38.1", 11539 - "SubscriptionType": "n", 11540 - "ProductId": 2, 11541 - "Source": 26, 11542 - "ProductStatus": 2, 11543 - "MediaFilePath": "", 11544 - "Amount": "" 11545 - }, 11546 - { 11547 - "Id": 506, 11548 - "UserId": 738, 11549 - "TermId": 2, 11550 - "TransactionDate": "2014-07-17", 11551 - "TransactionTime": "13:13:06", 11552 - "RequestDate": "2014-07-17", 11553 - "UserIP": "74.201.38.1", 11554 - "SubscriptionType": "n", 11555 - "ProductId": 2, 11556 - "Source": 26, 11557 - "ProductStatus": 2, 11558 - "MediaFilePath": "", 11559 - "Amount": "" 11560 - }, 11561 - { 11562 - "Id": 522, 11563 - "UserId": 754, 11564 - "TermId": 18, 11565 - "TransactionDate": "2014-08-19", 11566 - "TransactionTime": "11:18:55", 11567 - "RequestDate": "2014-08-19", 11568 - "UserIP": "74.201.38.1", 11569 - "SubscriptionType": "n", 11570 - "ProductId": 18, 11571 - "Source": 34, 11572 - "ProductStatus": 2, 11573 - "MediaFilePath": "", 11574 - "Amount": "" 11575 - }, 11576 - { 11577 - "Id": 530, 11578 - "UserId": 762, 11579 - "TermId": 18, 11580 - "TransactionDate": "2014-08-19", 11581 - "TransactionTime": "11:18:55", 11582 - "RequestDate": "2014-08-19", 11583 - "UserIP": "74.201.38.1", 11584 - "SubscriptionType": "n", 11585 - "ProductId": 18, 11586 - "Source": 34, 11587 - "ProductStatus": 2, 11588 - "MediaFilePath": "", 11589 - "Amount": "" 11590 - }, 11591 - { 11592 - "Id": 538, 11593 - "UserId": 770, 11594 - "TermId": 18, 11595 - "TransactionDate": "2014-08-19", 11596 - "TransactionTime": "11:18:55", 11597 - "RequestDate": "2014-08-19", 11598 - "UserIP": "74.201.38.1", 11599 - "SubscriptionType": "n", 11600 - "ProductId": 18, 11601 - "Source": 34, 11602 - "ProductStatus": 2, 11603 - "MediaFilePath": "", 11604 - "Amount": "" 11605 - }, 11606 - { 11607 - "Id": 546, 11608 - "UserId": 778, 11609 - "TermId": 18, 11610 - "TransactionDate": "2014-08-19", 11611 - "TransactionTime": "11:18:55", 11612 - "RequestDate": "2014-08-19", 11613 - "UserIP": "74.201.38.1", 11614 - "SubscriptionType": "n", 11615 - "ProductId": 18, 11616 - "Source": 34, 11617 - "ProductStatus": 2, 11618 - "MediaFilePath": "", 11619 - "Amount": "" 11620 - }, 11621 - { 11622 - "Id": 554, 11623 - "UserId": 786, 11624 - "TermId": 18, 11625 - "TransactionDate": "2014-08-19", 11626 - "TransactionTime": "11:18:55", 11627 - "RequestDate": "2014-08-19", 11628 - "UserIP": "74.201.38.1", 11629 - "SubscriptionType": "n", 11630 - "ProductId": 18, 11631 - "Source": 34, 11632 - "ProductStatus": 2, 11633 - "MediaFilePath": "", 11634 - "Amount": "" 11635 - }, 11636 - { 11637 - "Id": 570, 11638 - "UserId": 802, 11639 - "TermId": 18, 11640 - "TransactionDate": "2014-08-19", 11641 - "TransactionTime": "11:18:55", 11642 - "RequestDate": "2014-08-19", 11643 - "UserIP": "74.201.38.1", 11644 - "SubscriptionType": "n", 11645 - "ProductId": 18, 11646 - "Source": 34, 11647 - "ProductStatus": 2, 11648 - "MediaFilePath": "", 11649 - "Amount": "" 11650 - }, 11651 - { 11652 - "Id": 578, 11653 - "UserId": 810, 11654 - "TermId": 18, 11655 - "TransactionDate": "2014-08-19", 11656 - "TransactionTime": "11:18:55", 11657 - "RequestDate": "2014-08-19", 11658 - "UserIP": "74.201.38.1", 11659 - "SubscriptionType": "n", 11660 - "ProductId": 18, 11661 - "Source": 34, 11662 - "ProductStatus": 2, 11663 - "MediaFilePath": "", 11664 - "Amount": "" 11665 - }, 11666 - { 11667 - "Id": 586, 11668 - "UserId": 818, 11669 - "TermId": 18, 11670 - "TransactionDate": "2014-08-19", 11671 - "TransactionTime": "11:18:55", 11672 - "RequestDate": "2014-08-19", 11673 - "UserIP": "74.201.38.1", 11674 - "SubscriptionType": "n", 11675 - "ProductId": 18, 11676 - "Source": 34, 11677 - "ProductStatus": 2, 11678 - "MediaFilePath": "", 11679 - "Amount": "" 11680 - }, 11681 - { 11682 - "Id": 602, 11683 - "UserId": 834, 11684 - "TermId": 18, 11685 - "TransactionDate": "2014-08-19", 11686 - "TransactionTime": "11:18:55", 11687 - "RequestDate": "2014-08-19", 11688 - "UserIP": "74.201.38.1", 11689 - "SubscriptionType": "n", 11690 - "ProductId": 18, 11691 - "Source": 34, 11692 - "ProductStatus": 2, 11693 - "MediaFilePath": "", 11694 - "Amount": "" 11695 - }, 11696 - { 11697 - "Id": 610, 11698 - "UserId": 842, 11699 - "TermId": 18, 11700 - "TransactionDate": "2014-08-19", 11701 - "TransactionTime": "11:18:55", 11702 - "RequestDate": "2014-08-19", 11703 - "UserIP": "74.201.38.1", 11704 - "SubscriptionType": "n", 11705 - "ProductId": 18, 11706 - "Source": 34, 11707 - "ProductStatus": 2, 11708 - "MediaFilePath": "", 11709 - "Amount": "" 11710 - }, 11711 - { 11712 - "Id": 618, 11713 - "UserId": 850, 11714 - "TermId": 18, 11715 - "TransactionDate": "2014-08-19", 11716 - "TransactionTime": "11:18:55", 11717 - "RequestDate": "2014-08-19", 11718 - "UserIP": "74.201.38.1", 11719 - "SubscriptionType": "n", 11720 - "ProductId": 18, 11721 - "Source": 34, 11722 - "ProductStatus": 2, 11723 - "MediaFilePath": "", 11724 - "Amount": "" 11725 - }, 11726 - { 11727 - "Id": 626, 11728 - "UserId": 858, 11729 - "TermId": 18, 11730 - "TransactionDate": "2014-08-19", 11731 - "TransactionTime": "11:18:55", 11732 - "RequestDate": "2014-08-19", 11733 - "UserIP": "74.201.38.1", 11734 - "SubscriptionType": "n", 11735 - "ProductId": 18, 11736 - "Source": 34, 11737 - "ProductStatus": 2, 11738 - "MediaFilePath": "", 11739 - "Amount": "" 11740 - }, 11741 - { 11742 - "Id": 634, 11743 - "UserId": 866, 11744 - "TermId": 18, 11745 - "TransactionDate": "2014-08-19", 11746 - "TransactionTime": "11:18:55", 11747 - "RequestDate": "2014-08-19", 11748 - "UserIP": "74.201.38.1", 11749 - "SubscriptionType": "n", 11750 - "ProductId": 18, 11751 - "Source": 34, 11752 - "ProductStatus": 2, 11753 - "MediaFilePath": "", 11754 - "Amount": "" 11755 - }, 11756 - { 11757 - "Id": 642, 11758 - "UserId": 874, 11759 - "TermId": 18, 11760 - "TransactionDate": "2014-08-19", 11761 - "TransactionTime": "11:18:55", 11762 - "RequestDate": "2014-08-19", 11763 - "UserIP": "74.201.38.1", 11764 - "SubscriptionType": "n", 11765 - "ProductId": 18, 11766 - "Source": 34, 11767 - "ProductStatus": 2, 11768 - "MediaFilePath": "", 11769 - "Amount": "" 11770 - }, 11771 - { 11772 - "Id": 650, 11773 - "UserId": 882, 11774 - "TermId": 18, 11775 - "TransactionDate": "2014-08-19", 11776 - "TransactionTime": "11:18:55", 11777 - "RequestDate": "2014-08-19", 11778 - "UserIP": "74.201.38.1", 11779 - "SubscriptionType": "n", 11780 - "ProductId": 18, 11781 - "Source": 34, 11782 - "ProductStatus": 2, 11783 - "MediaFilePath": "", 11784 - "Amount": "" 11785 - }, 11786 - { 11787 - "Id": 658, 11788 - "UserId": 890, 11789 - "TermId": 18, 11790 - "TransactionDate": "2014-08-19", 11791 - "TransactionTime": "11:18:55", 11792 - "RequestDate": "2014-08-19", 11793 - "UserIP": "74.201.38.1", 11794 - "SubscriptionType": "n", 11795 - "ProductId": 18, 11796 - "Source": 34, 11797 - "ProductStatus": 2, 11798 - "MediaFilePath": "", 11799 - "Amount": "" 11800 - }, 11801 - { 11802 - "Id": 666, 11803 - "UserId": 898, 11804 - "TermId": 18, 11805 - "TransactionDate": "2014-08-19", 11806 - "TransactionTime": "11:18:55", 11807 - "RequestDate": "2014-08-19", 11808 - "UserIP": "74.201.38.1", 11809 - "SubscriptionType": "n", 11810 - "ProductId": 18, 11811 - "Source": 34, 11812 - "ProductStatus": 2, 11813 - "MediaFilePath": "", 11814 - "Amount": "" 11815 - }, 11816 - { 11817 - "Id": 674, 11818 - "UserId": 906, 11819 - "TermId": 18, 11820 - "TransactionDate": "2014-08-19", 11821 - "TransactionTime": "11:18:55", 11822 - "RequestDate": "2014-08-19", 11823 - "UserIP": "74.201.38.1", 11824 - "SubscriptionType": "n", 11825 - "ProductId": 18, 11826 - "Source": 34, 11827 - "ProductStatus": 2, 11828 - "MediaFilePath": "", 11829 - "Amount": "" 11830 - }, 11831 - { 11832 - "Id": 682, 11833 - "UserId": 914, 11834 - "TermId": 18, 11835 - "TransactionDate": "2014-08-19", 11836 - "TransactionTime": "11:18:55", 11837 - "RequestDate": "2014-08-19", 11838 - "UserIP": "74.201.38.1", 11839 - "SubscriptionType": "n", 11840 - "ProductId": 18, 11841 - "Source": 34, 11842 - "ProductStatus": 2, 11843 - "MediaFilePath": "", 11844 - "Amount": "" 11845 - }, 11846 - { 11847 - "Id": 690, 11848 - "UserId": 922, 11849 - "TermId": 18, 11850 - "TransactionDate": "2014-08-19", 11851 - "TransactionTime": "11:18:55", 11852 - "RequestDate": "2014-08-19", 11853 - "UserIP": "74.201.38.1", 11854 - "SubscriptionType": "n", 11855 - "ProductId": 18, 11856 - "Source": 34, 11857 - "ProductStatus": 2, 11858 - "MediaFilePath": "", 11859 - "Amount": "" 11860 - }, 11861 - { 11862 - "Id": 698, 11863 - "UserId": 930, 11864 - "TermId": 18, 11865 - "TransactionDate": "2014-08-19", 11866 - "TransactionTime": "11:18:55", 11867 - "RequestDate": "2014-08-19", 11868 - "UserIP": "74.201.38.1", 11869 - "SubscriptionType": "n", 11870 - "ProductId": 18, 11871 - "Source": 34, 11872 - "ProductStatus": 2, 11873 - "MediaFilePath": "", 11874 - "Amount": "" 11875 - }, 11876 - { 11877 - "Id": 706, 11878 - "UserId": 938, 11879 - "TermId": 18, 11880 - "TransactionDate": "2014-08-19", 11881 - "TransactionTime": "11:18:55", 11882 - "RequestDate": "2014-08-19", 11883 - "UserIP": "74.201.38.1", 11884 - "SubscriptionType": "n", 11885 - "ProductId": 18, 11886 - "Source": 34, 11887 - "ProductStatus": 2, 11888 - "MediaFilePath": "", 11889 - "Amount": "" 11890 - }, 11891 - { 11892 - "Id": 714, 11893 - "UserId": 946, 11894 - "TermId": 18, 11895 - "TransactionDate": "2014-08-19", 11896 - "TransactionTime": "11:18:55", 11897 - "RequestDate": "2014-08-19", 11898 - "UserIP": "74.201.38.1", 11899 - "SubscriptionType": "n", 11900 - "ProductId": 18, 11901 - "Source": 34, 11902 - "ProductStatus": 2, 11903 - "MediaFilePath": "", 11904 - "Amount": "" 11905 - }, 11906 - { 11907 - "Id": 722, 11908 - "UserId": 954, 11909 - "TermId": 18, 11910 - "TransactionDate": "2014-08-19", 11911 - "TransactionTime": "11:18:55", 11912 - "RequestDate": "2014-08-19", 11913 - "UserIP": "74.201.38.1", 11914 - "SubscriptionType": "n", 11915 - "ProductId": 18, 11916 - "Source": 34, 11917 - "ProductStatus": 2, 11918 - "MediaFilePath": "", 11919 - "Amount": "" 11920 - }, 11921 - { 11922 - "Id": 730, 11923 - "UserId": 962, 11924 - "TermId": 18, 11925 - "TransactionDate": "2014-08-19", 11926 - "TransactionTime": "11:18:55", 11927 - "RequestDate": "2014-08-19", 11928 - "UserIP": "74.201.38.1", 11929 - "SubscriptionType": "n", 11930 - "ProductId": 18, 11931 - "Source": 34, 11932 - "ProductStatus": 2, 11933 - "MediaFilePath": "", 11934 - "Amount": "" 11935 - }, 11936 - { 11937 - "Id": 738, 11938 - "UserId": 970, 11939 - "TermId": 18, 11940 - "TransactionDate": "2014-08-19", 11941 - "TransactionTime": "11:18:55", 11942 - "RequestDate": "2014-08-19", 11943 - "UserIP": "74.201.38.1", 11944 - "SubscriptionType": "n", 11945 - "ProductId": 18, 11946 - "Source": 34, 11947 - "ProductStatus": 2, 11948 - "MediaFilePath": "", 11949 - "Amount": "" 11950 - }, 11951 - { 11952 - "Id": 746, 11953 - "UserId": 978, 11954 - "TermId": 18, 11955 - "TransactionDate": "2014-08-19", 11956 - "TransactionTime": "11:18:55", 11957 - "RequestDate": "2014-08-19", 11958 - "UserIP": "74.201.38.1", 11959 - "SubscriptionType": "n", 11960 - "ProductId": 18, 11961 - "Source": 34, 11962 - "ProductStatus": 2, 11963 - "MediaFilePath": "", 11964 - "Amount": "" 11965 - }, 11966 - { 11967 - "Id": 754, 11968 - "UserId": 986, 11969 - "TermId": 18, 11970 - "TransactionDate": "2014-08-19", 11971 - "TransactionTime": "11:18:55", 11972 - "RequestDate": "2014-08-19", 11973 - "UserIP": "74.201.38.1", 11974 - "SubscriptionType": "n", 11975 - "ProductId": 18, 11976 - "Source": 34, 11977 - "ProductStatus": 2, 11978 - "MediaFilePath": "", 11979 - "Amount": "" 11980 - }, 11981 - { 11982 - "Id": 762, 11983 - "UserId": 994, 11984 - "TermId": 18, 11985 - "TransactionDate": "2014-08-19", 11986 - "TransactionTime": "11:18:55", 11987 - "RequestDate": "2014-08-19", 11988 - "UserIP": "74.201.38.1", 11989 - "SubscriptionType": "n", 11990 - "ProductId": 18, 11991 - "Source": 34, 11992 - "ProductStatus": 2, 11993 - "MediaFilePath": "", 11994 - "Amount": "" 11995 - }, 11996 - { 11997 - "Id": 770, 11998 - "UserId": 1002, 11999 - "TermId": 18, 12000 - "TransactionDate": "2014-08-19", 12001 - "TransactionTime": "11:18:55", 12002 - "RequestDate": "2014-08-19", 12003 - "UserIP": "74.201.38.1", 12004 - "SubscriptionType": "n", 12005 - "ProductId": 18, 12006 - "Source": 34, 12007 - "ProductStatus": 2, 12008 - "MediaFilePath": "", 12009 - "Amount": "" 12010 - }, 12011 - { 12012 - "Id": 778, 12013 - "UserId": 1010, 12014 - "TermId": 18, 12015 - "TransactionDate": "2014-08-19", 12016 - "TransactionTime": "11:18:55", 12017 - "RequestDate": "2014-08-19", 12018 - "UserIP": "74.201.38.1", 12019 - "SubscriptionType": "n", 12020 - "ProductId": 18, 12021 - "Source": 34, 12022 - "ProductStatus": 2, 12023 - "MediaFilePath": "", 12024 - "Amount": "" 12025 - }, 12026 - { 12027 - "Id": 786, 12028 - "UserId": 1018, 12029 - "TermId": 18, 12030 - "TransactionDate": "2014-08-19", 12031 - "TransactionTime": "11:18:55", 12032 - "RequestDate": "2014-08-19", 12033 - "UserIP": "74.201.38.1", 12034 - "SubscriptionType": "n", 12035 - "ProductId": 18, 12036 - "Source": 34, 12037 - "ProductStatus": 2, 12038 - "MediaFilePath": "", 12039 - "Amount": "" 12040 - }, 12041 - { 12042 - "Id": 794, 12043 - "UserId": 1026, 12044 - "TermId": 18, 12045 - "TransactionDate": "2014-08-19", 12046 - "TransactionTime": "11:18:55", 12047 - "RequestDate": "2014-08-19", 12048 - "UserIP": "74.201.38.1", 12049 - "SubscriptionType": "n", 12050 - "ProductId": 18, 12051 - "Source": 34, 12052 - "ProductStatus": 2, 12053 - "MediaFilePath": "", 12054 - "Amount": "" 12055 - }, 12056 - { 12057 - "Id": 802, 12058 - "UserId": 1034, 12059 - "TermId": 18, 12060 - "TransactionDate": "2014-08-19", 12061 - "TransactionTime": "11:18:55", 12062 - "RequestDate": "2014-08-19", 12063 - "UserIP": "74.201.38.1", 12064 - "SubscriptionType": "n", 12065 - "ProductId": 18, 12066 - "Source": 34, 12067 - "ProductStatus": 2, 12068 - "MediaFilePath": "", 12069 - "Amount": "" 12070 - }, 12071 - { 12072 - "Id": 810, 12073 - "UserId": 1042, 12074 - "TermId": 18, 12075 - "TransactionDate": "2014-08-19", 12076 - "TransactionTime": "11:18:55", 12077 - "RequestDate": "2014-08-19", 12078 - "UserIP": "74.201.38.1", 12079 - "SubscriptionType": "n", 12080 - "ProductId": 18, 12081 - "Source": 34, 12082 - "ProductStatus": 2, 12083 - "MediaFilePath": "", 12084 - "Amount": "" 12085 - }, 12086 - { 12087 - "Id": 818, 12088 - "UserId": 1050, 12089 - "TermId": 18, 12090 - "TransactionDate": "2014-08-19", 12091 - "TransactionTime": "11:18:55", 12092 - "RequestDate": "2014-08-19", 12093 - "UserIP": "74.201.38.1", 12094 - "SubscriptionType": "n", 12095 - "ProductId": 18, 12096 - "Source": 34, 12097 - "ProductStatus": 2, 12098 - "MediaFilePath": "", 12099 - "Amount": "" 12100 - }, 12101 - { 12102 - "Id": 826, 12103 - "UserId": 1058, 12104 - "TermId": 18, 12105 - "TransactionDate": "2014-08-19", 12106 - "TransactionTime": "11:18:55", 12107 - "RequestDate": "2014-08-19", 12108 - "UserIP": "74.201.38.1", 12109 - "SubscriptionType": "n", 12110 - "ProductId": 18, 12111 - "Source": 34, 12112 - "ProductStatus": 2, 12113 - "MediaFilePath": "", 12114 - "Amount": "" 12115 - }, 12116 - { 12117 - "Id": 834, 12118 - "UserId": 1066, 12119 - "TermId": 18, 12120 - "TransactionDate": "2014-08-19", 12121 - "TransactionTime": "11:18:55", 12122 - "RequestDate": "2014-08-19", 12123 - "UserIP": "74.201.38.1", 12124 - "SubscriptionType": "n", 12125 - "ProductId": 18, 12126 - "Source": 34, 12127 - "ProductStatus": 2, 12128 - "MediaFilePath": "", 12129 - "Amount": "" 12130 - }, 12131 - { 12132 - "Id": 842, 12133 - "UserId": 1074, 12134 - "TermId": 18, 12135 - "TransactionDate": "2014-08-19", 12136 - "TransactionTime": "11:18:55", 12137 - "RequestDate": "2014-08-19", 12138 - "UserIP": "74.201.38.1", 12139 - "SubscriptionType": "n", 12140 - "ProductId": 18, 12141 - "Source": 34, 12142 - "ProductStatus": 2, 12143 - "MediaFilePath": "", 12144 - "Amount": "" 12145 - }, 12146 - { 12147 - "Id": 850, 12148 - "UserId": 1082, 12149 - "TermId": 18, 12150 - "TransactionDate": "2014-08-19", 12151 - "TransactionTime": "11:18:55", 12152 - "RequestDate": "2014-08-19", 12153 - "UserIP": "74.201.38.1", 12154 - "SubscriptionType": "n", 12155 - "ProductId": 18, 12156 - "Source": 34, 12157 - "ProductStatus": 2, 12158 - "MediaFilePath": "", 12159 - "Amount": "" 12160 - }, 12161 - { 12162 - "Id": 858, 12163 - "UserId": 1090, 12164 - "TermId": 18, 12165 - "TransactionDate": "2014-08-19", 12166 - "TransactionTime": "11:18:55", 12167 - "RequestDate": "2014-08-19", 12168 - "UserIP": "74.201.38.1", 12169 - "SubscriptionType": "n", 12170 - "ProductId": 18, 12171 - "Source": 34, 12172 - "ProductStatus": 2, 12173 - "MediaFilePath": "", 12174 - "Amount": "" 12175 - }, 12176 - { 12177 - "Id": 866, 12178 - "UserId": 1098, 12179 - "TermId": 18, 12180 - "TransactionDate": "2014-08-19", 12181 - "TransactionTime": "11:18:55", 12182 - "RequestDate": "2014-08-19", 12183 - "UserIP": "74.201.38.1", 12184 - "SubscriptionType": "n", 12185 - "ProductId": 18, 12186 - "Source": 34, 12187 - "ProductStatus": 2, 12188 - "MediaFilePath": "", 12189 - "Amount": "" 12190 - }, 12191 - { 12192 - "Id": 874, 12193 - "UserId": 1106, 12194 - "TermId": 18, 12195 - "TransactionDate": "2014-08-19", 12196 - "TransactionTime": "11:18:55", 12197 - "RequestDate": "2014-08-19", 12198 - "UserIP": "74.201.38.1", 12199 - "SubscriptionType": "n", 12200 - "ProductId": 18, 12201 - "Source": 34, 12202 - "ProductStatus": 2, 12203 - "MediaFilePath": "", 12204 - "Amount": "" 12205 - }, 12206 - { 12207 - "Id": 882, 12208 - "UserId": 1114, 12209 - "TermId": 18, 12210 - "TransactionDate": "2014-08-19", 12211 - "TransactionTime": "11:18:55", 12212 - "RequestDate": "2014-08-19", 12213 - "UserIP": "74.201.38.1", 12214 - "SubscriptionType": "n", 12215 - "ProductId": 18, 12216 - "Source": 34, 12217 - "ProductStatus": 2, 12218 - "MediaFilePath": "", 12219 - "Amount": "" 12220 - }, 12221 - { 12222 - "Id": 890, 12223 - "UserId": 1122, 12224 - "TermId": 18, 12225 - "TransactionDate": "2014-08-19", 12226 - "TransactionTime": "11:18:55", 12227 - "RequestDate": "2014-08-19", 12228 - "UserIP": "74.201.38.1", 12229 - "SubscriptionType": "n", 12230 - "ProductId": 18, 12231 - "Source": 34, 12232 - "ProductStatus": 2, 12233 - "MediaFilePath": "", 12234 - "Amount": "" 12235 - }, 12236 - { 12237 - "Id": 898, 12238 - "UserId": 1130, 12239 - "TermId": 18, 12240 - "TransactionDate": "2014-08-19", 12241 - "TransactionTime": "11:18:55", 12242 - "RequestDate": "2014-08-19", 12243 - "UserIP": "74.201.38.1", 12244 - "SubscriptionType": "n", 12245 - "ProductId": 18, 12246 - "Source": 34, 12247 - "ProductStatus": 2, 12248 - "MediaFilePath": "", 12249 - "Amount": "" 12250 - }, 12251 - { 12252 - "Id": 906, 12253 - "UserId": 1138, 12254 - "TermId": 18, 12255 - "TransactionDate": "2014-08-19", 12256 - "TransactionTime": "11:18:55", 12257 - "RequestDate": "2014-08-19", 12258 - "UserIP": "74.201.38.1", 12259 - "SubscriptionType": "n", 12260 - "ProductId": 18, 12261 - "Source": 34, 12262 - "ProductStatus": 2, 12263 - "MediaFilePath": "", 12264 - "Amount": "" 12265 - }, 12266 - { 12267 - "Id": 914, 12268 - "UserId": 1146, 12269 - "TermId": 18, 12270 - "TransactionDate": "2014-08-19", 12271 - "TransactionTime": "11:18:55", 12272 - "RequestDate": "2014-08-19", 12273 - "UserIP": "74.201.38.1", 12274 - "SubscriptionType": "n", 12275 - "ProductId": 18, 12276 - "Source": 34, 12277 - "ProductStatus": 2, 12278 - "MediaFilePath": "", 12279 - "Amount": "" 12280 - }, 12281 - { 12282 - "Id": 922, 12283 - "UserId": 1154, 12284 - "TermId": 18, 12285 - "TransactionDate": "2014-08-19", 12286 - "TransactionTime": "11:18:55", 12287 - "RequestDate": "2014-08-19", 12288 - "UserIP": "74.201.38.1", 12289 - "SubscriptionType": "n", 12290 - "ProductId": 18, 12291 - "Source": 34, 12292 - "ProductStatus": 2, 12293 - "MediaFilePath": "", 12294 - "Amount": "" 12295 - }, 12296 - { 12297 - "Id": 930, 12298 - "UserId": 1162, 12299 - "TermId": 18, 12300 - "TransactionDate": "2014-08-19", 12301 - "TransactionTime": "11:18:55", 12302 - "RequestDate": "2014-08-19", 12303 - "UserIP": "74.201.38.1", 12304 - "SubscriptionType": "n", 12305 - "ProductId": 18, 12306 - "Source": 34, 12307 - "ProductStatus": 2, 12308 - "MediaFilePath": "", 12309 - "Amount": "" 12310 - }, 12311 - { 12312 - "Id": 938, 12313 - "UserId": 1170, 12314 - "TermId": 18, 12315 - "TransactionDate": "2014-08-19", 12316 - "TransactionTime": "11:18:55", 12317 - "RequestDate": "2014-08-19", 12318 - "UserIP": "74.201.38.1", 12319 - "SubscriptionType": "n", 12320 - "ProductId": 18, 12321 - "Source": 34, 12322 - "ProductStatus": 2, 12323 - "MediaFilePath": "", 12324 - "Amount": "" 12325 - }, 12326 - { 12327 - "Id": 946, 12328 - "UserId": 1178, 12329 - "TermId": 18, 12330 - "TransactionDate": "2014-08-19", 12331 - "TransactionTime": "11:18:55", 12332 - "RequestDate": "2014-08-19", 12333 - "UserIP": "74.201.38.1", 12334 - "SubscriptionType": "n", 12335 - "ProductId": 18, 12336 - "Source": 34, 12337 - "ProductStatus": 2, 12338 - "MediaFilePath": "", 12339 - "Amount": "" 12340 - }, 12341 - { 12342 - "Id": 954, 12343 - "UserId": 1186, 12344 - "TermId": 18, 12345 - "TransactionDate": "2014-08-19", 12346 - "TransactionTime": "11:18:55", 12347 - "RequestDate": "2014-08-19", 12348 - "UserIP": "74.201.38.1", 12349 - "SubscriptionType": "n", 12350 - "ProductId": 18, 12351 - "Source": 34, 12352 - "ProductStatus": 2, 12353 - "MediaFilePath": "", 12354 - "Amount": "" 12355 - }, 12356 - { 12357 - "Id": 962, 12358 - "UserId": 1194, 12359 - "TermId": 18, 12360 - "TransactionDate": "2014-08-19", 12361 - "TransactionTime": "11:18:55", 12362 - "RequestDate": "2014-08-19", 12363 - "UserIP": "74.201.38.1", 12364 - "SubscriptionType": "n", 12365 - "ProductId": 18, 12366 - "Source": 34, 12367 - "ProductStatus": 2, 12368 - "MediaFilePath": "", 12369 - "Amount": "" 12370 - }, 12371 - { 12372 - "Id": 970, 12373 - "UserId": 1202, 12374 - "TermId": 18, 12375 - "TransactionDate": "2014-08-19", 12376 - "TransactionTime": "11:18:55", 12377 - "RequestDate": "2014-08-19", 12378 - "UserIP": "74.201.38.1", 12379 - "SubscriptionType": "n", 12380 - "ProductId": 18, 12381 - "Source": 34, 12382 - "ProductStatus": 2, 12383 - "MediaFilePath": "", 12384 - "Amount": "" 12385 - }, 12386 - { 12387 - "Id": 978, 12388 - "UserId": 1210, 12389 - "TermId": 18, 12390 - "TransactionDate": "2014-08-19", 12391 - "TransactionTime": "11:18:55", 12392 - "RequestDate": "2014-08-19", 12393 - "UserIP": "74.201.38.1", 12394 - "SubscriptionType": "n", 12395 - "ProductId": 18, 12396 - "Source": 34, 12397 - "ProductStatus": 2, 12398 - "MediaFilePath": "", 12399 - "Amount": "" 12400 - }, 12401 - { 12402 - "Id": 986, 12403 - "UserId": 1218, 12404 - "TermId": 18, 12405 - "TransactionDate": "2014-08-19", 12406 - "TransactionTime": "11:18:55", 12407 - "RequestDate": "2014-08-19", 12408 - "UserIP": "74.201.38.1", 12409 - "SubscriptionType": "n", 12410 - "ProductId": 18, 12411 - "Source": 34, 12412 - "ProductStatus": 2, 12413 - "MediaFilePath": "", 12414 - "Amount": "" 12415 - }, 12416 - { 12417 - "Id": 994, 12418 - "UserId": 1226, 12419 - "TermId": 18, 12420 - "TransactionDate": "2014-08-19", 12421 - "TransactionTime": "11:18:55", 12422 - "RequestDate": "2014-08-19", 12423 - "UserIP": "74.201.38.1", 12424 - "SubscriptionType": "n", 12425 - "ProductId": 18, 12426 - "Source": 34, 12427 - "ProductStatus": 2, 12428 - "MediaFilePath": "", 12429 - "Amount": "" 12430 - }, 12431 - { 12432 - "Id": 1002, 12433 - "UserId": 1234, 12434 - "TermId": 18, 12435 - "TransactionDate": "2014-08-19", 12436 - "TransactionTime": "11:18:55", 12437 - "RequestDate": "2014-08-19", 12438 - "UserIP": "74.201.38.1", 12439 - "SubscriptionType": "n", 12440 - "ProductId": 18, 12441 - "Source": 34, 12442 - "ProductStatus": 2, 12443 - "MediaFilePath": "", 12444 - "Amount": "" 12445 - } 12446 - ] 12447 -} 12448 -{{/code}} 12449 - 12450 - 12451 -(% id="HGETspecificTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12452 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Transaction(%%) == 12453 - 12454 ----- 12455 - 12456 -{{panel bgColor="#D3D3D3" width="100%"}} 12457 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/~{~{Transaction id}} 12458 -{{/panel}} 12459 - 12460 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12461 - 12462 ----- 12463 - 12464 -(% 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}} 12465 - 12466 -==== Example ==== 12467 - 12468 ----- 12469 - 12470 -(% style="color:#6b6b6b" %)Request 12471 - 12472 -{{code language="php" theme="RDark" title="Get specific Transaction Request"}} 12473 - <?php 12474 - 12475 -$curl = curl_init(); 12476 - 12477 -curl_setopt_array($curl, array( 12478 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions/{{Transaction id}}', 12479 - CURLOPT_RETURNTRANSFER => true, 12480 - CURLOPT_ENCODING => '', 12481 - CURLOPT_MAXREDIRS => 10, 12482 - CURLOPT_TIMEOUT => 0, 12483 - CURLOPT_FOLLOWLOCATION => true, 12484 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12485 - CURLOPT_CUSTOMREQUEST => 'GET', 12486 - CURLOPT_HTTPHEADER => array( 12487 - 'Appkey: {{ONECOUNT API KEY}}' 12488 - ), 12489 -)); 12490 - 12491 -$response = curl_exec($curl); 12492 - 12493 -curl_close($curl); 12494 -echo $response; 12495 -{{/code}} 12496 - 12497 - 12498 -(% style="color:#6b6b6b" %)Response 200 OK 12499 - 12500 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Transaction Response"}} 12501 - { 12502 - "result": { 12503 - "success": "1", 12504 - "error": { 12505 - "code": "", 12506 - "message": "" 12507 - } 12508 - }, 12509 - "Transactions": [ 12510 - { 12511 - "Id": 1002, 12512 - "UserId": 1234, 12513 - "TermId": 18, 12514 - "TransactionDate": "2014-08-19", 12515 - "TransactionTime": "11:18:55", 12516 - "RequestDate": "2014-08-19", 12517 - "UserIP": "74.201.38.1", 12518 - "SubscriptionType": "n", 12519 - "ProductId": 18, 12520 - "Source": 34, 12521 - "ProductStatus": 2, 12522 - "MediaFilePath": "", 12523 - "Amount": "" 12524 - } 12525 - ] 12526 -} 12527 -{{/code}} 12528 - 12529 - 12530 -(% id="HGETlookupTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12531 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Transaction(%%) == 12532 - 12533 ----- 12534 - 12535 -{{panel bgColor="#D3D3D3" width="100%"}} 12536 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/lookup?UserId=~{~{OCID}} 12537 -{{/panel}} 12538 - 12539 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12540 - 12541 ----- 12542 - 12543 -(% 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}} 12544 - 12545 -=== (% style="color:#212121" %)Query Params(%%) === 12546 - 12547 ----- 12548 - 12549 -(% 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}} 12550 - 12551 -==== Example ==== 12552 - 12553 ----- 12554 - 12555 -(% style="color:#6b6b6b" %)Request 12556 - 12557 -{{code language="php" theme="RDark" title="Lookup Transaction Request"}} 12558 - <?php 12559 - 12560 -$curl = curl_init(); 12561 - 12562 -curl_setopt_array($curl, array( 12563 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions/lookup?UserId={{OCID}}', 12564 - CURLOPT_RETURNTRANSFER => true, 12565 - CURLOPT_ENCODING => '', 12566 - CURLOPT_MAXREDIRS => 10, 12567 - CURLOPT_TIMEOUT => 0, 12568 - CURLOPT_FOLLOWLOCATION => true, 12569 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12570 - CURLOPT_CUSTOMREQUEST => 'GET', 12571 - CURLOPT_HTTPHEADER => array( 12572 - 'Appkey: {{ONECOUNT API KEY}}' 12573 - ), 12574 -)); 12575 - 12576 -$response = curl_exec($curl); 12577 - 12578 -curl_close($curl); 12579 -echo $response; 12580 -{{/code}} 12581 - 12582 - 12583 -(% style="color:#6b6b6b" %)Response 200 OK 12584 - 12585 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Transaction Response"}} 12586 - { 12587 - "result": { 12588 - "success": "1", 12589 - "error": { 12590 - "code": "", 12591 - "message": "" 12592 - } 12593 - }, 12594 - "Transactions": [ 12595 - { 12596 - "Id": 52494786, 12597 - "UserId": 1234, 12598 - "TermId": 34, 12599 - "TransactionDate": "2016-01-19", 12600 - "TransactionTime": "15:30:04", 12601 - "RequestDate": "2016-01-19", 12602 - "UserIP": "12.226.247.2", 12603 - "SubscriptionType": "u", 12604 - "ProductId": 34, 12605 - "Source": 0, 12606 - "ProductStatus": 0, 12607 - "MediaFilePath": "", 12608 - "Amount": "" 12609 - }, 12610 - { 12611 - "Id": 42654041, 12612 - "UserId": 1234, 12613 - "TermId": 34, 12614 - "TransactionDate": "2015-09-09", 12615 - "TransactionTime": "11:20:39", 12616 - "RequestDate": "2015-09-09", 12617 - "UserIP": "24.187.236.98", 12618 - "SubscriptionType": "n", 12619 - "ProductId": 34, 12620 - "Source": 0, 12621 - "ProductStatus": 2, 12622 - "MediaFilePath": "", 12623 - "Amount": "" 12624 - }, 12625 - { 12626 - "Id": 97251022, 12627 - "UserId": 1234, 12628 - "TermId": 34, 12629 - "TransactionDate": "2015-06-04", 12630 - "TransactionTime": "14:59:42", 12631 - "RequestDate": "2015-06-04", 12632 - "UserIP": "12.226.247.2", 12633 - "SubscriptionType": "u", 12634 - "ProductId": 34, 12635 - "Source": 0, 12636 - "ProductStatus": 0, 12637 - "MediaFilePath": "", 12638 - "Amount": "" 12639 - }, 12640 - { 12641 - "Id": 55492559, 12642 - "UserId": 1234, 12643 - "TermId": 34, 12644 - "TransactionDate": "2015-04-03", 12645 - "TransactionTime": "16:32:04", 12646 - "RequestDate": "2015-04-03", 12647 - "UserIP": "24.187.236.98", 12648 - "SubscriptionType": "r", 12649 - "ProductId": 34, 12650 - "Source": 58, 12651 - "ProductStatus": 106, 12652 - "MediaFilePath": "", 12653 - "Amount": "" 12654 - }, 12655 - { 12656 - "Id": 98173391, 12657 - "UserId": 1234, 12658 - "TermId": 34, 12659 - "TransactionDate": "2015-04-03", 12660 - "TransactionTime": "15:50:45", 12661 - "RequestDate": "2014-08-19", 12662 - "UserIP": "24.187.236.98", 12663 - "SubscriptionType": "n", 12664 - "ProductId": 34, 12665 - "Source": 34, 12666 - "ProductStatus": 106, 12667 - "MediaFilePath": "", 12668 - "Amount": "" 12669 - }, 12670 - { 12671 - "Id": 91711793, 12672 - "UserId": 1234, 12673 - "TermId": 18, 12674 - "TransactionDate": "2015-04-27", 12675 - "TransactionTime": "14:24:51", 12676 - "RequestDate": "2015-04-27", 12677 - "UserIP": "24.187.236.98", 12678 - "SubscriptionType": "u", 12679 - "ProductId": 18, 12680 - "Source": 0, 12681 - "ProductStatus": 106, 12682 - "MediaFilePath": "", 12683 - "Amount": "" 12684 - }, 12685 - { 12686 - "Id": 74936400, 12687 - "UserId": 1234, 12688 - "TermId": 18, 12689 - "TransactionDate": "2015-04-27", 12690 - "TransactionTime": "12:35:18", 12691 - "RequestDate": "2015-04-27", 12692 - "UserIP": "68.196.187.74", 12693 - "SubscriptionType": "n", 12694 - "ProductId": 18, 12695 - "Source": 34, 12696 - "ProductStatus": 106, 12697 - "MediaFilePath": "", 12698 - "Amount": "" 12699 - }, 12700 - { 12701 - "Id": 21664714, 12702 - "UserId": 1234, 12703 - "TermId": 18, 12704 - "TransactionDate": "2015-04-03", 12705 - "TransactionTime": "15:50:46", 12706 - "RequestDate": "2015-04-03", 12707 - "UserIP": "24.187.236.98", 12708 - "SubscriptionType": "u", 12709 - "ProductId": 18, 12710 - "Source": 0, 12711 - "ProductStatus": 2, 12712 - "MediaFilePath": "", 12713 - "Amount": "" 12714 - }, 12715 - { 12716 - "Id": 81129263, 12717 - "UserId": 1234, 12718 - "TermId": 18, 12719 - "TransactionDate": "2014-08-19", 12720 - "TransactionTime": "11:18:55", 12721 - "RequestDate": "2014-08-19", 12722 - "UserIP": "74.201.38.1", 12723 - "SubscriptionType": "n", 12724 - "ProductId": 18, 12725 - "Source": 34, 12726 - "ProductStatus": 2, 12727 - "MediaFilePath": "", 12728 - "Amount": "" 12729 - }, 12730 - { 12731 - "Id": 30461748, 12732 - "UserId": 1234, 12733 - "ResourceId": 459, 12734 - "TransactionDate": "2023-03-15", 12735 - "TransactionTime": "12:07:55", 12736 - "RequestDate": "2023-03-15", 12737 - "UserIP": "74.201.38.12", 12738 - "SubscriptionType": "n", 12739 - "SourceCode": 0, 12740 - "ProductStatus": 0, 12741 - "MediaFilePath": "", 12742 - "Amount": "" 12743 - }, 12744 - { 12745 - "Id": 25858253, 12746 - "UserId": 1234, 12747 - "ResourceId": 451, 12748 - "TransactionDate": "2023-03-15", 12749 - "TransactionTime": "11:45:19", 12750 - "RequestDate": "2023-03-15", 12751 - "UserIP": "74.201.38.12", 12752 - "SubscriptionType": "n", 12753 - "SourceCode": 0, 12754 - "ProductStatus": 0, 12755 - "MediaFilePath": "", 12756 - "Amount": "" 12757 - }, 12758 - { 12759 - "Id": 69453260, 12760 - "UserId": 1234, 12761 - "ResourceId": 411, 12762 - "TransactionDate": "2022-06-07", 12763 - "TransactionTime": "17:03:14", 12764 - "RequestDate": "2022-06-07", 12765 - "UserIP": "74.201.38.12", 12766 - "SubscriptionType": "n", 12767 - "SourceCode": 0, 12768 - "ProductStatus": 0, 12769 - "MediaFilePath": "", 12770 - "Amount": "" 12771 - }, 12772 - { 12773 - "Id": 51354425, 12774 - "UserId": 1234, 12775 - "ResourceId": 355, 12776 - "TransactionDate": "2020-04-06", 12777 - "TransactionTime": "12:24:08", 12778 - "RequestDate": "2020-04-06", 12779 - "UserIP": "74.201.38.12", 12780 - "SubscriptionType": "n", 12781 - "SourceCode": 0, 12782 - "ProductStatus": 0, 12783 - "MediaFilePath": "", 12784 - "Amount": "" 12785 - } 12786 - ] 12787 -} 12788 -{{/code}} 12789 - 12790 - 12791 -(% id="HPOSTCreateTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12792 -== (% 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(%%) == 12793 - 12794 ----- 12795 - 12796 -{{panel bgColor="#D3D3D3" width="100%"}} 12797 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions 12798 -{{/panel}} 12799 - 12800 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12801 - 12802 ----- 12803 - 12804 -(% 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}} 12805 - 12806 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 12807 - 12808 ----- 12809 - 12810 -{{code language="yml" theme="RDark" title="Body"}} 12811 -{"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" } 12812 -{{/code}} 12813 - 12814 -==== Example ==== 12815 - 12816 ----- 12817 - 12818 -(% style="color:#6b6b6b" %)Request 12819 - 12820 -{{code language="php" theme="RDark" title="Create Transaction Request"}} 12821 - <?php 12822 - 12823 -$curl = curl_init(); 12824 - 12825 -curl_setopt_array($curl, array( 12826 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions', 12827 - CURLOPT_RETURNTRANSFER => true, 12828 - CURLOPT_ENCODING => '', 12829 - CURLOPT_MAXREDIRS => 10, 12830 - CURLOPT_TIMEOUT => 0, 12831 - CURLOPT_FOLLOWLOCATION => true, 12832 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12833 - CURLOPT_CUSTOMREQUEST => 'POST', 12834 - 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" }', 12835 - CURLOPT_HTTPHEADER => array( 12836 - 'Appkey: {{ONECOUNT API KEY}}' 12837 - ), 12838 -)); 12839 - 12840 -$response = curl_exec($curl); 12841 - 12842 -curl_close($curl); 12843 -echo $response; 12844 -{{/code}} 12845 - 12846 - 12847 -(% style="color:#6b6b6b" %)Response 200 OK 12848 - 12849 -{{code language="yml" theme="RDark" collapse="true" title="Create Transaction Response"}} 12850 - { 12851 - "result": { 12852 - "success": "1", 12853 - "error": { 12854 - "code": "", 12855 - "message": "" 12856 - } 12857 - }, 12858 - "Transactions": { 12859 - "Id": "1234", 12860 - "UserId": 1845775, 12861 - "TermId": 447, 12862 - "TransactionDate": "20231211", 12863 - "TransactionTime": "09:34:26", 12864 - "RequestDate": "20231211", 12865 - "UserIP": "192.168.0.1", 12866 - "SubscriptionType": "n", 12867 - "ProductId": 599, 12868 - "Source": 83, 12869 - "ProductStatus": 2, 12870 - "MediaFilePath": "", 12871 - "Amount": "0.00" 12872 - } 12873 -} 12874 -{{/code}} 12875 - 12876 - 12877 -=== **COMPONENT: Engagements** === 12878 - 12879 12879 (% class="western" %) 12880 - Engagementcanbeadded,updatedand searchedfor usingtheengagementsresourcefromheapi.3143 +POST method should be used to create an individual source given the source parameters. 12881 12881 12882 - 12883 -(% class="wrapped" %) 12884 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3145 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12885 12885 ((( 12886 12886 (% class="western" %) 12887 -** Method**12888 -)))|(% style="text-align:left; 3148 +**Request** 3149 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12889 12889 ((( 12890 12890 (% class="western" %) 12891 -** Url**12892 -)))|(% style="text-align:left; 3152 +**Type** 3153 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12893 12893 ((( 12894 12894 (% class="western" %) 12895 -** Action**3156 +**Description** 12896 12896 ))) 12897 -|(% style="text-align:left; 3158 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12898 12898 ((( 12899 12899 (% class="western" %) 12900 - GET12901 -)))|(% style="text-align:left; 3161 +Sources 3162 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12902 12902 ((( 12903 12903 (% class="western" %) 12904 - /(% style="color:#212121" %)engagements12905 -)))|(% style="text-align:left; 3165 +Sources 3166 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12906 12906 ((( 12907 12907 (% class="western" %) 12908 - Get engagement datalimiting25.3169 +Defines the contents that makes up the source. Id parameters should not be set. 12909 12909 ))) 12910 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3171 + 3172 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12911 12911 ((( 12912 12912 (% class="western" %) 12913 - GET12914 -)))|(% style="text-align:left; 3175 +**Response** 3176 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12915 12915 ((( 12916 12916 (% class="western" %) 12917 - /(% style="color:#212121" %)engagements(%%)/<engagement id>12918 -)))|(% style="text-align:left; 3179 +**Type** 3180 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12919 12919 ((( 12920 12920 (% class="western" %) 12921 - Get data forengagementid. The engagementd is a string3183 +**Description** 12922 12922 ))) 12923 -|(% style="text-align:left; 3185 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12924 12924 ((( 12925 12925 (% class="western" %) 12926 - POST12927 -)))|(% style="text-align:left; 3188 +SourceId 3189 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12928 12928 ((( 12929 12929 (% class="western" %) 12930 - /(% style="color:#212121" %)engagements12931 -)))|(% style="text-align:left; 3192 +int 3193 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12932 12932 ((( 12933 12933 (% class="western" %) 12934 -Create a new engagement 3196 +Returns created source code id. 3197 +))) 12935 12935 3199 +\\ 3200 + 12936 12936 (% class="western" %) 12937 -P arametersrequired tocreatethe engagementneedstobesentas postdatain JSON format.12938 - )))12939 -|(% style="text-align:left; 3202 +**PUT method can be used to update an individual source given the id.** 3203 + 3204 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12940 12940 ((( 12941 12941 (% class="western" %) 12942 - PUT12943 -)))|(% style="text-align:left; 3207 +**Request** 3208 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12944 12944 ((( 12945 12945 (% class="western" %) 12946 - /(% style="color:#212121" %)engagements(%%)/<engagement id>12947 -)))|(% style="text-align:left; 3211 +**Type** 3212 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12948 12948 ((( 12949 12949 (% class="western" %) 12950 -Update engagement by engagement id. The engagement id string 12951 - 3215 +**Description** 3216 +))) 3217 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3218 +((( 12952 12952 (% class="western" %) 12953 -Parameters required to update the engagement needs to be sent as post data in JSON format. 12954 - 3220 +Sources 3221 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3222 +((( 12955 12955 (% class="western" %) 12956 -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. 3224 +Sources 3225 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3226 +((( 3227 +(% class="western" %) 3228 +Defines the contents that makes up the source. The id parameter needs to be set which will identify the id of the source to be updated. 12957 12957 ))) 12958 -|(% 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" %)((( 12959 -Add options to specific metric in an engagement without passing all options and overriding existing options. 12960 12960 12961 -Parameters required to update the engagement needs to be sent as post data in JSON format. 12962 -\\This API is used to add options only for select and checkbox metrics. 12963 -))) 12964 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3231 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12965 12965 ((( 12966 12966 (% class="western" %) 12967 - POST12968 -)))|(% style="text-align:left; 3234 +**Response** 3235 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12969 12969 ((( 12970 12970 (% class="western" %) 12971 - (% style="color:#212121" %)/engagements/addUser12972 -)))|(% style="text-align:left; 3238 +**Type** 3239 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12973 12973 ((( 12974 12974 (% class="western" %) 12975 -Add user to engagement 12976 - 3242 +**Description** 3243 +))) 3244 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3245 +((( 12977 12977 (% class="western" %) 12978 -Parameters required to add user to the engagement needs to be sent as post data in JSON format. 3247 +SourceId 3248 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3249 +((( 3250 +(% class="western" %) 3251 +int 3252 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3253 +((( 3254 +(% class="western" %) 3255 +Returns updated source id. 12979 12979 ))) 12980 12980 12981 -(% id="HGETAllEngagements" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12982 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Engagements(%%) == 3258 +\\ 12983 12983 12984 ----- 3260 +(% class="western" %) 3261 +\\ 12985 12985 12986 ----- 3263 +(% class="western" %) 3264 +**COMPONENT: Transactions** 12987 12987 12988 -{{panel bgColor="#D3D3D3" width="100%"}} 12989 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 12990 -{{/panel}} 12991 - 12992 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12993 - 12994 ----- 12995 - 12996 -(% 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}} 12997 - 12998 -==== Example ==== 12999 - 13000 ----- 13001 - 13002 -(% style="color:#6b6b6b" %)Request 13003 - 13004 -{{code language="php" theme="RDark" title="Get All Engagement Request"}} 13005 -<?php 13006 - 13007 -$curl = curl_init(); 13008 - 13009 -curl_setopt_array($curl, array( 13010 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 13011 - CURLOPT_RETURNTRANSFER => true, 13012 - CURLOPT_ENCODING => '', 13013 - CURLOPT_MAXREDIRS => 10, 13014 - CURLOPT_TIMEOUT => 0, 13015 - CURLOPT_FOLLOWLOCATION => true, 13016 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13017 - CURLOPT_CUSTOMREQUEST => 'GET', 13018 - CURLOPT_HTTPHEADER => array( 13019 - 'Appkey: {{ONECOUNT API KEY}}' 13020 - ), 13021 -)); 13022 - 13023 -$response = curl_exec($curl); 13024 - 13025 -curl_close($curl); 13026 -echo $response; 13027 - 13028 - 13029 -{{/code}} 13030 - 13031 - 13032 -(% style="color:#6b6b6b" %)Response 200 OK 13033 - 13034 -{{code language="yml" theme="RDark" collapse="true" title="Get all engagements Response"}} 13035 - { 13036 - "result": { 13037 - "success": "1", 13038 - "error": { 13039 - "code": "", 13040 - "message": "" 13041 - } 13042 - }, 13043 - "Engagements": [ 13044 - { 13045 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 13046 - "Name": "Test Engagement 1", 13047 - "Engagement Fields": [ 13048 - { 13049 - "Name": "id", 13050 - "Type": "text" 13051 - }, 13052 - { 13053 - "Name": "activity_time", 13054 - "Type": "text" 13055 - }, 13056 - { 13057 - "Name": "Name", 13058 - "Type": "text" 13059 - }, 13060 - { 13061 - "Name": "Test Field", 13062 - "Type": "select", 13063 - "Values": [ 13064 - { 13065 - "text": "Test 1", 13066 - "value": "Test1" 13067 - } 13068 - ] 13069 - } 13070 - ] 13071 - } 13072 - ] 13073 -} 13074 -{{/code}} 13075 - 13076 - 13077 -(% id="HGETSpecificEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13078 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Specific Engagement(%%) == 13079 - 13080 ----- 13081 - 13082 ----- 13083 - 13084 -{{panel bgColor="#D3D3D3" width="100%"}} 13085 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement ID}} 13086 -{{/panel}} 13087 - 13088 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13089 - 13090 ----- 13091 - 13092 -(% 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}} 13093 - 13094 -==== Example ==== 13095 - 13096 ----- 13097 - 13098 -(% style="color:#6b6b6b" %)Request 13099 - 13100 -{{code language="php" theme="RDark" title="Get Specific Engagement Request"}} 13101 -<?php 13102 - 13103 -$curl = curl_init(); 13104 - 13105 -curl_setopt_array($curl, array( 13106 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement ID}}', 13107 - CURLOPT_RETURNTRANSFER => true, 13108 - CURLOPT_ENCODING => '', 13109 - CURLOPT_MAXREDIRS => 10, 13110 - CURLOPT_TIMEOUT => 0, 13111 - CURLOPT_FOLLOWLOCATION => true, 13112 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13113 - CURLOPT_CUSTOMREQUEST => 'GET', 13114 - CURLOPT_HTTPHEADER => array( 13115 - 'Appkey: {{ONECOUNT API KEY}}' 13116 - ), 13117 -)); 13118 - 13119 -$response = curl_exec($curl); 13120 - 13121 -curl_close($curl); 13122 -echo $response; 13123 - 13124 - 13125 -{{/code}} 13126 - 13127 - 13128 -(% style="color:#6b6b6b" %)Response 200 OK 13129 - 13130 -{{code language="yml" theme="RDark" collapse="true" title="Get specific engagement Response"}} 13131 - { 13132 - "result": { 13133 - "success": "1", 13134 - "error": { 13135 - "code": "", 13136 - "message": "" 13137 - } 13138 - }, 13139 - "Engagements": [ 13140 - { 13141 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 13142 - "Name": "Test Engagement 1", 13143 - "Engagement Fields": [ 13144 - { 13145 - "Name": "id", 13146 - "Type": "text" 13147 - }, 13148 - { 13149 - "Name": "activity_time", 13150 - "Type": "text" 13151 - }, 13152 - { 13153 - "Name": "Name", 13154 - "Type": "text" 13155 - }, 13156 - { 13157 - "Name": "Test Field", 13158 - "Type": "select", 13159 - "Values": [ 13160 - { 13161 - "text": "Test 1", 13162 - "value": "Test1" 13163 - } 13164 - ] 13165 - } 13166 - ] 13167 - } 13168 - ] 13169 -} 13170 -{{/code}} 13171 - 13172 - 13173 -(% id="HPOSTCreateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13174 -== (% 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(%%) == 13175 - 13176 ----- 13177 - 13178 -{{panel bgColor="#D3D3D3" width="100%"}} 13179 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 13180 -{{/panel}} 13181 - 13182 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13183 - 13184 ----- 13185 - 13186 -(% 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}} 13187 - 13188 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13189 - 13190 ----- 13191 - 13192 -{{code language="yml" theme="RDark" title="Body"}} 13193 -{"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[ 13194 - {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"}, 13195 - {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"}, 13196 - {"Price":[],"Type": "numeric"}, 13197 - {"Transaction Date":[],"Type": "date"} 13198 -]} 13199 -{{/code}} 13200 - 13201 -==== Example ==== 13202 - 13203 ----- 13204 - 13205 -(% style="color:#6b6b6b" %)Request 13206 - 13207 -{{code language="php" theme="RDark" title="Create Engagement Request"}} 13208 -<?php 13209 - 13210 -$curl = curl_init(); 13211 - 13212 -curl_setopt_array($curl, array( 13213 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 13214 - CURLOPT_RETURNTRANSFER => true, 13215 - CURLOPT_ENCODING => '', 13216 - CURLOPT_MAXREDIRS => 10, 13217 - CURLOPT_TIMEOUT => 0, 13218 - CURLOPT_FOLLOWLOCATION => true, 13219 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13220 - CURLOPT_CUSTOMREQUEST => 'POST', 13221 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[ 13222 - {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"}, 13223 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13224 - {"Price":[],"Type": "numeric"}, 13225 - {"Transaction Date":[],"Type": "text"} 13226 -]}', 13227 - CURLOPT_HTTPHEADER => array( 13228 - 'Appkey: {{ONECOUNT API KEY}}', 13229 - 'Content-Type: application/json' 13230 - ), 13231 -)); 13232 - 13233 -$response = curl_exec($curl); 13234 - 13235 -curl_close($curl); 13236 -echo $response; 13237 - 13238 - 13239 -{{/code}} 13240 - 13241 - 13242 -(% style="color:#6b6b6b" %)Response 200 OK 13243 - 13244 -{{code language="yml" theme="RDark" collapse="true" title="Create Engagement Response"}} 13245 - { 13246 - "result": { 13247 - "success": "1", 13248 - "error": { 13249 - "code": "", 13250 - "message": "" 13251 - } 13252 - }, 13253 - "Engagements": [ 13254 - { 13255 - "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565", 13256 - "Name": "Test engagement 2", 13257 - "Metrics": [ 13258 - { 13259 - "Name": "Name", 13260 - "Type": "select", 13261 - "Values": [ 13262 - { 13263 - "text": "Webinar 1", 13264 - "value": "Webinar_1" 13265 - }, 13266 - { 13267 - "text": "Webinar 2", 13268 - "value": "Webinar_2" 13269 - } 13270 - ] 13271 - }, 13272 - { 13273 - "Name": "Attendance Status", 13274 - "Type": "select", 13275 - "Values": [ 13276 - { 13277 - "text": "Attended", 13278 - "value": "attended" 13279 - }, 13280 - { 13281 - "text": "Not Attended", 13282 - "value": "not_attended" 13283 - } 13284 - ] 13285 - }, 13286 - { 13287 - "Name": "Price", 13288 - "Type": "numeric" 13289 - }, 13290 - { 13291 - "Name": "Transaction Date", 13292 - "Type": "text" 13293 - }, 13294 - { 13295 - "Name": "id", 13296 - "Type": "text" 13297 - }, 13298 - { 13299 - "Name": "activity_time", 13300 - "Type": "text" 13301 - } 13302 - ] 13303 - } 13304 - ] 13305 -} 13306 -{{/code}} 13307 - 13308 - 13309 -(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13310 -== (% 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(%%) == 13311 - 13312 ----- 13313 - 13314 -{{panel bgColor="#D3D3D3" width="100%"}} 13315 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement Id}} 13316 -{{/panel}} 13317 - 13318 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13319 - 13320 ----- 13321 - 13322 -(% 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}} 13323 - 13324 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13325 - 13326 ----- 13327 - 13328 -{{code language="yml" theme="RDark" title="Body"}} 13329 -{"Name":"Test engagement 3", "Metrics":[ 13330 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13331 - {"Price":[],"Type": "text"} 13332 - ]} 13333 -{{/code}} 13334 - 13335 -==== Example ==== 13336 - 13337 ----- 13338 - 13339 -(% style="color:#6b6b6b" %)Request 13340 - 13341 -{{code language="php" theme="RDark" title="Update Engagement Request"}} 13342 - <?php 13343 - 13344 -$curl = curl_init(); 13345 - 13346 -curl_setopt_array($curl, array( 13347 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement Id}}', 13348 - CURLOPT_RETURNTRANSFER => true, 13349 - CURLOPT_ENCODING => '', 13350 - CURLOPT_MAXREDIRS => 10, 13351 - CURLOPT_TIMEOUT => 0, 13352 - CURLOPT_FOLLOWLOCATION => true, 13353 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13354 - CURLOPT_CUSTOMREQUEST => 'PUT', 13355 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[ 13356 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13357 - {"Price":[],"Type": "text"} 13358 - ]}', 13359 - CURLOPT_HTTPHEADER => array( 13360 - 'Appkey: {{ONECOUNT API KEY}}', 13361 - 'Content-Type: application/json' 13362 - ), 13363 -)); 13364 - 13365 -$response = curl_exec($curl); 13366 - 13367 -curl_close($curl); 13368 -echo $response; 13369 - 13370 -{{/code}} 13371 - 13372 - 13373 -(% style="color:#6b6b6b" %)Response 200 OK 13374 - 13375 -{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13376 -{ 13377 - "result": { 13378 - "success": "1", 13379 - "error": { 13380 - "code": "", 13381 - "message": "" 13382 - } 13383 - }, 13384 - "Engagements": [ 13385 - { 13386 - "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13387 - "Name": "Test engagement 3", 13388 - "Metrics": [ 13389 - { 13390 - "Name": "Attendance Status", 13391 - "Type": "select", 13392 - "Values": [ 13393 - { 13394 - "text": "Attended", 13395 - "value": "attended" 13396 - }, 13397 - { 13398 - "text": "Not Attended", 13399 - "value": "not_attended" 13400 - } 13401 - ] 13402 - }, 13403 - { 13404 - "Name": "Price", 13405 - "Type": "text" 13406 - }, 13407 - { 13408 - "Name": "Name", 13409 - "Type": "select", 13410 - "Values": [ 13411 - { 13412 - "text": "Webinar 1", 13413 - "value": "Webinar_1" 13414 - }, 13415 - { 13416 - "text": "Webinar 2", 13417 - "value": "Webinar_2" 13418 - } 13419 - ] 13420 - }, 13421 - { 13422 - "Name": "Transaction Date", 13423 - "Type": "text" 13424 - }, 13425 - { 13426 - "Name": "id", 13427 - "Type": "text" 13428 - }, 13429 - { 13430 - "Name": "activity_time", 13431 - "Type": "text" 13432 - } 13433 - ] 13434 - } 13435 - ] 13436 -} 13437 -{{/code}} 13438 - 13439 - 13440 -(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13441 -== (% 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(%%) == 13442 - 13443 ----- 13444 - 13445 -{{panel bgColor="#D3D3D3" width="100%"}} 13446 - (% class="nolink" %)https:~/~/api.onecount.net/v2(%%)/engagements/metric/(% style="color:#212121" %)~{~{Engagement Id}} 13447 -{{/panel}} 13448 - 13449 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13450 - 13451 ----- 13452 - 13453 -(% 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}} 13454 - 13455 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13456 - 13457 ----- 13458 - 13459 -{{code language="yml" title="Body"}} 13460 -{"Metrics":[ 13461 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13462 - {"lagacy status":[{"text":"c","value":"c"}]} 13463 - ]} 13464 -{{/code}} 13465 - 13466 -==== Example ==== 13467 - 13468 ----- 13469 - 13470 -(% style="color:#6b6b6b" %)Request 13471 - 13472 -{{code language="php" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}} 13473 - <?php 13474 - 13475 -$curl = curl_init(); 13476 - 13477 -curl_setopt_array($curl, array( 13478 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/metric/{{Engagement Id}}', 13479 - CURLOPT_RETURNTRANSFER => true, 13480 - CURLOPT_ENCODING => '', 13481 - CURLOPT_MAXREDIRS => 10, 13482 - CURLOPT_TIMEOUT => 0, 13483 - CURLOPT_FOLLOWLOCATION => true, 13484 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13485 - CURLOPT_CUSTOMREQUEST => 'PUT', 13486 - CURLOPT_POSTFIELDS =>'{"Metrics":[ 13487 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13488 - {"lagacy status":[{"text":"c","value":"c"}]} 13489 - ]}', 13490 - CURLOPT_HTTPHEADER => array( 13491 - 'Appkey: {{ONECOUNT API KEY}}', 13492 - 'Content-Type: application/json' 13493 - ), 13494 -)); 13495 - 13496 -$response = curl_exec($curl); 13497 - 13498 -curl_close($curl); 13499 -echo $response; 13500 - 13501 -{{/code}} 13502 - 13503 - 13504 -(% style="color:#6b6b6b" %)Response 200 OK 13505 - 13506 -{{code language="yml" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}} 13507 -{ 13508 - "result": { 13509 - "success": "1", 13510 - "error": { 13511 - "code": "", 13512 - "message": "" 13513 - } 13514 - }, 13515 - "Engagements": [ 13516 - { 13517 - "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13518 - "Name": "Test engagement 3", 13519 - "Metrics": [ 13520 - { 13521 - "Name": "Attendance Status", 13522 - "Type": "select", 13523 - "Values": [ 13524 - { 13525 - "text": "Attended", 13526 - "value": "attended" 13527 - }, 13528 - { 13529 - "text": "Not Attended", 13530 - "value": "not_attended" 13531 - }, 13532 - { 13533 - "text":"checks", 13534 - "value":"checks" 13535 - }, 13536 - { 13537 - "text":"c", 13538 - "value":"c" 13539 - } 13540 - ] 13541 - }, 13542 - { 13543 - "Name": "Price", 13544 - "Type": "text" 13545 - }, 13546 - { 13547 - "Name": "Name", 13548 - "Type": "select", 13549 - "Values": [ 13550 - { 13551 - "text": "Webinar 1", 13552 - "value": "Webinar_1" 13553 - }, 13554 - { 13555 - "text": "Webinar 2", 13556 - "value": "Webinar_2" 13557 - } 13558 - ] 13559 - }, 13560 - { 13561 - "Name": "Transaction Date", 13562 - "Type": "text" 13563 - }, 13564 - { 13565 - "Name": "id", 13566 - "Type": "text" 13567 - }, 13568 - { 13569 - "Name": "activity_time", 13570 - "Type": "text" 13571 - } 13572 - ] 13573 - } 13574 - ] 13575 -} 13576 -{{/code}} 13577 - 13578 - 13579 - 13580 - 13581 - 13582 - 13583 -(% id="HPOSTAddUsertoEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13584 -== (% 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(%%) == 13585 - 13586 ----- 13587 - 13588 -{{panel bgColor="#D3D3D3" width="100%"}} 13589 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/addUser 13590 -{{/panel}} 13591 - 13592 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13593 - 13594 ----- 13595 - 13596 -(% 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}} 13597 - 13598 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13599 - 13600 ----- 13601 - 13602 -{{code language="yml" title="Body"}} 13603 -{"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":{}} 13604 -{{/code}} 13605 - 13606 -==== Example ==== 13607 - 13608 ----- 13609 - 13610 -(% style="color:#6b6b6b" %)Request 13611 - 13612 -{{code language="php" title="Add User to Engagement Request"}} 13613 - <?php 13614 - 13615 -$curl = curl_init(); 13616 - 13617 -curl_setopt_array($curl, array( 13618 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/addUser', 13619 - CURLOPT_RETURNTRANSFER => true, 13620 - CURLOPT_ENCODING => '', 13621 - CURLOPT_MAXREDIRS => 10, 13622 - CURLOPT_TIMEOUT => 0, 13623 - CURLOPT_FOLLOWLOCATION => true, 13624 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13625 - CURLOPT_CUSTOMREQUEST => 'POST', 13626 - 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":{}}', 13627 - CURLOPT_HTTPHEADER => array( 13628 - 'Appkey: {{ONECOUNT API KEY}}' 13629 - ), 13630 -)); 13631 - 13632 -$response = curl_exec($curl); 13633 - 13634 -curl_close($curl); 13635 -echo $response; 13636 -{{/code}} 13637 - 13638 - 13639 -(% style="color:#6b6b6b" %)Response 200 OK 13640 - 13641 -{{code language="yml" theme="RDark" collapse="true" title="Add Users to Engagement Response"}} 13642 - { 13643 - "result": { 13644 - "success": "1", 13645 - "error": { 13646 - "code": "", 13647 - "message": "" 13648 - } 13649 - }, 13650 - "Users": { 13651 - "ocid": 1845775, 13652 - "uuid": { 13653 - "type": { 13654 - "name": "uuid" 13655 - }, 13656 - "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7", 13657 - "version": 4 13658 - }, 13659 - "blacklisted": null, 13660 - "demo": { 13661 - "1": "rayaan@one-count.com", 13662 - "2": "user_1701788987", 13663 - "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5" 13664 - }, 13665 - "email": "rayaan@one-count.com", 13666 - "espid": null, 13667 - "known": { 13668 - "type": { 13669 - "name": "smallint" 13670 - }, 13671 - "value": "1" 13672 - }, 13673 - "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b", 13674 - "partners_hash": null, 13675 - "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5", 13676 - "payment_cc_exp": null, 13677 - "payment_vendor_token": null, 13678 - "products": { 13679 - "599": "447" 13680 - }, 13681 - "remarks": null, 13682 - "resources": null, 13683 - "smartlink_hash": null, 13684 - "subscription_active_resource_info": null, 13685 - "subscription_active_term_info": { 13686 - "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}" 13687 - }, 13688 - "subscription_log": { 13689 - "type": { 13690 - "valueType": { 13691 - "name": "varchar" 13692 - } 13693 - }, 13694 - "values": [ 13695 - "{\"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\"}", 13696 - "{\"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\"}", 13697 - "{\"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\"}" 13698 - ] 13699 - }, 13700 - "subscription_log_by_resource": null, 13701 - "subscription_source_code": [ 13702 - "83" 13703 - ], 13704 - "targets": null, 13705 - "timestamp": { 13706 - "type": { 13707 - "name": "bigint" 13708 - }, 13709 - "value": "1701788987" 13710 - }, 13711 - "unconfirmed": null, 13712 - "update_time": null, 13713 - "username": "user_1701788987", 13714 - "vendor_blacklisted": null, 13715 - "vendor_esp": null, 13716 - "vendor_unconfirmed": null 13717 - } 13718 -} 13719 -{{/code}} 13720 - 13721 - 13722 -(% id="HCOMPONENT:Segments" class="western" %) 13723 -=== **COMPONENT: Segments** === 13724 - 13725 -* 13726 -** === 13727 - 13728 13728 (% class="western" %) 13729 -This resource is for manipulating segmentforaresource. Asegmentcanbesearched (or)addusersto segment (or) getall segmentfora user.3267 +This resource is for manipulating transactions resource. A transaction can be created or searched. 13730 13730 13731 -|(% style="text-align:left; 3269 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13732 13732 ((( 13733 13733 (% class="western" %) 13734 13734 **Method** 13735 -)))|(% style="text-align:left; 3273 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13736 13736 ((( 13737 13737 (% class="western" %) 13738 13738 **Url** 13739 -)))|(% style="text-align:left; 3277 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13740 13740 ((( 13741 13741 (% class="western" %) 13742 13742 **Action** 13743 13743 ))) 13744 -|(% style="text-align:left; 3282 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13745 13745 ((( 13746 13746 (% class="western" %) 13747 13747 GET 13748 -)))|(% style="text-align:left; 3286 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13749 13749 ((( 13750 13750 (% class="western" %) 13751 -/ (% style="color:#212121" %)segments13752 -)))|(% style="text-align:left; 3289 +/transactions 3290 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13753 13753 ((( 13754 13754 (% class="western" %) 13755 - Get allsegments.3293 +List all transactions 13756 13756 ))) 13757 -|(% style="text-align:left; 3295 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13758 13758 ((( 13759 13759 (% class="western" %) 13760 13760 GET 13761 -)))|(% style="text-align:left; 3299 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13762 13762 ((( 13763 13763 (% class="western" %) 13764 -/ (% style="color:#212121" %)segments(%%)/(% class="resolvedVariable" style="text-decoration:none" %)~{~{Segment id}}13765 -)))|(% style="text-align:left; 3302 +/transactions/lookup?UserId=1 3303 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13766 13766 ((( 13767 13767 (% class="western" %) 13768 - Get specificsegmentbasedon segment id.3306 +Lookup all transaction of UserId = 1 13769 13769 ))) 13770 -|(% style="text-align:left; 3308 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13771 13771 ((( 13772 13772 (% class="western" %) 13773 13773 POST 13774 -)))|(% style="text-align:left; 3312 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13775 13775 ((( 13776 13776 (% class="western" %) 13777 -/ (% style="color:#212121" %)segments/addUsers13778 -)))|(% style="text-align:left; 3315 +/transactions 3316 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13779 13779 ((( 13780 13780 (% class="western" %) 13781 - Addusers to segment.3319 +JSON of the Transactions type object needs to be sent as post data. Id field should not be sent. 13782 13782 ))) 13783 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3321 + 3322 +\\ 3323 + 3324 +(% class="western" %) 3325 +\\ 3326 + 3327 +(% class="western" %) 3328 +Transactions can be looked up using transactionId, date range, userid. Use GET method to do lookup. 3329 + 3330 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13784 13784 ((( 13785 13785 (% class="western" %) 13786 - GET13787 -)))|(% style="text-align:left; 3333 +**Request** 3334 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13788 13788 ((( 13789 13789 (% class="western" %) 13790 - /(% style="color:#212121" %)segments/users/(% class="resolvedVariable" style="text-decoration:none" %)~{~{ocid}}13791 -)))|(% style="text-align:left; 3337 +**Type** 3338 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13792 13792 ((( 13793 13793 (% class="western" %) 13794 - Get allsegment user has be subscribed basedonuser id.3341 +**Description** 13795 13795 ))) 3343 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3344 +((( 3345 +(% class="western" %) 3346 +Lookup params 3347 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3348 +((( 3349 +(% class="western" %) 3350 +String 3351 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3352 +((( 3353 +(% class="western" %) 3354 +URL encoded key value string parameter for the lookup. 13796 13796 13797 -(% id="HGETAllSegments" style="margin-left: 0.0px;"class="sc-fznLPX cxTVKx" %)13798 - == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Segments(%%) ==3356 +(% class="western" %) 3357 +Params: 13799 13799 13800 ----- 3359 +(% class="western" %) 3360 +UserId: Id of the user whose transaction is to be looked up (Int) 13801 13801 13802 ----- 3362 +(% class="western" %) 3363 +StartDate: Date from which the start should happen. Only valid when UserId is set. (Date) 13803 13803 13804 - {{panelbgColor="#D3D3D3"width="100%"}}13805 - (% class="nolinknolink"%)https:~/~/api.onecount.net/v2(%class="nolink"style="color:#212121"%)/segments13806 - {{/panel}}3365 +(% class="western" %) 3366 +EndDate: When the search should end. Only valid when UserId is set. (Date) 3367 +))) 13807 13807 13808 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 3369 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3370 +((( 3371 +(% class="western" %) 3372 +**Response** 3373 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3374 +((( 3375 +(% class="western" %) 3376 +**Type** 3377 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3378 +((( 3379 +(% class="western" %) 3380 +**Description** 3381 +))) 3382 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3383 +((( 3384 +(% class="western" %) 3385 +Transactions 3386 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3387 +((( 3388 +(% class="western" %) 3389 +Transactions 3390 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3391 +((( 3392 +(% class="western" %) 3393 +Returns all transaction that satisfies the search criteria. Returns all the package and product transactions of the user. Package Transactions are the one with TermId and ProductId. Product Transactions are the one with ResourceId. 3394 +))) 13809 13809 13810 - ----3396 +\\ 13811 13811 13812 - (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueYitem-key sc-fznXWL"style="color:#212121"%)Appkey(%class="Text__TextContainer-sc-1kqigik-0 iYynAw"style="color:#212121"%)~{~{ONECOUNT API KEY}}3398 +**Sample response for /(% style="color: rgb(80,80,80);" %)transactions/lookup?UserId=25255105:(%%)** 13813 13813 13814 -==== Example ==== 3400 +(% class="" %)|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3401 +((( 3402 +(% class="content-wrapper" %) 3403 +((( 3404 +(% class="confluence-embedded-file-wrapper confluence-embedded-manual-size" %)[[image:attach:Screen Shot 2020-02-26 at 11.14.29 AM.png||width="1407"]] 3405 +))) 3406 +))) 13815 13815 13816 - ----3408 +\\ 13817 13817 13818 -(% style="color:#6b6b6b" %)Request 3410 +(% class="western" %) 3411 +POST method can be used to create user transaction. Transaction info needs to be sent as request and a TransactionId will be returned when the transaction is created. 13819 13819 13820 -{{code language="php" theme="RDark" title="Get All Segments Request"}} 13821 -<?php 3413 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3414 +((( 3415 +(% class="western" %) 3416 +**Request** 3417 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3418 +((( 3419 +(% class="western" %) 3420 +**Type** 3421 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3422 +((( 3423 +(% class="western" %) 3424 +**Description** 3425 +))) 3426 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3427 +((( 3428 +(% class="western" %) 3429 +Transactions 3430 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3431 +((( 3432 +(% class="western" %) 3433 +Transactions 3434 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3435 +((( 3436 +(% class="western" %) 3437 +Contains fields that define a transaction. Id field should not be set. 3438 +))) 13822 13822 13823 -$curl = curl_init(); 3440 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3441 +((( 3442 +(% class="western" %) 3443 +**Response** 3444 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3445 +((( 3446 +(% class="western" %) 3447 +**Type** 3448 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3449 +((( 3450 +(% class="western" %) 3451 +**Description** 3452 +))) 3453 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3454 +((( 3455 +(% class="western" %) 3456 +TransactionId 3457 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3458 +((( 3459 +(% class="western" %) 3460 +int 3461 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3462 +((( 3463 +(% class="western" %) 3464 +Returns transactionId of the newly created transaction. 3465 +))) 13824 13824 13825 -curl_setopt_array($curl, array( 13826 - CURLOPT_URL => 'https://api.onecount.net/v2/segments', 13827 - CURLOPT_RETURNTRANSFER => true, 13828 - CURLOPT_ENCODING => '', 13829 - CURLOPT_MAXREDIRS => 10, 13830 - CURLOPT_TIMEOUT => 0, 13831 - CURLOPT_FOLLOWLOCATION => true, 13832 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13833 - CURLOPT_CUSTOMREQUEST => 'GET', 13834 - CURLOPT_HTTPHEADER => array( 13835 - 'Appkey: {{ONECOUNT API KEY}}' 13836 - ), 13837 -)); 3467 +\\ 13838 13838 13839 - $response = curl_exec($curl);3469 +\\ 13840 13840 13841 -c url_close($curl);13842 - echo$response;13843 - {{/code}}3471 +(% class="western" %) 3472 +**COMPONENT: Leads 3473 +** 13844 13844 3475 +(% class="western" %) 3476 +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. 13845 13845 13846 -(% style="color:#6b6b6b" %)Response 200 OK 3478 +(% class="western" %) 3479 +\\ 13847 13847 13848 -{{code language="yml" theme="RDark" collapse="true" title="Get All Segments Response"}} 13849 - { 13850 - "result": { 13851 - "success": "1", 13852 - "error": { 13853 - "code": "", 13854 - "message": "" 13855 - } 13856 - }, 13857 - "Segments": [ 13858 - { 13859 - "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43", 13860 - "Name": "2022 Use Cases PDF Download" 13861 - }, 13862 - { 13863 - "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 13864 - "Name": "58-percent conversion-rate" 13865 - }, 13866 - { 13867 - "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138", 13868 - "Name": "Audience Marketing Pop-Up" 13869 - }, 13870 - { 13871 - "Id": "68219b37-c155-4459-a5ce-497261286ffe", 13872 - "Name": "Bold Minds Reminders" 13873 - }, 13874 - { 13875 - "Id": "6450defc-7658-4182-9c2a-a8f8420f801e", 13876 - "Name": "Demo - Aviator's Guide - NL Popup" 13877 - }, 13878 - { 13879 - "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0", 13880 - "Name": "Getting 80-Percent Conversion Rates Pop-up" 13881 - }, 13882 - { 13883 - "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 13884 - "Name": "Holiday Special Offer - 3 mo. Pilot" 13885 - }, 13886 - { 13887 - "Id": "16305ad0-8e65-4085-942e-04d99fd39207", 13888 - "Name": "Identity Resolution Test II" 13889 - }, 13890 - { 13891 - "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3", 13892 - "Name": "Live ONEcount Popup Example Segment" 13893 - }, 13894 - { 13895 - "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a", 13896 - "Name": "Live webinar - June 15 - Accelerate Revenue" 13897 - }, 13898 - { 13899 - "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de", 13900 - "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign" 13901 - }, 13902 - { 13903 - "Id": "d883ecdb-5307-416d-9558-c196472021c9", 13904 - "Name": "New Year - Increase Revenue 30-Percent" 13905 - }, 13906 - { 13907 - "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73", 13908 - "Name": "OC Test" 13909 - }, 13910 - { 13911 - "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 13912 - "Name": "Something big" 13913 - }, 13914 - { 13915 - "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 13916 - "Name": "Something No Other Platform Has" 13917 - }, 13918 - { 13919 - "Id": "5eaa0345-a825-4ba0-a787-336312a77744", 13920 - "Name": "Something Revolutionary" 13921 - }, 13922 - { 13923 - "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 13924 - "Name": "Something that will change your life" 13925 - }, 13926 - { 13927 - "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 13928 - "Name": "Something You Have Always Wanted" 13929 - }, 13930 - { 13931 - "Id": "28361c73-e253-49bb-a791-5481be2070a0", 13932 - "Name": "Something You Never Thought Possible" 13933 - }, 13934 - { 13935 - "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814", 13936 - "Name": "Test behaviour " 13937 - }, 13938 - { 13939 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 13940 - "Name": "Test behaviour banner segment" 13941 - }, 13942 - { 13943 - "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561", 13944 - "Name": "Test behaviour combo" 13945 - }, 13946 - { 13947 - "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a", 13948 - "Name": "Test behaviour content" 13949 - }, 13950 - { 13951 - "Id": "89424642-1363-476e-9842-4f0a2544151f", 13952 - "Name": "Test behaviour email" 13953 - }, 13954 - { 13955 - "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c", 13956 - "Name": "Test demographic segments" 13957 - }, 13958 - { 13959 - "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd", 13960 - "Name": "Test with unknown only selecting all filters" 13961 - } 13962 - ] 13963 -} 13964 -{{/code}} 3481 +(% class="western" %) 3482 +\\ 13965 13965 3484 +(% class="western" %) 3485 +\\ 13966 13966 13967 -(% id="HGETspecificSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)13968 - == (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Segments(%%) ==3487 +(% class="western" %) 3488 +\\ 13969 13969 13970 ----- 3490 +(% class="western" %) 3491 +\\ 13971 13971 13972 -{{panel bgColor="#D3D3D3" width="100%"}} 13973 - (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments/~{~{segment id}} 13974 -{{/panel}} 13975 - 13976 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13977 - 13978 ----- 13979 - 13980 -(% 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}} 13981 - 13982 -==== Example ==== 13983 - 13984 ----- 13985 - 13986 -(% style="color:#6b6b6b" %)Request 13987 - 13988 -{{code language="php" theme="RDark" title="Get specific Segment Request"}} 13989 - <?php 13990 - 13991 -$curl = curl_init(); 13992 - 13993 -curl_setopt_array($curl, array( 13994 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}', 13995 - CURLOPT_RETURNTRANSFER => true, 13996 - CURLOPT_ENCODING => '', 13997 - CURLOPT_MAXREDIRS => 10, 13998 - CURLOPT_TIMEOUT => 0, 13999 - CURLOPT_FOLLOWLOCATION => true, 14000 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14001 - CURLOPT_CUSTOMREQUEST => 'GET', 14002 - CURLOPT_HTTPHEADER => array( 14003 - 'Appkey: {{ONECOUNT API KEY}}' 14004 - ), 14005 -)); 14006 - 14007 -$response = curl_exec($curl); 14008 - 14009 -curl_close($curl); 14010 -echo $response; 14011 -{{/code}} 14012 - 14013 - 14014 -(% style="color:#6b6b6b" %)Response 200 OK 14015 - 14016 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Segments Response"}} 14017 - { 14018 - "result": { 14019 - "success": "1", 14020 - "error": { 14021 - "code": "", 14022 - "message": "" 14023 - } 14024 - }, 14025 - "Segments": { 14026 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 14027 - "Demos": { 14028 - "_empty_": [], 14029 - "type": "" 14030 - }, 14031 - "Description": "", 14032 - "Action": { 14033 - "action": {} 14034 - }, 14035 - "Name": "Test behaviour banner segment", 14036 - "Behaviours": [ 14037 - { 14038 - "end_date": "05/26/2022", 14039 - "date_type": "Future", 14040 - "sub_category_values": [], 14041 - "sub_category": "clicked", 14042 - "category": "1", 14043 - "targets": [ 14044 - "all" 14045 - ], 14046 - "joining_logic": "AND", 14047 - "frequency": "1", 14048 - "start_date": "04/26/2022", 14049 - "day_count": "100" 14050 - } 14051 - ], 14052 - "Accounts": [] 14053 - } 14054 -} 14055 -{{/code}} 14056 - 14057 - 14058 -(% id="HPOSTAdduserstosegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 14059 -== (% 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(%%) == 14060 - 14061 ----- 14062 - 14063 -{{panel bgColor="#D3D3D3" width="100%"}} 14064 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/addUsers 14065 -{{/panel}} 14066 - 14067 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 14068 - 14069 ----- 14070 - 14071 -(% 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}} 14072 - 14073 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 14074 - 14075 ----- 14076 - 14077 -{{code language="yml" theme="RDark" title="Body"}} 14078 -{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]} 14079 -{{/code}} 14080 - 14081 -==== Example ==== 14082 - 14083 ----- 14084 - 14085 -(% style="color:#6b6b6b" %)Request 14086 - 14087 -{{code language="php" theme="RDark" title="Add users to Segment Request"}} 14088 -<?php 14089 - 14090 -$curl = curl_init(); 14091 - 14092 -curl_setopt_array($curl, array( 14093 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers', 14094 - CURLOPT_RETURNTRANSFER => true, 14095 - CURLOPT_ENCODING => '', 14096 - CURLOPT_MAXREDIRS => 10, 14097 - CURLOPT_TIMEOUT => 0, 14098 - CURLOPT_FOLLOWLOCATION => true, 14099 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14100 - CURLOPT_CUSTOMREQUEST => 'POST', 14101 - CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}', 14102 - CURLOPT_HTTPHEADER => array( 14103 - 'Appkey: {{ONECOUNT API KEY}}', 14104 - 'Content-Type: application/json' 14105 - ), 14106 -)); 14107 - 14108 -$response = curl_exec($curl); 14109 - 14110 -curl_close($curl); 14111 -echo $response; 14112 -{{/code}} 14113 - 14114 - 14115 -(% style="color:#6b6b6b" %)Response 200 OK 14116 - 14117 -{{code language="yml" theme="RDark" collapse="true" title="Add users to segment Response"}} 14118 -{ 14119 - "result": { 14120 - "success": "1", 14121 - "error": { 14122 - "code": "", 14123 - "message": "" 14124 - } 14125 - }, 14126 - "Segments": { 14127 - "Error user ids": [ 14128 - 676172, 14129 - 2134321 14130 - ], 14131 - "Inserted user ids": [ 14132 - 164499 14133 - ] 14134 - } 14135 -} 14136 -{{/code}} 14137 - 14138 - 14139 -(% id="HGETallsegmentsforaUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 14140 -== (% 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(%%) == 14141 - 14142 ----- 14143 - 14144 -{{panel bgColor="#D3D3D3" width="100%"}} 14145 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration:none" %)~{~{ocid}} 14146 -{{/panel}} 14147 - 14148 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 14149 - 14150 ----- 14151 - 14152 -(% 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}} 14153 - 14154 -==== Example ==== 14155 - 14156 ----- 14157 - 14158 -(% style="color:#6b6b6b" %)Request 14159 - 14160 -{{code language="php" theme="RDark" title="Get all segments for a user Request"}} 14161 -<?php 14162 - 14163 -$curl = curl_init(); 14164 - 14165 -curl_setopt_array($curl, array( 14166 - CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••', 14167 - CURLOPT_RETURNTRANSFER => true, 14168 - CURLOPT_ENCODING => '', 14169 - CURLOPT_MAXREDIRS => 10, 14170 - CURLOPT_TIMEOUT => 0, 14171 - CURLOPT_FOLLOWLOCATION => true, 14172 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14173 - CURLOPT_CUSTOMREQUEST => 'GET', 14174 - CURLOPT_HTTPHEADER => array( 14175 - 'Appkey: {{ONECOUNT API KEY}}' 14176 - ), 14177 -)); 14178 - 14179 -$response = curl_exec($curl); 14180 - 14181 -curl_close($curl); 14182 -echo $response; 14183 -{{/code}} 14184 - 14185 - 14186 -(% style="color:#6b6b6b" %)Response 200 OK 14187 - 14188 -{{code language="yml" theme="RDark" collapse="true" title="Get all Segments for a user Response"}} 14189 -{ 14190 - "result": { 14191 - "success": "1", 14192 - "error": { 14193 - "code": "", 14194 - "message": "" 14195 - } 14196 - }, 14197 - "Segments": [ 14198 - "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 14199 - "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 14200 - "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 14201 - "28361c73-e253-49bb-a791-5481be2070a0", 14202 - "28774f7c-9fd3-4dff-a42e-683460f437c0", 14203 - "5eaa0345-a825-4ba0-a787-336312a77744", 14204 - "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 14205 - "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 14206 - "bcb403a2-c0a1-414f-90c1-277a41009c97", 14207 - "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 14208 - "d883ecdb-5307-416d-9558-c196472021c9", 14209 - "d8d1bc9d-ede2-4c82-a747-10ab9fb979de" 14210 - ] 14211 -} 14212 -{{/code}} 14213 - 14214 - 14215 -(% id="HCOMPONENT:Leads" class="western" %) 14216 -=== **COMPONENT: Leads** === 14217 - 14218 -* 14219 -** === 14220 - 14221 14221 (% class="western" %) 14222 -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. 3494 +**Telemarketing Leads 3495 +** 14223 14223 14224 14224 (% class="western" %) 14225 -**Telemarketing Leads** 14226 14226 14227 - 14228 14228 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed. 14229 14229 14230 -(% class="wrapped" %) 14231 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3501 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14232 14232 ((( 14233 14233 (% class="western" %) 14234 14234 **Method** 14235 -)))|(% style="text-align:left; 3505 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14236 14236 ((( 14237 14237 (% class="western" %) 14238 14238 **Url** 14239 -)))|(% style="text-align:left; 3509 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14240 14240 ((( 14241 14241 (% class="western" %) 14242 14242 **Action** 14243 14243 ))) 14244 -|(% style="text-align:left; 3514 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14245 14245 ((( 14246 14246 (% class="western" %) 14247 14247 GET 14248 -)))|(% style="text-align:left; 3518 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14249 14249 ((( 14250 14250 (% class="western" %) 14251 14251 /stats/telemarketing 14252 -)))|(% style="text-align:left; 3522 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14253 14253 ((( 14254 14254 (% class="western" %) 14255 14255 List telemarketing stats 14256 14256 ))) 14257 -|(% style="text-align:left; 3527 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14258 14258 ((( 14259 14259 (% class="western" %) 14260 14260 GET 14261 -)))|(% style="text-align:left; 3531 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14262 14262 ((( 14263 14263 (% class="western" %) 14264 14264 /stats/telemarketing/1000 14265 -)))|(% style="text-align:left; 3535 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14266 14266 ((( 14267 14267 (% class="western" %) 14268 14268 Get telemarketing stat whose id is 1000 in the system. 14269 14269 ))) 14270 -|(% style="text-align:left; 3540 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14271 14271 ((( 14272 14272 (% class="western" %) 14273 14273 POST 14274 -)))|(% style="text-align:left; 3544 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14275 14275 ((( 14276 14276 (% class="western" %) 14277 14277 /stats/telemarketing 14278 -)))|(% style="text-align:left; 3548 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14279 14279 ((( 14280 14280 (% class="western" %) 14281 14281 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent. 14282 14282 ))) 14283 14283 3554 +\\ 3555 + 14284 14284 (% class="western" %) 14285 14285 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. 14286 14286 14287 -(% class="wrapped" %) 14288 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3559 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14289 14289 ((( 14290 14290 (% class="western" %) 14291 14291 **Request** 14292 -)))|(% style="text-align:left; 3563 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14293 14293 ((( 14294 14294 (% class="western" %) 14295 14295 **Type** 14296 -)))|(% style="text-align:left; 3567 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14297 14297 ((( 14298 14298 (% class="western" %) 14299 14299 **Description** 14300 14300 ))) 14301 -|(% style="text-align:left; 3572 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14302 14302 ((( 14303 14303 (% class="western" %) 14304 14304 Telemarketing 14305 -)))|(% style="text-align:left; 3576 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14306 14306 ((( 14307 14307 (% class="western" %) 14308 14308 Telemarketing 14309 -)))|(% style="text-align:left; 3580 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14310 14310 ((( 14311 14311 (% class="western" %) 14312 14312 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section. ... ... @@ -14339,7 +14339,7 @@ 14339 14339 "ResourceId":"250", 14340 14340 14341 14341 (% class="western" %) 14342 -"PageUrl": "[[http:~~/~~/www.one-count.com/detail/a.php>>url:http://www.one-count.com/detail/a.php||rel="nofollow" shape="rect" class="external-link"]]", 3613 +"PageUrl": "[[http:~~/~~/www.one-count.com/detail/a.php>>url:http://www.one-count.com/detail/a.php||style="" rel="nofollow" shape="rect" class="external-link"]]", 14343 14343 14344 14344 (% class="western" %) 14345 14345 "PageTitle":"tests" ... ... @@ -14353,48 +14353,57 @@ 14353 14353 (% class="western" %) 14354 14354 } 14355 14355 ))) 14356 -|(% style="text-align:left; 3627 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14357 14357 ((( 14358 14358 (% class="western" %) 14359 - 14360 -)))|(% style="text-align:left; 3630 +\\ 3631 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14361 14361 ((( 14362 14362 (% class="western" %) 14363 - 14364 -)))|(% style="text-align:left; 3634 +\\ 3635 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14365 14365 ((( 14366 14366 (% class="western" %) 14367 - 3638 +\\ 14368 14368 ))) 14369 14369 14370 -(% class="wrapped" %) 14371 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3641 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14372 14372 ((( 14373 14373 (% class="western" %) 14374 14374 **Response** 14375 -)))|(% style="text-align:left; 3645 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14376 14376 ((( 14377 14377 (% class="western" %) 14378 14378 **Type** 14379 -)))|(% style="text-align:left; 3649 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14380 14380 ((( 14381 14381 (% class="western" %) 14382 14382 **Description** 14383 14383 ))) 14384 -|(% style="text-align:left; 3654 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14385 14385 ((( 14386 14386 (% class="western" %) 14387 14387 Ids 14388 -)))|(% style="text-align:left; 3658 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14389 14389 ((( 14390 14390 (% class="western" %) 14391 14391 String 14392 -)))|(% style="text-align:left; 3662 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14393 14393 ((( 14394 14394 (% class="western" %) 14395 14395 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format. 14396 14396 ))) 14397 14397 3668 +\\ 3669 + 3670 +\\ 3671 + 3672 +\\ 3673 + 3674 +\\ 3675 + 3676 +\\ 3677 + 14398 14398 (% class="western" %) 14399 14399 **API REFERENCE** 14400 14400 ... ... @@ -14401,55 +14401,54 @@ 14401 14401 (% class="western" %) 14402 14402 **Type: Questions** 14403 14403 14404 -(% class="wrapped" %) 14405 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3684 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14406 14406 ((( 14407 14407 (% class="western" %) 14408 14408 **Property Name** 14409 -)))|(% style="text-align:left; 3688 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14410 14410 ((( 14411 14411 (% class="western" %) 14412 14412 **Type** 14413 -)))|(% style="text-align:left; 3692 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14414 14414 ((( 14415 14415 (% class="western" %) 14416 14416 **Description** 14417 14417 ))) 14418 -|(% style="text-align:left; 3697 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14419 14419 ((( 14420 14420 (% class="western" %) 14421 14421 Id 14422 -)))|(% style="text-align:left; 3701 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14423 14423 ((( 14424 14424 (% class="western" %) 14425 14425 Int 14426 -)))|(% style="text-align:left; 3705 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14427 14427 ((( 14428 14428 (% class="western" %) 14429 14429 Id of the question. 14430 14430 ))) 14431 -|(% style="text-align:left; 3710 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14432 14432 ((( 14433 14433 (% class="western" %) 14434 14434 Text 14435 -)))|(% style="text-align:left; 3714 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14436 14436 ((( 14437 14437 (% class="western" %) 14438 14438 String 14439 -)))|(% style="text-align:left; 3718 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14440 14440 ((( 14441 14441 (% class="western" %) 14442 14442 Text of the question. 14443 14443 ))) 14444 -|(% style="text-align:left; 3723 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14445 14445 ((( 14446 14446 (% class="western" %) 14447 14447 Type 14448 -)))|(% style="text-align:left; 3727 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14449 14449 ((( 14450 14450 (% class="western" %) 14451 14451 Int 14452 -)))|(% style="text-align:left; 3731 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14453 14453 ((( 14454 14454 (% class="western" %) 14455 14455 Determines which type of question it is. Textbox, checkbox, select, radio. ... ... @@ -14461,28 +14461,28 @@ 14461 14461 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. 14462 14462 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. 14463 14463 ))) 14464 -|(% style="text-align:left; 3743 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14465 14465 ((( 14466 14466 (% class="western" %) 14467 14467 Choices 14468 -)))|(% style="text-align:left; 3747 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14469 14469 ((( 14470 14470 (% class="western" %) 14471 14471 choices 14472 -)))|(% style="text-align:left; 3751 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14473 14473 ((( 14474 14474 (% class="western" %) 14475 14475 If multiple choice question this field will have the choices. 14476 14476 ))) 14477 -|(% style="text-align:left; 3756 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14478 14478 ((( 14479 14479 (% class="western" %) 14480 14480 Alias 14481 -)))|(% style="text-align:left; 3760 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14482 14482 ((( 14483 14483 (% class="western" %) 14484 14484 String 14485 -)))|(% style="text-align:left; 3764 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14486 14486 ((( 14487 14487 (% class="western" %) 14488 14488 Alias for admin purpose. ... ... @@ -14489,467 +14489,476 @@ 14489 14489 ))) 14490 14490 14491 14491 (% class="western" %) 3771 +\\ 3772 + 3773 +(% class="western" %) 3774 +\\ 3775 + 3776 +(% class="western" %) 14492 14492 **Type: Choices** 14493 14493 14494 -(% class="wrapped" %) 14495 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3779 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14496 14496 ((( 14497 14497 (% class="western" %) 14498 14498 **Property Name** 14499 -)))|(% style="text-align:left; 3783 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14500 14500 ((( 14501 14501 (% class="western" %) 14502 14502 **Type** 14503 -)))|(% style="text-align:left; 3787 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14504 14504 ((( 14505 14505 (% class="western" %) 14506 14506 **Description** 14507 14507 ))) 14508 -|(% style="text-align:left; 3792 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14509 14509 ((( 14510 14510 (% class="western" %) 14511 14511 Id 14512 -)))|(% style="text-align:left; 3796 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14513 14513 ((( 14514 14514 (% class="western" %) 14515 14515 int 14516 -)))|(% style="text-align:left; 3800 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14517 14517 ((( 14518 14518 (% class="western" %) 14519 14519 Id of the choice. 14520 14520 ))) 14521 -|(% style="text-align:left; 3805 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14522 14522 ((( 14523 14523 (% class="western" %) 14524 14524 Text 14525 -)))|(% style="text-align:left; 3809 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14526 14526 ((( 14527 14527 (% class="western" %) 14528 14528 string 14529 -)))|(% style="text-align:left; 3813 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14530 14530 ((( 14531 14531 (% class="western" %) 14532 14532 Display text of choice. 14533 14533 ))) 14534 -|(% style="text-align:left; 3818 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14535 14535 ((( 14536 14536 (% class="western" %) 14537 14537 Value 14538 -)))|(% style="text-align:left; 3822 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14539 14539 ((( 14540 14540 (% class="western" %) 14541 14541 String 14542 -)))|(% style="text-align:left; 3826 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14543 14543 ((( 14544 14544 (% class="western" %) 14545 14545 Value stored in db. 14546 14546 ))) 14547 -|(% style="text-align:left; 3831 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14548 14548 ((( 14549 14549 (% class="western" %) 14550 14550 Order 14551 -)))|(% style="text-align:left; 3835 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14552 14552 ((( 14553 14553 (% class="western" %) 14554 14554 Int 14555 -)))|(% style="text-align:left; 3839 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14556 14556 ((( 14557 14557 (% class="western" %) 14558 14558 Display order. 14559 14559 ))) 14560 -|(% style="text-align:left; 3844 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14561 14561 ((( 14562 14562 (% class="western" %) 14563 14563 QuestionId 14564 -)))|(% style="text-align:left; 3848 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14565 14565 ((( 14566 14566 (% class="western" %) 14567 14567 Int 14568 -)))|(% style="text-align:left; 3852 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14569 14569 ((( 14570 14570 (% class="western" %) 14571 14571 Tied to which question id. 14572 14572 ))) 14573 14573 3858 +\\ 3859 + 14574 14574 (% class="western" %) 14575 14575 **Type: Users** 14576 14576 14577 -(% class="wrapped" %) 14578 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3863 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14579 14579 ((( 14580 14580 (% class="western" %) 14581 14581 **Property Name** 14582 -)))|(% style="text-align:left; 3867 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14583 14583 ((( 14584 14584 (% class="western" %) 14585 14585 **Type** 14586 -)))|(% style="text-align:left; 3871 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14587 14587 ((( 14588 14588 (% class="western" %) 14589 14589 **Description** 14590 14590 ))) 14591 -|(% style="text-align:left; 3876 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14592 14592 ((( 14593 14593 (% class="western" %) 14594 14594 Id 14595 -)))|(% style="text-align:left; 3880 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14596 14596 ((( 14597 14597 (% class="western" %) 14598 14598 Int 14599 -)))|(% style="text-align:left; 3884 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14600 14600 ((( 14601 14601 (% class="western" %) 14602 14602 ID of the user in ONEcount. 14603 14603 ))) 14604 -|(% style="text-align:left; 3889 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14605 14605 ((( 14606 14606 (% class="western" %) 14607 14607 PartnerId 14608 -)))|(% style="text-align:left; 3893 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14609 14609 ((( 14610 14610 (% class="western" %) 14611 14611 Int 14612 -)))|(% style="text-align:left; 3897 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14613 14613 ((( 14614 14614 (% class="western" %) 14615 14615 ID of the user in partners system (e.g. id of your system). 14616 14616 ))) 14617 -|(% style="text-align:left; 3902 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14618 14618 ((( 14619 14619 (% class="western" %) 14620 14620 Demo 14621 -)))|(% style="text-align:left; 3906 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14622 14622 ((( 14623 14623 (% class="western" %) 14624 14624 Demo 14625 -)))|(% style="text-align:left; 3910 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14626 14626 ((( 14627 14627 (% class="western" %) 14628 14628 Object of user's demo question ids and respective response values. 14629 14629 ))) 14630 -|(% style="text-align:left; 3915 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14631 14631 ((( 14632 14632 (% class="western" %) 14633 14633 RequestDate 14634 -)))|(% style="text-align:left; 3919 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14635 14635 ((( 14636 14636 (% class="western" %) 14637 14637 Date 14638 -)))|(% style="text-align:left; 3923 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14639 14639 ((( 14640 14640 (% class="western" %) 14641 14641 Request date. 14642 14642 ))) 14643 14643 3929 +\\ 3930 + 14644 14644 (% class="western" %) 14645 14645 **Type: Demo** 14646 14646 14647 -(% class="wrapped" %) 14648 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3934 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14649 14649 ((( 14650 14650 (% class="western" %) 14651 14651 **Property Name** 14652 -)))|(% style="text-align:left; 3938 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14653 14653 ((( 14654 14654 (% class="western" %) 14655 14655 **Type** 14656 -)))|(% style="text-align:left; 3942 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14657 14657 ((( 14658 14658 (% class="western" %) 14659 14659 **Description** 14660 14660 ))) 14661 -|(% style="text-align:left; 3947 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14662 14662 ((( 14663 14663 (% class="western" %) 14664 14664 QuestionId (e.g 6) 14665 -)))|(% style="text-align:left; 3951 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14666 14666 ((( 14667 14667 (% class="western" %) 14668 14668 String 14669 -)))|(% style="text-align:left; 3955 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14670 14670 ((( 14671 14671 (% class="western" %) 14672 14672 6 is the value of “Id” property of question resource(Text = “First Name”) 14673 14673 ))) 14674 -|(% style="text-align:left; 3960 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14675 14675 ((( 14676 14676 (% class="western" %) 14677 14677 QuestionId (e.g 7) 14678 -)))|(% style="text-align:left; 3964 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14679 14679 ((( 14680 14680 (% class="western" %) 14681 14681 String 14682 -)))|(% style="text-align:left; 3968 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14683 14683 ((( 14684 14684 (% class="western" %) 14685 14685 7 is the value of “Id” property of question resource(Text = “Last Name”) 14686 14686 ))) 14687 -|(% style="text-align:left; 3973 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14688 14688 ((( 14689 14689 (% class="western" %) 14690 14690 ... 14691 -)))|(% style="text-align:left; 3977 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14692 14692 ((( 14693 14693 (% class="western" %) 14694 14694 ... 14695 -)))|(% style="text-align:left; 3981 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14696 14696 ((( 14697 14697 (% class="western" %) 14698 14698 ... 14699 14699 ))) 14700 14700 3987 +\\ 3988 + 14701 14701 (% class="western" %) 14702 14702 **Type: Transactions** 14703 14703 14704 -(% class="wrapped" %) 14705 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3992 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14706 14706 ((( 14707 14707 (% class="western" %) 14708 14708 **Property Name** 14709 -)))|(% style="text-align:left; 3996 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14710 14710 ((( 14711 14711 (% class="western" %) 14712 14712 **Type** 14713 -)))|(% style="text-align:left; 4000 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14714 14714 ((( 14715 14715 (% class="western" %) 14716 14716 **Description** 14717 14717 ))) 14718 -|(% style="text-align:left; 4005 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14719 14719 ((( 14720 14720 (% class="western" %) 14721 14721 Id 14722 -)))|(% style="text-align:left; 4009 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14723 14723 ((( 14724 14724 (% class="western" %) 14725 14725 Int 14726 -)))|(% style="text-align:left; 4013 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14727 14727 ((( 14728 14728 (% class="western" %) 14729 14729 ID of the transaction. 14730 14730 ))) 14731 -|(% style="text-align:left; 4018 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14732 14732 ((( 14733 14733 (% class="western" %) 14734 14734 UserId 14735 -)))|(% style="text-align:left; 4022 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14736 14736 ((( 14737 14737 (% class="western" %) 14738 14738 Int 14739 -)))|(% style="text-align:left; 4026 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14740 14740 ((( 14741 14741 (% class="western" %) 14742 14742 Id of user in ONEcount. 14743 14743 ))) 14744 -|(% style="text-align:left; 4031 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14745 14745 ((( 14746 14746 (% class="western" %) 14747 14747 TermId 14748 -)))|(% style="text-align:left; 4035 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14749 14749 ((( 14750 14750 (% class="western" %) 14751 14751 Int 14752 -)))|(% style="text-align:left; 4039 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14753 14753 ((( 14754 14754 (% class="western" %) 14755 14755 TermId in ONEcount. 14756 14756 ))) 14757 -|(% style="text-align:left; 4044 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14758 14758 ((( 14759 14759 (% class="western" %) 14760 14760 ProductStatus 14761 -)))|(% style="text-align:left; 4048 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14762 14762 ((( 14763 14763 (% class="western" %) 14764 14764 Int 14765 -)))|(% style="text-align:left; 4052 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14766 14766 ((( 14767 14767 (% class="western" %) 14768 14768 Status ID. 14769 14769 ))) 14770 -|(% style="text-align:left; 4057 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14771 14771 ((( 14772 14772 (% class="western" %) 14773 14773 SubscriptionType 14774 -)))|(% style="text-align:left; 4061 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14775 14775 ((( 14776 14776 (% class="western" %) 14777 14777 Char 14778 -)))|(% style="text-align:left; 4065 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14779 14779 ((( 14780 14780 (% class="western" %) 14781 14781 Can be n,r or u for new, renew or unsubscribe. 14782 14782 ))) 14783 -|(% style="text-align:left; 4070 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14784 14784 ((( 14785 14785 (% class="western" %) 14786 14786 TransactionDate 14787 -)))|(% style="text-align:left; 4074 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14788 14788 ((( 14789 14789 (% class="western" %) 14790 14790 Date 14791 -)))|(% style="text-align:left; 4078 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14792 14792 ((( 14793 14793 (% class="western" %) 14794 14794 Date when the transaction occurred. 14795 14795 ))) 14796 -|(% style="text-align:left; 4083 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14797 14797 ((( 14798 14798 (% class="western" %) 14799 14799 TransactionTime 14800 -)))|(% style="text-align:left; 4087 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14801 14801 ((( 14802 14802 (% class="western" %) 14803 14803 Time 14804 -)))|(% style="text-align:left; 4091 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14805 14805 ((( 14806 14806 (% class="western" %) 14807 14807 Time of transaction. 14808 14808 ))) 14809 -|(% style="text-align:left; 4096 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14810 14810 ((( 14811 14811 (% class="western" %) 14812 14812 RequestDate 14813 -)))|(% style="text-align:left; 4100 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14814 14814 ((( 14815 14815 (% class="western" %) 14816 14816 Date 14817 -)))|(% style="text-align:left; 4104 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14818 14818 ((( 14819 14819 (% class="western" %) 14820 14820 The effective request date for the transaction. 14821 14821 ))) 14822 -|(% style="text-align:left; 4109 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14823 14823 ((( 14824 14824 (% class="western" %) 14825 14825 UserIP 14826 -)))|(% style="text-align:left; 4113 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14827 14827 ((( 14828 14828 (% class="western" %) 14829 14829 String 14830 -)))|(% style="text-align:left; 4117 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14831 14831 ((( 14832 14832 (% class="western" %) 14833 14833 IP of the user. 14834 14834 ))) 14835 -|(% style="text-align:left; 4122 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14836 14836 ((( 14837 14837 (% class="western" %) 14838 14838 Source 14839 -)))|(% style="text-align:left; 4126 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14840 14840 ((( 14841 14841 (% class="western" %) 14842 14842 String 14843 -)))|(% style="text-align:left; 4130 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14844 14844 ((( 14845 14845 (% class="western" %) 14846 14846 The transaction needs to be tied to a source code this will define it. 14847 14847 ))) 14848 -|(% style="text-align:left; 4135 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14849 14849 ((( 14850 14850 (% class="western" %) 14851 14851 MediaFilePath 14852 -)))|(% style="text-align:left; 4139 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14853 14853 ((( 14854 14854 (% class="western" %) 14855 14855 String 14856 -)))|(% style="text-align:left; 4143 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14857 14857 ((( 14858 14858 (% class="western" %) 14859 14859 The url of media associated with that transaction. Eg image, audio. 14860 14860 ))) 14861 -|(% style="text-align:left; 4148 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14862 14862 ((( 14863 14863 (% class="western" %) 14864 14864 ExpireDate 14865 -)))|(% style="text-align:left; 4152 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14866 14866 ((( 14867 14867 (% class="western" %) 14868 14868 Date 14869 -)))|(% style="text-align:left; 4156 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14870 14870 ((( 14871 14871 (% class="western" %) 14872 14872 Date when the subscription expires. 14873 14873 ))) 14874 -|(% style="text-align:left; 4161 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14875 14875 ((( 14876 14876 (% class="western" %) 14877 14877 Amount 14878 -)))|(% style="text-align:left; 4165 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14879 14879 ((( 14880 14880 (% class="western" %) 14881 14881 Float 14882 -)))|(% style="text-align:left; 4169 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14883 14883 ((( 14884 14884 (% class="western" %) 14885 14885 If there is amount (USD) included in transaction. 14886 14886 ))) 14887 14887 4175 +\\ 4176 + 14888 14888 (% class="western" %) 14889 14889 **Type: Sources** 14890 14890 14891 -(% class="wrapped" %) 14892 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4180 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14893 14893 ((( 14894 14894 (% class="western" %) 14895 14895 **Property Name** 14896 -)))|(% style="text-align:left; 4184 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14897 14897 ((( 14898 14898 (% class="western" %) 14899 14899 **Type** 14900 -)))|(% style="text-align:left; 4188 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14901 14901 ((( 14902 14902 (% class="western" %) 14903 14903 **Description** 14904 14904 ))) 14905 -|(% style="text-align:left; 4193 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14906 14906 ((( 14907 14907 (% class="western" %) 14908 14908 Id 14909 -)))|(% style="text-align:left; 4197 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14910 14910 ((( 14911 14911 (% class="western" %) 14912 14912 Int 14913 -)))|(% style="text-align:left; 4201 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14914 14914 ((( 14915 14915 (% class="western" %) 14916 14916 Id of the source. 14917 14917 ))) 14918 -|(% style="text-align:left; 4206 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14919 14919 ((( 14920 14920 (% class="western" %) 14921 14921 Source 14922 -)))|(% style="text-align:left; 4210 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14923 14923 ((( 14924 14924 (% class="western" %) 14925 14925 String 14926 -)))|(% style="text-align:left; 4214 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14927 14927 ((( 14928 14928 (% class="western" %) 14929 14929 Value of the source. 14930 14930 ))) 14931 -|(% style="text-align:left; 4219 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14932 14932 ((( 14933 14933 (% class="western" %) 14934 14934 Description 14935 -)))|(% style="text-align:left; 4223 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14936 14936 ((( 14937 14937 (% class="western" %) 14938 14938 Text 14939 -)))|(% style="text-align:left; 4227 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14940 14940 ((( 14941 14941 (% class="western" %) 14942 14942 Description of the source. 14943 14943 ))) 14944 -|(% style="text-align:left; 4232 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14945 14945 ((( 14946 14946 (% class="western" %) 14947 14947 ParentId 14948 -)))|(% style="text-align:left; 4236 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14949 14949 ((( 14950 14950 (% class="western" %) 14951 14951 int 14952 -)))|(% style="text-align:left; 4240 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14953 14953 ((( 14954 14954 (% class="western" %) 14955 14955 If this is a child source then list the parent source id. ... ... @@ -14956,249 +14956,253 @@ 14956 14956 ))) 14957 14957 14958 14958 (% class="western" %) 4247 +\\ 4248 + 4249 +(% class="western" %) 14959 14959 **Type: Products** 14960 14960 14961 -(% class="wrapped" %) 14962 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4252 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14963 14963 ((( 14964 14964 (% class="western" %) 14965 14965 **Property Name** 14966 -)))|(% style="text-align:left; 4256 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14967 14967 ((( 14968 14968 (% class="western" %) 14969 14969 **Type** 14970 -)))|(% style="text-align:left; 4260 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14971 14971 ((( 14972 14972 (% class="western" %) 14973 14973 **Description** 14974 14974 ))) 14975 -|(% style="text-align:left; 4265 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14976 14976 ((( 14977 14977 (% class="western" %) 14978 14978 Id 14979 -)))|(% style="text-align:left; 4269 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14980 14980 ((( 14981 14981 (% class="western" %) 14982 14982 Int 14983 -)))|(% style="text-align:left; 4273 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14984 14984 ((( 14985 14985 (% class="western" %) 14986 14986 Specify only for update. 14987 14987 ))) 14988 -|(% style="text-align:left; 4278 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14989 14989 ((( 14990 14990 (% class="western" %) 14991 14991 Name 14992 -)))|(% style="text-align:left; 4282 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14993 14993 ((( 14994 14994 (% class="western" %) 14995 14995 String 14996 -)))|(% style="text-align:left; 4286 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14997 14997 ((( 14998 14998 (% class="western" %) 14999 14999 Name of the Product. 15000 15000 ))) 15001 -|(% style="text-align:left; 4291 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15002 15002 ((( 15003 15003 (% class="western" %) 15004 15004 Description 15005 -)))|(% style="text-align:left; 4295 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15006 15006 ((( 15007 15007 (% class="western" %) 15008 15008 Text 15009 -)))|(% style="text-align:left; 4299 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15010 15010 ((( 15011 15011 (% class="western" %) 15012 15012 Description of the product. 15013 15013 ))) 15014 -|(% style="text-align:left; 4304 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15015 15015 ((( 15016 15016 (% class="western" %) 15017 15017 Terms 15018 -)))|(% style="text-align:left; 4308 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15019 15019 ((( 15020 15020 (% class="western" %) 15021 15021 Terms 15022 -)))|(% style="text-align:left; 4312 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15023 15023 ((( 15024 15024 (% class="western" %) 15025 15025 (Array of) Terms associated with the product. 15026 15026 ))) 15027 15027 4318 +\\ 4319 + 15028 15028 (% class="western" %) 15029 15029 **Type: Terms** 15030 15030 15031 -(% class="wrapped" %) 15032 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4323 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15033 15033 ((( 15034 15034 (% class="western" %) 15035 15035 **Property Name** 15036 -)))|(% style="text-align:left; 4327 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15037 15037 ((( 15038 15038 (% class="western" %) 15039 15039 **Type** 15040 -)))|(% style="text-align:left; 4331 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15041 15041 ((( 15042 15042 (% class="western" %) 15043 15043 **Description** 15044 15044 ))) 15045 -|(% style="text-align:left; 4336 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15046 15046 ((( 15047 15047 (% class="western" %) 15048 15048 Id 15049 -)))|(% style="text-align:left; 4340 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15050 15050 ((( 15051 15051 (% class="western" %) 15052 15052 int 15053 -)))|(% style="text-align:left; 4344 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15054 15054 ((( 15055 15055 (% class="western" %) 15056 15056 Id of the term. 15057 15057 ))) 15058 -|(% style="text-align:left; 4349 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15059 15059 ((( 15060 15060 (% class="western" %) 15061 15061 Name 15062 -)))|(% style="text-align:left; 4353 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15063 15063 ((( 15064 15064 (% class="western" %) 15065 15065 string 15066 -)))|(% style="text-align:left; 4357 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15067 15067 ((( 15068 15068 (% class="western" %) 15069 15069 Name of the Term. 15070 15070 ))) 15071 -|(% style="text-align:left; 4362 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15072 15072 ((( 15073 15073 (% class="western" %) 15074 15074 Description 15075 -)))|(% style="text-align:left; 4366 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15076 15076 ((( 15077 15077 (% class="western" %) 15078 15078 text 15079 -)))|(% style="text-align:left; 4370 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15080 15080 ((( 15081 15081 (% class="western" %) 15082 15082 Description of the term. 15083 15083 ))) 15084 -|(% style="text-align:left; 4375 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15085 15085 ((( 15086 15086 (% class="western" %) 15087 15087 Duration 15088 -)))|(% style="text-align:left; 4379 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15089 15089 ((( 15090 15090 (% class="western" %) 15091 15091 int 15092 -)))|(% style="text-align:left; 4383 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15093 15093 ((( 15094 15094 (% class="western" %) 15095 15095 Duration of term validity. 15096 15096 ))) 15097 -|(% style="text-align:left; 4388 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15098 15098 ((( 15099 15099 (% class="western" %) 15100 15100 DurationUnit 15101 -)))|(% style="text-align:left; 4392 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15102 15102 ((( 15103 15103 (% class="western" %) 15104 15104 sting 15105 -)))|(% style="text-align:left; 4396 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15106 15106 ((( 15107 15107 (% class="western" %) 15108 15108 Y (year), M (Month), D (Days). 15109 15109 ))) 15110 -|(% style="text-align:left; 4401 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15111 15111 ((( 15112 15112 (% class="western" %) 15113 15113 ProductId 15114 -)))|(% style="text-align:left; 4405 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15115 15115 ((( 15116 15116 (% class="western" %) 15117 15117 int 15118 -)))|(% style="text-align:left; 4409 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15119 15119 ((( 15120 15120 (% class="western" %) 15121 15121 Id of the product the term is tied to. 15122 15122 ))) 15123 -|(% style="text-align:left; 4414 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15124 15124 ((( 15125 15125 (% class="western" %) 15126 15126 Price 15127 -)))|(% style="text-align:left; 4418 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15128 15128 ((( 15129 15129 (% class="western" %) 15130 15130 float 15131 -)))|(% style="text-align:left; 4422 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15132 15132 ((( 15133 15133 (% class="western" %) 15134 15134 If there is price (USD) for the term. 15135 15135 ))) 15136 15136 4428 +\\ 4429 + 15137 15137 (% class="western" %) 15138 15138 **Type: Resources** 15139 15139 15140 -(% class="wrapped" %) 15141 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4433 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15142 15142 ((( 15143 15143 (% class="western" %) 15144 15144 **Property Name** 15145 -)))|(% style="text-align:left; 4437 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15146 15146 ((( 15147 15147 (% class="western" %) 15148 15148 **Type** 15149 -)))|(% style="text-align:left; 4441 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15150 15150 ((( 15151 15151 (% class="western" %) 15152 15152 **Description** 15153 15153 ))) 15154 -|(% style="text-align:left; 4446 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15155 15155 ((( 15156 15156 (% class="western" %) 15157 15157 Id 15158 -)))|(% style="text-align:left; 4450 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15159 15159 ((( 15160 15160 (% class="western" %) 15161 15161 Int 15162 -)))|(% style="text-align:left; 4454 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15163 15163 ((( 15164 15164 (% class="western" %) 15165 15165 Specify only for update. 15166 15166 ))) 15167 -|(% style="text-align:left; 4459 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15168 15168 ((( 15169 15169 (% class="western" %) 15170 15170 Name 15171 -)))|(% style="text-align:left; 4463 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15172 15172 ((( 15173 15173 (% class="western" %) 15174 15174 String 15175 -)))|(% style="text-align:left; 4467 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15176 15176 ((( 15177 15177 (% class="western" %) 15178 15178 Name of the Resource. 15179 15179 ))) 15180 -|(% style="text-align:left; 4472 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15181 15181 ((( 15182 15182 (% class="western" %) 15183 15183 Description 15184 -)))|(% style="text-align:left; 4476 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15185 15185 ((( 15186 15186 (% class="western" %) 15187 15187 Text 15188 -)))|(% style="text-align:left; 4480 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15189 15189 ((( 15190 15190 (% class="western" %) 15191 15191 Description of the Resource. 15192 15192 ))) 15193 -|(% style="text-align:left; 4485 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15194 15194 ((( 15195 15195 (% class="western" %) 15196 15196 Type 15197 -)))|(% style="text-align:left; 4489 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15198 15198 ((( 15199 15199 (% class="western" %) 15200 15200 Int 15201 -)))|(% style="text-align:left; 4493 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15202 15202 ((( 15203 15203 (% class="western" %) 15204 15204 Type Options ... ... @@ -15218,11 +15218,11 @@ 15218 15218 (% class="western" %) 15219 15219 **5 : **Function 15220 15220 ))) 15221 -|(% style="text-align:left; 4513 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15222 15222 ((( 15223 15223 (% class="western" %) 15224 15224 Value 15225 -)))|(% style="text-align:left; 4517 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15226 15226 ((( 15227 15227 (% class="western" %) 15228 15228 String ... ... @@ -15232,7 +15232,7 @@ 15232 15232 15233 15233 (% class="western" %) 15234 15234 Array 15235 -)))|(% style="text-align:left; 4527 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15236 15236 ((( 15237 15237 (% class="western" %) 15238 15238 Value of Resource Type: ... ... @@ -15247,114 +15247,115 @@ 15247 15247 Example : 15248 15248 15249 15249 (% class="western" %) 15250 -if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/]. **15251 -if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 4542 +if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/]. 4543 +**if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 15252 15252 15253 15253 (% class="western" %) 15254 15254 For Function type resource leave it blank. 15255 15255 ))) 15256 -|(% style="text-align:left; 4548 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15257 15257 ((( 15258 15258 (% class="western" %) 15259 15259 limit 15260 -)))|(% style="text-align:left; 4552 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15261 15261 ((( 15262 15262 (% class="western" %) 15263 15263 Int 15264 -)))|(% style="text-align:left; 4556 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15265 15265 ((( 15266 15266 (% class="western" %) 15267 15267 Default limit is 25 but if all the data needs to be pulled then pass limit=0. 15268 15268 ))) 15269 -|(% colspan="1" style="text-align:left; 4561 +(% class="" %)|(% colspan="1" style="text-align: left;vertical-align: top;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 15270 15270 ((( 15271 15271 FreePass 15272 -)))|(% colspan="1" style="text-align:left; 4564 +)))|(% colspan="1" style="text-align: left;vertical-align: top;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 15273 15273 ((( 15274 15274 Int 15275 -)))|(% colspan="1" style="text-align:left; 4567 +)))|(% colspan="1" style="text-align: left;vertical-align: top;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 15276 15276 ((( 15277 15277 Default value is 0. This parameter is used to provide access to protected content. 15278 15278 ))) 15279 15279 4572 +\\ 4573 + 15280 15280 (% class="western" %) 15281 15281 **Type: Telemarketing** 15282 15282 15283 -(% class="wrapped" %) 15284 -|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4577 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15285 15285 ((( 15286 15286 (% class="western" %) 15287 15287 **Property Name** 15288 -)))|(% style="text-align:left; 4581 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15289 15289 ((( 15290 15290 (% class="western" %) 15291 15291 **Type** 15292 -)))|(% style="text-align:left; 4585 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15293 15293 ((( 15294 15294 (% class="western" %) 15295 15295 **Description** 15296 15296 ))) 15297 -|(% style="text-align:left; 4590 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15298 15298 ((( 15299 15299 (% class="western" %) 15300 15300 Id 15301 -)))|(% style="text-align:left; 4594 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15302 15302 ((( 15303 15303 (% class="western" %) 15304 15304 int 15305 -)))|(% style="text-align:left; 4598 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15306 15306 ((( 15307 15307 (% class="western" %) 15308 15308 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat. 15309 15309 ))) 15310 -|(% style="text-align:left; 4603 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15311 15311 ((( 15312 15312 (% class="western" %) 15313 15313 OCID 15314 -)))|(% style="text-align:left; 4607 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15315 15315 ((( 15316 15316 (% class="western" %) 15317 15317 int 15318 -)))|(% style="text-align:left; 4611 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15319 15319 ((( 15320 15320 (% class="western" %) 15321 15321 Onecount ID of the user. 15322 15322 ))) 15323 -|(% style="text-align:left; 4616 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15324 15324 ((( 15325 15325 (% class="western" %) 15326 15326 Date 15327 -)))|(% style="text-align:left; 4620 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15328 15328 ((( 15329 15329 (% class="western" %) 15330 15330 Date 15331 -)))|(% style="text-align:left; 4624 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15332 15332 ((( 15333 15333 (% class="western" %) 15334 15334 Date when the stat occurred. Format: yyyy-mm-dd 15335 15335 ))) 15336 -|(% style="text-align:left; 4629 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15337 15337 ((( 15338 15338 (% class="western" %) 15339 15339 Time 15340 -)))|(% style="text-align:left; 4633 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15341 15341 ((( 15342 15342 (% class="western" %) 15343 15343 Time 15344 -)))|(% style="text-align:left; 4637 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15345 15345 ((( 15346 15346 (% class="western" %) 15347 15347 Time of stat. Format: h:m:s (24 hour format) 15348 15348 ))) 15349 -|(% style="text-align:left; 4642 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15350 15350 ((( 15351 15351 (% class="western" %) 15352 15352 ResourceId 15353 -)))|(% style="text-align:left; 4646 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15354 15354 ((( 15355 15355 (% class="western" %) 15356 15356 int 15357 -)))|(% style="text-align:left; 4650 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15358 15358 ((( 15359 15359 (% class="western" %) 15360 15360 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send ... ... @@ -15362,168 +15362,37 @@ 15362 15362 (% class="western" %) 15363 15363 PageTitle otherwise it will follow the process described in PageTitle. 15364 15364 ))) 15365 -|(% style="text-align:left; 4658 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15366 15366 ((( 15367 15367 (% class="western" %) 15368 15368 PageUrl 15369 -)))|(% style="text-align:left; 4662 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15370 15370 ((( 15371 15371 (% class="western" %) 15372 15372 string 15373 -)))|(% style="text-align:left; 4666 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15374 15374 ((( 15375 15375 (% class="western" %) 15376 15376 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. 15377 15377 ))) 15378 -|(% style="text-align:left; 4671 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15379 15379 ((( 15380 15380 (% class="western" %) 15381 15381 PageTitle 15382 -)))|(% style="text-align:left; 4675 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15383 15383 ((( 15384 15384 (% class="western" %) 15385 15385 string 15386 -)))|(% style="text-align:left; 4679 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15387 15387 ((( 15388 15388 (% class="western" %) 15389 15389 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. 15390 15390 4684 +(% class="western" %) 4685 +\\ 15391 15391 15392 15392 (% class="western" %) 15393 15393 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. 15394 15394 ))) 15395 15395 15396 -**Example 1: How to use API to get users who unsubscribed to resources in past 1 day and unsubscribe them to a package** 15397 - 15398 -**~1. Get all packages using below API call** 15399 - 15400 -[[https:~~/~~/api.onecount.net/v2/products?limit=10000>>url:https://api.onecount.net/v2/products?limit=10000]] 15401 -\\This will give all the packages with all the resources attached to that package below is sample response. 15402 - 15403 - 15404 -[ 15405 - 15406 - { 15407 - 15408 - "ProductId": 2374, 15409 - 15410 - "Title": "OptL-0- ENTECH EVENT-VSL Virtual Seminars", 15411 - 15412 - "Description": "", 15413 - 15414 - "ResourceIDs": [ 15415 - 15416 - 16366, 15417 - 15418 - 16374, 15419 - 15420 - 16638, 15421 - 15422 - 16646, 15423 - 15424 - 17030, 15425 - 15426 - 17038, 15427 - 15428 - 17046, 15429 - 15430 - 17054 15431 - 15432 - ], 15433 - 15434 - "PrimaryFormID": [ 15435 - 15436 - "251fc466-0f68-483d-afa6-1b05cb3ae9b0" 15437 - 15438 - ], 15439 - 15440 - "Terms": { 15441 - 15442 - "Id": 2462, 15443 - 15444 - "Name": "Active", 15445 - 15446 - "Description": "", 15447 - 15448 - "Duration": 1, 15449 - 15450 - "DurationUnit": "D", 15451 - 15452 - "Price": "0", 15453 - 15454 - "ProductId": 2374 15455 - 15456 - } 15457 - 15458 - } 15459 - 15460 -] 15461 - 15462 - 15463 -FYI : ResourceIDs are product ids 15464 - 15465 -Productid is package id 15466 -\\If your desired resource is in the package then use the product id and term id to unsubscribe user from that package 15467 - 15468 -**2. Get all the users who unsubscribed to resources in past 1 day** 15469 - 15470 -use below API to get all user who unsubscribed to resources in past 1 day 15471 - 15472 -[[http:~~/~~/api.onecount.net/v2/resources/analytics?type=u&start_date=20250>>url:http://api.onecount.net/v2/resources/analytics?type=u&start_date=20250110]]209 15473 - 15474 -Below is the sample response : 15475 - 15476 -{ 15477 - 15478 -"result": { 15479 - 15480 - "success": "1", 15481 - 15482 - "error": { 15483 - 15484 - "code": "", 15485 - 15486 - "message": "" 15487 - 15488 - } 15489 - 15490 - }, 15491 - 15492 -"Resources Users": [ 15493 - 15494 -{ 15495 - 15496 -"resource_uid": "11462", 15497 - 15498 -"ocid": 74204991, 15499 - 15500 -"request_date": 20250118 15501 - 15502 -}, 15503 - 15504 -{ 15505 - 15506 -"resource_uid": "11462", 15507 - 15508 -"ocid": 121746390, 15509 - 15510 -"request_date": 20250118 15511 - 15512 -} 15513 - 15514 -] 15515 - 15516 -} 15517 - 15518 -FYI: 15519 -ocid = userid 15520 - 15521 - 15522 -**3. Use user, product id and term id from the response above to unsubscribe user from the package** 15523 -\\Use this API and body to unsubscribe users 15524 -\\[[https:~~/~~/api.onecount.net/v2/transactions>>url:https://api.onecount.net/v2/transactions]] 15525 -\\**BODY:** 15526 -{"UserId": 126715990,"TermId":2462,"UserIP":"192.168.0.1" ,"SubscriptionType":"u" , "ProductId":2374 ,"ResourceId":0,"FormId": "","Source": 39,"ProductStatus": 2,"Amount":"0.00" ,"PaypalTransId":"" , "MediaFilePath":"" ,"Remarks": "USER UNSUBSCRIBED FROM API","BatchId":"1234" ,"Quantity": 1, "ExpireDate":"20260115" } 15527 -\\This will unsubscribe user from that package 15528 - 15529 - 4691 +\\
- 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 -10826547 71 +108265479 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/10826547 7/ONEcount API Documentation1 +https://info.onecount.net//wiki/spaces/OD/pages/108265479/ONEcount API Documentation