Changes for page ONEcount API Documentation
Last modified by Rayaan Ahmed on 2025/02/09 22:20
From version 12.1
edited by Admin User
on 2024/04/29 14:06
on 2024/04/29 14:06
Change comment:
There is no comment for this version
To version 1.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.a dmin1 +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,4620 +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 - 10139 -(% id="HCOMPONENT:SourceCodes" class="western" %) 10140 -=== **COMPONENT: Source Codes** === 10141 - 10142 -* 10143 -** === 10144 - 10145 10145 (% class="western" %) 10146 10146 This resource is for manipulating source code for a resource. A source code can be created, updated or searched. 10147 10147 10148 -(% class="wrapped" %) 10149 -|(% 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;" %) 10150 10150 ((( 10151 10151 (% class="western" %) 10152 10152 **Method** 10153 -)))|(% style="text-align:left; 3010 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10154 10154 ((( 10155 10155 (% class="western" %) 10156 10156 **Url** 10157 -)))|(% style="text-align:left; 3014 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10158 10158 ((( 10159 10159 (% class="western" %) 10160 10160 **Action** 10161 10161 ))) 10162 -|(% style="text-align:left; 3019 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10163 10163 ((( 10164 10164 (% class="western" %) 10165 10165 GET 10166 -)))|(% style="text-align:left; 3023 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10167 10167 ((( 10168 10168 (% class="western" %) 10169 10169 /sources/1 10170 -)))|(% style="text-align:left; 3027 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10171 10171 ((( 10172 10172 (% class="western" %) 10173 10173 Get source id 1. 10174 10174 ))) 10175 -|(% style="text-align:left; 3032 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10176 10176 ((( 10177 10177 (% class="western" %) 10178 10178 GET 10179 -)))|(% style="text-align:left; 3036 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10180 10180 ((( 10181 10181 (% class="western" %) 10182 10182 /sources/lookup?Source=sourcename 10183 -)))|(% style="text-align:left; 3040 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10184 10184 ((( 10185 10185 (% class="western" %) 10186 10186 Lookup sources by source. 10187 10187 ))) 10188 -|(% style="text-align:left; 3045 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10189 10189 ((( 10190 10190 (% class="western" %) 10191 10191 POST 10192 -)))|(% style="text-align:left; 3049 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10193 10193 ((( 10194 10194 (% class="western" %) 10195 10195 /sources 10196 -)))|(% style="text-align:left; 3053 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10197 10197 ((( 10198 10198 (% class="western" %) 10199 10199 JSON of the Sources type object needs to be sent as post data. Id field should not be sent. 10200 10200 ))) 10201 -|(% style="text-align:left; 3058 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10202 10202 ((( 10203 10203 (% class="western" %) 10204 10204 PUT 10205 -)))|(% style="text-align:left; 3062 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10206 10206 ((( 10207 10207 (% class="western" %) 10208 10208 /sources 10209 -)))|(% style="text-align:left; 3066 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10210 10210 ((( 10211 10211 (% class="western" %) 10212 10212 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update. 10213 10213 ))) 10214 10214 10215 -(% id="HGETAllSourcecodes" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10216 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Source codes(%%) == 3072 +\\ 10217 10217 10218 ----- 10219 - 10220 ----- 10221 - 10222 -{{panel bgColor="#D3D3D3" width="100%"}} 10223 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources 10224 -{{/panel}} 10225 - 10226 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10227 - 10228 ----- 10229 - 10230 -(% 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}} 10231 - 10232 -==== Example ==== 10233 - 10234 ----- 10235 - 10236 -(% style="color:#6b6b6b" %)Request 10237 - 10238 -{{code language="php" theme="RDark" title="Get All Source code Request"}} 10239 - <?php 10240 - 10241 -$curl = curl_init(); 10242 - 10243 -curl_setopt_array($curl, array( 10244 - CURLOPT_URL => 'https://api.onecount.net/v2/sources', 10245 - CURLOPT_RETURNTRANSFER => true, 10246 - CURLOPT_ENCODING => '', 10247 - CURLOPT_MAXREDIRS => 10, 10248 - CURLOPT_TIMEOUT => 0, 10249 - CURLOPT_FOLLOWLOCATION => true, 10250 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10251 - CURLOPT_CUSTOMREQUEST => 'GET', 10252 - CURLOPT_HTTPHEADER => array( 10253 - 'Appkey: {{ONECOUNT API KEY}}' 10254 - ), 10255 -)); 10256 - 10257 -$response = curl_exec($curl); 10258 - 10259 -curl_close($curl); 10260 -echo $response; 10261 -{{/code}} 10262 - 10263 - 10264 -(% style="color:#6b6b6b" %)Response 200 OK 10265 - 10266 -{{code language="yml" theme="RDark" collapse="true" title="Get All Source code Response"}} 10267 - { 10268 - "result": { 10269 - "success": "1", 10270 - "error": { 10271 - "code": "", 10272 - "message": "" 10273 - } 10274 - }, 10275 - "Sources": [ 10276 - { 10277 - "Id": 26, 10278 - "Source": "GCN-Member", 10279 - "Description": "Uploaded from Reston VA", 10280 - "Parent": 0 10281 - }, 10282 - { 10283 - "Id": 34, 10284 - "Source": "SugarID", 10285 - "Description": "Sugar IDs cleaned contacts list and cleaned leads list sent by Sean Fulton for upload.", 10286 - "Parent": 0 10287 - }, 10288 - { 10289 - "Id": 42, 10290 - "Source": "DEMOFORM", 10291 - "Description": "\"Request a Demo\" form from one-count.com", 10292 - "Parent": 0 10293 - }, 10294 - { 10295 - "Id": 50, 10296 - "Source": "ABM ANNUAL 2014", 10297 - "Description": "ABM Annual 2014 - Registration List for Sponsors", 10298 - "Parent": 0 10299 - }, 10300 - { 10301 - "Id": 58, 10302 - "Source": "BIMS REG LIST", 10303 - "Description": "BIMS Registration List for Sponsors (2013/2014)", 10304 - "Parent": 0 10305 - }, 10306 - { 10307 - "Id": 66, 10308 - "Source": "SIPA 13", 10309 - "Description": "SIPA 2013 - sponsor - attendees", 10310 - "Parent": 0 10311 - }, 10312 - { 10313 - "Id": 74, 10314 - "Source": "Google Ads", 10315 - "Description": "From Google Banner Ads", 10316 - "Parent": 0 10317 - }, 10318 - { 10319 - "Id": 82, 10320 - "Source": "EDIT PROFILE", 10321 - "Description": "FOR EDIT PROFILE FORM", 10322 - "Parent": 0 10323 - }, 10324 - { 10325 - "Id": 83, 10326 - "Source": "Test Source Code", 10327 - "Description": "", 10328 - "Parent": 0 10329 - }, 10330 - { 10331 - "Id": 91, 10332 - "Source": "NEWSLETTER", 10333 - "Description": "Newsletter", 10334 - "Parent": 0 10335 - }, 10336 - { 10337 - "Id": 99, 10338 - "Source": "INFOTANKS-comps-only_12032019", 10339 - "Description": "", 10340 - "Parent": 0 10341 - }, 10342 - { 10343 - "Id": 107, 10344 - "Source": "INFOTANKS-DMP-only_12102019", 10345 - "Description": "", 10346 - "Parent": 0 10347 - }, 10348 - { 10349 - "Id": 109, 10350 - "Source": "BMVM", 10351 - "Description": "Active Attendees", 10352 - "Parent": 0 10353 - }, 10354 - { 10355 - "Id": 115, 10356 - "Source": "USECASES", 10357 - "Description": "Use Case PDF", 10358 - "Parent": 0 10359 - }, 10360 - { 10361 - "Id": 123, 10362 - "Source": "Borrell Miami 2022", 10363 - "Description": "", 10364 - "Parent": 0 10365 - }, 10366 - { 10367 - "Id": 131, 10368 - "Source": "05092022-telemarketing", 10369 - "Description": "", 10370 - "Parent": 0 10371 - }, 10372 - { 10373 - "Id": 139, 10374 - "Source": "WEBINAR6.15.22", 10375 - "Description": "Live Webinar Series June 15, 2022", 10376 - "Parent": 0 10377 - }, 10378 - { 10379 - "Id": 147, 10380 - "Source": "LMA Show List", 10381 - "Description": "", 10382 - "Parent": 0 10383 - }, 10384 - { 10385 - "Id": 155, 10386 - "Source": "AAA", 10387 - "Description": "", 10388 - "Parent": 0 10389 - }, 10390 - { 10391 - "Id": 163, 10392 - "Source": "MGS2022", 10393 - "Description": "", 10394 - "Parent": 0 10395 - }, 10396 - { 10397 - "Id": 171, 10398 - "Source": "MGS2023", 10399 - "Description": "", 10400 - "Parent": 0 10401 - }, 10402 - { 10403 - "Id": 179, 10404 - "Source": "Sugar Leads", 10405 - "Description": "", 10406 - "Parent": 0 10407 - }, 10408 - { 10409 - "Id": 187, 10410 - "Source": "seansbox", 10411 - "Description": "", 10412 - "Parent": 0 10413 - }, 10414 - { 10415 - "Id": 191, 10416 - "Source": "SEEITLIVE", 10417 - "Description": "Lunch & Learn Webinar Series with Special Partner Guests", 10418 - "Parent": 0 10419 - }, 10420 - { 10421 - "Id": 199, 10422 - "Source": "80-percent-conversion-rates", 10423 - "Description": "", 10424 - "Parent": 0 10425 - } 10426 - ] 10427 -} 10428 -{{/code}} 10429 - 10430 - 10431 -(% id="HGETspecificSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10432 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Source code(%%) == 10433 - 10434 ----- 10435 - 10436 -{{panel bgColor="#D3D3D3" width="100%"}} 10437 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}} 10438 -{{/panel}} 10439 - 10440 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10441 - 10442 ----- 10443 - 10444 -(% 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}} 10445 - 10446 -==== Example ==== 10447 - 10448 ----- 10449 - 10450 -(% style="color:#6b6b6b" %)Request 10451 - 10452 -{{code language="php" theme="RDark" title="Get specific Source Request"}} 10453 - <?php 10454 - 10455 -$curl = curl_init(); 10456 - 10457 -curl_setopt_array($curl, array( 10458 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}', 10459 - CURLOPT_RETURNTRANSFER => true, 10460 - CURLOPT_ENCODING => '', 10461 - CURLOPT_MAXREDIRS => 10, 10462 - CURLOPT_TIMEOUT => 0, 10463 - CURLOPT_FOLLOWLOCATION => true, 10464 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10465 - CURLOPT_CUSTOMREQUEST => 'GET', 10466 - CURLOPT_HTTPHEADER => array( 10467 - 'Appkey: {{ONECOUNT API KEY}}' 10468 - ), 10469 -)); 10470 - 10471 -$response = curl_exec($curl); 10472 - 10473 -curl_close($curl); 10474 -echo $response; 10475 -{{/code}} 10476 - 10477 - 10478 -(% style="color:#6b6b6b" %)Response 200 OK 10479 - 10480 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Source Response"}} 10481 - { 10482 - "result": { 10483 - "success": "1", 10484 - "error": { 10485 - "code": "", 10486 - "message": "" 10487 - } 10488 - }, 10489 - "Sources": [ 10490 - { 10491 - "Id": 26, 10492 - "Source": "GCN-Member", 10493 - "Description": "Uploaded from Reston VA", 10494 - "Parent": 0 10495 - } 10496 - ] 10497 -} 10498 -{{/code}} 10499 - 10500 - 10501 -(% id="HGETlookupSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10502 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Source code(%%) == 10503 - 10504 ----- 10505 - 10506 -{{panel bgColor="#D3D3D3" width="100%"}} 10507 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/lookup?Source={(%%){Source code Name}} 10508 -{{/panel}} 10509 - 10510 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10511 - 10512 ----- 10513 - 10514 -(% 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}} 10515 - 10516 -=== (% style="color:#212121" %)Query Params(%%) === 10517 - 10518 ----- 10519 - 10520 -(% 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}} 10521 - 10522 -==== Example ==== 10523 - 10524 ----- 10525 - 10526 -(% style="color:#6b6b6b" %)Request 10527 - 10528 -{{code language="php" theme="RDark" title="Lookup Source code Request"}} 10529 - <?php 10530 - 10531 -$curl = curl_init(); 10532 - 10533 -curl_setopt_array($curl, array( 10534 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/lookup?Source={{Source code Name}}', 10535 - CURLOPT_RETURNTRANSFER => true, 10536 - CURLOPT_ENCODING => '', 10537 - CURLOPT_MAXREDIRS => 10, 10538 - CURLOPT_TIMEOUT => 0, 10539 - CURLOPT_FOLLOWLOCATION => true, 10540 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10541 - CURLOPT_CUSTOMREQUEST => 'GET', 10542 - CURLOPT_HTTPHEADER => array( 10543 - 'Appkey: {{ONECOUNT API KEY}}' 10544 - ), 10545 -)); 10546 - 10547 -$response = curl_exec($curl); 10548 - 10549 -curl_close($curl); 10550 -echo $response; 10551 -{{/code}} 10552 - 10553 - 10554 -(% style="color:#6b6b6b" %)Response 200 OK 10555 - 10556 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Source code Response"}} 10557 - { 10558 - "result": { 10559 - "success": "1", 10560 - "error": { 10561 - "code": "", 10562 - "message": "" 10563 - } 10564 - }, 10565 - "Sources": [ 10566 - { 10567 - "Id": 26, 10568 - "Source": "GCN-Member", 10569 - "Description": "Uploaded from Reston VA", 10570 - "Parent": 0 10571 - } 10572 - ] 10573 -} 10574 -{{/code}} 10575 - 10576 - 10577 -(% id="HPOSTCreateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10578 -== (% 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(%%) == 10579 - 10580 ----- 10581 - 10582 -{{panel bgColor="#D3D3D3" width="100%"}} 10583 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources 10584 -{{/panel}} 10585 - 10586 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10587 - 10588 ----- 10589 - 10590 -(% 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}} 10591 - 10592 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10593 - 10594 ----- 10595 - 10596 -{{code language="yml" theme="RDark" title="Body"}} 10597 -{"Source":"Test source code from API"} 10598 -{{/code}} 10599 - 10600 -==== Example ==== 10601 - 10602 ----- 10603 - 10604 -(% style="color:#6b6b6b" %)Request 10605 - 10606 -{{code language="php" theme="RDark" title="Create Source code Request"}} 10607 - <?php 10608 - 10609 -$curl = curl_init(); 10610 - 10611 -curl_setopt_array($curl, array( 10612 - CURLOPT_URL => 'https://api.onecount.net/v2/sources', 10613 - CURLOPT_RETURNTRANSFER => true, 10614 - CURLOPT_ENCODING => '', 10615 - CURLOPT_MAXREDIRS => 10, 10616 - CURLOPT_TIMEOUT => 0, 10617 - CURLOPT_FOLLOWLOCATION => true, 10618 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10619 - CURLOPT_CUSTOMREQUEST => 'POST', 10620 - CURLOPT_POSTFIELDS =>'{"Source":"Test source code from API"}', 10621 - CURLOPT_HTTPHEADER => array( 10622 - 'Appkey: {{ONECOUNT API KEY}}' 10623 - ), 10624 -)); 10625 - 10626 -$response = curl_exec($curl); 10627 - 10628 -curl_close($curl); 10629 -echo $response; 10630 -{{/code}} 10631 - 10632 - 10633 -(% style="color:#6b6b6b" %)Response 200 OK 10634 - 10635 -{{code language="yml" theme="RDark" collapse="true" title="Create Source code Response"}} 10636 - { 10637 - "result": { 10638 - "success": "1", 10639 - "error": { 10640 - "code": "", 10641 - "message": "" 10642 - } 10643 - }, 10644 - "Sources": [ 10645 - { 10646 - "Id": 223, 10647 - "Source": "Test source code from API", 10648 - "Description": "", 10649 - "Parent": 0 10650 - } 10651 - ] 10652 -} 10653 -{{/code}} 10654 - 10655 - 10656 -(% id="HPUTUpdateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10657 -== (% 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(%%) == 10658 - 10659 ----- 10660 - 10661 -{{panel bgColor="#D3D3D3" width="100%"}} 10662 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}} 10663 -{{/panel}} 10664 - 10665 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10666 - 10667 ----- 10668 - 10669 -(% 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}} 10670 - 10671 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10672 - 10673 ----- 10674 - 10675 -{{code language="yml" theme="RDark" title="Body"}} 10676 -{"Source":"Test API","Parent":215} 10677 -{{/code}} 10678 - 10679 -==== Example ==== 10680 - 10681 ----- 10682 - 10683 -(% style="color:#6b6b6b" %)Request 10684 - 10685 -{{code language="php" theme="RDark" title="Update Source code Request"}} 10686 - <?php 10687 - 10688 -$curl = curl_init(); 10689 - 10690 -curl_setopt_array($curl, array( 10691 - CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}', 10692 - CURLOPT_RETURNTRANSFER => true, 10693 - CURLOPT_ENCODING => '', 10694 - CURLOPT_MAXREDIRS => 10, 10695 - CURLOPT_TIMEOUT => 0, 10696 - CURLOPT_FOLLOWLOCATION => true, 10697 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10698 - CURLOPT_CUSTOMREQUEST => 'PUT', 10699 - CURLOPT_POSTFIELDS =>'{"Source":"Test API","Parent":215}', 10700 - CURLOPT_HTTPHEADER => array( 10701 - 'Appkey: {{ONECOUNT API KEY}}' 10702 - ), 10703 -)); 10704 - 10705 -$response = curl_exec($curl); 10706 - 10707 -curl_close($curl); 10708 -echo $response; 10709 -{{/code}} 10710 - 10711 - 10712 -(% style="color:#6b6b6b" %)Response 200 OK 10713 - 10714 -{{code language="yml" theme="RDark" collapse="true" title="Update Source code Response"}} 10715 - { 10716 - "result": { 10717 - "success": "1", 10718 - "error": { 10719 - "code": "", 10720 - "message": "" 10721 - } 10722 - }, 10723 - "Sources": [ 10724 - { 10725 - "Id": 223, 10726 - "Source": "Test API", 10727 - "Description": "", 10728 - "Parent": 215 10729 - } 10730 - ] 10731 -} 10732 -{{/code}} 10733 - 10734 - 10735 -(% id="HCOMPONENT:Transactions" class="western" %) 10736 -=== **COMPONENT: Transactions** === 10737 - 10738 10738 (% class="western" %) 10739 - This resourceisfor manipulatingtransactions resource.Atransactioncanbecreated orsearched.3075 +**Sources can be looked up given the code or Id. GET method should be used for lookup.** 10740 10740 10741 -(% class="wrapped" %) 10742 -|(% 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;" %) 10743 10743 ((( 10744 10744 (% class="western" %) 10745 -** Method**10746 -)))|(% style="text-align:left; 3080 +**Request** 3081 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10747 10747 ((( 10748 10748 (% class="western" %) 10749 -** Url**10750 -)))|(% style="text-align:left; 3084 +**Type** 3085 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10751 10751 ((( 10752 10752 (% class="western" %) 10753 -** Action**3088 +**Description** 10754 10754 ))) 10755 -|(% style="text-align:left; 3090 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10756 10756 ((( 10757 10757 (% class="western" %) 10758 - GET10759 -)))|(% style="text-align:left; 3093 +Lookup params 3094 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10760 10760 ((( 10761 10761 (% class="western" %) 10762 - /transactions10763 -)))|(% style="text-align:left; 3097 +String 3098 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10764 10764 ((( 10765 10765 (% class="western" %) 10766 -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) 10767 10767 ))) 10768 -|(% 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;" %) 10769 10769 ((( 10770 10770 (% class="western" %) 10771 - GET10772 -)))|(% style="text-align:left; 3113 +**Response** 3114 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10773 10773 ((( 10774 10774 (% class="western" %) 10775 - /transactions/lookup?UserId=110776 -)))|(% style="text-align:left; 3117 +**Type** 3118 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10777 10777 ((( 10778 10778 (% class="western" %) 10779 - Lookup all transactionof UserId = 13121 +**Description** 10780 10780 ))) 10781 -|(% style="text-align:left; 3123 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10782 10782 ((( 10783 10783 (% class="western" %) 10784 - POST10785 -)))|(% style="text-align:left; 3126 +Sources 3127 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10786 10786 ((( 10787 10787 (% class="western" %) 10788 - /transactions10789 -)))|(% style="text-align:left; 3130 +Sources 3131 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10790 10790 ((( 10791 10791 (% class="western" %) 10792 - JSON of theTransactionstypeobjectneedstobesents post data. Id fieldshould not be sent.3134 +Returns found source details. 10793 10793 ))) 10794 10794 10795 -(% id="HGETAllTransactions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10796 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Transactions(%%) == 3137 +\\ 10797 10797 10798 ----- 3139 +(% class="western" %) 3140 +\\ 10799 10799 10800 ----- 10801 - 10802 -{{panel bgColor="#D3D3D3" width="100%"}} 10803 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions 10804 -{{/panel}} 10805 - 10806 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10807 - 10808 ----- 10809 - 10810 -(% 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}} 10811 - 10812 -==== Example ==== 10813 - 10814 ----- 10815 - 10816 -(% style="color:#6b6b6b" %)Request 10817 - 10818 -{{code language="php" theme="RDark" title="Get All Transaction Request"}} 10819 - <?php 10820 - 10821 -$curl = curl_init(); 10822 - 10823 -curl_setopt_array($curl, array( 10824 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions', 10825 - CURLOPT_RETURNTRANSFER => true, 10826 - CURLOPT_ENCODING => '', 10827 - CURLOPT_MAXREDIRS => 10, 10828 - CURLOPT_TIMEOUT => 0, 10829 - CURLOPT_FOLLOWLOCATION => true, 10830 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10831 - CURLOPT_CUSTOMREQUEST => 'GET', 10832 - CURLOPT_HTTPHEADER => array( 10833 - 'Appkey: {{ONECOUNT API KEY}}' 10834 - ), 10835 -)); 10836 - 10837 -$response = curl_exec($curl); 10838 - 10839 -curl_close($curl); 10840 -echo $response; 10841 -{{/code}} 10842 - 10843 - 10844 -(% style="color:#6b6b6b" %)Response 200 OK 10845 - 10846 -{{code language="yml" theme="RDark" collapse="true" title="Get All Transaction Response"}} 10847 - { 10848 - "result": { 10849 - "success": "1", 10850 - "error": { 10851 - "code": "", 10852 - "message": "" 10853 - } 10854 - }, 10855 - "Transactions": [ 10856 - { 10857 - "Id": 10, 10858 - "UserId": 10, 10859 - "TermId": 2, 10860 - "TransactionDate": "2014-07-17", 10861 - "TransactionTime": "10:02:13", 10862 - "RequestDate": "2014-07-17", 10863 - "UserIP": "74.201.38.1", 10864 - "SubscriptionType": "n", 10865 - "ProductId": 2, 10866 - "Source": 10, 10867 - "ProductStatus": 2, 10868 - "MediaFilePath": "", 10869 - "Amount": "" 10870 - }, 10871 - { 10872 - "Id": 26, 10873 - "UserId": 10, 10874 - "TermId": 2, 10875 - "TransactionDate": "2014-07-17", 10876 - "TransactionTime": "10:41:59", 10877 - "RequestDate": "2014-07-17", 10878 - "UserIP": "74.201.38.1", 10879 - "SubscriptionType": "r", 10880 - "ProductId": 2, 10881 - "Source": 10, 10882 - "ProductStatus": 2, 10883 - "MediaFilePath": "", 10884 - "Amount": "" 10885 - }, 10886 - { 10887 - "Id": 50, 10888 - "UserId": 26, 10889 - "TermId": 2, 10890 - "TransactionDate": "2014-07-17", 10891 - "TransactionTime": "12:25:38", 10892 - "RequestDate": "2014-07-17", 10893 - "UserIP": "74.201.38.1", 10894 - "SubscriptionType": "n", 10895 - "ProductId": 2, 10896 - "Source": 10, 10897 - "ProductStatus": 2, 10898 - "MediaFilePath": "", 10899 - "Amount": "" 10900 - }, 10901 - { 10902 - "Id": 58, 10903 - "UserId": 10, 10904 - "TermId": 2, 10905 - "TransactionDate": "2014-07-17", 10906 - "TransactionTime": "12:25:43", 10907 - "RequestDate": "2014-07-17", 10908 - "UserIP": "74.201.38.1", 10909 - "SubscriptionType": "r", 10910 - "ProductId": 2, 10911 - "Source": 10, 10912 - "ProductStatus": 2, 10913 - "MediaFilePath": "", 10914 - "Amount": "" 10915 - }, 10916 - { 10917 - "Id": 66, 10918 - "UserId": 42, 10919 - "TermId": 2, 10920 - "TransactionDate": "2014-07-17", 10921 - "TransactionTime": "12:57:11", 10922 - "RequestDate": "2014-07-17", 10923 - "UserIP": "74.201.38.1", 10924 - "SubscriptionType": "n", 10925 - "ProductId": 2, 10926 - "Source": 26, 10927 - "ProductStatus": 2, 10928 - "MediaFilePath": "", 10929 - "Amount": "" 10930 - }, 10931 - { 10932 - "Id": 74, 10933 - "UserId": 50, 10934 - "TermId": 2, 10935 - "TransactionDate": "2014-07-17", 10936 - "TransactionTime": "12:57:11", 10937 - "RequestDate": "2014-07-17", 10938 - "UserIP": "74.201.38.1", 10939 - "SubscriptionType": "n", 10940 - "ProductId": 2, 10941 - "Source": 26, 10942 - "ProductStatus": 2, 10943 - "MediaFilePath": "", 10944 - "Amount": "" 10945 - }, 10946 - { 10947 - "Id": 82, 10948 - "UserId": 58, 10949 - "TermId": 2, 10950 - "TransactionDate": "2014-07-17", 10951 - "TransactionTime": "12:57:11", 10952 - "RequestDate": "2014-07-17", 10953 - "UserIP": "74.201.38.1", 10954 - "SubscriptionType": "n", 10955 - "ProductId": 2, 10956 - "Source": 26, 10957 - "ProductStatus": 2, 10958 - "MediaFilePath": "", 10959 - "Amount": "" 10960 - }, 10961 - { 10962 - "Id": 90, 10963 - "UserId": 66, 10964 - "TermId": 2, 10965 - "TransactionDate": "2014-07-17", 10966 - "TransactionTime": "12:57:11", 10967 - "RequestDate": "2014-07-17", 10968 - "UserIP": "74.201.38.1", 10969 - "SubscriptionType": "n", 10970 - "ProductId": 2, 10971 - "Source": 26, 10972 - "ProductStatus": 2, 10973 - "MediaFilePath": "", 10974 - "Amount": "" 10975 - }, 10976 - { 10977 - "Id": 98, 10978 - "UserId": 74, 10979 - "TermId": 2, 10980 - "TransactionDate": "2014-07-17", 10981 - "TransactionTime": "12:57:11", 10982 - "RequestDate": "2014-07-17", 10983 - "UserIP": "74.201.38.1", 10984 - "SubscriptionType": "n", 10985 - "ProductId": 2, 10986 - "Source": 26, 10987 - "ProductStatus": 2, 10988 - "MediaFilePath": "", 10989 - "Amount": "" 10990 - }, 10991 - { 10992 - "Id": 106, 10993 - "UserId": 82, 10994 - "TermId": 2, 10995 - "TransactionDate": "2014-07-17", 10996 - "TransactionTime": "12:57:11", 10997 - "RequestDate": "2014-07-17", 10998 - "UserIP": "74.201.38.1", 10999 - "SubscriptionType": "n", 11000 - "ProductId": 2, 11001 - "Source": 26, 11002 - "ProductStatus": 2, 11003 - "MediaFilePath": "", 11004 - "Amount": "" 11005 - }, 11006 - { 11007 - "Id": 114, 11008 - "UserId": 90, 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": 122, 11023 - "UserId": 98, 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": 130, 11038 - "UserId": 42, 11039 - "TermId": 2, 11040 - "TransactionDate": "2014-07-17", 11041 - "TransactionTime": "12:59:10", 11042 - "RequestDate": "2014-07-17", 11043 - "UserIP": "74.201.38.1", 11044 - "SubscriptionType": "r", 11045 - "ProductId": 2, 11046 - "Source": 10, 11047 - "ProductStatus": 2, 11048 - "MediaFilePath": "", 11049 - "Amount": "" 11050 - }, 11051 - { 11052 - "Id": 138, 11053 - "UserId": 50, 11054 - "TermId": 2, 11055 - "TransactionDate": "2014-07-17", 11056 - "TransactionTime": "12:59:10", 11057 - "RequestDate": "2014-07-17", 11058 - "UserIP": "74.201.38.1", 11059 - "SubscriptionType": "r", 11060 - "ProductId": 2, 11061 - "Source": 10, 11062 - "ProductStatus": 2, 11063 - "MediaFilePath": "", 11064 - "Amount": "" 11065 - }, 11066 - { 11067 - "Id": 146, 11068 - "UserId": 58, 11069 - "TermId": 2, 11070 - "TransactionDate": "2014-07-17", 11071 - "TransactionTime": "12:59:10", 11072 - "RequestDate": "2014-07-17", 11073 - "UserIP": "74.201.38.1", 11074 - "SubscriptionType": "r", 11075 - "ProductId": 2, 11076 - "Source": 10, 11077 - "ProductStatus": 2, 11078 - "MediaFilePath": "", 11079 - "Amount": "" 11080 - }, 11081 - { 11082 - "Id": 154, 11083 - "UserId": 66, 11084 - "TermId": 2, 11085 - "TransactionDate": "2014-07-17", 11086 - "TransactionTime": "12:59:10", 11087 - "RequestDate": "2014-07-17", 11088 - "UserIP": "74.201.38.1", 11089 - "SubscriptionType": "r", 11090 - "ProductId": 2, 11091 - "Source": 10, 11092 - "ProductStatus": 2, 11093 - "MediaFilePath": "", 11094 - "Amount": "" 11095 - }, 11096 - { 11097 - "Id": 162, 11098 - "UserId": 74, 11099 - "TermId": 2, 11100 - "TransactionDate": "2014-07-17", 11101 - "TransactionTime": "12:59:10", 11102 - "RequestDate": "2014-07-17", 11103 - "UserIP": "74.201.38.1", 11104 - "SubscriptionType": "r", 11105 - "ProductId": 2, 11106 - "Source": 10, 11107 - "ProductStatus": 2, 11108 - "MediaFilePath": "", 11109 - "Amount": "" 11110 - }, 11111 - { 11112 - "Id": 170, 11113 - "UserId": 82, 11114 - "TermId": 2, 11115 - "TransactionDate": "2014-07-17", 11116 - "TransactionTime": "12:59:10", 11117 - "RequestDate": "2014-07-17", 11118 - "UserIP": "74.201.38.1", 11119 - "SubscriptionType": "r", 11120 - "ProductId": 2, 11121 - "Source": 10, 11122 - "ProductStatus": 2, 11123 - "MediaFilePath": "", 11124 - "Amount": "" 11125 - }, 11126 - { 11127 - "Id": 178, 11128 - "UserId": 90, 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": 186, 11143 - "UserId": 98, 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": 194, 11158 - "UserId": 162, 11159 - "TermId": 2, 11160 - "TransactionDate": "2014-07-17", 11161 - "TransactionTime": "13:00:42", 11162 - "RequestDate": "2014-07-17", 11163 - "UserIP": "74.201.38.1", 11164 - "SubscriptionType": "n", 11165 - "ProductId": 2, 11166 - "Source": 10, 11167 - "ProductStatus": 2, 11168 - "MediaFilePath": "", 11169 - "Amount": "" 11170 - }, 11171 - { 11172 - "Id": 202, 11173 - "UserId": 170, 11174 - "TermId": 2, 11175 - "TransactionDate": "2014-07-17", 11176 - "TransactionTime": "13:00:42", 11177 - "RequestDate": "2014-07-17", 11178 - "UserIP": "74.201.38.1", 11179 - "SubscriptionType": "n", 11180 - "ProductId": 2, 11181 - "Source": 10, 11182 - "ProductStatus": 2, 11183 - "MediaFilePath": "", 11184 - "Amount": "" 11185 - }, 11186 - { 11187 - "Id": 210, 11188 - "UserId": 178, 11189 - "TermId": 2, 11190 - "TransactionDate": "2014-07-17", 11191 - "TransactionTime": "13:00:42", 11192 - "RequestDate": "2014-07-17", 11193 - "UserIP": "74.201.38.1", 11194 - "SubscriptionType": "n", 11195 - "ProductId": 2, 11196 - "Source": 10, 11197 - "ProductStatus": 2, 11198 - "MediaFilePath": "", 11199 - "Amount": "" 11200 - }, 11201 - { 11202 - "Id": 218, 11203 - "UserId": 186, 11204 - "TermId": 2, 11205 - "TransactionDate": "2014-07-17", 11206 - "TransactionTime": "13:00:42", 11207 - "RequestDate": "2014-07-17", 11208 - "UserIP": "74.201.38.1", 11209 - "SubscriptionType": "n", 11210 - "ProductId": 2, 11211 - "Source": 10, 11212 - "ProductStatus": 2, 11213 - "MediaFilePath": "", 11214 - "Amount": "" 11215 - }, 11216 - { 11217 - "Id": 226, 11218 - "UserId": 194, 11219 - "TermId": 2, 11220 - "TransactionDate": "2014-07-17", 11221 - "TransactionTime": "13:00:42", 11222 - "RequestDate": "2014-07-17", 11223 - "UserIP": "74.201.38.1", 11224 - "SubscriptionType": "n", 11225 - "ProductId": 2, 11226 - "Source": 10, 11227 - "ProductStatus": 2, 11228 - "MediaFilePath": "", 11229 - "Amount": "" 11230 - }, 11231 - { 11232 - "Id": 234, 11233 - "UserId": 202, 11234 - "TermId": 2, 11235 - "TransactionDate": "2014-07-17", 11236 - "TransactionTime": "13:00:42", 11237 - "RequestDate": "2014-07-17", 11238 - "UserIP": "74.201.38.1", 11239 - "SubscriptionType": "n", 11240 - "ProductId": 2, 11241 - "Source": 10, 11242 - "ProductStatus": 2, 11243 - "MediaFilePath": "", 11244 - "Amount": "" 11245 - }, 11246 - { 11247 - "Id": 242, 11248 - "UserId": 210, 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": 250, 11263 - "UserId": 218, 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": 258, 11278 - "UserId": 282, 11279 - "TermId": 2, 11280 - "TransactionDate": "2014-07-17", 11281 - "TransactionTime": "13:02:19", 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": 266, 11293 - "UserId": 290, 11294 - "TermId": 2, 11295 - "TransactionDate": "2014-07-17", 11296 - "TransactionTime": "13:02:19", 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": 274, 11308 - "UserId": 298, 11309 - "TermId": 2, 11310 - "TransactionDate": "2014-07-17", 11311 - "TransactionTime": "13:02:19", 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": 282, 11323 - "UserId": 306, 11324 - "TermId": 2, 11325 - "TransactionDate": "2014-07-17", 11326 - "TransactionTime": "13:02:19", 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": 290, 11338 - "UserId": 314, 11339 - "TermId": 2, 11340 - "TransactionDate": "2014-07-17", 11341 - "TransactionTime": "13:02:19", 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": 298, 11353 - "UserId": 322, 11354 - "TermId": 2, 11355 - "TransactionDate": "2014-07-17", 11356 - "TransactionTime": "13:02:19", 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": 306, 11368 - "UserId": 330, 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": 466, 11383 - "UserId": 698, 11384 - "TermId": 2, 11385 - "TransactionDate": "2014-07-17", 11386 - "TransactionTime": "13:13:06", 11387 - "RequestDate": "2014-07-17", 11388 - "UserIP": "74.201.38.1", 11389 - "SubscriptionType": "n", 11390 - "ProductId": 2, 11391 - "Source": 26, 11392 - "ProductStatus": 2, 11393 - "MediaFilePath": "", 11394 - "Amount": "" 11395 - }, 11396 - { 11397 - "Id": 474, 11398 - "UserId": 706, 11399 - "TermId": 2, 11400 - "TransactionDate": "2014-07-17", 11401 - "TransactionTime": "13:13:06", 11402 - "RequestDate": "2014-07-17", 11403 - "UserIP": "74.201.38.1", 11404 - "SubscriptionType": "n", 11405 - "ProductId": 2, 11406 - "Source": 26, 11407 - "ProductStatus": 2, 11408 - "MediaFilePath": "", 11409 - "Amount": "" 11410 - }, 11411 - { 11412 - "Id": 482, 11413 - "UserId": 714, 11414 - "TermId": 2, 11415 - "TransactionDate": "2014-07-17", 11416 - "TransactionTime": "13:13:06", 11417 - "RequestDate": "2014-07-17", 11418 - "UserIP": "74.201.38.1", 11419 - "SubscriptionType": "n", 11420 - "ProductId": 2, 11421 - "Source": 26, 11422 - "ProductStatus": 2, 11423 - "MediaFilePath": "", 11424 - "Amount": "" 11425 - }, 11426 - { 11427 - "Id": 490, 11428 - "UserId": 722, 11429 - "TermId": 2, 11430 - "TransactionDate": "2014-07-17", 11431 - "TransactionTime": "13:13:06", 11432 - "RequestDate": "2014-07-17", 11433 - "UserIP": "74.201.38.1", 11434 - "SubscriptionType": "n", 11435 - "ProductId": 2, 11436 - "Source": 26, 11437 - "ProductStatus": 2, 11438 - "MediaFilePath": "", 11439 - "Amount": "" 11440 - }, 11441 - { 11442 - "Id": 498, 11443 - "UserId": 730, 11444 - "TermId": 2, 11445 - "TransactionDate": "2014-07-17", 11446 - "TransactionTime": "13:13:06", 11447 - "RequestDate": "2014-07-17", 11448 - "UserIP": "74.201.38.1", 11449 - "SubscriptionType": "n", 11450 - "ProductId": 2, 11451 - "Source": 26, 11452 - "ProductStatus": 2, 11453 - "MediaFilePath": "", 11454 - "Amount": "" 11455 - }, 11456 - { 11457 - "Id": 506, 11458 - "UserId": 738, 11459 - "TermId": 2, 11460 - "TransactionDate": "2014-07-17", 11461 - "TransactionTime": "13:13:06", 11462 - "RequestDate": "2014-07-17", 11463 - "UserIP": "74.201.38.1", 11464 - "SubscriptionType": "n", 11465 - "ProductId": 2, 11466 - "Source": 26, 11467 - "ProductStatus": 2, 11468 - "MediaFilePath": "", 11469 - "Amount": "" 11470 - }, 11471 - { 11472 - "Id": 522, 11473 - "UserId": 754, 11474 - "TermId": 18, 11475 - "TransactionDate": "2014-08-19", 11476 - "TransactionTime": "11:18:55", 11477 - "RequestDate": "2014-08-19", 11478 - "UserIP": "74.201.38.1", 11479 - "SubscriptionType": "n", 11480 - "ProductId": 18, 11481 - "Source": 34, 11482 - "ProductStatus": 2, 11483 - "MediaFilePath": "", 11484 - "Amount": "" 11485 - }, 11486 - { 11487 - "Id": 530, 11488 - "UserId": 762, 11489 - "TermId": 18, 11490 - "TransactionDate": "2014-08-19", 11491 - "TransactionTime": "11:18:55", 11492 - "RequestDate": "2014-08-19", 11493 - "UserIP": "74.201.38.1", 11494 - "SubscriptionType": "n", 11495 - "ProductId": 18, 11496 - "Source": 34, 11497 - "ProductStatus": 2, 11498 - "MediaFilePath": "", 11499 - "Amount": "" 11500 - }, 11501 - { 11502 - "Id": 538, 11503 - "UserId": 770, 11504 - "TermId": 18, 11505 - "TransactionDate": "2014-08-19", 11506 - "TransactionTime": "11:18:55", 11507 - "RequestDate": "2014-08-19", 11508 - "UserIP": "74.201.38.1", 11509 - "SubscriptionType": "n", 11510 - "ProductId": 18, 11511 - "Source": 34, 11512 - "ProductStatus": 2, 11513 - "MediaFilePath": "", 11514 - "Amount": "" 11515 - }, 11516 - { 11517 - "Id": 546, 11518 - "UserId": 778, 11519 - "TermId": 18, 11520 - "TransactionDate": "2014-08-19", 11521 - "TransactionTime": "11:18:55", 11522 - "RequestDate": "2014-08-19", 11523 - "UserIP": "74.201.38.1", 11524 - "SubscriptionType": "n", 11525 - "ProductId": 18, 11526 - "Source": 34, 11527 - "ProductStatus": 2, 11528 - "MediaFilePath": "", 11529 - "Amount": "" 11530 - }, 11531 - { 11532 - "Id": 554, 11533 - "UserId": 786, 11534 - "TermId": 18, 11535 - "TransactionDate": "2014-08-19", 11536 - "TransactionTime": "11:18:55", 11537 - "RequestDate": "2014-08-19", 11538 - "UserIP": "74.201.38.1", 11539 - "SubscriptionType": "n", 11540 - "ProductId": 18, 11541 - "Source": 34, 11542 - "ProductStatus": 2, 11543 - "MediaFilePath": "", 11544 - "Amount": "" 11545 - }, 11546 - { 11547 - "Id": 570, 11548 - "UserId": 802, 11549 - "TermId": 18, 11550 - "TransactionDate": "2014-08-19", 11551 - "TransactionTime": "11:18:55", 11552 - "RequestDate": "2014-08-19", 11553 - "UserIP": "74.201.38.1", 11554 - "SubscriptionType": "n", 11555 - "ProductId": 18, 11556 - "Source": 34, 11557 - "ProductStatus": 2, 11558 - "MediaFilePath": "", 11559 - "Amount": "" 11560 - }, 11561 - { 11562 - "Id": 578, 11563 - "UserId": 810, 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": 586, 11578 - "UserId": 818, 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": 602, 11593 - "UserId": 834, 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": 610, 11608 - "UserId": 842, 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": 618, 11623 - "UserId": 850, 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": 626, 11638 - "UserId": 858, 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": 634, 11653 - "UserId": 866, 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": 642, 11668 - "UserId": 874, 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": 650, 11683 - "UserId": 882, 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": 658, 11698 - "UserId": 890, 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": 666, 11713 - "UserId": 898, 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": 674, 11728 - "UserId": 906, 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": 682, 11743 - "UserId": 914, 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": 690, 11758 - "UserId": 922, 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": 698, 11773 - "UserId": 930, 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": 706, 11788 - "UserId": 938, 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": 714, 11803 - "UserId": 946, 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": 722, 11818 - "UserId": 954, 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": 730, 11833 - "UserId": 962, 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": 738, 11848 - "UserId": 970, 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": 746, 11863 - "UserId": 978, 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": 754, 11878 - "UserId": 986, 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": 762, 11893 - "UserId": 994, 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": 770, 11908 - "UserId": 1002, 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": 778, 11923 - "UserId": 1010, 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": 786, 11938 - "UserId": 1018, 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": 794, 11953 - "UserId": 1026, 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": 802, 11968 - "UserId": 1034, 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": 810, 11983 - "UserId": 1042, 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": 818, 11998 - "UserId": 1050, 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": 826, 12013 - "UserId": 1058, 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": 834, 12028 - "UserId": 1066, 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": 842, 12043 - "UserId": 1074, 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": 850, 12058 - "UserId": 1082, 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": 858, 12073 - "UserId": 1090, 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": 866, 12088 - "UserId": 1098, 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": 874, 12103 - "UserId": 1106, 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": 882, 12118 - "UserId": 1114, 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": 890, 12133 - "UserId": 1122, 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": 898, 12148 - "UserId": 1130, 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": 906, 12163 - "UserId": 1138, 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": 914, 12178 - "UserId": 1146, 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": 922, 12193 - "UserId": 1154, 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": 930, 12208 - "UserId": 1162, 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": 938, 12223 - "UserId": 1170, 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": 946, 12238 - "UserId": 1178, 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": 954, 12253 - "UserId": 1186, 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": 962, 12268 - "UserId": 1194, 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": 970, 12283 - "UserId": 1202, 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": 978, 12298 - "UserId": 1210, 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": 986, 12313 - "UserId": 1218, 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": 994, 12328 - "UserId": 1226, 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": 1002, 12343 - "UserId": 1234, 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 -} 12358 -{{/code}} 12359 - 12360 - 12361 -(% id="HGETspecificTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12362 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Transaction(%%) == 12363 - 12364 ----- 12365 - 12366 -{{panel bgColor="#D3D3D3" width="100%"}} 12367 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/~{~{Transaction id}} 12368 -{{/panel}} 12369 - 12370 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12371 - 12372 ----- 12373 - 12374 -(% 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}} 12375 - 12376 -==== Example ==== 12377 - 12378 ----- 12379 - 12380 -(% style="color:#6b6b6b" %)Request 12381 - 12382 -{{code language="php" theme="RDark" title="Get specific Transaction Request"}} 12383 - <?php 12384 - 12385 -$curl = curl_init(); 12386 - 12387 -curl_setopt_array($curl, array( 12388 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions/{{Transaction id}}', 12389 - CURLOPT_RETURNTRANSFER => true, 12390 - CURLOPT_ENCODING => '', 12391 - CURLOPT_MAXREDIRS => 10, 12392 - CURLOPT_TIMEOUT => 0, 12393 - CURLOPT_FOLLOWLOCATION => true, 12394 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12395 - CURLOPT_CUSTOMREQUEST => 'GET', 12396 - CURLOPT_HTTPHEADER => array( 12397 - 'Appkey: {{ONECOUNT API KEY}}' 12398 - ), 12399 -)); 12400 - 12401 -$response = curl_exec($curl); 12402 - 12403 -curl_close($curl); 12404 -echo $response; 12405 -{{/code}} 12406 - 12407 - 12408 -(% style="color:#6b6b6b" %)Response 200 OK 12409 - 12410 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Transaction Response"}} 12411 - { 12412 - "result": { 12413 - "success": "1", 12414 - "error": { 12415 - "code": "", 12416 - "message": "" 12417 - } 12418 - }, 12419 - "Transactions": [ 12420 - { 12421 - "Id": 1002, 12422 - "UserId": 1234, 12423 - "TermId": 18, 12424 - "TransactionDate": "2014-08-19", 12425 - "TransactionTime": "11:18:55", 12426 - "RequestDate": "2014-08-19", 12427 - "UserIP": "74.201.38.1", 12428 - "SubscriptionType": "n", 12429 - "ProductId": 18, 12430 - "Source": 34, 12431 - "ProductStatus": 2, 12432 - "MediaFilePath": "", 12433 - "Amount": "" 12434 - } 12435 - ] 12436 -} 12437 -{{/code}} 12438 - 12439 - 12440 -(% id="HGETlookupTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12441 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Transaction(%%) == 12442 - 12443 ----- 12444 - 12445 -{{panel bgColor="#D3D3D3" width="100%"}} 12446 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/lookup?UserId=~{~{OCID}} 12447 -{{/panel}} 12448 - 12449 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12450 - 12451 ----- 12452 - 12453 -(% 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}} 12454 - 12455 -=== (% style="color:#212121" %)Query Params(%%) === 12456 - 12457 ----- 12458 - 12459 -(% 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}} 12460 - 12461 -==== Example ==== 12462 - 12463 ----- 12464 - 12465 -(% style="color:#6b6b6b" %)Request 12466 - 12467 -{{code language="php" theme="RDark" title="Lookup Transaction Request"}} 12468 - <?php 12469 - 12470 -$curl = curl_init(); 12471 - 12472 -curl_setopt_array($curl, array( 12473 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions/lookup?UserId={{OCID}}', 12474 - CURLOPT_RETURNTRANSFER => true, 12475 - CURLOPT_ENCODING => '', 12476 - CURLOPT_MAXREDIRS => 10, 12477 - CURLOPT_TIMEOUT => 0, 12478 - CURLOPT_FOLLOWLOCATION => true, 12479 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12480 - CURLOPT_CUSTOMREQUEST => 'GET', 12481 - CURLOPT_HTTPHEADER => array( 12482 - 'Appkey: {{ONECOUNT API KEY}}' 12483 - ), 12484 -)); 12485 - 12486 -$response = curl_exec($curl); 12487 - 12488 -curl_close($curl); 12489 -echo $response; 12490 -{{/code}} 12491 - 12492 - 12493 -(% style="color:#6b6b6b" %)Response 200 OK 12494 - 12495 -{{code language="yml" theme="RDark" collapse="true" title="Lookup Transaction Response"}} 12496 - { 12497 - "result": { 12498 - "success": "1", 12499 - "error": { 12500 - "code": "", 12501 - "message": "" 12502 - } 12503 - }, 12504 - "Transactions": [ 12505 - { 12506 - "Id": 52494786, 12507 - "UserId": 1234, 12508 - "TermId": 34, 12509 - "TransactionDate": "2016-01-19", 12510 - "TransactionTime": "15:30:04", 12511 - "RequestDate": "2016-01-19", 12512 - "UserIP": "12.226.247.2", 12513 - "SubscriptionType": "u", 12514 - "ProductId": 34, 12515 - "Source": 0, 12516 - "ProductStatus": 0, 12517 - "MediaFilePath": "", 12518 - "Amount": "" 12519 - }, 12520 - { 12521 - "Id": 42654041, 12522 - "UserId": 1234, 12523 - "TermId": 34, 12524 - "TransactionDate": "2015-09-09", 12525 - "TransactionTime": "11:20:39", 12526 - "RequestDate": "2015-09-09", 12527 - "UserIP": "24.187.236.98", 12528 - "SubscriptionType": "n", 12529 - "ProductId": 34, 12530 - "Source": 0, 12531 - "ProductStatus": 2, 12532 - "MediaFilePath": "", 12533 - "Amount": "" 12534 - }, 12535 - { 12536 - "Id": 97251022, 12537 - "UserId": 1234, 12538 - "TermId": 34, 12539 - "TransactionDate": "2015-06-04", 12540 - "TransactionTime": "14:59:42", 12541 - "RequestDate": "2015-06-04", 12542 - "UserIP": "12.226.247.2", 12543 - "SubscriptionType": "u", 12544 - "ProductId": 34, 12545 - "Source": 0, 12546 - "ProductStatus": 0, 12547 - "MediaFilePath": "", 12548 - "Amount": "" 12549 - }, 12550 - { 12551 - "Id": 55492559, 12552 - "UserId": 1234, 12553 - "TermId": 34, 12554 - "TransactionDate": "2015-04-03", 12555 - "TransactionTime": "16:32:04", 12556 - "RequestDate": "2015-04-03", 12557 - "UserIP": "24.187.236.98", 12558 - "SubscriptionType": "r", 12559 - "ProductId": 34, 12560 - "Source": 58, 12561 - "ProductStatus": 106, 12562 - "MediaFilePath": "", 12563 - "Amount": "" 12564 - }, 12565 - { 12566 - "Id": 98173391, 12567 - "UserId": 1234, 12568 - "TermId": 34, 12569 - "TransactionDate": "2015-04-03", 12570 - "TransactionTime": "15:50:45", 12571 - "RequestDate": "2014-08-19", 12572 - "UserIP": "24.187.236.98", 12573 - "SubscriptionType": "n", 12574 - "ProductId": 34, 12575 - "Source": 34, 12576 - "ProductStatus": 106, 12577 - "MediaFilePath": "", 12578 - "Amount": "" 12579 - }, 12580 - { 12581 - "Id": 91711793, 12582 - "UserId": 1234, 12583 - "TermId": 18, 12584 - "TransactionDate": "2015-04-27", 12585 - "TransactionTime": "14:24:51", 12586 - "RequestDate": "2015-04-27", 12587 - "UserIP": "24.187.236.98", 12588 - "SubscriptionType": "u", 12589 - "ProductId": 18, 12590 - "Source": 0, 12591 - "ProductStatus": 106, 12592 - "MediaFilePath": "", 12593 - "Amount": "" 12594 - }, 12595 - { 12596 - "Id": 74936400, 12597 - "UserId": 1234, 12598 - "TermId": 18, 12599 - "TransactionDate": "2015-04-27", 12600 - "TransactionTime": "12:35:18", 12601 - "RequestDate": "2015-04-27", 12602 - "UserIP": "68.196.187.74", 12603 - "SubscriptionType": "n", 12604 - "ProductId": 18, 12605 - "Source": 34, 12606 - "ProductStatus": 106, 12607 - "MediaFilePath": "", 12608 - "Amount": "" 12609 - }, 12610 - { 12611 - "Id": 21664714, 12612 - "UserId": 1234, 12613 - "TermId": 18, 12614 - "TransactionDate": "2015-04-03", 12615 - "TransactionTime": "15:50:46", 12616 - "RequestDate": "2015-04-03", 12617 - "UserIP": "24.187.236.98", 12618 - "SubscriptionType": "u", 12619 - "ProductId": 18, 12620 - "Source": 0, 12621 - "ProductStatus": 2, 12622 - "MediaFilePath": "", 12623 - "Amount": "" 12624 - }, 12625 - { 12626 - "Id": 81129263, 12627 - "UserId": 1234, 12628 - "TermId": 18, 12629 - "TransactionDate": "2014-08-19", 12630 - "TransactionTime": "11:18:55", 12631 - "RequestDate": "2014-08-19", 12632 - "UserIP": "74.201.38.1", 12633 - "SubscriptionType": "n", 12634 - "ProductId": 18, 12635 - "Source": 34, 12636 - "ProductStatus": 2, 12637 - "MediaFilePath": "", 12638 - "Amount": "" 12639 - }, 12640 - { 12641 - "Id": 30461748, 12642 - "UserId": 1234, 12643 - "ResourceId": 459, 12644 - "TransactionDate": "2023-03-15", 12645 - "TransactionTime": "12:07:55", 12646 - "RequestDate": "2023-03-15", 12647 - "UserIP": "74.201.38.12", 12648 - "SubscriptionType": "n", 12649 - "SourceCode": 0, 12650 - "ProductStatus": 0, 12651 - "MediaFilePath": "", 12652 - "Amount": "" 12653 - }, 12654 - { 12655 - "Id": 25858253, 12656 - "UserId": 1234, 12657 - "ResourceId": 451, 12658 - "TransactionDate": "2023-03-15", 12659 - "TransactionTime": "11:45:19", 12660 - "RequestDate": "2023-03-15", 12661 - "UserIP": "74.201.38.12", 12662 - "SubscriptionType": "n", 12663 - "SourceCode": 0, 12664 - "ProductStatus": 0, 12665 - "MediaFilePath": "", 12666 - "Amount": "" 12667 - }, 12668 - { 12669 - "Id": 69453260, 12670 - "UserId": 1234, 12671 - "ResourceId": 411, 12672 - "TransactionDate": "2022-06-07", 12673 - "TransactionTime": "17:03:14", 12674 - "RequestDate": "2022-06-07", 12675 - "UserIP": "74.201.38.12", 12676 - "SubscriptionType": "n", 12677 - "SourceCode": 0, 12678 - "ProductStatus": 0, 12679 - "MediaFilePath": "", 12680 - "Amount": "" 12681 - }, 12682 - { 12683 - "Id": 51354425, 12684 - "UserId": 1234, 12685 - "ResourceId": 355, 12686 - "TransactionDate": "2020-04-06", 12687 - "TransactionTime": "12:24:08", 12688 - "RequestDate": "2020-04-06", 12689 - "UserIP": "74.201.38.12", 12690 - "SubscriptionType": "n", 12691 - "SourceCode": 0, 12692 - "ProductStatus": 0, 12693 - "MediaFilePath": "", 12694 - "Amount": "" 12695 - } 12696 - ] 12697 -} 12698 -{{/code}} 12699 - 12700 - 12701 -(% id="HPOSTCreateTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12702 -== (% 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(%%) == 12703 - 12704 ----- 12705 - 12706 -{{panel bgColor="#D3D3D3" width="100%"}} 12707 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions 12708 -{{/panel}} 12709 - 12710 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12711 - 12712 ----- 12713 - 12714 -(% 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}} 12715 - 12716 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 12717 - 12718 ----- 12719 - 12720 -{{code language="yml" theme="RDark" title="Body"}} 12721 -{"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" } 12722 -{{/code}} 12723 - 12724 -==== Example ==== 12725 - 12726 ----- 12727 - 12728 -(% style="color:#6b6b6b" %)Request 12729 - 12730 -{{code language="php" theme="RDark" title="Create Transaction Request"}} 12731 - <?php 12732 - 12733 -$curl = curl_init(); 12734 - 12735 -curl_setopt_array($curl, array( 12736 - CURLOPT_URL => 'https://api.onecount.net/v2/transactions', 12737 - CURLOPT_RETURNTRANSFER => true, 12738 - CURLOPT_ENCODING => '', 12739 - CURLOPT_MAXREDIRS => 10, 12740 - CURLOPT_TIMEOUT => 0, 12741 - CURLOPT_FOLLOWLOCATION => true, 12742 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12743 - CURLOPT_CUSTOMREQUEST => 'POST', 12744 - 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" }', 12745 - CURLOPT_HTTPHEADER => array( 12746 - 'Appkey: {{ONECOUNT API KEY}}' 12747 - ), 12748 -)); 12749 - 12750 -$response = curl_exec($curl); 12751 - 12752 -curl_close($curl); 12753 -echo $response; 12754 -{{/code}} 12755 - 12756 - 12757 -(% style="color:#6b6b6b" %)Response 200 OK 12758 - 12759 -{{code language="yml" theme="RDark" collapse="true" title="Create Transaction Response"}} 12760 - { 12761 - "result": { 12762 - "success": "1", 12763 - "error": { 12764 - "code": "", 12765 - "message": "" 12766 - } 12767 - }, 12768 - "Transactions": { 12769 - "Id": "1234", 12770 - "UserId": 1845775, 12771 - "TermId": 447, 12772 - "TransactionDate": "20231211", 12773 - "TransactionTime": "09:34:26", 12774 - "RequestDate": "20231211", 12775 - "UserIP": "192.168.0.1", 12776 - "SubscriptionType": "n", 12777 - "ProductId": 599, 12778 - "Source": 83, 12779 - "ProductStatus": 2, 12780 - "MediaFilePath": "", 12781 - "Amount": "0.00" 12782 - } 12783 -} 12784 -{{/code}} 12785 - 12786 - 12787 -=== **COMPONENT: Engagements** === 12788 - 12789 12789 (% class="western" %) 12790 - Engagementcanbeadded,updatedand searchedfor usingtheengagementsresourcefromheapi.3143 +POST method should be used to create an individual source given the source parameters. 12791 12791 12792 - 12793 -(% class="wrapped" %) 12794 -|(% 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;" %) 12795 12795 ((( 12796 12796 (% class="western" %) 12797 -** Method**12798 -)))|(% style="text-align:left; 3148 +**Request** 3149 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12799 12799 ((( 12800 12800 (% class="western" %) 12801 -** Url**12802 -)))|(% style="text-align:left; 3152 +**Type** 3153 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12803 12803 ((( 12804 12804 (% class="western" %) 12805 -** Action**3156 +**Description** 12806 12806 ))) 12807 -|(% style="text-align:left; 3158 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12808 12808 ((( 12809 12809 (% class="western" %) 12810 - GET12811 -)))|(% style="text-align:left; 3161 +Sources 3162 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12812 12812 ((( 12813 12813 (% class="western" %) 12814 - /(% style="color:#212121" %)engagements12815 -)))|(% style="text-align:left; 3165 +Sources 3166 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12816 12816 ((( 12817 12817 (% class="western" %) 12818 - Get engagement datalimiting25.3169 +Defines the contents that makes up the source. Id parameters should not be set. 12819 12819 ))) 12820 -|(% 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;" %) 12821 12821 ((( 12822 12822 (% class="western" %) 12823 - GET12824 -)))|(% style="text-align:left; 3175 +**Response** 3176 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12825 12825 ((( 12826 12826 (% class="western" %) 12827 - /(% style="color:#212121" %)engagements(%%)/<engagement id>12828 -)))|(% style="text-align:left; 3179 +**Type** 3180 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12829 12829 ((( 12830 12830 (% class="western" %) 12831 - Get data forengagementid. The engagementd is a string3183 +**Description** 12832 12832 ))) 12833 -|(% style="text-align:left; 3185 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12834 12834 ((( 12835 12835 (% class="western" %) 12836 - POST12837 -)))|(% style="text-align:left; 3188 +SourceId 3189 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12838 12838 ((( 12839 12839 (% class="western" %) 12840 - /(% style="color:#212121" %)engagements12841 -)))|(% style="text-align:left; 3192 +int 3193 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12842 12842 ((( 12843 12843 (% class="western" %) 12844 -Create a new engagement 3196 +Returns created source code id. 3197 +))) 12845 12845 3199 +\\ 3200 + 12846 12846 (% class="western" %) 12847 -P arametersrequired tocreatethe engagementneedstobesentas postdatain JSON format.12848 - )))12849 -|(% 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;" %) 12850 12850 ((( 12851 12851 (% class="western" %) 12852 - PUT12853 -)))|(% style="text-align:left; 3207 +**Request** 3208 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12854 12854 ((( 12855 12855 (% class="western" %) 12856 - /(% style="color:#212121" %)engagements(%%)/<engagement id>12857 -)))|(% style="text-align:left; 3211 +**Type** 3212 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12858 12858 ((( 12859 12859 (% class="western" %) 12860 -Update engagement by engagement id. The engagement id string 12861 - 3215 +**Description** 3216 +))) 3217 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3218 +((( 12862 12862 (% class="western" %) 12863 -Parameters required to update the engagement needs to be sent as post data in JSON format. 12864 - 3220 +Sources 3221 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3222 +((( 12865 12865 (% class="western" %) 12866 -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. 12867 12867 ))) 12868 -|(% 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" %)((( 12869 -Add options to specific metric in an engagement without passing all options and overriding existing options. 12870 12870 12871 -Parameters required to update the engagement needs to be sent as post data in JSON format. 12872 -\\This API is used to add options only for select and checkbox metrics. 12873 -))) 12874 -|(% 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;" %) 12875 12875 ((( 12876 12876 (% class="western" %) 12877 - POST12878 -)))|(% style="text-align:left; 3234 +**Response** 3235 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12879 12879 ((( 12880 12880 (% class="western" %) 12881 - (% style="color:#212121" %)/engagements/addUser12882 -)))|(% style="text-align:left; 3238 +**Type** 3239 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12883 12883 ((( 12884 12884 (% class="western" %) 12885 -Add user to engagement 12886 - 3242 +**Description** 3243 +))) 3244 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3245 +((( 12887 12887 (% class="western" %) 12888 -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. 12889 12889 ))) 12890 12890 12891 -(% id="HGETAllEngagements" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12892 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Engagements(%%) == 3258 +\\ 12893 12893 12894 ----- 3260 +(% class="western" %) 3261 +\\ 12895 12895 12896 ----- 3263 +(% class="western" %) 3264 +**COMPONENT: Transactions** 12897 12897 12898 -{{panel bgColor="#D3D3D3" width="100%"}} 12899 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 12900 -{{/panel}} 12901 - 12902 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12903 - 12904 ----- 12905 - 12906 -(% 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}} 12907 - 12908 -==== Example ==== 12909 - 12910 ----- 12911 - 12912 -(% style="color:#6b6b6b" %)Request 12913 - 12914 -{{code language="php" theme="RDark" title="Get All Engagement Request"}} 12915 -<?php 12916 - 12917 -$curl = curl_init(); 12918 - 12919 -curl_setopt_array($curl, array( 12920 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 12921 - CURLOPT_RETURNTRANSFER => true, 12922 - CURLOPT_ENCODING => '', 12923 - CURLOPT_MAXREDIRS => 10, 12924 - CURLOPT_TIMEOUT => 0, 12925 - CURLOPT_FOLLOWLOCATION => true, 12926 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12927 - CURLOPT_CUSTOMREQUEST => 'GET', 12928 - CURLOPT_HTTPHEADER => array( 12929 - 'Appkey: {{ONECOUNT API KEY}}' 12930 - ), 12931 -)); 12932 - 12933 -$response = curl_exec($curl); 12934 - 12935 -curl_close($curl); 12936 -echo $response; 12937 - 12938 - 12939 -{{/code}} 12940 - 12941 - 12942 -(% style="color:#6b6b6b" %)Response 200 OK 12943 - 12944 -{{code language="yml" theme="RDark" collapse="true" title="Get all engagements Response"}} 12945 - { 12946 - "result": { 12947 - "success": "1", 12948 - "error": { 12949 - "code": "", 12950 - "message": "" 12951 - } 12952 - }, 12953 - "Engagements": [ 12954 - { 12955 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 12956 - "Name": "Test Engagement 1", 12957 - "Engagement Fields": [ 12958 - { 12959 - "Name": "id", 12960 - "Type": "text" 12961 - }, 12962 - { 12963 - "Name": "activity_time", 12964 - "Type": "text" 12965 - }, 12966 - { 12967 - "Name": "Name", 12968 - "Type": "text" 12969 - }, 12970 - { 12971 - "Name": "Test Field", 12972 - "Type": "select", 12973 - "Values": [ 12974 - { 12975 - "text": "Test 1", 12976 - "value": "Test1" 12977 - } 12978 - ] 12979 - } 12980 - ] 12981 - } 12982 - ] 12983 -} 12984 -{{/code}} 12985 - 12986 - 12987 -(% id="HGETSpecificEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12988 -== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Specific Engagement(%%) == 12989 - 12990 ----- 12991 - 12992 ----- 12993 - 12994 -{{panel bgColor="#D3D3D3" width="100%"}} 12995 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement ID}} 12996 -{{/panel}} 12997 - 12998 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12999 - 13000 ----- 13001 - 13002 -(% 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}} 13003 - 13004 -==== Example ==== 13005 - 13006 ----- 13007 - 13008 -(% style="color:#6b6b6b" %)Request 13009 - 13010 -{{code language="php" theme="RDark" title="Get Specific Engagement Request"}} 13011 -<?php 13012 - 13013 -$curl = curl_init(); 13014 - 13015 -curl_setopt_array($curl, array( 13016 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement ID}}', 13017 - CURLOPT_RETURNTRANSFER => true, 13018 - CURLOPT_ENCODING => '', 13019 - CURLOPT_MAXREDIRS => 10, 13020 - CURLOPT_TIMEOUT => 0, 13021 - CURLOPT_FOLLOWLOCATION => true, 13022 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13023 - CURLOPT_CUSTOMREQUEST => 'GET', 13024 - CURLOPT_HTTPHEADER => array( 13025 - 'Appkey: {{ONECOUNT API KEY}}' 13026 - ), 13027 -)); 13028 - 13029 -$response = curl_exec($curl); 13030 - 13031 -curl_close($curl); 13032 -echo $response; 13033 - 13034 - 13035 -{{/code}} 13036 - 13037 - 13038 -(% style="color:#6b6b6b" %)Response 200 OK 13039 - 13040 -{{code language="yml" theme="RDark" collapse="true" title="Get specific engagement Response"}} 13041 - { 13042 - "result": { 13043 - "success": "1", 13044 - "error": { 13045 - "code": "", 13046 - "message": "" 13047 - } 13048 - }, 13049 - "Engagements": [ 13050 - { 13051 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 13052 - "Name": "Test Engagement 1", 13053 - "Engagement Fields": [ 13054 - { 13055 - "Name": "id", 13056 - "Type": "text" 13057 - }, 13058 - { 13059 - "Name": "activity_time", 13060 - "Type": "text" 13061 - }, 13062 - { 13063 - "Name": "Name", 13064 - "Type": "text" 13065 - }, 13066 - { 13067 - "Name": "Test Field", 13068 - "Type": "select", 13069 - "Values": [ 13070 - { 13071 - "text": "Test 1", 13072 - "value": "Test1" 13073 - } 13074 - ] 13075 - } 13076 - ] 13077 - } 13078 - ] 13079 -} 13080 -{{/code}} 13081 - 13082 - 13083 -(% id="HPOSTCreateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13084 -== (% 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(%%) == 13085 - 13086 ----- 13087 - 13088 -{{panel bgColor="#D3D3D3" width="100%"}} 13089 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 13090 -{{/panel}} 13091 - 13092 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13093 - 13094 ----- 13095 - 13096 -(% 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}} 13097 - 13098 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13099 - 13100 ----- 13101 - 13102 -{{code language="yml" theme="RDark" title="Body"}} 13103 -{"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[ 13104 - {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"}, 13105 - {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"}, 13106 - {"Price":[],"Type": "numeric"}, 13107 - {"Transaction Date":[],"Type": "date"} 13108 -]} 13109 -{{/code}} 13110 - 13111 -==== Example ==== 13112 - 13113 ----- 13114 - 13115 -(% style="color:#6b6b6b" %)Request 13116 - 13117 -{{code language="php" theme="RDark" title="Create Engagement Request"}} 13118 -<?php 13119 - 13120 -$curl = curl_init(); 13121 - 13122 -curl_setopt_array($curl, array( 13123 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 13124 - CURLOPT_RETURNTRANSFER => true, 13125 - CURLOPT_ENCODING => '', 13126 - CURLOPT_MAXREDIRS => 10, 13127 - CURLOPT_TIMEOUT => 0, 13128 - CURLOPT_FOLLOWLOCATION => true, 13129 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13130 - CURLOPT_CUSTOMREQUEST => 'POST', 13131 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[ 13132 - {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"}, 13133 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13134 - {"Price":[],"Type": "numeric"}, 13135 - {"Transaction Date":[],"Type": "text"} 13136 -]}', 13137 - CURLOPT_HTTPHEADER => array( 13138 - 'Appkey: {{ONECOUNT API KEY}}', 13139 - 'Content-Type: application/json' 13140 - ), 13141 -)); 13142 - 13143 -$response = curl_exec($curl); 13144 - 13145 -curl_close($curl); 13146 -echo $response; 13147 - 13148 - 13149 -{{/code}} 13150 - 13151 - 13152 -(% style="color:#6b6b6b" %)Response 200 OK 13153 - 13154 -{{code language="yml" theme="RDark" collapse="true" title="Create Engagement Response"}} 13155 - { 13156 - "result": { 13157 - "success": "1", 13158 - "error": { 13159 - "code": "", 13160 - "message": "" 13161 - } 13162 - }, 13163 - "Engagements": [ 13164 - { 13165 - "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565", 13166 - "Name": "Test engagement 2", 13167 - "Metrics": [ 13168 - { 13169 - "Name": "Name", 13170 - "Type": "select", 13171 - "Values": [ 13172 - { 13173 - "text": "Webinar 1", 13174 - "value": "Webinar_1" 13175 - }, 13176 - { 13177 - "text": "Webinar 2", 13178 - "value": "Webinar_2" 13179 - } 13180 - ] 13181 - }, 13182 - { 13183 - "Name": "Attendance Status", 13184 - "Type": "select", 13185 - "Values": [ 13186 - { 13187 - "text": "Attended", 13188 - "value": "attended" 13189 - }, 13190 - { 13191 - "text": "Not Attended", 13192 - "value": "not_attended" 13193 - } 13194 - ] 13195 - }, 13196 - { 13197 - "Name": "Price", 13198 - "Type": "numeric" 13199 - }, 13200 - { 13201 - "Name": "Transaction Date", 13202 - "Type": "text" 13203 - }, 13204 - { 13205 - "Name": "id", 13206 - "Type": "text" 13207 - }, 13208 - { 13209 - "Name": "activity_time", 13210 - "Type": "text" 13211 - } 13212 - ] 13213 - } 13214 - ] 13215 -} 13216 -{{/code}} 13217 - 13218 - 13219 -(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13220 -== (% 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(%%) == 13221 - 13222 ----- 13223 - 13224 -{{panel bgColor="#D3D3D3" width="100%"}} 13225 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement Id}} 13226 -{{/panel}} 13227 - 13228 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13229 - 13230 ----- 13231 - 13232 -(% 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}} 13233 - 13234 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13235 - 13236 ----- 13237 - 13238 -{{code language="yml" theme="RDark" title="Body"}} 13239 -{"Name":"Test engagement 3", "Metrics":[ 13240 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13241 - {"Price":[],"Type": "text"} 13242 - ]} 13243 -{{/code}} 13244 - 13245 -==== Example ==== 13246 - 13247 ----- 13248 - 13249 -(% style="color:#6b6b6b" %)Request 13250 - 13251 -{{code language="php" theme="RDark" title="Update Engagement Request"}} 13252 - <?php 13253 - 13254 -$curl = curl_init(); 13255 - 13256 -curl_setopt_array($curl, array( 13257 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement Id}}', 13258 - CURLOPT_RETURNTRANSFER => true, 13259 - CURLOPT_ENCODING => '', 13260 - CURLOPT_MAXREDIRS => 10, 13261 - CURLOPT_TIMEOUT => 0, 13262 - CURLOPT_FOLLOWLOCATION => true, 13263 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13264 - CURLOPT_CUSTOMREQUEST => 'PUT', 13265 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[ 13266 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13267 - {"Price":[],"Type": "text"} 13268 - ]}', 13269 - CURLOPT_HTTPHEADER => array( 13270 - 'Appkey: {{ONECOUNT API KEY}}', 13271 - 'Content-Type: application/json' 13272 - ), 13273 -)); 13274 - 13275 -$response = curl_exec($curl); 13276 - 13277 -curl_close($curl); 13278 -echo $response; 13279 - 13280 -{{/code}} 13281 - 13282 - 13283 -(% style="color:#6b6b6b" %)Response 200 OK 13284 - 13285 -{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13286 -{ 13287 - "result": { 13288 - "success": "1", 13289 - "error": { 13290 - "code": "", 13291 - "message": "" 13292 - } 13293 - }, 13294 - "Engagements": [ 13295 - { 13296 - "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13297 - "Name": "Test engagement 3", 13298 - "Metrics": [ 13299 - { 13300 - "Name": "Attendance Status", 13301 - "Type": "select", 13302 - "Values": [ 13303 - { 13304 - "text": "Attended", 13305 - "value": "attended" 13306 - }, 13307 - { 13308 - "text": "Not Attended", 13309 - "value": "not_attended" 13310 - } 13311 - ] 13312 - }, 13313 - { 13314 - "Name": "Price", 13315 - "Type": "text" 13316 - }, 13317 - { 13318 - "Name": "Name", 13319 - "Type": "select", 13320 - "Values": [ 13321 - { 13322 - "text": "Webinar 1", 13323 - "value": "Webinar_1" 13324 - }, 13325 - { 13326 - "text": "Webinar 2", 13327 - "value": "Webinar_2" 13328 - } 13329 - ] 13330 - }, 13331 - { 13332 - "Name": "Transaction Date", 13333 - "Type": "text" 13334 - }, 13335 - { 13336 - "Name": "id", 13337 - "Type": "text" 13338 - }, 13339 - { 13340 - "Name": "activity_time", 13341 - "Type": "text" 13342 - } 13343 - ] 13344 - } 13345 - ] 13346 -} 13347 -{{/code}} 13348 - 13349 - 13350 -(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13351 -== (% 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(%%) == 13352 - 13353 ----- 13354 - 13355 -{{panel bgColor="#D3D3D3" width="100%"}} 13356 - (% class="nolink" %)https:~/~/api.onecount.net/v2(%%)/engagements/metric/(% style="color:#212121" %)~{~{Engagement Id}} 13357 -{{/panel}} 13358 - 13359 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13360 - 13361 ----- 13362 - 13363 -(% 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}} 13364 - 13365 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13366 - 13367 ----- 13368 - 13369 -{{code language="yml" title="Body"}} 13370 -{"Metrics":[ 13371 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13372 - {"lagacy status":[{"text":"c","value":"c"}]} 13373 - ]} 13374 -{{/code}} 13375 - 13376 -==== Example ==== 13377 - 13378 ----- 13379 - 13380 -(% style="color:#6b6b6b" %)Request 13381 - 13382 -{{code language="php" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}} 13383 - <?php 13384 - 13385 -$curl = curl_init(); 13386 - 13387 -curl_setopt_array($curl, array( 13388 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/metric/{{Engagement Id}}', 13389 - CURLOPT_RETURNTRANSFER => true, 13390 - CURLOPT_ENCODING => '', 13391 - CURLOPT_MAXREDIRS => 10, 13392 - CURLOPT_TIMEOUT => 0, 13393 - CURLOPT_FOLLOWLOCATION => true, 13394 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13395 - CURLOPT_CUSTOMREQUEST => 'PUT', 13396 - CURLOPT_POSTFIELDS =>'{"Metrics":[ 13397 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13398 - {"lagacy status":[{"text":"c","value":"c"}]} 13399 - ]}', 13400 - CURLOPT_HTTPHEADER => array( 13401 - 'Appkey: {{ONECOUNT API KEY}}', 13402 - 'Content-Type: application/json' 13403 - ), 13404 -)); 13405 - 13406 -$response = curl_exec($curl); 13407 - 13408 -curl_close($curl); 13409 -echo $response; 13410 - 13411 -{{/code}} 13412 - 13413 - 13414 -(% style="color:#6b6b6b" %)Response 200 OK 13415 - 13416 -{{code language="yml" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}} 13417 -{ 13418 - "result": { 13419 - "success": "1", 13420 - "error": { 13421 - "code": "", 13422 - "message": "" 13423 - } 13424 - }, 13425 - "Engagements": [ 13426 - { 13427 - "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13428 - "Name": "Test engagement 3", 13429 - "Metrics": [ 13430 - { 13431 - "Name": "Attendance Status", 13432 - "Type": "select", 13433 - "Values": [ 13434 - { 13435 - "text": "Attended", 13436 - "value": "attended" 13437 - }, 13438 - { 13439 - "text": "Not Attended", 13440 - "value": "not_attended" 13441 - }, 13442 - { 13443 - "text":"checks", 13444 - "value":"checks" 13445 - }, 13446 - { 13447 - "text":"c", 13448 - "value":"c" 13449 - } 13450 - ] 13451 - }, 13452 - { 13453 - "Name": "Price", 13454 - "Type": "text" 13455 - }, 13456 - { 13457 - "Name": "Name", 13458 - "Type": "select", 13459 - "Values": [ 13460 - { 13461 - "text": "Webinar 1", 13462 - "value": "Webinar_1" 13463 - }, 13464 - { 13465 - "text": "Webinar 2", 13466 - "value": "Webinar_2" 13467 - } 13468 - ] 13469 - }, 13470 - { 13471 - "Name": "Transaction Date", 13472 - "Type": "text" 13473 - }, 13474 - { 13475 - "Name": "id", 13476 - "Type": "text" 13477 - }, 13478 - { 13479 - "Name": "activity_time", 13480 - "Type": "text" 13481 - } 13482 - ] 13483 - } 13484 - ] 13485 -} 13486 -{{/code}} 13487 - 13488 - 13489 - 13490 - 13491 - 13492 - 13493 -(% id="HPOSTAddUsertoEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13494 -== (% 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(%%) == 13495 - 13496 ----- 13497 - 13498 -{{panel bgColor="#D3D3D3" width="100%"}} 13499 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/addUser 13500 -{{/panel}} 13501 - 13502 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13503 - 13504 ----- 13505 - 13506 -(% 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}} 13507 - 13508 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13509 - 13510 ----- 13511 - 13512 -{{code language="yml" title="Body"}} 13513 -{"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":{}} 13514 -{{/code}} 13515 - 13516 -==== Example ==== 13517 - 13518 ----- 13519 - 13520 -(% style="color:#6b6b6b" %)Request 13521 - 13522 -{{code language="php" title="Add User to Engagement Request"}} 13523 - <?php 13524 - 13525 -$curl = curl_init(); 13526 - 13527 -curl_setopt_array($curl, array( 13528 - CURLOPT_URL => 'https://api.onecount.net/v2/engagements/addUser', 13529 - CURLOPT_RETURNTRANSFER => true, 13530 - CURLOPT_ENCODING => '', 13531 - CURLOPT_MAXREDIRS => 10, 13532 - CURLOPT_TIMEOUT => 0, 13533 - CURLOPT_FOLLOWLOCATION => true, 13534 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13535 - CURLOPT_CUSTOMREQUEST => 'POST', 13536 - 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":{}}', 13537 - CURLOPT_HTTPHEADER => array( 13538 - 'Appkey: {{ONECOUNT API KEY}}' 13539 - ), 13540 -)); 13541 - 13542 -$response = curl_exec($curl); 13543 - 13544 -curl_close($curl); 13545 -echo $response; 13546 -{{/code}} 13547 - 13548 - 13549 -(% style="color:#6b6b6b" %)Response 200 OK 13550 - 13551 -{{code language="yml" theme="RDark" collapse="true" title="Add Users to Engagement Response"}} 13552 - { 13553 - "result": { 13554 - "success": "1", 13555 - "error": { 13556 - "code": "", 13557 - "message": "" 13558 - } 13559 - }, 13560 - "Users": { 13561 - "ocid": 1845775, 13562 - "uuid": { 13563 - "type": { 13564 - "name": "uuid" 13565 - }, 13566 - "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7", 13567 - "version": 4 13568 - }, 13569 - "blacklisted": null, 13570 - "demo": { 13571 - "1": "rayaan@one-count.com", 13572 - "2": "user_1701788987", 13573 - "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5" 13574 - }, 13575 - "email": "rayaan@one-count.com", 13576 - "espid": null, 13577 - "known": { 13578 - "type": { 13579 - "name": "smallint" 13580 - }, 13581 - "value": "1" 13582 - }, 13583 - "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b", 13584 - "partners_hash": null, 13585 - "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5", 13586 - "payment_cc_exp": null, 13587 - "payment_vendor_token": null, 13588 - "products": { 13589 - "599": "447" 13590 - }, 13591 - "remarks": null, 13592 - "resources": null, 13593 - "smartlink_hash": null, 13594 - "subscription_active_resource_info": null, 13595 - "subscription_active_term_info": { 13596 - "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}" 13597 - }, 13598 - "subscription_log": { 13599 - "type": { 13600 - "valueType": { 13601 - "name": "varchar" 13602 - } 13603 - }, 13604 - "values": [ 13605 - "{\"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\"}", 13606 - "{\"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\"}", 13607 - "{\"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\"}" 13608 - ] 13609 - }, 13610 - "subscription_log_by_resource": null, 13611 - "subscription_source_code": [ 13612 - "83" 13613 - ], 13614 - "targets": null, 13615 - "timestamp": { 13616 - "type": { 13617 - "name": "bigint" 13618 - }, 13619 - "value": "1701788987" 13620 - }, 13621 - "unconfirmed": null, 13622 - "update_time": null, 13623 - "username": "user_1701788987", 13624 - "vendor_blacklisted": null, 13625 - "vendor_esp": null, 13626 - "vendor_unconfirmed": null 13627 - } 13628 -} 13629 -{{/code}} 13630 - 13631 - 13632 -(% id="HCOMPONENT:Segments" class="western" %) 13633 -=== **COMPONENT: Segments** === 13634 - 13635 -* 13636 -** === 13637 - 13638 13638 (% class="western" %) 13639 -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. 13640 13640 13641 -|(% style="text-align:left; 3269 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13642 13642 ((( 13643 13643 (% class="western" %) 13644 13644 **Method** 13645 -)))|(% style="text-align:left; 3273 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13646 13646 ((( 13647 13647 (% class="western" %) 13648 13648 **Url** 13649 -)))|(% style="text-align:left; 3277 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13650 13650 ((( 13651 13651 (% class="western" %) 13652 13652 **Action** 13653 13653 ))) 13654 -|(% style="text-align:left; 3282 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13655 13655 ((( 13656 13656 (% class="western" %) 13657 13657 GET 13658 -)))|(% style="text-align:left; 3286 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13659 13659 ((( 13660 13660 (% class="western" %) 13661 -/ (% style="color:#212121" %)segments13662 -)))|(% style="text-align:left; 3289 +/transactions 3290 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13663 13663 ((( 13664 13664 (% class="western" %) 13665 - Get allsegments.3293 +List all transactions 13666 13666 ))) 13667 -|(% style="text-align:left; 3295 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13668 13668 ((( 13669 13669 (% class="western" %) 13670 13670 GET 13671 -)))|(% style="text-align:left; 3299 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13672 13672 ((( 13673 13673 (% class="western" %) 13674 -/ (% style="color:#212121" %)segments(%%)/(% class="resolvedVariable" style="text-decoration:none" %)~{~{Segment id}}13675 -)))|(% style="text-align:left; 3302 +/transactions/lookup?UserId=1 3303 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13676 13676 ((( 13677 13677 (% class="western" %) 13678 - Get specificsegmentbasedon segment id.3306 +Lookup all transaction of UserId = 1 13679 13679 ))) 13680 -|(% style="text-align:left; 3308 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13681 13681 ((( 13682 13682 (% class="western" %) 13683 13683 POST 13684 -)))|(% style="text-align:left; 3312 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13685 13685 ((( 13686 13686 (% class="western" %) 13687 -/ (% style="color:#212121" %)segments/addUsers13688 -)))|(% style="text-align:left; 3315 +/transactions 3316 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13689 13689 ((( 13690 13690 (% class="western" %) 13691 - Addusers to segment.3319 +JSON of the Transactions type object needs to be sent as post data. Id field should not be sent. 13692 13692 ))) 13693 -|(% 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;" %) 13694 13694 ((( 13695 13695 (% class="western" %) 13696 - GET13697 -)))|(% style="text-align:left; 3333 +**Request** 3334 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13698 13698 ((( 13699 13699 (% class="western" %) 13700 - /(% style="color:#212121" %)segments/users/(% class="resolvedVariable" style="text-decoration:none" %)~{~{ocid}}13701 -)))|(% style="text-align:left; 3337 +**Type** 3338 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 13702 13702 ((( 13703 13703 (% class="western" %) 13704 - Get allsegment user has be subscribed basedonuser id.3341 +**Description** 13705 13705 ))) 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. 13706 13706 13707 -(% id="HGETAllSegments" style="margin-left: 0.0px;"class="sc-fznLPX cxTVKx" %)13708 - == (% 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: 13709 13709 13710 ----- 3359 +(% class="western" %) 3360 +UserId: Id of the user whose transaction is to be looked up (Int) 13711 13711 13712 ----- 3362 +(% class="western" %) 3363 +StartDate: Date from which the start should happen. Only valid when UserId is set. (Date) 13713 13713 13714 - {{panelbgColor="#D3D3D3"width="100%"}}13715 - (% class="nolinknolink"%)https:~/~/api.onecount.net/v2(%class="nolink"style="color:#212121"%)/segments13716 - {{/panel}}3365 +(% class="western" %) 3366 +EndDate: When the search should end. Only valid when UserId is set. (Date) 3367 +))) 13717 13717 13718 -=== (% 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 +))) 13719 13719 13720 - ----3396 +\\ 13721 13721 13722 - (% 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:(%%)** 13723 13723 13724 -==== 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 +))) 13725 13725 13726 - ----3408 +\\ 13727 13727 13728 -(% 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. 13729 13729 13730 -{{code language="php" theme="RDark" title="Get All Segments Request"}} 13731 -<?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 +))) 13732 13732 13733 -$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 +))) 13734 13734 13735 -curl_setopt_array($curl, array( 13736 - CURLOPT_URL => 'https://api.onecount.net/v2/segments', 13737 - CURLOPT_RETURNTRANSFER => true, 13738 - CURLOPT_ENCODING => '', 13739 - CURLOPT_MAXREDIRS => 10, 13740 - CURLOPT_TIMEOUT => 0, 13741 - CURLOPT_FOLLOWLOCATION => true, 13742 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13743 - CURLOPT_CUSTOMREQUEST => 'GET', 13744 - CURLOPT_HTTPHEADER => array( 13745 - 'Appkey: {{ONECOUNT API KEY}}' 13746 - ), 13747 -)); 3467 +\\ 13748 13748 13749 - $response = curl_exec($curl);3469 +\\ 13750 13750 13751 -c url_close($curl);13752 - echo$response;13753 - {{/code}}3471 +(% class="western" %) 3472 +**COMPONENT: Leads 3473 +** 13754 13754 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. 13755 13755 13756 -(% style="color:#6b6b6b" %)Response 200 OK 3478 +(% class="western" %) 3479 +\\ 13757 13757 13758 -{{code language="yml" theme="RDark" collapse="true" title="Get All Segments Response"}} 13759 - { 13760 - "result": { 13761 - "success": "1", 13762 - "error": { 13763 - "code": "", 13764 - "message": "" 13765 - } 13766 - }, 13767 - "Segments": [ 13768 - { 13769 - "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43", 13770 - "Name": "2022 Use Cases PDF Download" 13771 - }, 13772 - { 13773 - "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 13774 - "Name": "58-percent conversion-rate" 13775 - }, 13776 - { 13777 - "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138", 13778 - "Name": "Audience Marketing Pop-Up" 13779 - }, 13780 - { 13781 - "Id": "68219b37-c155-4459-a5ce-497261286ffe", 13782 - "Name": "Bold Minds Reminders" 13783 - }, 13784 - { 13785 - "Id": "6450defc-7658-4182-9c2a-a8f8420f801e", 13786 - "Name": "Demo - Aviator's Guide - NL Popup" 13787 - }, 13788 - { 13789 - "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0", 13790 - "Name": "Getting 80-Percent Conversion Rates Pop-up" 13791 - }, 13792 - { 13793 - "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 13794 - "Name": "Holiday Special Offer - 3 mo. Pilot" 13795 - }, 13796 - { 13797 - "Id": "16305ad0-8e65-4085-942e-04d99fd39207", 13798 - "Name": "Identity Resolution Test II" 13799 - }, 13800 - { 13801 - "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3", 13802 - "Name": "Live ONEcount Popup Example Segment" 13803 - }, 13804 - { 13805 - "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a", 13806 - "Name": "Live webinar - June 15 - Accelerate Revenue" 13807 - }, 13808 - { 13809 - "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de", 13810 - "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign" 13811 - }, 13812 - { 13813 - "Id": "d883ecdb-5307-416d-9558-c196472021c9", 13814 - "Name": "New Year - Increase Revenue 30-Percent" 13815 - }, 13816 - { 13817 - "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73", 13818 - "Name": "OC Test" 13819 - }, 13820 - { 13821 - "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 13822 - "Name": "Something big" 13823 - }, 13824 - { 13825 - "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 13826 - "Name": "Something No Other Platform Has" 13827 - }, 13828 - { 13829 - "Id": "5eaa0345-a825-4ba0-a787-336312a77744", 13830 - "Name": "Something Revolutionary" 13831 - }, 13832 - { 13833 - "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 13834 - "Name": "Something that will change your life" 13835 - }, 13836 - { 13837 - "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 13838 - "Name": "Something You Have Always Wanted" 13839 - }, 13840 - { 13841 - "Id": "28361c73-e253-49bb-a791-5481be2070a0", 13842 - "Name": "Something You Never Thought Possible" 13843 - }, 13844 - { 13845 - "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814", 13846 - "Name": "Test behaviour " 13847 - }, 13848 - { 13849 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 13850 - "Name": "Test behaviour banner segment" 13851 - }, 13852 - { 13853 - "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561", 13854 - "Name": "Test behaviour combo" 13855 - }, 13856 - { 13857 - "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a", 13858 - "Name": "Test behaviour content" 13859 - }, 13860 - { 13861 - "Id": "89424642-1363-476e-9842-4f0a2544151f", 13862 - "Name": "Test behaviour email" 13863 - }, 13864 - { 13865 - "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c", 13866 - "Name": "Test demographic segments" 13867 - }, 13868 - { 13869 - "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd", 13870 - "Name": "Test with unknown only selecting all filters" 13871 - } 13872 - ] 13873 -} 13874 -{{/code}} 3481 +(% class="western" %) 3482 +\\ 13875 13875 3484 +(% class="western" %) 3485 +\\ 13876 13876 13877 -(% id="HGETspecificSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)13878 - == (% 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 +\\ 13879 13879 13880 ----- 3490 +(% class="western" %) 3491 +\\ 13881 13881 13882 -{{panel bgColor="#D3D3D3" width="100%"}} 13883 - (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments/~{~{segment id}} 13884 -{{/panel}} 13885 - 13886 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13887 - 13888 ----- 13889 - 13890 -(% 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}} 13891 - 13892 -==== Example ==== 13893 - 13894 ----- 13895 - 13896 -(% style="color:#6b6b6b" %)Request 13897 - 13898 -{{code language="php" theme="RDark" title="Get specific Segment Request"}} 13899 - <?php 13900 - 13901 -$curl = curl_init(); 13902 - 13903 -curl_setopt_array($curl, array( 13904 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}', 13905 - CURLOPT_RETURNTRANSFER => true, 13906 - CURLOPT_ENCODING => '', 13907 - CURLOPT_MAXREDIRS => 10, 13908 - CURLOPT_TIMEOUT => 0, 13909 - CURLOPT_FOLLOWLOCATION => true, 13910 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13911 - CURLOPT_CUSTOMREQUEST => 'GET', 13912 - CURLOPT_HTTPHEADER => array( 13913 - 'Appkey: {{ONECOUNT API KEY}}' 13914 - ), 13915 -)); 13916 - 13917 -$response = curl_exec($curl); 13918 - 13919 -curl_close($curl); 13920 -echo $response; 13921 -{{/code}} 13922 - 13923 - 13924 -(% style="color:#6b6b6b" %)Response 200 OK 13925 - 13926 -{{code language="yml" theme="RDark" collapse="true" title="Get specific Segments Response"}} 13927 - { 13928 - "result": { 13929 - "success": "1", 13930 - "error": { 13931 - "code": "", 13932 - "message": "" 13933 - } 13934 - }, 13935 - "Segments": { 13936 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 13937 - "Demos": { 13938 - "_empty_": [], 13939 - "type": "" 13940 - }, 13941 - "Description": "", 13942 - "Action": { 13943 - "action": {} 13944 - }, 13945 - "Name": "Test behaviour banner segment", 13946 - "Behaviours": [ 13947 - { 13948 - "end_date": "05/26/2022", 13949 - "date_type": "Future", 13950 - "sub_category_values": [], 13951 - "sub_category": "clicked", 13952 - "category": "1", 13953 - "targets": [ 13954 - "all" 13955 - ], 13956 - "joining_logic": "AND", 13957 - "frequency": "1", 13958 - "start_date": "04/26/2022", 13959 - "day_count": "100" 13960 - } 13961 - ], 13962 - "Accounts": [] 13963 - } 13964 -} 13965 -{{/code}} 13966 - 13967 - 13968 -(% id="HPOSTAdduserstosegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13969 -== (% 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(%%) == 13970 - 13971 ----- 13972 - 13973 -{{panel bgColor="#D3D3D3" width="100%"}} 13974 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/addUsers 13975 -{{/panel}} 13976 - 13977 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13978 - 13979 ----- 13980 - 13981 -(% 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}} 13982 - 13983 -=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13984 - 13985 ----- 13986 - 13987 -{{code language="yml" theme="RDark" title="Body"}} 13988 -{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]} 13989 -{{/code}} 13990 - 13991 -==== Example ==== 13992 - 13993 ----- 13994 - 13995 -(% style="color:#6b6b6b" %)Request 13996 - 13997 -{{code language="php" theme="RDark" title="Add users to Segment Request"}} 13998 -<?php 13999 - 14000 -$curl = curl_init(); 14001 - 14002 -curl_setopt_array($curl, array( 14003 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers', 14004 - CURLOPT_RETURNTRANSFER => true, 14005 - CURLOPT_ENCODING => '', 14006 - CURLOPT_MAXREDIRS => 10, 14007 - CURLOPT_TIMEOUT => 0, 14008 - CURLOPT_FOLLOWLOCATION => true, 14009 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14010 - CURLOPT_CUSTOMREQUEST => 'POST', 14011 - CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}', 14012 - CURLOPT_HTTPHEADER => array( 14013 - 'Appkey: {{ONECOUNT API KEY}}', 14014 - 'Content-Type: application/json' 14015 - ), 14016 -)); 14017 - 14018 -$response = curl_exec($curl); 14019 - 14020 -curl_close($curl); 14021 -echo $response; 14022 -{{/code}} 14023 - 14024 - 14025 -(% style="color:#6b6b6b" %)Response 200 OK 14026 - 14027 -{{code language="yml" theme="RDark" collapse="true" title="Add users to segment Response"}} 14028 -{ 14029 - "result": { 14030 - "success": "1", 14031 - "error": { 14032 - "code": "", 14033 - "message": "" 14034 - } 14035 - }, 14036 - "Segments": { 14037 - "Error user ids": [ 14038 - 676172, 14039 - 2134321 14040 - ], 14041 - "Inserted user ids": [ 14042 - 164499 14043 - ] 14044 - } 14045 -} 14046 -{{/code}} 14047 - 14048 - 14049 -(% id="HGETallsegmentsforaUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 14050 -== (% 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(%%) == 14051 - 14052 ----- 14053 - 14054 -{{panel bgColor="#D3D3D3" width="100%"}} 14055 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration:none" %)~{~{ocid}} 14056 -{{/panel}} 14057 - 14058 -=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 14059 - 14060 ----- 14061 - 14062 -(% 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}} 14063 - 14064 -==== Example ==== 14065 - 14066 ----- 14067 - 14068 -(% style="color:#6b6b6b" %)Request 14069 - 14070 -{{code language="php" theme="RDark" title="Get all segments for a user Request"}} 14071 -<?php 14072 - 14073 -$curl = curl_init(); 14074 - 14075 -curl_setopt_array($curl, array( 14076 - CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••', 14077 - CURLOPT_RETURNTRANSFER => true, 14078 - CURLOPT_ENCODING => '', 14079 - CURLOPT_MAXREDIRS => 10, 14080 - CURLOPT_TIMEOUT => 0, 14081 - CURLOPT_FOLLOWLOCATION => true, 14082 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14083 - CURLOPT_CUSTOMREQUEST => 'GET', 14084 - CURLOPT_HTTPHEADER => array( 14085 - 'Appkey: {{ONECOUNT API KEY}}' 14086 - ), 14087 -)); 14088 - 14089 -$response = curl_exec($curl); 14090 - 14091 -curl_close($curl); 14092 -echo $response; 14093 -{{/code}} 14094 - 14095 - 14096 -(% style="color:#6b6b6b" %)Response 200 OK 14097 - 14098 -{{code language="yml" theme="RDark" collapse="true" title="Get all Segments for a user Response"}} 14099 -{ 14100 - "result": { 14101 - "success": "1", 14102 - "error": { 14103 - "code": "", 14104 - "message": "" 14105 - } 14106 - }, 14107 - "Segments": [ 14108 - "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 14109 - "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 14110 - "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 14111 - "28361c73-e253-49bb-a791-5481be2070a0", 14112 - "28774f7c-9fd3-4dff-a42e-683460f437c0", 14113 - "5eaa0345-a825-4ba0-a787-336312a77744", 14114 - "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 14115 - "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 14116 - "bcb403a2-c0a1-414f-90c1-277a41009c97", 14117 - "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 14118 - "d883ecdb-5307-416d-9558-c196472021c9", 14119 - "d8d1bc9d-ede2-4c82-a747-10ab9fb979de" 14120 - ] 14121 -} 14122 -{{/code}} 14123 - 14124 - 14125 -(% id="HCOMPONENT:Leads" class="western" %) 14126 -=== **COMPONENT: Leads** === 14127 - 14128 -* 14129 -** === 14130 - 14131 14131 (% class="western" %) 14132 -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 +** 14133 14133 14134 14134 (% class="western" %) 14135 -**Telemarketing Leads** 14136 14136 14137 - 14138 14138 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed. 14139 14139 14140 -(% class="wrapped" %) 14141 -|(% 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;" %) 14142 14142 ((( 14143 14143 (% class="western" %) 14144 14144 **Method** 14145 -)))|(% style="text-align:left; 3505 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14146 14146 ((( 14147 14147 (% class="western" %) 14148 14148 **Url** 14149 -)))|(% style="text-align:left; 3509 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14150 14150 ((( 14151 14151 (% class="western" %) 14152 14152 **Action** 14153 14153 ))) 14154 -|(% style="text-align:left; 3514 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14155 14155 ((( 14156 14156 (% class="western" %) 14157 14157 GET 14158 -)))|(% style="text-align:left; 3518 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14159 14159 ((( 14160 14160 (% class="western" %) 14161 14161 /stats/telemarketing 14162 -)))|(% style="text-align:left; 3522 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14163 14163 ((( 14164 14164 (% class="western" %) 14165 14165 List telemarketing stats 14166 14166 ))) 14167 -|(% style="text-align:left; 3527 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14168 14168 ((( 14169 14169 (% class="western" %) 14170 14170 GET 14171 -)))|(% style="text-align:left; 3531 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14172 14172 ((( 14173 14173 (% class="western" %) 14174 14174 /stats/telemarketing/1000 14175 -)))|(% style="text-align:left; 3535 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14176 14176 ((( 14177 14177 (% class="western" %) 14178 14178 Get telemarketing stat whose id is 1000 in the system. 14179 14179 ))) 14180 -|(% style="text-align:left; 3540 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14181 14181 ((( 14182 14182 (% class="western" %) 14183 14183 POST 14184 -)))|(% style="text-align:left; 3544 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14185 14185 ((( 14186 14186 (% class="western" %) 14187 14187 /stats/telemarketing 14188 -)))|(% style="text-align:left; 3548 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14189 14189 ((( 14190 14190 (% class="western" %) 14191 14191 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent. 14192 14192 ))) 14193 14193 3554 +\\ 3555 + 14194 14194 (% class="western" %) 14195 14195 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. 14196 14196 14197 -(% class="wrapped" %) 14198 -|(% 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;" %) 14199 14199 ((( 14200 14200 (% class="western" %) 14201 14201 **Request** 14202 -)))|(% style="text-align:left; 3563 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14203 14203 ((( 14204 14204 (% class="western" %) 14205 14205 **Type** 14206 -)))|(% style="text-align:left; 3567 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14207 14207 ((( 14208 14208 (% class="western" %) 14209 14209 **Description** 14210 14210 ))) 14211 -|(% style="text-align:left; 3572 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14212 14212 ((( 14213 14213 (% class="western" %) 14214 14214 Telemarketing 14215 -)))|(% style="text-align:left; 3576 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14216 14216 ((( 14217 14217 (% class="western" %) 14218 14218 Telemarketing 14219 -)))|(% style="text-align:left; 3580 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14220 14220 ((( 14221 14221 (% class="western" %) 14222 14222 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section. ... ... @@ -14249,7 +14249,7 @@ 14249 14249 "ResourceId":"250", 14250 14250 14251 14251 (% class="western" %) 14252 -"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"]]", 14253 14253 14254 14254 (% class="western" %) 14255 14255 "PageTitle":"tests" ... ... @@ -14263,48 +14263,57 @@ 14263 14263 (% class="western" %) 14264 14264 } 14265 14265 ))) 14266 -|(% style="text-align:left; 3627 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14267 14267 ((( 14268 14268 (% class="western" %) 14269 - 14270 -)))|(% style="text-align:left; 3630 +\\ 3631 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14271 14271 ((( 14272 14272 (% class="western" %) 14273 - 14274 -)))|(% style="text-align:left; 3634 +\\ 3635 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14275 14275 ((( 14276 14276 (% class="western" %) 14277 - 3638 +\\ 14278 14278 ))) 14279 14279 14280 -(% class="wrapped" %) 14281 -|(% 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;" %) 14282 14282 ((( 14283 14283 (% class="western" %) 14284 14284 **Response** 14285 -)))|(% style="text-align:left; 3645 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14286 14286 ((( 14287 14287 (% class="western" %) 14288 14288 **Type** 14289 -)))|(% style="text-align:left; 3649 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14290 14290 ((( 14291 14291 (% class="western" %) 14292 14292 **Description** 14293 14293 ))) 14294 -|(% style="text-align:left; 3654 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14295 14295 ((( 14296 14296 (% class="western" %) 14297 14297 Ids 14298 -)))|(% style="text-align:left; 3658 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14299 14299 ((( 14300 14300 (% class="western" %) 14301 14301 String 14302 -)))|(% style="text-align:left; 3662 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14303 14303 ((( 14304 14304 (% class="western" %) 14305 14305 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format. 14306 14306 ))) 14307 14307 3668 +\\ 3669 + 3670 +\\ 3671 + 3672 +\\ 3673 + 3674 +\\ 3675 + 3676 +\\ 3677 + 14308 14308 (% class="western" %) 14309 14309 **API REFERENCE** 14310 14310 ... ... @@ -14311,55 +14311,54 @@ 14311 14311 (% class="western" %) 14312 14312 **Type: Questions** 14313 14313 14314 -(% class="wrapped" %) 14315 -|(% 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;" %) 14316 14316 ((( 14317 14317 (% class="western" %) 14318 14318 **Property Name** 14319 -)))|(% style="text-align:left; 3688 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14320 14320 ((( 14321 14321 (% class="western" %) 14322 14322 **Type** 14323 -)))|(% style="text-align:left; 3692 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14324 14324 ((( 14325 14325 (% class="western" %) 14326 14326 **Description** 14327 14327 ))) 14328 -|(% style="text-align:left; 3697 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14329 14329 ((( 14330 14330 (% class="western" %) 14331 14331 Id 14332 -)))|(% style="text-align:left; 3701 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14333 14333 ((( 14334 14334 (% class="western" %) 14335 14335 Int 14336 -)))|(% style="text-align:left; 3705 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14337 14337 ((( 14338 14338 (% class="western" %) 14339 14339 Id of the question. 14340 14340 ))) 14341 -|(% style="text-align:left; 3710 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14342 14342 ((( 14343 14343 (% class="western" %) 14344 14344 Text 14345 -)))|(% style="text-align:left; 3714 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14346 14346 ((( 14347 14347 (% class="western" %) 14348 14348 String 14349 -)))|(% style="text-align:left; 3718 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14350 14350 ((( 14351 14351 (% class="western" %) 14352 14352 Text of the question. 14353 14353 ))) 14354 -|(% style="text-align:left; 3723 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14355 14355 ((( 14356 14356 (% class="western" %) 14357 14357 Type 14358 -)))|(% style="text-align:left; 3727 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14359 14359 ((( 14360 14360 (% class="western" %) 14361 14361 Int 14362 -)))|(% style="text-align:left; 3731 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14363 14363 ((( 14364 14364 (% class="western" %) 14365 14365 Determines which type of question it is. Textbox, checkbox, select, radio. ... ... @@ -14371,28 +14371,28 @@ 14371 14371 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. 14372 14372 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. 14373 14373 ))) 14374 -|(% style="text-align:left; 3743 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14375 14375 ((( 14376 14376 (% class="western" %) 14377 14377 Choices 14378 -)))|(% style="text-align:left; 3747 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14379 14379 ((( 14380 14380 (% class="western" %) 14381 14381 choices 14382 -)))|(% style="text-align:left; 3751 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14383 14383 ((( 14384 14384 (% class="western" %) 14385 14385 If multiple choice question this field will have the choices. 14386 14386 ))) 14387 -|(% style="text-align:left; 3756 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14388 14388 ((( 14389 14389 (% class="western" %) 14390 14390 Alias 14391 -)))|(% style="text-align:left; 3760 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14392 14392 ((( 14393 14393 (% class="western" %) 14394 14394 String 14395 -)))|(% style="text-align:left; 3764 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14396 14396 ((( 14397 14397 (% class="western" %) 14398 14398 Alias for admin purpose. ... ... @@ -14399,467 +14399,476 @@ 14399 14399 ))) 14400 14400 14401 14401 (% class="western" %) 3771 +\\ 3772 + 3773 +(% class="western" %) 3774 +\\ 3775 + 3776 +(% class="western" %) 14402 14402 **Type: Choices** 14403 14403 14404 -(% class="wrapped" %) 14405 -|(% 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;" %) 14406 14406 ((( 14407 14407 (% class="western" %) 14408 14408 **Property Name** 14409 -)))|(% style="text-align:left; 3783 +)))|(% 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; 3787 +)))|(% 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; 3792 +(% 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; 3796 +)))|(% 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; 3800 +)))|(% 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 choice. 14430 14430 ))) 14431 -|(% style="text-align:left; 3805 +(% 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; 3809 +)))|(% 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; 3813 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14440 14440 ((( 14441 14441 (% class="western" %) 14442 14442 Display text of choice. 14443 14443 ))) 14444 -|(% style="text-align:left; 3818 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14445 14445 ((( 14446 14446 (% class="western" %) 14447 14447 Value 14448 -)))|(% style="text-align:left; 3822 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14449 14449 ((( 14450 14450 (% class="western" %) 14451 14451 String 14452 -)))|(% style="text-align:left; 3826 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14453 14453 ((( 14454 14454 (% class="western" %) 14455 14455 Value stored in db. 14456 14456 ))) 14457 -|(% style="text-align:left; 3831 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14458 14458 ((( 14459 14459 (% class="western" %) 14460 14460 Order 14461 -)))|(% style="text-align:left; 3835 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14462 14462 ((( 14463 14463 (% class="western" %) 14464 14464 Int 14465 -)))|(% style="text-align:left; 3839 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14466 14466 ((( 14467 14467 (% class="western" %) 14468 14468 Display order. 14469 14469 ))) 14470 -|(% style="text-align:left; 3844 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14471 14471 ((( 14472 14472 (% class="western" %) 14473 14473 QuestionId 14474 -)))|(% style="text-align:left; 3848 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14475 14475 ((( 14476 14476 (% class="western" %) 14477 14477 Int 14478 -)))|(% style="text-align:left; 3852 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14479 14479 ((( 14480 14480 (% class="western" %) 14481 14481 Tied to which question id. 14482 14482 ))) 14483 14483 3858 +\\ 3859 + 14484 14484 (% class="western" %) 14485 14485 **Type: Users** 14486 14486 14487 -(% class="wrapped" %) 14488 -|(% 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;" %) 14489 14489 ((( 14490 14490 (% class="western" %) 14491 14491 **Property Name** 14492 -)))|(% style="text-align:left; 3867 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14493 14493 ((( 14494 14494 (% class="western" %) 14495 14495 **Type** 14496 -)))|(% style="text-align:left; 3871 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14497 14497 ((( 14498 14498 (% class="western" %) 14499 14499 **Description** 14500 14500 ))) 14501 -|(% style="text-align:left; 3876 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14502 14502 ((( 14503 14503 (% class="western" %) 14504 14504 Id 14505 -)))|(% style="text-align:left; 3880 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14506 14506 ((( 14507 14507 (% class="western" %) 14508 14508 Int 14509 -)))|(% style="text-align:left; 3884 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14510 14510 ((( 14511 14511 (% class="western" %) 14512 14512 ID of the user in ONEcount. 14513 14513 ))) 14514 -|(% style="text-align:left; 3889 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14515 14515 ((( 14516 14516 (% class="western" %) 14517 14517 PartnerId 14518 -)))|(% style="text-align:left; 3893 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14519 14519 ((( 14520 14520 (% class="western" %) 14521 14521 Int 14522 -)))|(% style="text-align:left; 3897 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14523 14523 ((( 14524 14524 (% class="western" %) 14525 14525 ID of the user in partners system (e.g. id of your system). 14526 14526 ))) 14527 -|(% style="text-align:left; 3902 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14528 14528 ((( 14529 14529 (% class="western" %) 14530 14530 Demo 14531 -)))|(% style="text-align:left; 3906 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14532 14532 ((( 14533 14533 (% class="western" %) 14534 14534 Demo 14535 -)))|(% style="text-align:left; 3910 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14536 14536 ((( 14537 14537 (% class="western" %) 14538 14538 Object of user's demo question ids and respective response values. 14539 14539 ))) 14540 -|(% style="text-align:left; 3915 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14541 14541 ((( 14542 14542 (% class="western" %) 14543 14543 RequestDate 14544 -)))|(% style="text-align:left; 3919 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14545 14545 ((( 14546 14546 (% class="western" %) 14547 14547 Date 14548 -)))|(% style="text-align:left; 3923 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14549 14549 ((( 14550 14550 (% class="western" %) 14551 14551 Request date. 14552 14552 ))) 14553 14553 3929 +\\ 3930 + 14554 14554 (% class="western" %) 14555 14555 **Type: Demo** 14556 14556 14557 -(% class="wrapped" %) 14558 -|(% 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;" %) 14559 14559 ((( 14560 14560 (% class="western" %) 14561 14561 **Property Name** 14562 -)))|(% style="text-align:left; 3938 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14563 14563 ((( 14564 14564 (% class="western" %) 14565 14565 **Type** 14566 -)))|(% style="text-align:left; 3942 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14567 14567 ((( 14568 14568 (% class="western" %) 14569 14569 **Description** 14570 14570 ))) 14571 -|(% style="text-align:left; 3947 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14572 14572 ((( 14573 14573 (% class="western" %) 14574 14574 QuestionId (e.g 6) 14575 -)))|(% style="text-align:left; 3951 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14576 14576 ((( 14577 14577 (% class="western" %) 14578 14578 String 14579 -)))|(% style="text-align:left; 3955 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14580 14580 ((( 14581 14581 (% class="western" %) 14582 14582 6 is the value of “Id” property of question resource(Text = “First Name”) 14583 14583 ))) 14584 -|(% style="text-align:left; 3960 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14585 14585 ((( 14586 14586 (% class="western" %) 14587 14587 QuestionId (e.g 7) 14588 -)))|(% style="text-align:left; 3964 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14589 14589 ((( 14590 14590 (% class="western" %) 14591 14591 String 14592 -)))|(% style="text-align:left; 3968 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14593 14593 ((( 14594 14594 (% class="western" %) 14595 14595 7 is the value of “Id” property of question resource(Text = “Last Name”) 14596 14596 ))) 14597 -|(% style="text-align:left; 3973 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14598 14598 ((( 14599 14599 (% class="western" %) 14600 14600 ... 14601 -)))|(% style="text-align:left; 3977 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14602 14602 ((( 14603 14603 (% class="western" %) 14604 14604 ... 14605 -)))|(% style="text-align:left; 3981 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14606 14606 ((( 14607 14607 (% class="western" %) 14608 14608 ... 14609 14609 ))) 14610 14610 3987 +\\ 3988 + 14611 14611 (% class="western" %) 14612 14612 **Type: Transactions** 14613 14613 14614 -(% class="wrapped" %) 14615 -|(% 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;" %) 14616 14616 ((( 14617 14617 (% class="western" %) 14618 14618 **Property Name** 14619 -)))|(% style="text-align:left; 3996 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14620 14620 ((( 14621 14621 (% class="western" %) 14622 14622 **Type** 14623 -)))|(% style="text-align:left; 4000 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14624 14624 ((( 14625 14625 (% class="western" %) 14626 14626 **Description** 14627 14627 ))) 14628 -|(% style="text-align:left; 4005 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14629 14629 ((( 14630 14630 (% class="western" %) 14631 14631 Id 14632 -)))|(% style="text-align:left; 4009 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14633 14633 ((( 14634 14634 (% class="western" %) 14635 14635 Int 14636 -)))|(% style="text-align:left; 4013 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14637 14637 ((( 14638 14638 (% class="western" %) 14639 14639 ID of the transaction. 14640 14640 ))) 14641 -|(% style="text-align:left; 4018 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14642 14642 ((( 14643 14643 (% class="western" %) 14644 14644 UserId 14645 -)))|(% style="text-align:left; 4022 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14646 14646 ((( 14647 14647 (% class="western" %) 14648 14648 Int 14649 -)))|(% style="text-align:left; 4026 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14650 14650 ((( 14651 14651 (% class="western" %) 14652 14652 Id of user in ONEcount. 14653 14653 ))) 14654 -|(% style="text-align:left; 4031 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14655 14655 ((( 14656 14656 (% class="western" %) 14657 14657 TermId 14658 -)))|(% style="text-align:left; 4035 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14659 14659 ((( 14660 14660 (% class="western" %) 14661 14661 Int 14662 -)))|(% style="text-align:left; 4039 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14663 14663 ((( 14664 14664 (% class="western" %) 14665 14665 TermId in ONEcount. 14666 14666 ))) 14667 -|(% style="text-align:left; 4044 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14668 14668 ((( 14669 14669 (% class="western" %) 14670 14670 ProductStatus 14671 -)))|(% style="text-align:left; 4048 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14672 14672 ((( 14673 14673 (% class="western" %) 14674 14674 Int 14675 -)))|(% style="text-align:left; 4052 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14676 14676 ((( 14677 14677 (% class="western" %) 14678 14678 Status ID. 14679 14679 ))) 14680 -|(% style="text-align:left; 4057 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14681 14681 ((( 14682 14682 (% class="western" %) 14683 14683 SubscriptionType 14684 -)))|(% style="text-align:left; 4061 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14685 14685 ((( 14686 14686 (% class="western" %) 14687 14687 Char 14688 -)))|(% style="text-align:left; 4065 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14689 14689 ((( 14690 14690 (% class="western" %) 14691 14691 Can be n,r or u for new, renew or unsubscribe. 14692 14692 ))) 14693 -|(% style="text-align:left; 4070 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14694 14694 ((( 14695 14695 (% class="western" %) 14696 14696 TransactionDate 14697 -)))|(% style="text-align:left; 4074 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14698 14698 ((( 14699 14699 (% class="western" %) 14700 14700 Date 14701 -)))|(% style="text-align:left; 4078 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14702 14702 ((( 14703 14703 (% class="western" %) 14704 14704 Date when the transaction occurred. 14705 14705 ))) 14706 -|(% style="text-align:left; 4083 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14707 14707 ((( 14708 14708 (% class="western" %) 14709 14709 TransactionTime 14710 -)))|(% style="text-align:left; 4087 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14711 14711 ((( 14712 14712 (% class="western" %) 14713 14713 Time 14714 -)))|(% style="text-align:left; 4091 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14715 14715 ((( 14716 14716 (% class="western" %) 14717 14717 Time of transaction. 14718 14718 ))) 14719 -|(% style="text-align:left; 4096 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14720 14720 ((( 14721 14721 (% class="western" %) 14722 14722 RequestDate 14723 -)))|(% style="text-align:left; 4100 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14724 14724 ((( 14725 14725 (% class="western" %) 14726 14726 Date 14727 -)))|(% style="text-align:left; 4104 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14728 14728 ((( 14729 14729 (% class="western" %) 14730 14730 The effective request date for the transaction. 14731 14731 ))) 14732 -|(% style="text-align:left; 4109 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14733 14733 ((( 14734 14734 (% class="western" %) 14735 14735 UserIP 14736 -)))|(% style="text-align:left; 4113 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14737 14737 ((( 14738 14738 (% class="western" %) 14739 14739 String 14740 -)))|(% style="text-align:left; 4117 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14741 14741 ((( 14742 14742 (% class="western" %) 14743 14743 IP of the user. 14744 14744 ))) 14745 -|(% style="text-align:left; 4122 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14746 14746 ((( 14747 14747 (% class="western" %) 14748 14748 Source 14749 -)))|(% style="text-align:left; 4126 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14750 14750 ((( 14751 14751 (% class="western" %) 14752 14752 String 14753 -)))|(% style="text-align:left; 4130 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14754 14754 ((( 14755 14755 (% class="western" %) 14756 14756 The transaction needs to be tied to a source code this will define it. 14757 14757 ))) 14758 -|(% style="text-align:left; 4135 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14759 14759 ((( 14760 14760 (% class="western" %) 14761 14761 MediaFilePath 14762 -)))|(% style="text-align:left; 4139 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14763 14763 ((( 14764 14764 (% class="western" %) 14765 14765 String 14766 -)))|(% style="text-align:left; 4143 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14767 14767 ((( 14768 14768 (% class="western" %) 14769 14769 The url of media associated with that transaction. Eg image, audio. 14770 14770 ))) 14771 -|(% style="text-align:left; 4148 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14772 14772 ((( 14773 14773 (% class="western" %) 14774 14774 ExpireDate 14775 -)))|(% style="text-align:left; 4152 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14776 14776 ((( 14777 14777 (% class="western" %) 14778 14778 Date 14779 -)))|(% style="text-align:left; 4156 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14780 14780 ((( 14781 14781 (% class="western" %) 14782 14782 Date when the subscription expires. 14783 14783 ))) 14784 -|(% style="text-align:left; 4161 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14785 14785 ((( 14786 14786 (% class="western" %) 14787 14787 Amount 14788 -)))|(% style="text-align:left; 4165 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14789 14789 ((( 14790 14790 (% class="western" %) 14791 14791 Float 14792 -)))|(% style="text-align:left; 4169 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14793 14793 ((( 14794 14794 (% class="western" %) 14795 14795 If there is amount (USD) included in transaction. 14796 14796 ))) 14797 14797 4175 +\\ 4176 + 14798 14798 (% class="western" %) 14799 14799 **Type: Sources** 14800 14800 14801 -(% class="wrapped" %) 14802 -|(% 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;" %) 14803 14803 ((( 14804 14804 (% class="western" %) 14805 14805 **Property Name** 14806 -)))|(% style="text-align:left; 4184 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14807 14807 ((( 14808 14808 (% class="western" %) 14809 14809 **Type** 14810 -)))|(% style="text-align:left; 4188 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14811 14811 ((( 14812 14812 (% class="western" %) 14813 14813 **Description** 14814 14814 ))) 14815 -|(% style="text-align:left; 4193 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14816 14816 ((( 14817 14817 (% class="western" %) 14818 14818 Id 14819 -)))|(% style="text-align:left; 4197 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14820 14820 ((( 14821 14821 (% class="western" %) 14822 14822 Int 14823 -)))|(% style="text-align:left; 4201 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14824 14824 ((( 14825 14825 (% class="western" %) 14826 14826 Id of the source. 14827 14827 ))) 14828 -|(% style="text-align:left; 4206 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14829 14829 ((( 14830 14830 (% class="western" %) 14831 14831 Source 14832 -)))|(% style="text-align:left; 4210 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14833 14833 ((( 14834 14834 (% class="western" %) 14835 14835 String 14836 -)))|(% style="text-align:left; 4214 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14837 14837 ((( 14838 14838 (% class="western" %) 14839 14839 Value of the source. 14840 14840 ))) 14841 -|(% style="text-align:left; 4219 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14842 14842 ((( 14843 14843 (% class="western" %) 14844 14844 Description 14845 -)))|(% style="text-align:left; 4223 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14846 14846 ((( 14847 14847 (% class="western" %) 14848 14848 Text 14849 -)))|(% style="text-align:left; 4227 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14850 14850 ((( 14851 14851 (% class="western" %) 14852 14852 Description of the source. 14853 14853 ))) 14854 -|(% style="text-align:left; 4232 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14855 14855 ((( 14856 14856 (% class="western" %) 14857 14857 ParentId 14858 -)))|(% style="text-align:left; 4236 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14859 14859 ((( 14860 14860 (% class="western" %) 14861 14861 int 14862 -)))|(% style="text-align:left; 4240 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14863 14863 ((( 14864 14864 (% class="western" %) 14865 14865 If this is a child source then list the parent source id. ... ... @@ -14866,249 +14866,253 @@ 14866 14866 ))) 14867 14867 14868 14868 (% class="western" %) 4247 +\\ 4248 + 4249 +(% class="western" %) 14869 14869 **Type: Products** 14870 14870 14871 -(% class="wrapped" %) 14872 -|(% 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;" %) 14873 14873 ((( 14874 14874 (% class="western" %) 14875 14875 **Property Name** 14876 -)))|(% style="text-align:left; 4256 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14877 14877 ((( 14878 14878 (% class="western" %) 14879 14879 **Type** 14880 -)))|(% style="text-align:left; 4260 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14881 14881 ((( 14882 14882 (% class="western" %) 14883 14883 **Description** 14884 14884 ))) 14885 -|(% style="text-align:left; 4265 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14886 14886 ((( 14887 14887 (% class="western" %) 14888 14888 Id 14889 -)))|(% style="text-align:left; 4269 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14890 14890 ((( 14891 14891 (% class="western" %) 14892 14892 Int 14893 -)))|(% style="text-align:left; 4273 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14894 14894 ((( 14895 14895 (% class="western" %) 14896 14896 Specify only for update. 14897 14897 ))) 14898 -|(% style="text-align:left; 4278 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14899 14899 ((( 14900 14900 (% class="western" %) 14901 14901 Name 14902 -)))|(% style="text-align:left; 4282 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14903 14903 ((( 14904 14904 (% class="western" %) 14905 14905 String 14906 -)))|(% style="text-align:left; 4286 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14907 14907 ((( 14908 14908 (% class="western" %) 14909 14909 Name of the Product. 14910 14910 ))) 14911 -|(% style="text-align:left; 4291 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14912 14912 ((( 14913 14913 (% class="western" %) 14914 14914 Description 14915 -)))|(% style="text-align:left; 4295 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14916 14916 ((( 14917 14917 (% class="western" %) 14918 14918 Text 14919 -)))|(% style="text-align:left; 4299 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14920 14920 ((( 14921 14921 (% class="western" %) 14922 14922 Description of the product. 14923 14923 ))) 14924 -|(% style="text-align:left; 4304 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14925 14925 ((( 14926 14926 (% class="western" %) 14927 14927 Terms 14928 -)))|(% style="text-align:left; 4308 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14929 14929 ((( 14930 14930 (% class="western" %) 14931 14931 Terms 14932 -)))|(% style="text-align:left; 4312 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14933 14933 ((( 14934 14934 (% class="western" %) 14935 14935 (Array of) Terms associated with the product. 14936 14936 ))) 14937 14937 4318 +\\ 4319 + 14938 14938 (% class="western" %) 14939 14939 **Type: Terms** 14940 14940 14941 -(% class="wrapped" %) 14942 -|(% 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;" %) 14943 14943 ((( 14944 14944 (% class="western" %) 14945 14945 **Property Name** 14946 -)))|(% style="text-align:left; 4327 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14947 14947 ((( 14948 14948 (% class="western" %) 14949 14949 **Type** 14950 -)))|(% style="text-align:left; 4331 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14951 14951 ((( 14952 14952 (% class="western" %) 14953 14953 **Description** 14954 14954 ))) 14955 -|(% style="text-align:left; 4336 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14956 14956 ((( 14957 14957 (% class="western" %) 14958 14958 Id 14959 -)))|(% style="text-align:left; 4340 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14960 14960 ((( 14961 14961 (% class="western" %) 14962 14962 int 14963 -)))|(% style="text-align:left; 4344 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14964 14964 ((( 14965 14965 (% class="western" %) 14966 14966 Id of the term. 14967 14967 ))) 14968 -|(% style="text-align:left; 4349 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14969 14969 ((( 14970 14970 (% class="western" %) 14971 14971 Name 14972 -)))|(% style="text-align:left; 4353 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14973 14973 ((( 14974 14974 (% class="western" %) 14975 14975 string 14976 -)))|(% style="text-align:left; 4357 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14977 14977 ((( 14978 14978 (% class="western" %) 14979 14979 Name of the Term. 14980 14980 ))) 14981 -|(% style="text-align:left; 4362 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14982 14982 ((( 14983 14983 (% class="western" %) 14984 14984 Description 14985 -)))|(% style="text-align:left; 4366 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14986 14986 ((( 14987 14987 (% class="western" %) 14988 14988 text 14989 -)))|(% style="text-align:left; 4370 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14990 14990 ((( 14991 14991 (% class="western" %) 14992 14992 Description of the term. 14993 14993 ))) 14994 -|(% style="text-align:left; 4375 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14995 14995 ((( 14996 14996 (% class="western" %) 14997 14997 Duration 14998 -)))|(% style="text-align:left; 4379 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14999 14999 ((( 15000 15000 (% class="western" %) 15001 15001 int 15002 -)))|(% style="text-align:left; 4383 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15003 15003 ((( 15004 15004 (% class="western" %) 15005 15005 Duration of term validity. 15006 15006 ))) 15007 -|(% style="text-align:left; 4388 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15008 15008 ((( 15009 15009 (% class="western" %) 15010 15010 DurationUnit 15011 -)))|(% style="text-align:left; 4392 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15012 15012 ((( 15013 15013 (% class="western" %) 15014 15014 sting 15015 -)))|(% style="text-align:left; 4396 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15016 15016 ((( 15017 15017 (% class="western" %) 15018 15018 Y (year), M (Month), D (Days). 15019 15019 ))) 15020 -|(% style="text-align:left; 4401 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15021 15021 ((( 15022 15022 (% class="western" %) 15023 15023 ProductId 15024 -)))|(% style="text-align:left; 4405 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15025 15025 ((( 15026 15026 (% class="western" %) 15027 15027 int 15028 -)))|(% style="text-align:left; 4409 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15029 15029 ((( 15030 15030 (% class="western" %) 15031 15031 Id of the product the term is tied to. 15032 15032 ))) 15033 -|(% style="text-align:left; 4414 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15034 15034 ((( 15035 15035 (% class="western" %) 15036 15036 Price 15037 -)))|(% style="text-align:left; 4418 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15038 15038 ((( 15039 15039 (% class="western" %) 15040 15040 float 15041 -)))|(% style="text-align:left; 4422 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15042 15042 ((( 15043 15043 (% class="western" %) 15044 15044 If there is price (USD) for the term. 15045 15045 ))) 15046 15046 4428 +\\ 4429 + 15047 15047 (% class="western" %) 15048 15048 **Type: Resources** 15049 15049 15050 -(% class="wrapped" %) 15051 -|(% 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;" %) 15052 15052 ((( 15053 15053 (% class="western" %) 15054 15054 **Property Name** 15055 -)))|(% style="text-align:left; 4437 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15056 15056 ((( 15057 15057 (% class="western" %) 15058 15058 **Type** 15059 -)))|(% style="text-align:left; 4441 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15060 15060 ((( 15061 15061 (% class="western" %) 15062 15062 **Description** 15063 15063 ))) 15064 -|(% style="text-align:left; 4446 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15065 15065 ((( 15066 15066 (% class="western" %) 15067 15067 Id 15068 -)))|(% style="text-align:left; 4450 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15069 15069 ((( 15070 15070 (% class="western" %) 15071 15071 Int 15072 -)))|(% style="text-align:left; 4454 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15073 15073 ((( 15074 15074 (% class="western" %) 15075 15075 Specify only for update. 15076 15076 ))) 15077 -|(% style="text-align:left; 4459 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15078 15078 ((( 15079 15079 (% class="western" %) 15080 15080 Name 15081 -)))|(% style="text-align:left; 4463 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15082 15082 ((( 15083 15083 (% class="western" %) 15084 15084 String 15085 -)))|(% style="text-align:left; 4467 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15086 15086 ((( 15087 15087 (% class="western" %) 15088 15088 Name of the Resource. 15089 15089 ))) 15090 -|(% style="text-align:left; 4472 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15091 15091 ((( 15092 15092 (% class="western" %) 15093 15093 Description 15094 -)))|(% style="text-align:left; 4476 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15095 15095 ((( 15096 15096 (% class="western" %) 15097 15097 Text 15098 -)))|(% style="text-align:left; 4480 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15099 15099 ((( 15100 15100 (% class="western" %) 15101 15101 Description of the Resource. 15102 15102 ))) 15103 -|(% style="text-align:left; 4485 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15104 15104 ((( 15105 15105 (% class="western" %) 15106 15106 Type 15107 -)))|(% style="text-align:left; 4489 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15108 15108 ((( 15109 15109 (% class="western" %) 15110 15110 Int 15111 -)))|(% style="text-align:left; 4493 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15112 15112 ((( 15113 15113 (% class="western" %) 15114 15114 Type Options ... ... @@ -15128,11 +15128,11 @@ 15128 15128 (% class="western" %) 15129 15129 **5 : **Function 15130 15130 ))) 15131 -|(% style="text-align:left; 4513 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15132 15132 ((( 15133 15133 (% class="western" %) 15134 15134 Value 15135 -)))|(% style="text-align:left; 4517 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15136 15136 ((( 15137 15137 (% class="western" %) 15138 15138 String ... ... @@ -15142,7 +15142,7 @@ 15142 15142 15143 15143 (% class="western" %) 15144 15144 Array 15145 -)))|(% style="text-align:left; 4527 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15146 15146 ((( 15147 15147 (% class="western" %) 15148 15148 Value of Resource Type: ... ... @@ -15157,114 +15157,115 @@ 15157 15157 Example : 15158 15158 15159 15159 (% class="western" %) 15160 -if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/]. **15161 -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/**"] 15162 15162 15163 15163 (% class="western" %) 15164 15164 For Function type resource leave it blank. 15165 15165 ))) 15166 -|(% style="text-align:left; 4548 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15167 15167 ((( 15168 15168 (% class="western" %) 15169 15169 limit 15170 -)))|(% style="text-align:left; 4552 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15171 15171 ((( 15172 15172 (% class="western" %) 15173 15173 Int 15174 -)))|(% style="text-align:left; 4556 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15175 15175 ((( 15176 15176 (% class="western" %) 15177 15177 Default limit is 25 but if all the data needs to be pulled then pass limit=0. 15178 15178 ))) 15179 -|(% 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;" %) 15180 15180 ((( 15181 15181 FreePass 15182 -)))|(% 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;" %) 15183 15183 ((( 15184 15184 Int 15185 -)))|(% 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;" %) 15186 15186 ((( 15187 15187 Default value is 0. This parameter is used to provide access to protected content. 15188 15188 ))) 15189 15189 4572 +\\ 4573 + 15190 15190 (% class="western" %) 15191 15191 **Type: Telemarketing** 15192 15192 15193 -(% class="wrapped" %) 15194 -|(% 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;" %) 15195 15195 ((( 15196 15196 (% class="western" %) 15197 15197 **Property Name** 15198 -)))|(% style="text-align:left; 4581 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15199 15199 ((( 15200 15200 (% class="western" %) 15201 15201 **Type** 15202 -)))|(% style="text-align:left; 4585 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15203 15203 ((( 15204 15204 (% class="western" %) 15205 15205 **Description** 15206 15206 ))) 15207 -|(% style="text-align:left; 4590 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15208 15208 ((( 15209 15209 (% class="western" %) 15210 15210 Id 15211 -)))|(% style="text-align:left; 4594 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15212 15212 ((( 15213 15213 (% class="western" %) 15214 15214 int 15215 -)))|(% style="text-align:left; 4598 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15216 15216 ((( 15217 15217 (% class="western" %) 15218 15218 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat. 15219 15219 ))) 15220 -|(% style="text-align:left; 4603 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15221 15221 ((( 15222 15222 (% class="western" %) 15223 15223 OCID 15224 -)))|(% style="text-align:left; 4607 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15225 15225 ((( 15226 15226 (% class="western" %) 15227 15227 int 15228 -)))|(% style="text-align:left; 4611 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15229 15229 ((( 15230 15230 (% class="western" %) 15231 15231 Onecount ID of the user. 15232 15232 ))) 15233 -|(% style="text-align:left; 4616 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15234 15234 ((( 15235 15235 (% class="western" %) 15236 15236 Date 15237 -)))|(% style="text-align:left; 4620 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15238 15238 ((( 15239 15239 (% class="western" %) 15240 15240 Date 15241 -)))|(% style="text-align:left; 4624 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15242 15242 ((( 15243 15243 (% class="western" %) 15244 15244 Date when the stat occurred. Format: yyyy-mm-dd 15245 15245 ))) 15246 -|(% style="text-align:left; 4629 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15247 15247 ((( 15248 15248 (% class="western" %) 15249 15249 Time 15250 -)))|(% style="text-align:left; 4633 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15251 15251 ((( 15252 15252 (% class="western" %) 15253 15253 Time 15254 -)))|(% style="text-align:left; 4637 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15255 15255 ((( 15256 15256 (% class="western" %) 15257 15257 Time of stat. Format: h:m:s (24 hour format) 15258 15258 ))) 15259 -|(% style="text-align:left; 4642 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15260 15260 ((( 15261 15261 (% class="western" %) 15262 15262 ResourceId 15263 -)))|(% style="text-align:left; 4646 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15264 15264 ((( 15265 15265 (% class="western" %) 15266 15266 int 15267 -)))|(% style="text-align:left; 4650 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15268 15268 ((( 15269 15269 (% class="western" %) 15270 15270 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send ... ... @@ -15272,33 +15272,37 @@ 15272 15272 (% class="western" %) 15273 15273 PageTitle otherwise it will follow the process described in PageTitle. 15274 15274 ))) 15275 -|(% style="text-align:left; 4658 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15276 15276 ((( 15277 15277 (% class="western" %) 15278 15278 PageUrl 15279 -)))|(% style="text-align:left; 4662 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15280 15280 ((( 15281 15281 (% class="western" %) 15282 15282 string 15283 -)))|(% style="text-align:left; 4666 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15284 15284 ((( 15285 15285 (% class="western" %) 15286 15286 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. 15287 15287 ))) 15288 -|(% style="text-align:left; 4671 +(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15289 15289 ((( 15290 15290 (% class="western" %) 15291 15291 PageTitle 15292 -)))|(% style="text-align:left; 4675 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15293 15293 ((( 15294 15294 (% class="western" %) 15295 15295 string 15296 -)))|(% style="text-align:left; 4679 +)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15297 15297 ((( 15298 15298 (% class="western" %) 15299 15299 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. 15300 15300 4684 +(% class="western" %) 4685 +\\ 15301 15301 15302 15302 (% class="western" %) 15303 15303 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. 15304 15304 ))) 4690 + 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