Changes for page ONEcount API Documentation
Last modified by Rayaan Ahmed on 2025/02/09 22:20
From 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, 3 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,0 +1,1 @@ 1 +System Setup Detail and Technical Information - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.rayaan @one-count_com1 +XWiki.rayaan - Content
-
... ... @@ -7,10 +7,9 @@ 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. ((( 11 11 (% class="western" %) 12 12 **GET** - Used for lookup of resources 13 - )))12 + 14 14 1. ((( 15 15 (% class="western" %) 16 16 **PUT** - Used to update a resource ... ... @@ -54,26 +54,28 @@ 54 54 1. Attach a resource to a product 55 55 1. Leads 56 56 11. Create a lead 57 -1. Engagements \\56 +1. Engagements 58 58 11. Get all Engagements 59 59 11. Get specific engagement by engagement id 60 60 11. Create Engagements 61 61 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 63 63 64 -\\ 65 - 66 66 (% class="western" %) 67 67 **Accessing API** 68 68 69 69 (% class="western" %) 70 -**REST API URL: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/|| style=""rel="nofollow" shape="rect" class="external-link"]]**73 +**REST API URL: [[https:~~/~~/api.onecount.net/v2/>>url:https://api.onecount.net/v2/||rel="nofollow" shape="rect" class="external-link"]]** 71 71 72 72 (% class="western" %) 73 73 **Appkey**: THIS WILL BE PROVIDED TO YOU 74 74 75 -(% class="western" %) 76 -\\ 77 77 78 78 (% class="western" %) 79 79 Your HTTP requests to a REST API resource should contain the following information: ... ... @@ -96,9 +96,6 @@ 96 96 ))) 97 97 98 98 (% class="western" %) 99 -\\ 100 - 101 -(% class="western" %) 102 102 **General API Usage** 103 103 104 104 (% class="western" %) ... ... @@ -107,8 +107,6 @@ 107 107 (% class="western" %) 108 108 For lookup, the parameter list will be part of the request url. 109 109 110 -(% class="western" %) 111 -\\ 112 112 113 113 (% class="western" %) 114 114 **Response** ... ... @@ -116,7 +116,7 @@ 116 116 (% class="western" %) 117 117 API will output the response in a JSON format discussed below. 118 118 119 -{{code language="yml" theme="RDark" title="Response" collapse="true"}}115 +{{code language="yml" theme="RDark" title="Response"}} 120 120 { 121 121 "result": { 122 122 "success": "1", ... ... @@ -136,13 +136,10 @@ 136 136 } 137 137 {{/code}} 138 138 139 -(% class="western" %) 140 -\\ 141 141 142 142 (% class="western" %) 143 143 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. 144 144 145 -\\ 146 146 147 147 (% class="western" %) 148 148 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. ... ... @@ -150,18 +150,18 @@ 150 150 If the value of success is 1 then the response parameters of the called method will also be output. 151 151 152 152 (% class="western" %) 153 -For (% class="StyledLeaf___StyledSpan-sc-129cvv1-0 hSAwv slate-bold" %)**GET **requests we can pass** 146 +For (% class="StyledLeaf___StyledSpan-sc-129cvv1-0 hSAwv slate-bold" %)**GET **requests we can pass** limit **as parameter in URL. 154 154 155 155 === **COMPONENT: Users** === 156 156 157 157 (% class="western" %) 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. 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 JSON object will have those fields. If nothing is specified by default only UserId is returned. 159 159 160 160 (% class="western" %) 161 161 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. 162 162 163 163 (% class="western" %) 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. 157 +In this case the provided demographic information in users JSON 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. 165 165 166 166 (% class="western" %) 167 167 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. ... ... @@ -172,88 +172,106 @@ 172 172 (% class="western" %) 173 173 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. 174 174 175 -\\ 176 176 177 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 169 +(% class="wrapped" %) 170 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 178 178 ((( 179 179 (% class="western" %) 180 180 **Method** 181 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)174 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 182 182 ((( 183 183 (% class="western" %) 184 184 **Url** 185 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)178 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 186 186 ((( 187 187 (% class="western" %) 188 188 **Action** 189 189 ))) 190 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)183 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 191 191 ((( 192 192 (% class="western" %) 193 193 GET 194 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)187 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 195 195 ((( 196 196 (% class="western" %) 197 197 /users 198 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)191 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 199 199 ((( 200 200 (% class="western" %) 201 201 Get users data limiting 25. 202 202 ))) 203 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)196 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 204 204 ((( 205 205 (% class="western" %) 206 206 GET 207 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)200 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 208 208 ((( 209 209 (% class="western" %) 210 210 /users/<ocid or ocid_hash> 211 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)204 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 212 212 ((( 213 213 (% class="western" %) 214 214 Get data for user id 1. The user id can be a numeric value or a hash 215 215 ))) 216 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)209 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 217 217 ((( 218 218 (% class="western" %) 219 219 GET 220 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)213 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 221 221 ((( 222 222 (% class="western" %) 223 -/users/lookup?1=user1@ [[email.com>>url:http://email.com/||style="" rel="nofollow" shape="rect" class="external-link"]]&return=1,2224 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)216 +/users/lookup?1=user1@email.com&return=1,2 217 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 225 225 ((( 226 226 (% class="western" %) 227 227 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. 228 228 229 229 (% class="western" %) 230 -Return parameter defines a csvof question id that are requested back in response.223 +Return parameter defines a CSV of question id that are requested back in response. 231 231 ))) 232 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)225 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 233 233 ((( 234 234 (% class="western" %) 235 235 POST 236 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)229 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 237 237 ((( 238 238 (% class="western" %) 239 239 /users 240 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)233 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 241 241 ((( 242 242 (% class="western" %) 243 243 Create a new users 244 244 245 245 (% class="western" %) 246 -Parameters required to create the user needs to be sent as post data in JSON format. 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 + 247 247 ))) 248 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)259 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 249 249 ((( 250 250 (% class="western" %) 251 251 PUT 252 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)263 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 253 253 ((( 254 254 (% class="western" %) 255 255 /users/1 256 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)267 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 257 257 ((( 258 258 (% class="western" %) 259 259 Update user id 1. The user id can be a numeric value or a hash ... ... @@ -261,28 +261,28 @@ 261 261 (% class="western" %) 262 262 Parameters required to update the user needs to be sent as post data in JSON format. 263 263 ))) 264 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)275 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 265 265 ((( 266 266 (% class="western" %) 267 267 GET 268 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)279 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 269 269 ((( 270 270 (% class="western" %) 271 271 /users/1/partners/2 272 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)283 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 273 273 ((( 274 274 (% class="western" %) 275 275 Get user id 1 and partner id 2's ONEcount hash. The user id can be a numeric value or a hash. 276 276 ))) 277 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)288 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 278 278 ((( 279 279 (% class="western" %) 280 280 POST 281 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)292 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 282 282 ((( 283 283 (% class="western" %) 284 284 /users/login 285 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)296 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 286 286 ((( 287 287 (% class="western" %) 288 288 Check to see user exist with username/email and password. ... ... @@ -294,54 +294,54 @@ 294 294 Example: 295 295 296 296 (% class="western" %) 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"}308 +{"u":"abc@one-count.com","e":"abc@one-count.com","p":"1234"} 298 298 299 299 (% class="western" %) 300 300 OR 301 301 302 302 (% class="western" %) 303 -{"u":" [[abc@one-count.com>>mailto:abc@one-count.com||style="" rel="nofollow" shape="rect" class="external-link"]]","p":"1234"}314 +{"u":"abc@one-count.com","p":"1234"} 304 304 305 305 (% class="western" %) 306 306 OR 307 307 308 308 (% class="western" %) 309 -{"e":" [[abc@one-count.com>>mailto:abc@one-count.com||style="" rel="nofollow" shape="rect" class="external-link"]]","p":"1234"}320 +{"e":"abc@one-count.com","p":"1234"} 310 310 311 311 (% class="western" %) 312 312 **OUTPUT** : Should get OCID of the user if it finds it otherwise get and error with msg user not found. 313 313 ))) 314 314 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 jbmEtYdocumentation-core-item-request-name" style="color:rgb(33,33,33);" %)All Users(%%) ==326 +(% id="HGETAllUsers" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 327 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Users(%%) == 317 317 318 318 ---- 319 319 320 -{{column width="100%"}} 321 - (% class="nolink" %)https:~/~/api.onecount.net/v2/users 322 -{{/column}} 331 +---- 323 323 324 -(% style="" %) 325 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 333 +{{panel bgColor="#D3D3D3" width="100%"}} 334 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users 335 +{{/panel}} 326 326 337 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 338 + 327 327 ---- 328 328 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}} 341 +(% 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}} 331 331 332 332 ==== Example ==== 333 333 334 334 ---- 335 335 336 -(% style="color: rgb(107,107,107);" %)Request347 +(% style="color:#6b6b6b" %)Request 337 337 338 -{{code language="php" theme="RDark" title="Get All Users Request" collapse="true"}}349 +{{code language="php" theme="RDark" title="Get All Users Request"}} 339 339 <?php 340 340 341 341 $curl = curl_init(); 342 342 343 343 curl_setopt_array($curl, array( 344 - CURLOPT_URL => ' rayaan.onecount.net/api/v2/users',355 + CURLOPT_URL => 'https://api.onecount.net/v2/users', 345 345 CURLOPT_RETURNTRANSFER => true, 346 346 CURLOPT_ENCODING => '', 347 347 CURLOPT_MAXREDIRS => 10, ... ... @@ -362,11 +362,10 @@ 362 362 363 363 {{/code}} 364 364 365 -\\ 366 366 367 -(% style="color: rgb(107,107,107);" %)Response377 +(% style="color:#6b6b6b" %)Response 200 OK 368 368 369 -{{code language="yml" theme="RDark" title="Get All Users Response" collapse="true"}}379 +{{code language="yml" theme="RDark" collapse="true" title="Get All Users Response"}} 370 370 { 371 371 "result": { 372 372 "success": "1", ... ... @@ -852,41 +852,35 @@ 852 852 } 853 853 {{/code}} 854 854 855 -\\ 856 856 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 jbmEtYdocumentation-core-item-request-name" style="color:rgb(33,33,33);" %)specific User(%%) ==866 +(% id="HGETspecificUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 867 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific User(%%) == 859 859 860 860 ---- 861 861 862 -{{ columnwidth="100%"}}863 - (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color: rgb(33,33,33);" %)~{~{OCID}}864 -{{/ column}}871 +{{panel bgColor="#D3D3D3" width="100%"}} 872 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color:#212121" %)~{~{OCID}} 873 +{{/panel}} 865 865 866 -(% style="" %) 867 -~{~{OCID}} is user id which is provided by ONEcount 875 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 868 868 869 -(% style="" %) 870 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 871 - 872 872 ---- 873 873 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}} 879 +(% 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}} 876 876 877 877 ==== Example ==== 878 878 879 879 ---- 880 880 881 -(% style="color: rgb(107,107,107);" %)Request885 +(% style="color:#6b6b6b" %)Request 882 882 883 -{{code language="php" theme="RDark" title="Get specific User Request" collapse="true"}}887 +{{code language="php" theme="RDark" title="Get specific User Request"}} 884 884 <?php 885 885 886 886 $curl = curl_init(); 887 887 888 888 curl_setopt_array($curl, array( 889 - CURLOPT_URL => ' rayaan.onecount.net/api/v2/users/8418',893 + CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}', 890 890 CURLOPT_RETURNTRANSFER => true, 891 891 CURLOPT_ENCODING => '', 892 892 CURLOPT_MAXREDIRS => 10, ... ... @@ -905,11 +905,10 @@ 905 905 echo $response; 906 906 {{/code}} 907 907 908 -\\ 909 909 910 -(% style="color: rgb(107,107,107);" %)Response913 +(% style="color:#6b6b6b" %)Response 200 OK 911 911 912 -{{code language="yml" theme="RDark" title="Get specific user Response" collapse="true"}}915 +{{code language="yml" theme="RDark" collapse="true" title="Get specific user Response"}} 913 913 { 914 914 "result": { 915 915 "success": "1", ... ... @@ -957,33 +957,27 @@ 957 957 } 958 958 {{/code}} 959 959 960 -\\ 961 961 962 -(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 963 -== (% class=" sc-fzomuh jbmEtYdocumentation-core-item-request-name" style="color:rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtYdocumentation-core-item-request-name" style="color:rgb(33,33,33);" %)964 +(% id="HPOSTUserLogin" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 965 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) User Login(%%) == 964 964 965 965 ---- 966 966 967 -{{ columnwidth="100%"}}968 - (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color: rgb(33,33,33);" %)/login969 -{{/ column}}969 +{{panel bgColor="#D3D3D3" width="100%"}} 970 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/login 971 +{{/panel}} 970 970 971 -(% style="" %) 972 -\\ 973 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 973 973 974 -(% style="" %) 975 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 976 - 977 977 ---- 978 978 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}} 977 +(% 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}} 981 981 982 -=== (% style="color: rgb(33,33,33);" %)Body (% style="color:rgb(107,107,107);" %)raw (json)(%%) ===979 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 983 983 984 984 ---- 985 985 986 -{{code language="yml" theme="RDark" title="Body" collapse="true"}}983 +{{code language="yml" theme="RDark" title="Body"}} 987 987 {"e":"rayaan@one-count.com","p":"12345"} 988 988 {{/code}} 989 989 ... ... @@ -991,15 +991,15 @@ 991 991 992 992 ---- 993 993 994 -(% style="color: rgb(107,107,107);" %)Request991 +(% style="color:#6b6b6b" %)Request 995 995 996 -{{code language="php" theme="RDark" title="User login Request" collapse="true"}}993 +{{code language="php" theme="RDark" title="User login Request"}} 997 997 <?php 998 998 999 999 $curl = curl_init(); 1000 1000 1001 1001 curl_setopt_array($curl, array( 1002 - CURLOPT_URL => ' rayaan.onecount.net/api/v2/users/login',999 + CURLOPT_URL => 'https://api.onecount.net/v2/users/login', 1003 1003 CURLOPT_RETURNTRANSFER => true, 1004 1004 CURLOPT_ENCODING => '', 1005 1005 CURLOPT_MAXREDIRS => 10, ... ... @@ -1019,11 +1019,10 @@ 1019 1019 echo $response; 1020 1020 {{/code}} 1021 1021 1022 -\\ 1023 1023 1024 -(% style="color: rgb(107,107,107);" %)Response1020 +(% style="color:#6b6b6b" %)Response 200 OK 1025 1025 1026 -{{code language="yml" theme="RDark" title="Login user Response" collapse="true"}}1022 +{{code language="yml" theme="RDark" collapse="true" title="Login user Response"}} 1027 1027 { 1028 1028 "result": { 1029 1029 "success": "1", ... ... @@ -1038,48 +1038,42 @@ 1038 1038 } 1039 1039 {{/code}} 1040 1040 1041 -\\ 1042 1042 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 jbmEtYdocumentation-core-item-request-name" style="color:rgb(33,33,33);" %)lookup User(%%) ==1038 +(% id="HGETlookupUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1039 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup User(%%) == 1045 1045 1046 1046 ---- 1047 1047 1048 -{{ columnwidth="100%"}}1049 - rgb(33,33,33);" %)/lookup?2=user_242_6298&return=1,2,3,41050 -{{/ column}}1043 +{{panel bgColor="#D3D3D3" width="100%"}} 1044 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/lookup?2=user_242_6298&return=1,2,3,4 1045 +{{/panel}} 1051 1051 1052 -(% style="" %) 1053 -\\ 1047 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1054 1054 1055 -(% style="" %) 1056 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1057 - 1058 1058 ---- 1059 1059 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}} 1051 +(% 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}} 1062 1062 1063 -=== (% style="color: rgb(33,33,33);" %)Query Params(%%) ===1053 +=== (% style="color:#212121" %)Query Params(%%) === 1064 1064 1065 1065 ---- 1066 1066 1067 -(% class="Text__TextContainer-sc-1kqigik-0 iauueY sc-fznXWL cEvDCP item-key" style="color:rgb(33,33,33);" %)2rgb(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);" %)returnrgb(33,33,33);" %)1,2,3,41057 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)2 (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)user_242_6298(%%) 1058 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)return (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)1,2,3,4 1069 1069 1070 1070 ==== Example ==== 1071 1071 1072 1072 ---- 1073 1073 1074 -(% style="color: rgb(107,107,107);" %)Request1064 +(% style="color:#6b6b6b" %)Request 1075 1075 1076 -{{code language="php" theme="RDark" title="Lookup user Request" collapse="true"}}1066 +{{code language="php" theme="RDark" title="Lookup user Request"}} 1077 1077 <?php 1078 1078 1079 1079 $curl = curl_init(); 1080 1080 1081 1081 curl_setopt_array($curl, array( 1082 - CURLOPT_URL => ' rayaan.onecount.net/api/v2/users/lookup?2=user_242_6298&return=1%2C2%2C3%2C4',1072 + CURLOPT_URL => 'https://api.onecount.net/v2/users/lookup?2=user_242_6298&return=1,2,3,4', 1083 1083 CURLOPT_RETURNTRANSFER => true, 1084 1084 CURLOPT_ENCODING => '', 1085 1085 CURLOPT_MAXREDIRS => 10, ... ... @@ -1098,11 +1098,10 @@ 1098 1098 echo $response; 1099 1099 {{/code}} 1100 1100 1101 -\\ 1102 1102 1103 -(% style="color: rgb(107,107,107);" %)Response1092 +(% style="color:#6b6b6b" %)Response 200 OK 1104 1104 1105 -{{code language="yml" theme="RDark" title="Lookup user Response" collapse="true"}}1094 +{{code language="yml" theme="RDark" collapse="true" title="Lookup user Response"}} 1106 1106 { 1107 1107 "result": { 1108 1108 "success": "1", ... ... @@ -1125,553 +1125,363 @@ 1125 1125 } 1126 1126 {{/code}} 1127 1127 1128 -\\ 1129 1129 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 jbmEtYdocumentation-core-item-request-name" style="color:rgb(33,33,33);" %)Partners(%%) ==1118 +(% id="HGETPartners" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1119 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Partners(%%) == 1132 1132 1133 1133 ---- 1134 1134 1135 -{{ columnwidth="100%"}}1136 - rgb(33,33,33);" %)/users/~{~{OCID}}/partners/~{~{Partner id}}1137 -{{/ column}}1123 +{{panel bgColor="#D3D3D3" width="100%"}} 1124 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/users/~{~{OCID}}/partners/~{~{Partner id}} 1125 +{{/panel}} 1138 1138 1139 -(% style="" %) 1140 -\\ 1127 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1141 1141 1142 -(% style="" %) 1143 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) === 1144 - 1145 1145 ---- 1146 1146 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}} 1131 +(% 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}} 1149 1149 1150 -(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1151 -== (% class=" sc-fzomuh jbmEtYdocumentation-core-item-request-name" style="color:rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtYdocumentation-core-item-request-name" style="color:rgb(33,33,33);" %)1133 +(% id="HPOSTCreateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1134 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create user(%%) == 1152 1152 1153 1153 ---- 1154 1154 1155 -{{ columnwidth="100%"}}1156 - 1157 -{{/ column}}1138 +{{panel bgColor="#D3D3D3" width="100%"}} 1139 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users 1140 +{{/panel}} 1158 1158 1159 -(% style="" %) 1160 -\\ 1161 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 - 1373 1373 (% 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" %) 1473 1473 **POST method should be used to create users.** 1474 1474 1475 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1146 +(% class="wrapped" %) 1147 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1476 1476 ((( 1477 1477 (% class="western" %) 1478 1478 **Request** 1479 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1151 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1480 1480 ((( 1481 1481 (% class="western" %) 1482 1482 **Type** 1483 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1155 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1484 1484 ((( 1485 1485 (% class="western" %) 1486 1486 **Description** 1487 1487 ))) 1488 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1160 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1489 1489 ((( 1490 1490 (% class="western" %) 1491 1491 Users 1492 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1164 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1493 1493 ((( 1494 1494 (% class="western" %) 1495 1495 Users 1496 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1168 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1497 1497 ((( 1498 1498 (% class="western" %) 1499 -Users object that contains information about user to create. PartnerId Needs to be specified. 1171 +Users object that contains information about user to create. PartnerId Needs to be specified. PartnerId is any integer value. 1500 1500 ))) 1501 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1173 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1502 1502 ((( 1503 1503 (% class="western" %) 1504 1504 Transactions 1505 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1177 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1506 1506 ((( 1507 1507 (% class="western" %) 1508 1508 Transactions 1509 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1181 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1510 1510 ((( 1511 1511 (% class="western" %) 1512 1512 (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. 1513 1513 ))) 1514 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1186 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1515 1515 ((( 1516 1516 (% class="western" %) 1517 1517 DedupeColumns 1518 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1190 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1519 1519 ((( 1520 1520 (% class="western" %) 1521 1521 String 1522 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1194 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1523 1523 ((( 1524 1524 (% class="western" %) 1525 1525 CSV of question id's that should be considered to find duplicate. 1526 1526 ))) 1527 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1199 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1528 1528 ((( 1529 1529 (% class="western" %) 1530 1530 Return 1531 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1203 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1532 1532 ((( 1533 1533 (% class="western" %) 1534 1534 String 1535 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1207 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1536 1536 ((( 1537 1537 (% class="western" %) 1538 1538 CSV of ONEcount QuestionId's requested back in Users object in response. 1539 1539 ))) 1540 1540 1541 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1213 +(% class="wrapped" %) 1214 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1542 1542 ((( 1543 1543 (% class="western" %) 1544 1544 **Response** 1545 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1218 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1546 1546 ((( 1547 1547 (% class="western" %) 1548 1548 **Type** 1549 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1222 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1550 1550 ((( 1551 1551 (% class="western" %) 1552 1552 **Description** 1553 1553 ))) 1554 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1227 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1555 1555 ((( 1556 1556 (% class="western" %) 1557 1557 Users 1558 1558 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1559 1559 ((( 1560 -(% class="western" align ="left" %)1233 +(% class="western" style="text-align:left" %) 1561 1561 Users 1562 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1235 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1563 1563 ((( 1564 1564 (% class="western" %) 1565 1565 Created users returned with the demo field requested in return parameter in json format. If return was not specified only UserId will be returned. 1566 1566 ))) 1567 1567 1568 - \\1241 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1569 1569 1243 +---- 1244 + 1245 +(% 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}} 1246 + 1247 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 1248 + 1249 +---- 1250 + 1251 +{{code language="yml" theme="RDark" title="Body"}} 1252 +{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]} 1253 +{{/code}} 1254 + 1255 +==== Example ==== 1256 + 1257 +---- 1258 + 1259 +(% style="color:#6b6b6b" %)Request 1260 + 1261 +{{code language="php" theme="RDark" title="Create User Request"}} 1262 +<?php 1263 + 1264 +$curl = curl_init(); 1265 + 1266 +curl_setopt_array($curl, array( 1267 + CURLOPT_URL => 'https://api.onecount.net/v2/users', 1268 + CURLOPT_RETURNTRANSFER => true, 1269 + CURLOPT_ENCODING => '', 1270 + CURLOPT_MAXREDIRS => 10, 1271 + CURLOPT_TIMEOUT => 0, 1272 + CURLOPT_FOLLOWLOCATION => true, 1273 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1274 + CURLOPT_CUSTOMREQUEST => 'POST', 1275 + CURLOPT_POSTFIELDS =>'{"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan6@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}', 1276 + CURLOPT_HTTPHEADER => array( 1277 + 'Appkey: {{ONECOUNT API KEY}}' 1278 + ), 1279 +)); 1280 + 1281 +$response = curl_exec($curl); 1282 + 1283 +curl_close($curl); 1284 +echo $response; 1285 +{{/code}} 1286 + 1287 + 1288 +(% style="color:#6b6b6b" %)Response 200 OK 1289 + 1290 +{{code language="yml" theme="RDark" collapse="true" title="Create user Response"}} 1291 +{ 1292 + "result": { 1293 + "success": "1", 1294 + "error": { 1295 + "code": "", 1296 + "message": "" 1297 + } 1298 + }, 1299 + "Users": { 1300 + "Id": 1845831 1301 + } 1302 +} 1303 +{{/code}} 1304 + 1305 + 1306 +(% id="HPUTUpdateuser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1307 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update user(%%) == 1308 + 1309 +---- 1310 + 1311 +{{panel bgColor="#D3D3D3" width="100%"}} 1312 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/~{~{OCID(% class="nolink" %)}} 1313 +{{/panel}} 1314 + 1315 + 1570 1570 (% class="western" %) 1571 1571 **PUT method should be used to update users.** 1572 1572 1573 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1319 +(% class="wrapped" %) 1320 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1574 1574 ((( 1575 1575 (% class="western" %) 1576 1576 **Request** 1577 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1324 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1578 1578 ((( 1579 1579 (% class="western" %) 1580 1580 **Type** 1581 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1328 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1582 1582 ((( 1583 1583 (% class="western" %) 1584 1584 **Description** 1585 1585 ))) 1586 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1333 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1587 1587 ((( 1588 1588 (% class="western" %) 1589 1589 Users 1590 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1337 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1591 1591 ((( 1592 1592 (% class="western" %) 1593 1593 Users 1594 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1341 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1595 1595 ((( 1596 1596 (% class="western" %) 1597 -Users object with update fields. Return property has csvof questions id requested back in Users object.1344 +Users object with update fields. Return property has CSV of questions id requested back in Users object. 1598 1598 ))) 1599 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1346 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1600 1600 ((( 1601 1601 (% class="western" %) 1602 1602 Return 1603 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1350 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1604 1604 ((( 1605 1605 (% class="western" %) 1606 1606 String 1607 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1354 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1608 1608 ((( 1609 1609 (% class="western" %) 1610 1610 CSV of ONEcount QuestionId's requested back in Users object in response 1611 1611 ))) 1612 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1359 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1613 1613 ((( 1614 1614 (% class="western" %) 1615 1615 RequestDate 1616 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1363 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1617 1617 ((( 1618 1618 (% class="western" %) 1619 1619 Date 1620 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1367 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1621 1621 ((( 1622 1622 (% class="western" %) 1623 1623 RequestDate to use for the demo update. If not provided current date will be used. 1624 1624 ))) 1625 1625 1626 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1373 +(% class="wrapped" %) 1374 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1627 1627 ((( 1628 1628 (% class="western" %) 1629 1629 **Response** 1630 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1378 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1631 1631 ((( 1632 1632 (% class="western" %) 1633 1633 **Type** 1634 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1382 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1635 1635 ((( 1636 1636 (% class="western" %) 1637 1637 **Description** 1638 1638 ))) 1639 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1387 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1640 1640 ((( 1641 1641 (% class="western" %) 1642 1642 Users 1643 1643 )))|=(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1644 1644 ((( 1645 -(% class="western" align ="left" %)1393 +(% class="western" style="text-align:left" %) 1646 1646 Users 1647 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1395 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1648 1648 ((( 1649 1649 (% class="western" %) 1650 1650 Updated user returned with the demo field requested in return parameter in json format. 1651 1651 ))) 1652 1652 1653 -(% class="western" %) 1654 -\\ 1401 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1655 1655 1656 -(% class="western" %) 1657 -\\ 1403 +---- 1658 1658 1659 -(% class="western" %) 1660 -Create new users. Here in this example the JSON for request is passed in userFile.json file. 1405 +(% 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}} 1661 1661 1662 - {{{curl-XPOST -H “Appkey: xxx” -H "Content-Type: application/json"–data-binary-d'@userFile.json' https://api.onecount.net/v2/users}}}1407 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 1663 1663 1664 -(% class="western" %) 1665 -**~ ** 1409 +---- 1666 1666 1667 -(% class="western" %) 1668 -**~ ** 1411 +{{code language="yml" theme="RDark" title="Body"}} 1412 +{"Users":{"Demo":{"6":"title1"}}} 1413 +{{/code}} 1669 1669 1670 - \\1415 +==== Example ==== 1671 1671 1672 -(% class="western" %) 1673 -**COMPONENT: Questions** 1417 +---- 1674 1674 1419 +(% style="color:#6b6b6b" %)Request 1420 + 1421 +{{code language="php" theme="RDark" title="Update User Request"}} 1422 +<?php 1423 + 1424 +$curl = curl_init(); 1425 + 1426 +curl_setopt_array($curl, array( 1427 + CURLOPT_URL => 'https://api.onecount.net/v2/users/{{OCID}}', 1428 + CURLOPT_RETURNTRANSFER => true, 1429 + CURLOPT_ENCODING => '', 1430 + CURLOPT_MAXREDIRS => 10, 1431 + CURLOPT_TIMEOUT => 0, 1432 + CURLOPT_FOLLOWLOCATION => true, 1433 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1434 + CURLOPT_CUSTOMREQUEST => 'PUT', 1435 + CURLOPT_POSTFIELDS =>'{"Users":{"Demo":{"6":"title"}}}', 1436 + CURLOPT_HTTPHEADER => array( 1437 + 'Appkey: {{ONECOUNT API KEY}}' 1438 + ), 1439 +)); 1440 + 1441 +$response = curl_exec($curl); 1442 + 1443 +curl_close($curl); 1444 +echo $response; 1445 + 1446 + 1447 +{{/code}} 1448 + 1449 + 1450 +(% style="color:#6b6b6b" %)Response 200 OK 1451 + 1452 +{{code language="yml" theme="RDark" collapse="true" title="Update user Response"}} 1453 +{ 1454 + "result": { 1455 + "success": "1", 1456 + "error": { 1457 + "code": "", 1458 + "message": "" 1459 + } 1460 + }, 1461 + "Users": [ 1462 + { 1463 + "Id": 1845823, 1464 + "OCID_HASH": "fccaa8dc7afadccc5882528d47b27c2bb53e2788dd0ac1fe170abef77a9c4d5b" 1465 + } 1466 + ] 1467 +} 1468 +{{/code}} 1469 + 1470 + 1471 +(% id="HCOMPONENT:Questions" class="western" %) 1472 +=== **COMPONENT: Questions** === 1473 + 1675 1675 (% class="western" %) 1676 1676 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). 1677 1677 ... ... @@ -1684,131 +1684,141 @@ 1684 1684 (% class="western" %) 1685 1685 There can be 6 types of questions: 1686 1686 1687 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1486 +(% class="wrapped" %) 1487 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1688 1688 ((( 1689 -(% class="western" align ="center" %)1489 +(% class="western" style="text-align:center" %) 1690 1690 **Type** 1691 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1491 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1692 1692 ((( 1693 1693 (% class="western" %) 1694 1694 **Description** 1695 1695 ))) 1696 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1496 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1697 1697 ((( 1698 -(% class="western" align ="center" %)1699 - 11700 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1498 +(% class="western" style="text-align:center" %) 1499 +0 1500 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1701 1701 ((( 1702 1702 (% class="western" %) 1703 -Text boxtype questions or short response type question. The response length needs to be less than 255 characters.1503 +Text type questions or short response type question. The response length needs to be less than 255 characters. 1704 1704 ))) 1705 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1505 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1706 1706 ((( 1707 -(% class="western" align ="center" %)1708 - 21709 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1507 +(% class="western" style="text-align:center" %) 1508 +1 1509 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1710 1710 ((( 1711 1711 (% class="western" %) 1712 1712 Textarea type question or long response type question. 1713 1713 ))) 1714 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1514 +|(% style="text-align:left; vertical-align:top" %)((( 1515 +(% style="text-align: left;vertical-align: top;" %) 1715 1715 ((( 1716 -(% class="western" align="center" %) 1717 -3 1718 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1517 +(% class="western" style="text-align:center" %) 1518 +2 1519 +))) 1520 + 1719 1719 ((( 1522 + 1523 +))) 1524 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1525 +((( 1720 1720 (% class="western" %) 1721 1721 Password type question. This is basically same as type 1 but when displayed in ONEcount frontend forms typed characters appears as *. 1722 1722 ))) 1723 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1529 +|(% style="text-align:left; vertical-align:top" %) 3|(% style="text-align:left; vertical-align:top" %)Numeric type question. 1530 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1724 1724 ((( 1725 -(% class="western" align ="center" %)1532 +(% class="western" style="text-align:center" %) 1726 1726 4 1727 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1534 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1728 1728 ((( 1729 1729 (% class="western" %) 1730 1730 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. 1731 1731 ))) 1732 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1539 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1733 1733 ((( 1734 -(% class="western" align ="center" %)1541 +(% class="western" style="text-align:center" %) 1735 1735 5 1736 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1543 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1737 1737 ((( 1738 1738 (% class="western" %) 1739 1739 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. 1740 1740 ))) 1741 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1548 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1742 1742 ((( 1743 -(% class="western" align ="center" %)1550 +(% class="western" style="text-align:center" %) 1744 1744 6 1745 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1552 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1746 1746 ((( 1747 1747 (% class="western" %) 1748 1748 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. 1749 1749 ))) 1557 +|(% style="text-align:left; vertical-align:top" %) 7 |(% style="text-align:left; vertical-align:top" %)Date type question. 1750 1750 1751 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 1559 +(% class="wrapped" %) 1560 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1752 1752 ((( 1753 1753 (% class="western" %) 1754 1754 **Method** 1755 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1564 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1756 1756 ((( 1757 1757 (% class="western" %) 1758 1758 **Url** 1759 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1568 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1760 1760 ((( 1761 1761 (% class="western" %) 1762 1762 **Action** 1763 1763 ))) 1764 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1573 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1765 1765 ((( 1766 1766 (% class="western" %) 1767 1767 GET 1768 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1577 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1769 1769 ((( 1770 1770 (% class="western" %) 1771 1771 /questions 1772 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1581 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1773 1773 ((( 1774 1774 (% class="western" %) 1775 1775 List all questions 1776 1776 ))) 1777 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1586 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1778 1778 ((( 1779 1779 (% class="western" %) 1780 1780 GET 1781 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1590 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1782 1782 ((( 1783 1783 (% class="western" %) 1784 1784 /questions/1 1785 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1594 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1786 1786 ((( 1787 1787 (% class="western" %) 1788 1788 Returns question id 1 1789 1789 ))) 1790 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1599 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1791 1791 ((( 1792 1792 (% class="western" %) 1793 1793 GET 1794 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1603 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1795 1795 ((( 1796 1796 (% class="western" %) 1797 1797 /questions/lookup?Text=Email 1798 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1607 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1799 1799 ((( 1800 1800 (% class="western" %) 1801 1801 Returns all questions with “Email" in question text 1802 1802 ))) 1803 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1612 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1804 1804 ((( 1805 1805 (% class="western" %) 1806 1806 POST 1807 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1616 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1808 1808 ((( 1809 1809 (% class="western" %) 1810 1810 /questions 1811 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1620 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1812 1812 ((( 1813 1813 (% class="western" %) 1814 1814 Create a new question ... ... @@ -1816,15 +1816,15 @@ 1816 1816 (% class="western" %) 1817 1817 JSON of the Questions type object needs to be sent as post data. Id field should not be sent. 1818 1818 ))) 1819 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)1628 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1820 1820 ((( 1821 1821 (% class="western" %) 1822 1822 PUT 1823 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1632 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1824 1824 ((( 1825 1825 (% class="western" %) 1826 1826 /questions 1827 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)1636 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 1828 1828 ((( 1829 1829 (% class="western" %) 1830 1830 Update a question ... ... @@ -1831,349 +1831,6694 @@ 1831 1831 1832 1832 (% class="western" %) 1833 1833 JSON of the Questions type object needs to be sent as post data. Id field is mandatory for update. 1643 + 1644 +(% class="western" %) 1645 +NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body. 1834 1834 ))) 1835 1835 1836 -\\ 1648 +(% id="HGETAllQuestions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 1649 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Questions(%%) == 1837 1837 1838 -(% class="western" %) 1839 -**GET method can be used to lookup questions.** 1651 +---- 1840 1840 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. 1653 +---- 1866 1866 1867 -(% class="western" %) 1868 -Params: 1655 +{{panel bgColor="#D3D3D3" width="100%"}} 1656 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/(% style="color:#212121" %)questions 1657 +{{/panel}} 1869 1869 1870 -(% class="western" %) 1871 -Text: Word or phrase that should be present in the question text (String) 1659 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1872 1872 1873 -(% class="western" %) 1874 -Type: Look up the question type. 1875 -))) 1661 +---- 1876 1876 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 -))) 1663 +(% 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}} 1903 1903 1904 - \\1665 +==== Example ==== 1905 1905 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).** 1667 +---- 1908 1908 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 -))) 1669 +(% style="color:#6b6b6b" %)Request 1935 1935 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 -))) 1671 +{{code language="php" theme="RDark" title="Get All Questions Request"}} 1672 +<?php 1962 1962 1963 - \\1674 +$curl = curl_init(); 1964 1964 1965 -(% class="western" %) 1966 -PUT method should be used to update question. 1676 +curl_setopt_array($curl, array( 1677 + CURLOPT_URL => 'https://api.onecount.net/v2/questions', 1678 + CURLOPT_RETURNTRANSFER => true, 1679 + CURLOPT_ENCODING => '', 1680 + CURLOPT_MAXREDIRS => 10, 1681 + CURLOPT_TIMEOUT => 0, 1682 + CURLOPT_FOLLOWLOCATION => true, 1683 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 1684 + CURLOPT_CUSTOMREQUEST => 'GET', 1685 + CURLOPT_HTTPHEADER => array( 1686 + 'Appkey: 70856f83422599c8e36191098f1536ae06e7bbcd' 1687 + ), 1688 +)); 1967 1967 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 -))) 1690 +$response = curl_exec($curl); 1994 1994 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 -))) 1692 +curl_close($curl); 1693 +echo $response; 2021 2021 2022 -(% class="western" %) 2023 -\\ 2024 2024 2025 -(% class="western" %) 2026 -Example: Get list of questions from api which has FirstName in text 2027 2027 2028 -{{ {curl -X GET -H “Appkey: xxx” https://api.onecount.net/v2/questions/lookup?Text=FirstName}}}1697 +{{/code}} 2029 2029 2030 -(% class="western" %) 1699 + 1700 +(% style="color:#6b6b6b" %)Response 200 OK 1701 + 1702 +{{code language="yml" theme="RDark" collapse="true" title="Get All Questions Response"}} 2031 2031 { 1704 + "result": { 1705 + "success": "1", 1706 + "error": { 1707 + "code": "", 1708 + "message": "" 1709 + } 1710 + }, 1711 + "Questions": [ 1712 + { 1713 + "Id": 1, 1714 + "Text": "Email", 1715 + "Type": "0", 1716 + "Alias": "Email" 1717 + }, 1718 + { 1719 + "Id": 2, 1720 + "Text": "Username", 1721 + "Type": "0", 1722 + "Alias": "Username" 1723 + }, 1724 + { 1725 + "Id": 3, 1726 + "Text": "Password", 1727 + "Type": "2", 1728 + "Alias": "Password" 1729 + }, 1730 + { 1731 + "Id": 4, 1732 + "Text": "First Name", 1733 + "Type": "0", 1734 + "Alias": "First Name" 1735 + }, 1736 + { 1737 + "Id": 5, 1738 + "Text": "Last Name", 1739 + "Type": "0", 1740 + "Alias": "Last Name" 1741 + }, 1742 + { 1743 + "Id": 6, 1744 + "Text": "Title", 1745 + "Type": "0", 1746 + "Alias": "Title" 1747 + }, 1748 + { 1749 + "Id": 7, 1750 + "Text": "Company Name", 1751 + "Type": "0", 1752 + "Alias": "Company Name" 1753 + }, 1754 + { 1755 + "Id": 8, 1756 + "Text": "Company Address", 1757 + "Type": "0", 1758 + "Alias": "Company Address" 1759 + }, 1760 + { 1761 + "Id": 9, 1762 + "Text": "Address2", 1763 + "Type": "0", 1764 + "Alias": "Address2" 1765 + }, 1766 + { 1767 + "Id": 10, 1768 + "Text": "City", 1769 + "Type": "0", 1770 + "Alias": "City" 1771 + }, 1772 + { 1773 + "Id": 11, 1774 + "Text": "State/Province", 1775 + "Type": "4", 1776 + "Alias": "State/Province", 1777 + "Choices": [ 1778 + { 1779 + "Id": 1554, 1780 + "QuestionId": 11, 1781 + "Text": "Select One", 1782 + "Value": "", 1783 + "Order": 1 1784 + }, 1785 + { 1786 + "Id": 1562, 1787 + "QuestionId": 11, 1788 + "Text": "Alabama", 1789 + "Value": "AL", 1790 + "Order": 2 1791 + }, 1792 + { 1793 + "Id": 1570, 1794 + "QuestionId": 11, 1795 + "Text": "Alaska", 1796 + "Value": "AK", 1797 + "Order": 3 1798 + }, 1799 + { 1800 + "Id": 1578, 1801 + "QuestionId": 11, 1802 + "Text": "Arizona", 1803 + "Value": "AZ", 1804 + "Order": 4 1805 + }, 1806 + { 1807 + "Id": 1586, 1808 + "QuestionId": 11, 1809 + "Text": "Arkansas", 1810 + "Value": "AR", 1811 + "Order": 5 1812 + }, 1813 + { 1814 + "Id": 1594, 1815 + "QuestionId": 11, 1816 + "Text": "California", 1817 + "Value": "CA", 1818 + "Order": 6 1819 + }, 1820 + { 1821 + "Id": 1602, 1822 + "QuestionId": 11, 1823 + "Text": "Colorado", 1824 + "Value": "CO", 1825 + "Order": 7 1826 + }, 1827 + { 1828 + "Id": 1610, 1829 + "QuestionId": 11, 1830 + "Text": "Connecticut", 1831 + "Value": "CT", 1832 + "Order": 8 1833 + }, 1834 + { 1835 + "Id": 1618, 1836 + "QuestionId": 11, 1837 + "Text": "Delaware", 1838 + "Value": "DE", 1839 + "Order": 9 1840 + }, 1841 + { 1842 + "Id": 1626, 1843 + "QuestionId": 11, 1844 + "Text": "District of Columbia", 1845 + "Value": "DC", 1846 + "Order": 10 1847 + }, 1848 + { 1849 + "Id": 1634, 1850 + "QuestionId": 11, 1851 + "Text": "Florida", 1852 + "Value": "FL", 1853 + "Order": 11 1854 + }, 1855 + { 1856 + "Id": 1642, 1857 + "QuestionId": 11, 1858 + "Text": "Georgia", 1859 + "Value": "GA", 1860 + "Order": 12 1861 + }, 1862 + { 1863 + "Id": 1650, 1864 + "QuestionId": 11, 1865 + "Text": "Hawaii", 1866 + "Value": "HI", 1867 + "Order": 13 1868 + }, 1869 + { 1870 + "Id": 1658, 1871 + "QuestionId": 11, 1872 + "Text": "Idaho", 1873 + "Value": "ID", 1874 + "Order": 14 1875 + }, 1876 + { 1877 + "Id": 1666, 1878 + "QuestionId": 11, 1879 + "Text": "Illinois", 1880 + "Value": "IL", 1881 + "Order": 15 1882 + }, 1883 + { 1884 + "Id": 1674, 1885 + "QuestionId": 11, 1886 + "Text": "Indiana", 1887 + "Value": "IN", 1888 + "Order": 16 1889 + }, 1890 + { 1891 + "Id": 1682, 1892 + "QuestionId": 11, 1893 + "Text": "Iowa", 1894 + "Value": "IA", 1895 + "Order": 17 1896 + }, 1897 + { 1898 + "Id": 1690, 1899 + "QuestionId": 11, 1900 + "Text": "Kansas", 1901 + "Value": "KS", 1902 + "Order": 18 1903 + }, 1904 + { 1905 + "Id": 1698, 1906 + "QuestionId": 11, 1907 + "Text": "Kentucky", 1908 + "Value": "KY", 1909 + "Order": 19 1910 + }, 1911 + { 1912 + "Id": 1706, 1913 + "QuestionId": 11, 1914 + "Text": "Louisiana", 1915 + "Value": "LA", 1916 + "Order": 20 1917 + }, 1918 + { 1919 + "Id": 1714, 1920 + "QuestionId": 11, 1921 + "Text": "Maine", 1922 + "Value": "ME", 1923 + "Order": 21 1924 + }, 1925 + { 1926 + "Id": 1722, 1927 + "QuestionId": 11, 1928 + "Text": "Maryland", 1929 + "Value": "MD", 1930 + "Order": 22 1931 + }, 1932 + { 1933 + "Id": 1730, 1934 + "QuestionId": 11, 1935 + "Text": "Massachusetts", 1936 + "Value": "MA", 1937 + "Order": 23 1938 + }, 1939 + { 1940 + "Id": 1738, 1941 + "QuestionId": 11, 1942 + "Text": "Michigan", 1943 + "Value": "MI", 1944 + "Order": 24 1945 + }, 1946 + { 1947 + "Id": 1746, 1948 + "QuestionId": 11, 1949 + "Text": "Minnesota", 1950 + "Value": "MN", 1951 + "Order": 25 1952 + }, 1953 + { 1954 + "Id": 1754, 1955 + "QuestionId": 11, 1956 + "Text": "Mississippi", 1957 + "Value": "MS", 1958 + "Order": 26 1959 + }, 1960 + { 1961 + "Id": 1762, 1962 + "QuestionId": 11, 1963 + "Text": "Missouri", 1964 + "Value": "MO", 1965 + "Order": 27 1966 + }, 1967 + { 1968 + "Id": 1770, 1969 + "QuestionId": 11, 1970 + "Text": "Montana", 1971 + "Value": "MT", 1972 + "Order": 28 1973 + }, 1974 + { 1975 + "Id": 1778, 1976 + "QuestionId": 11, 1977 + "Text": "Nebraska", 1978 + "Value": "NE", 1979 + "Order": 29 1980 + }, 1981 + { 1982 + "Id": 1786, 1983 + "QuestionId": 11, 1984 + "Text": "Nevada", 1985 + "Value": "NV", 1986 + "Order": 30 1987 + }, 1988 + { 1989 + "Id": 1794, 1990 + "QuestionId": 11, 1991 + "Text": "New Hampshire", 1992 + "Value": "NH", 1993 + "Order": 31 1994 + }, 1995 + { 1996 + "Id": 1802, 1997 + "QuestionId": 11, 1998 + "Text": "New Jersey", 1999 + "Value": "NJ", 2000 + "Order": 32 2001 + }, 2002 + { 2003 + "Id": 1810, 2004 + "QuestionId": 11, 2005 + "Text": "New Mexico", 2006 + "Value": "NM", 2007 + "Order": 33 2008 + }, 2009 + { 2010 + "Id": 1818, 2011 + "QuestionId": 11, 2012 + "Text": "New York", 2013 + "Value": "NY", 2014 + "Order": 34 2015 + }, 2016 + { 2017 + "Id": 1826, 2018 + "QuestionId": 11, 2019 + "Text": "North Carolina", 2020 + "Value": "NC", 2021 + "Order": 35 2022 + }, 2023 + { 2024 + "Id": 1834, 2025 + "QuestionId": 11, 2026 + "Text": "Ohio", 2027 + "Value": "OH", 2028 + "Order": 37 2029 + }, 2030 + { 2031 + "Id": 1842, 2032 + "QuestionId": 11, 2033 + "Text": "Oklahoma", 2034 + "Value": "OK", 2035 + "Order": 38 2036 + }, 2037 + { 2038 + "Id": 1850, 2039 + "QuestionId": 11, 2040 + "Text": "Oregon", 2041 + "Value": "OR", 2042 + "Order": 39 2043 + }, 2044 + { 2045 + "Id": 1858, 2046 + "QuestionId": 11, 2047 + "Text": "Pennsylvania", 2048 + "Value": "PA", 2049 + "Order": 40 2050 + }, 2051 + { 2052 + "Id": 1866, 2053 + "QuestionId": 11, 2054 + "Text": "Rhode Island", 2055 + "Value": "RI", 2056 + "Order": 41 2057 + }, 2058 + { 2059 + "Id": 1874, 2060 + "QuestionId": 11, 2061 + "Text": "South Carolina", 2062 + "Value": "SC", 2063 + "Order": 42 2064 + }, 2065 + { 2066 + "Id": 1882, 2067 + "QuestionId": 11, 2068 + "Text": "South Dakota", 2069 + "Value": "SD", 2070 + "Order": 43 2071 + }, 2072 + { 2073 + "Id": 1890, 2074 + "QuestionId": 11, 2075 + "Text": "Tennessee", 2076 + "Value": "TN", 2077 + "Order": 44 2078 + }, 2079 + { 2080 + "Id": 1898, 2081 + "QuestionId": 11, 2082 + "Text": "Texas", 2083 + "Value": "TX", 2084 + "Order": 45 2085 + }, 2086 + { 2087 + "Id": 1906, 2088 + "QuestionId": 11, 2089 + "Text": "Utah", 2090 + "Value": "UT", 2091 + "Order": 46 2092 + }, 2093 + { 2094 + "Id": 1914, 2095 + "QuestionId": 11, 2096 + "Text": "Vermont", 2097 + "Value": "VT", 2098 + "Order": 47 2099 + }, 2100 + { 2101 + "Id": 1922, 2102 + "QuestionId": 11, 2103 + "Text": "Virginia", 2104 + "Value": "VA", 2105 + "Order": 48 2106 + }, 2107 + { 2108 + "Id": 1930, 2109 + "QuestionId": 11, 2110 + "Text": "Washington", 2111 + "Value": "WA", 2112 + "Order": 49 2113 + }, 2114 + { 2115 + "Id": 1938, 2116 + "QuestionId": 11, 2117 + "Text": "West Virginia", 2118 + "Value": "WV", 2119 + "Order": 50 2120 + }, 2121 + { 2122 + "Id": 1946, 2123 + "QuestionId": 11, 2124 + "Text": "Wisconsin", 2125 + "Value": "WI", 2126 + "Order": 51 2127 + }, 2128 + { 2129 + "Id": 1954, 2130 + "QuestionId": 11, 2131 + "Text": "Wyoming", 2132 + "Value": "WY", 2133 + "Order": 52 2134 + }, 2135 + { 2136 + "Id": 1962, 2137 + "QuestionId": 11, 2138 + "Text": "American Samoa", 2139 + "Value": "AS", 2140 + "Order": 53 2141 + }, 2142 + { 2143 + "Id": 1970, 2144 + "QuestionId": 11, 2145 + "Text": "North Dakota", 2146 + "Value": "ND", 2147 + "Order": 36 2148 + }, 2149 + { 2150 + "Id": 1978, 2151 + "QuestionId": 11, 2152 + "Text": "Federated States of Micronesia", 2153 + "Value": "FM", 2154 + "Order": 54 2155 + }, 2156 + { 2157 + "Id": 1986, 2158 + "QuestionId": 11, 2159 + "Text": "Guam", 2160 + "Value": "GU", 2161 + "Order": 55 2162 + }, 2163 + { 2164 + "Id": 1994, 2165 + "QuestionId": 11, 2166 + "Text": "Marshall Islands", 2167 + "Value": "MH", 2168 + "Order": 56 2169 + }, 2170 + { 2171 + "Id": 2002, 2172 + "QuestionId": 11, 2173 + "Text": "Northern Mariana Islands", 2174 + "Value": "MP", 2175 + "Order": 57 2176 + }, 2177 + { 2178 + "Id": 2010, 2179 + "QuestionId": 11, 2180 + "Text": "Palau", 2181 + "Value": "PW", 2182 + "Order": 58 2183 + }, 2184 + { 2185 + "Id": 2018, 2186 + "QuestionId": 11, 2187 + "Text": "Puerto Rico", 2188 + "Value": "PR", 2189 + "Order": 59 2190 + }, 2191 + { 2192 + "Id": 2026, 2193 + "QuestionId": 11, 2194 + "Text": "U.S. Virgin Islands", 2195 + "Value": "VI", 2196 + "Order": 60 2197 + }, 2198 + { 2199 + "Id": 2034, 2200 + "QuestionId": 11, 2201 + "Text": "Armed Forces Africa", 2202 + "Value": "AE", 2203 + "Order": 61 2204 + }, 2205 + { 2206 + "Id": 2042, 2207 + "QuestionId": 11, 2208 + "Text": "Armed Forces Americas (except Canada)", 2209 + "Value": "AA", 2210 + "Order": 62 2211 + }, 2212 + { 2213 + "Id": 2050, 2214 + "QuestionId": 11, 2215 + "Text": "Armed Forces Canada", 2216 + "Value": "AE", 2217 + "Order": 63 2218 + }, 2219 + { 2220 + "Id": 2058, 2221 + "QuestionId": 11, 2222 + "Text": "Armed Forces Europe", 2223 + "Value": "AE", 2224 + "Order": 64 2225 + }, 2226 + { 2227 + "Id": 2066, 2228 + "QuestionId": 11, 2229 + "Text": "Armed Forces Middle East", 2230 + "Value": "AE", 2231 + "Order": 65 2232 + }, 2233 + { 2234 + "Id": 2074, 2235 + "QuestionId": 11, 2236 + "Text": "Armed Forces Pacific", 2237 + "Value": "AP", 2238 + "Order": 66 2239 + }, 2240 + { 2241 + "Id": 2082, 2242 + "QuestionId": 11, 2243 + "Text": "Non-US/Not Applicable", 2244 + "Value": "Non-US/Not Applicable", 2245 + "Order": 67 2246 + }, 2247 + { 2248 + "Id": 2090, 2249 + "QuestionId": 11, 2250 + "Text": "Ontario", 2251 + "Value": "Ontario", 2252 + "Order": 68 2253 + }, 2254 + { 2255 + "Id": 2098, 2256 + "QuestionId": 11, 2257 + "Text": "Quebec", 2258 + "Value": "Quebec", 2259 + "Order": 69 2260 + }, 2261 + { 2262 + "Id": 2106, 2263 + "QuestionId": 11, 2264 + "Text": "Nova Scotia", 2265 + "Value": "Nova Scotia", 2266 + "Order": 70 2267 + }, 2268 + { 2269 + "Id": 2114, 2270 + "QuestionId": 11, 2271 + "Text": "New Brunswick", 2272 + "Value": "New Brunswick", 2273 + "Order": 71 2274 + }, 2275 + { 2276 + "Id": 2122, 2277 + "QuestionId": 11, 2278 + "Text": "Manitoba", 2279 + "Value": "Manitoba", 2280 + "Order": 72 2281 + }, 2282 + { 2283 + "Id": 2130, 2284 + "QuestionId": 11, 2285 + "Text": "Brittish Columbia", 2286 + "Value": "Brittish Columbia", 2287 + "Order": 73 2288 + }, 2289 + { 2290 + "Id": 2138, 2291 + "QuestionId": 11, 2292 + "Text": "Prince Edward Island", 2293 + "Value": "Prince Edward Island", 2294 + "Order": 74 2295 + }, 2296 + { 2297 + "Id": 2146, 2298 + "QuestionId": 11, 2299 + "Text": "Saskatchewan", 2300 + "Value": "Saskatchewan", 2301 + "Order": 75 2302 + }, 2303 + { 2304 + "Id": 2154, 2305 + "QuestionId": 11, 2306 + "Text": "Alberta", 2307 + "Value": "Alberta", 2308 + "Order": 76 2309 + }, 2310 + { 2311 + "Id": 2162, 2312 + "QuestionId": 11, 2313 + "Text": "Newfoundland and Labrador", 2314 + "Value": "Newfoundland and Labrador", 2315 + "Order": 77 2316 + }, 2317 + { 2318 + "Id": 2170, 2319 + "QuestionId": 11, 2320 + "Text": "British Columbia", 2321 + "Value": "British Columbia", 2322 + "Order": 78 2323 + }, 2324 + { 2325 + "Id": 2178, 2326 + "QuestionId": 11, 2327 + "Text": "Ontario", 2328 + "Value": "ON", 2329 + "Order": 79 2330 + } 2331 + ] 2332 + }, 2333 + { 2334 + "Id": 12, 2335 + "Text": "Zip/Postal Code", 2336 + "Type": "0", 2337 + "Alias": "Zip/Postal Code" 2338 + }, 2339 + { 2340 + "Id": 13, 2341 + "Text": "Country", 2342 + "Type": "4", 2343 + "Alias": "Country", 2344 + "Choices": [ 2345 + { 2346 + "Id": 2, 2347 + "QuestionId": 13, 2348 + "Text": "Select One", 2349 + "Value": "", 2350 + "Order": 1 2351 + }, 2352 + { 2353 + "Id": 10, 2354 + "QuestionId": 13, 2355 + "Text": "Afghanistan", 2356 + "Value": "Afghanistan", 2357 + "Order": 3 2358 + }, 2359 + { 2360 + "Id": 18, 2361 + "QuestionId": 13, 2362 + "Text": "Albania", 2363 + "Value": "Albania", 2364 + "Order": 4 2365 + }, 2366 + { 2367 + "Id": 26, 2368 + "QuestionId": 13, 2369 + "Text": "Algeria", 2370 + "Value": "Algeria", 2371 + "Order": 5 2372 + }, 2373 + { 2374 + "Id": 34, 2375 + "QuestionId": 13, 2376 + "Text": "Andorra", 2377 + "Value": "Andorra", 2378 + "Order": 6 2379 + }, 2380 + { 2381 + "Id": 42, 2382 + "QuestionId": 13, 2383 + "Text": "Angola", 2384 + "Value": "Angola", 2385 + "Order": 7 2386 + }, 2387 + { 2388 + "Id": 50, 2389 + "QuestionId": 13, 2390 + "Text": "Antigua and Barbuda", 2391 + "Value": "Antigua and Barbuda", 2392 + "Order": 8 2393 + }, 2394 + { 2395 + "Id": 58, 2396 + "QuestionId": 13, 2397 + "Text": "Argentina", 2398 + "Value": "Argentina", 2399 + "Order": 9 2400 + }, 2401 + { 2402 + "Id": 66, 2403 + "QuestionId": 13, 2404 + "Text": "Armenia", 2405 + "Value": "Armenia", 2406 + "Order": 10 2407 + }, 2408 + { 2409 + "Id": 74, 2410 + "QuestionId": 13, 2411 + "Text": "Australia", 2412 + "Value": "Australia", 2413 + "Order": 11 2414 + }, 2415 + { 2416 + "Id": 82, 2417 + "QuestionId": 13, 2418 + "Text": "Austria", 2419 + "Value": "Austria", 2420 + "Order": 12 2421 + }, 2422 + { 2423 + "Id": 90, 2424 + "QuestionId": 13, 2425 + "Text": "Azerbaijan", 2426 + "Value": "Azerbaijan", 2427 + "Order": 13 2428 + }, 2429 + { 2430 + "Id": 98, 2431 + "QuestionId": 13, 2432 + "Text": "Bahamas", 2433 + "Value": "Bahamas", 2434 + "Order": 14 2435 + }, 2436 + { 2437 + "Id": 106, 2438 + "QuestionId": 13, 2439 + "Text": "Bahrain", 2440 + "Value": "Bahrain", 2441 + "Order": 15 2442 + }, 2443 + { 2444 + "Id": 114, 2445 + "QuestionId": 13, 2446 + "Text": "Bangladesh", 2447 + "Value": "Bangladesh", 2448 + "Order": 16 2449 + }, 2450 + { 2451 + "Id": 122, 2452 + "QuestionId": 13, 2453 + "Text": "Barbados", 2454 + "Value": "Barbados", 2455 + "Order": 17 2456 + }, 2457 + { 2458 + "Id": 130, 2459 + "QuestionId": 13, 2460 + "Text": "Belarus", 2461 + "Value": "Belarus", 2462 + "Order": 18 2463 + }, 2464 + { 2465 + "Id": 138, 2466 + "QuestionId": 13, 2467 + "Text": "Belgium", 2468 + "Value": "Belgium", 2469 + "Order": 19 2470 + }, 2471 + { 2472 + "Id": 146, 2473 + "QuestionId": 13, 2474 + "Text": "Belize", 2475 + "Value": "Belize", 2476 + "Order": 20 2477 + }, 2478 + { 2479 + "Id": 154, 2480 + "QuestionId": 13, 2481 + "Text": "Benin", 2482 + "Value": "Benin", 2483 + "Order": 21 2484 + }, 2485 + { 2486 + "Id": 162, 2487 + "QuestionId": 13, 2488 + "Text": "Bhutan", 2489 + "Value": "Bhutan", 2490 + "Order": 22 2491 + }, 2492 + { 2493 + "Id": 170, 2494 + "QuestionId": 13, 2495 + "Text": "Bolivia", 2496 + "Value": "Bolivia", 2497 + "Order": 23 2498 + }, 2499 + { 2500 + "Id": 178, 2501 + "QuestionId": 13, 2502 + "Text": "Bosnia and Herzegovina", 2503 + "Value": "Bosnia and Herzegovina", 2504 + "Order": 24 2505 + }, 2506 + { 2507 + "Id": 186, 2508 + "QuestionId": 13, 2509 + "Text": "Botswana", 2510 + "Value": "Botswana", 2511 + "Order": 25 2512 + }, 2513 + { 2514 + "Id": 194, 2515 + "QuestionId": 13, 2516 + "Text": "Brazil", 2517 + "Value": "Brazil", 2518 + "Order": 26 2519 + }, 2520 + { 2521 + "Id": 202, 2522 + "QuestionId": 13, 2523 + "Text": "Brunei", 2524 + "Value": "Brunei", 2525 + "Order": 27 2526 + }, 2527 + { 2528 + "Id": 210, 2529 + "QuestionId": 13, 2530 + "Text": "Bulgaria", 2531 + "Value": "Bulgaria", 2532 + "Order": 28 2533 + }, 2534 + { 2535 + "Id": 218, 2536 + "QuestionId": 13, 2537 + "Text": "Burkina Faso", 2538 + "Value": "Burkina Faso", 2539 + "Order": 29 2540 + }, 2541 + { 2542 + "Id": 226, 2543 + "QuestionId": 13, 2544 + "Text": "Burundi", 2545 + "Value": "Burundi", 2546 + "Order": 30 2547 + }, 2548 + { 2549 + "Id": 234, 2550 + "QuestionId": 13, 2551 + "Text": "Cambodia", 2552 + "Value": "Cambodia", 2553 + "Order": 31 2554 + }, 2555 + { 2556 + "Id": 242, 2557 + "QuestionId": 13, 2558 + "Text": "Cameroon", 2559 + "Value": "Cameroon", 2560 + "Order": 32 2561 + }, 2562 + { 2563 + "Id": 250, 2564 + "QuestionId": 13, 2565 + "Text": "Canada", 2566 + "Value": "Canada", 2567 + "Order": 33 2568 + }, 2569 + { 2570 + "Id": 258, 2571 + "QuestionId": 13, 2572 + "Text": "Cape Verde", 2573 + "Value": "Cape Verde", 2574 + "Order": 34 2575 + }, 2576 + { 2577 + "Id": 266, 2578 + "QuestionId": 13, 2579 + "Text": "Central African Republic", 2580 + "Value": "Central African Republic", 2581 + "Order": 35 2582 + }, 2583 + { 2584 + "Id": 274, 2585 + "QuestionId": 13, 2586 + "Text": "Chad", 2587 + "Value": "Chad", 2588 + "Order": 36 2589 + }, 2590 + { 2591 + "Id": 282, 2592 + "QuestionId": 13, 2593 + "Text": "Chile", 2594 + "Value": "Chile", 2595 + "Order": 37 2596 + }, 2597 + { 2598 + "Id": 290, 2599 + "QuestionId": 13, 2600 + "Text": "China", 2601 + "Value": "China", 2602 + "Order": 38 2603 + }, 2604 + { 2605 + "Id": 298, 2606 + "QuestionId": 13, 2607 + "Text": "Colombia", 2608 + "Value": "Colombia", 2609 + "Order": 39 2610 + }, 2611 + { 2612 + "Id": 306, 2613 + "QuestionId": 13, 2614 + "Text": "Comoros", 2615 + "Value": "Comoros", 2616 + "Order": 40 2617 + }, 2618 + { 2619 + "Id": 314, 2620 + "QuestionId": 13, 2621 + "Text": "Congo (Brazzaville)", 2622 + "Value": "Congo (Brazzaville)", 2623 + "Order": 41 2624 + }, 2625 + { 2626 + "Id": 322, 2627 + "QuestionId": 13, 2628 + "Text": "Congo", 2629 + "Value": "Congo", 2630 + "Order": 42 2631 + }, 2632 + { 2633 + "Id": 330, 2634 + "QuestionId": 13, 2635 + "Text": "Costa Rica", 2636 + "Value": "Costa Rica", 2637 + "Order": 43 2638 + }, 2639 + { 2640 + "Id": 338, 2641 + "QuestionId": 13, 2642 + "Text": "Cote d'Ivoire", 2643 + "Value": "Cote d'Ivoire", 2644 + "Order": 44 2645 + }, 2646 + { 2647 + "Id": 346, 2648 + "QuestionId": 13, 2649 + "Text": "Croatia", 2650 + "Value": "Croatia", 2651 + "Order": 45 2652 + }, 2653 + { 2654 + "Id": 354, 2655 + "QuestionId": 13, 2656 + "Text": "Cuba", 2657 + "Value": "Cuba", 2658 + "Order": 46 2659 + }, 2660 + { 2661 + "Id": 362, 2662 + "QuestionId": 13, 2663 + "Text": "Cyprus", 2664 + "Value": "Cyprus", 2665 + "Order": 47 2666 + }, 2667 + { 2668 + "Id": 370, 2669 + "QuestionId": 13, 2670 + "Text": "Czech Republic", 2671 + "Value": "Czech Republic", 2672 + "Order": 48 2673 + }, 2674 + { 2675 + "Id": 378, 2676 + "QuestionId": 13, 2677 + "Text": "Denmark", 2678 + "Value": "Denmark", 2679 + "Order": 49 2680 + }, 2681 + { 2682 + "Id": 386, 2683 + "QuestionId": 13, 2684 + "Text": "Djibouti", 2685 + "Value": "Djibouti", 2686 + "Order": 50 2687 + }, 2688 + { 2689 + "Id": 394, 2690 + "QuestionId": 13, 2691 + "Text": "Dominica", 2692 + "Value": "Dominica", 2693 + "Order": 51 2694 + }, 2695 + { 2696 + "Id": 402, 2697 + "QuestionId": 13, 2698 + "Text": "Dominican Republic", 2699 + "Value": "Dominican Republic", 2700 + "Order": 52 2701 + }, 2702 + { 2703 + "Id": 410, 2704 + "QuestionId": 13, 2705 + "Text": "East Timor", 2706 + "Value": "East Timor", 2707 + "Order": 53 2708 + }, 2709 + { 2710 + "Id": 418, 2711 + "QuestionId": 13, 2712 + "Text": "Ecuador", 2713 + "Value": "Ecuador", 2714 + "Order": 54 2715 + }, 2716 + { 2717 + "Id": 426, 2718 + "QuestionId": 13, 2719 + "Text": "Egypt", 2720 + "Value": "Egypt", 2721 + "Order": 55 2722 + }, 2723 + { 2724 + "Id": 434, 2725 + "QuestionId": 13, 2726 + "Text": "El Salvador", 2727 + "Value": "El Salvador", 2728 + "Order": 56 2729 + }, 2730 + { 2731 + "Id": 442, 2732 + "QuestionId": 13, 2733 + "Text": "Equatorial Guinea", 2734 + "Value": "Equatorial Guinea", 2735 + "Order": 57 2736 + }, 2737 + { 2738 + "Id": 450, 2739 + "QuestionId": 13, 2740 + "Text": "Eritrea", 2741 + "Value": "Eritrea", 2742 + "Order": 58 2743 + }, 2744 + { 2745 + "Id": 458, 2746 + "QuestionId": 13, 2747 + "Text": "Estonia", 2748 + "Value": "Estonia", 2749 + "Order": 59 2750 + }, 2751 + { 2752 + "Id": 466, 2753 + "QuestionId": 13, 2754 + "Text": "Ethiopia", 2755 + "Value": "Ethiopia", 2756 + "Order": 60 2757 + }, 2758 + { 2759 + "Id": 474, 2760 + "QuestionId": 13, 2761 + "Text": "Fiji", 2762 + "Value": "Fiji", 2763 + "Order": 61 2764 + }, 2765 + { 2766 + "Id": 482, 2767 + "QuestionId": 13, 2768 + "Text": "Finland", 2769 + "Value": "Finland", 2770 + "Order": 62 2771 + }, 2772 + { 2773 + "Id": 490, 2774 + "QuestionId": 13, 2775 + "Text": "France", 2776 + "Value": "France", 2777 + "Order": 63 2778 + }, 2779 + { 2780 + "Id": 498, 2781 + "QuestionId": 13, 2782 + "Text": "Gabon", 2783 + "Value": "Gabon", 2784 + "Order": 64 2785 + }, 2786 + { 2787 + "Id": 506, 2788 + "QuestionId": 13, 2789 + "Text": "Gambia, The", 2790 + "Value": "Gambia, The", 2791 + "Order": 65 2792 + }, 2793 + { 2794 + "Id": 514, 2795 + "QuestionId": 13, 2796 + "Text": "Georgia", 2797 + "Value": "Georgia", 2798 + "Order": 66 2799 + }, 2800 + { 2801 + "Id": 522, 2802 + "QuestionId": 13, 2803 + "Text": "Germany", 2804 + "Value": "Germany", 2805 + "Order": 67 2806 + }, 2807 + { 2808 + "Id": 530, 2809 + "QuestionId": 13, 2810 + "Text": "Ghana", 2811 + "Value": "Ghana", 2812 + "Order": 68 2813 + }, 2814 + { 2815 + "Id": 538, 2816 + "QuestionId": 13, 2817 + "Text": "Greece", 2818 + "Value": "Greece", 2819 + "Order": 69 2820 + }, 2821 + { 2822 + "Id": 546, 2823 + "QuestionId": 13, 2824 + "Text": "Grenada", 2825 + "Value": "Grenada", 2826 + "Order": 70 2827 + }, 2828 + { 2829 + "Id": 554, 2830 + "QuestionId": 13, 2831 + "Text": "Guatemala", 2832 + "Value": "Guatemala", 2833 + "Order": 71 2834 + }, 2835 + { 2836 + "Id": 562, 2837 + "QuestionId": 13, 2838 + "Text": "Guinea", 2839 + "Value": "Guinea", 2840 + "Order": 72 2841 + }, 2842 + { 2843 + "Id": 570, 2844 + "QuestionId": 13, 2845 + "Text": "Guinea-Bissau", 2846 + "Value": "Guinea-Bissau", 2847 + "Order": 73 2848 + }, 2849 + { 2850 + "Id": 578, 2851 + "QuestionId": 13, 2852 + "Text": "Guyana", 2853 + "Value": "Guyana", 2854 + "Order": 74 2855 + }, 2856 + { 2857 + "Id": 586, 2858 + "QuestionId": 13, 2859 + "Text": "Haiti", 2860 + "Value": "Haiti", 2861 + "Order": 75 2862 + }, 2863 + { 2864 + "Id": 594, 2865 + "QuestionId": 13, 2866 + "Text": "Honduras", 2867 + "Value": "Honduras", 2868 + "Order": 76 2869 + }, 2870 + { 2871 + "Id": 602, 2872 + "QuestionId": 13, 2873 + "Text": "Hungary", 2874 + "Value": "Hungary", 2875 + "Order": 77 2876 + }, 2877 + { 2878 + "Id": 610, 2879 + "QuestionId": 13, 2880 + "Text": "Iceland", 2881 + "Value": "Iceland", 2882 + "Order": 78 2883 + }, 2884 + { 2885 + "Id": 618, 2886 + "QuestionId": 13, 2887 + "Text": "India", 2888 + "Value": "India", 2889 + "Order": 79 2890 + }, 2891 + { 2892 + "Id": 626, 2893 + "QuestionId": 13, 2894 + "Text": "Indonesia", 2895 + "Value": "Indonesia", 2896 + "Order": 80 2897 + }, 2898 + { 2899 + "Id": 634, 2900 + "QuestionId": 13, 2901 + "Text": "Iran", 2902 + "Value": "Iran", 2903 + "Order": 81 2904 + }, 2905 + { 2906 + "Id": 642, 2907 + "QuestionId": 13, 2908 + "Text": "Iraq", 2909 + "Value": "Iraq", 2910 + "Order": 82 2911 + }, 2912 + { 2913 + "Id": 650, 2914 + "QuestionId": 13, 2915 + "Text": "Ireland", 2916 + "Value": "Ireland", 2917 + "Order": 83 2918 + }, 2919 + { 2920 + "Id": 658, 2921 + "QuestionId": 13, 2922 + "Text": "Israel", 2923 + "Value": "Israel", 2924 + "Order": 84 2925 + }, 2926 + { 2927 + "Id": 666, 2928 + "QuestionId": 13, 2929 + "Text": "Italy", 2930 + "Value": "Italy", 2931 + "Order": 85 2932 + }, 2933 + { 2934 + "Id": 674, 2935 + "QuestionId": 13, 2936 + "Text": "Jamaica", 2937 + "Value": "Jamaica", 2938 + "Order": 86 2939 + }, 2940 + { 2941 + "Id": 682, 2942 + "QuestionId": 13, 2943 + "Text": "Japan", 2944 + "Value": "Japan", 2945 + "Order": 87 2946 + }, 2947 + { 2948 + "Id": 690, 2949 + "QuestionId": 13, 2950 + "Text": "Jordan", 2951 + "Value": "Jordan", 2952 + "Order": 88 2953 + }, 2954 + { 2955 + "Id": 698, 2956 + "QuestionId": 13, 2957 + "Text": "Kazakhstan", 2958 + "Value": "Kazakhstan", 2959 + "Order": 89 2960 + }, 2961 + { 2962 + "Id": 706, 2963 + "QuestionId": 13, 2964 + "Text": "Kenya", 2965 + "Value": "Kenya", 2966 + "Order": 90 2967 + }, 2968 + { 2969 + "Id": 714, 2970 + "QuestionId": 13, 2971 + "Text": "Kiribati", 2972 + "Value": "Kiribati", 2973 + "Order": 91 2974 + }, 2975 + { 2976 + "Id": 722, 2977 + "QuestionId": 13, 2978 + "Text": "Korea, North", 2979 + "Value": "Korea, North", 2980 + "Order": 92 2981 + }, 2982 + { 2983 + "Id": 730, 2984 + "QuestionId": 13, 2985 + "Text": "Korea, South", 2986 + "Value": "Korea, South", 2987 + "Order": 93 2988 + }, 2989 + { 2990 + "Id": 738, 2991 + "QuestionId": 13, 2992 + "Text": "Kuwait", 2993 + "Value": "Kuwait", 2994 + "Order": 94 2995 + }, 2996 + { 2997 + "Id": 746, 2998 + "QuestionId": 13, 2999 + "Text": "Kyrgyzstan", 3000 + "Value": "Kyrgyzstan", 3001 + "Order": 95 3002 + }, 3003 + { 3004 + "Id": 754, 3005 + "QuestionId": 13, 3006 + "Text": "Laos", 3007 + "Value": "Laos", 3008 + "Order": 96 3009 + }, 3010 + { 3011 + "Id": 762, 3012 + "QuestionId": 13, 3013 + "Text": "Latvia", 3014 + "Value": "Latvia", 3015 + "Order": 97 3016 + }, 3017 + { 3018 + "Id": 770, 3019 + "QuestionId": 13, 3020 + "Text": "Lebanon", 3021 + "Value": "Lebanon", 3022 + "Order": 98 3023 + }, 3024 + { 3025 + "Id": 778, 3026 + "QuestionId": 13, 3027 + "Text": "Lesotho", 3028 + "Value": "Lesotho", 3029 + "Order": 99 3030 + }, 3031 + { 3032 + "Id": 786, 3033 + "QuestionId": 13, 3034 + "Text": "Liberia", 3035 + "Value": "Liberia", 3036 + "Order": 100 3037 + }, 3038 + { 3039 + "Id": 794, 3040 + "QuestionId": 13, 3041 + "Text": "Libya", 3042 + "Value": "Libya", 3043 + "Order": 101 3044 + }, 3045 + { 3046 + "Id": 802, 3047 + "QuestionId": 13, 3048 + "Text": "Liechtenstein", 3049 + "Value": "Liechtenstein", 3050 + "Order": 102 3051 + }, 3052 + { 3053 + "Id": 810, 3054 + "QuestionId": 13, 3055 + "Text": "Lithuania", 3056 + "Value": "Lithuania", 3057 + "Order": 103 3058 + }, 3059 + { 3060 + "Id": 818, 3061 + "QuestionId": 13, 3062 + "Text": "Luxembourg", 3063 + "Value": "Luxembourg", 3064 + "Order": 104 3065 + }, 3066 + { 3067 + "Id": 826, 3068 + "QuestionId": 13, 3069 + "Text": "Macedonia", 3070 + "Value": "Macedonia", 3071 + "Order": 105 3072 + }, 3073 + { 3074 + "Id": 834, 3075 + "QuestionId": 13, 3076 + "Text": "Madagascar", 3077 + "Value": "Madagascar", 3078 + "Order": 106 3079 + }, 3080 + { 3081 + "Id": 842, 3082 + "QuestionId": 13, 3083 + "Text": "Malawi", 3084 + "Value": "Malawi", 3085 + "Order": 107 3086 + }, 3087 + { 3088 + "Id": 850, 3089 + "QuestionId": 13, 3090 + "Text": "Malaysia", 3091 + "Value": "Malaysia", 3092 + "Order": 108 3093 + }, 3094 + { 3095 + "Id": 858, 3096 + "QuestionId": 13, 3097 + "Text": "Maldives", 3098 + "Value": "Maldives", 3099 + "Order": 109 3100 + }, 3101 + { 3102 + "Id": 866, 3103 + "QuestionId": 13, 3104 + "Text": "Mali", 3105 + "Value": "Mali", 3106 + "Order": 110 3107 + }, 3108 + { 3109 + "Id": 874, 3110 + "QuestionId": 13, 3111 + "Text": "Malta", 3112 + "Value": "Malta", 3113 + "Order": 111 3114 + }, 3115 + { 3116 + "Id": 882, 3117 + "QuestionId": 13, 3118 + "Text": "Marshall Islands", 3119 + "Value": "Marshall Islands", 3120 + "Order": 112 3121 + }, 3122 + { 3123 + "Id": 890, 3124 + "QuestionId": 13, 3125 + "Text": "Mauritania", 3126 + "Value": "Mauritania", 3127 + "Order": 113 3128 + }, 3129 + { 3130 + "Id": 898, 3131 + "QuestionId": 13, 3132 + "Text": "Mauritius", 3133 + "Value": "Mauritius", 3134 + "Order": 114 3135 + }, 3136 + { 3137 + "Id": 906, 3138 + "QuestionId": 13, 3139 + "Text": "Mexico", 3140 + "Value": "Mexico", 3141 + "Order": 115 3142 + }, 3143 + { 3144 + "Id": 914, 3145 + "QuestionId": 13, 3146 + "Text": "Micronesia", 3147 + "Value": "Micronesia", 3148 + "Order": 116 3149 + }, 3150 + { 3151 + "Id": 922, 3152 + "QuestionId": 13, 3153 + "Text": "Moldova", 3154 + "Value": "Moldova", 3155 + "Order": 117 3156 + }, 3157 + { 3158 + "Id": 930, 3159 + "QuestionId": 13, 3160 + "Text": "Monaco", 3161 + "Value": "Monaco", 3162 + "Order": 118 3163 + }, 3164 + { 3165 + "Id": 938, 3166 + "QuestionId": 13, 3167 + "Text": "Mongolia", 3168 + "Value": "Mongolia", 3169 + "Order": 119 3170 + }, 3171 + { 3172 + "Id": 946, 3173 + "QuestionId": 13, 3174 + "Text": "Morocco", 3175 + "Value": "Morocco", 3176 + "Order": 120 3177 + }, 3178 + { 3179 + "Id": 954, 3180 + "QuestionId": 13, 3181 + "Text": "Mozambique", 3182 + "Value": "Mozambique", 3183 + "Order": 121 3184 + }, 3185 + { 3186 + "Id": 962, 3187 + "QuestionId": 13, 3188 + "Text": "Myanmar", 3189 + "Value": "Myanmar", 3190 + "Order": 122 3191 + }, 3192 + { 3193 + "Id": 970, 3194 + "QuestionId": 13, 3195 + "Text": "Namibia", 3196 + "Value": "Namibia", 3197 + "Order": 123 3198 + }, 3199 + { 3200 + "Id": 978, 3201 + "QuestionId": 13, 3202 + "Text": "Nauru", 3203 + "Value": "Nauru", 3204 + "Order": 124 3205 + }, 3206 + { 3207 + "Id": 986, 3208 + "QuestionId": 13, 3209 + "Text": "Nepa", 3210 + "Value": "Nepa", 3211 + "Order": 125 3212 + }, 3213 + { 3214 + "Id": 994, 3215 + "QuestionId": 13, 3216 + "Text": "Netherlands", 3217 + "Value": "Netherlands", 3218 + "Order": 126 3219 + }, 3220 + { 3221 + "Id": 1002, 3222 + "QuestionId": 13, 3223 + "Text": "New Zealand", 3224 + "Value": "New Zealand", 3225 + "Order": 127 3226 + }, 3227 + { 3228 + "Id": 1010, 3229 + "QuestionId": 13, 3230 + "Text": "Nicaragua", 3231 + "Value": "Nicaragua", 3232 + "Order": 128 3233 + }, 3234 + { 3235 + "Id": 1018, 3236 + "QuestionId": 13, 3237 + "Text": "Niger", 3238 + "Value": "Niger", 3239 + "Order": 129 3240 + }, 3241 + { 3242 + "Id": 1026, 3243 + "QuestionId": 13, 3244 + "Text": "Nigeria", 3245 + "Value": "Nigeria", 3246 + "Order": 130 3247 + }, 3248 + { 3249 + "Id": 1034, 3250 + "QuestionId": 13, 3251 + "Text": "Norway", 3252 + "Value": "Norway", 3253 + "Order": 131 3254 + }, 3255 + { 3256 + "Id": 1042, 3257 + "QuestionId": 13, 3258 + "Text": "Oman", 3259 + "Value": "Oman", 3260 + "Order": 132 3261 + }, 3262 + { 3263 + "Id": 1050, 3264 + "QuestionId": 13, 3265 + "Text": "Pakistan", 3266 + "Value": "Pakistan", 3267 + "Order": 133 3268 + }, 3269 + { 3270 + "Id": 1058, 3271 + "QuestionId": 13, 3272 + "Text": "Palau", 3273 + "Value": "Palau", 3274 + "Order": 134 3275 + }, 3276 + { 3277 + "Id": 1066, 3278 + "QuestionId": 13, 3279 + "Text": "Panama", 3280 + "Value": "Panama", 3281 + "Order": 135 3282 + }, 3283 + { 3284 + "Id": 1074, 3285 + "QuestionId": 13, 3286 + "Text": "Papua New Guinea", 3287 + "Value": "Papua New Guinea", 3288 + "Order": 136 3289 + }, 3290 + { 3291 + "Id": 1082, 3292 + "QuestionId": 13, 3293 + "Text": "Paraguay", 3294 + "Value": "Paraguay", 3295 + "Order": 137 3296 + }, 3297 + { 3298 + "Id": 1090, 3299 + "QuestionId": 13, 3300 + "Text": "Peru", 3301 + "Value": "Peru", 3302 + "Order": 138 3303 + }, 3304 + { 3305 + "Id": 1098, 3306 + "QuestionId": 13, 3307 + "Text": "Philippines", 3308 + "Value": "Philippines", 3309 + "Order": 139 3310 + }, 3311 + { 3312 + "Id": 1106, 3313 + "QuestionId": 13, 3314 + "Text": "Poland", 3315 + "Value": "Poland", 3316 + "Order": 140 3317 + }, 3318 + { 3319 + "Id": 1114, 3320 + "QuestionId": 13, 3321 + "Text": "Portugal", 3322 + "Value": "Portugal", 3323 + "Order": 141 3324 + }, 3325 + { 3326 + "Id": 1122, 3327 + "QuestionId": 13, 3328 + "Text": "Qatar", 3329 + "Value": "Qatar", 3330 + "Order": 142 3331 + }, 3332 + { 3333 + "Id": 1130, 3334 + "QuestionId": 13, 3335 + "Text": "Romania", 3336 + "Value": "Romania", 3337 + "Order": 143 3338 + }, 3339 + { 3340 + "Id": 1138, 3341 + "QuestionId": 13, 3342 + "Text": "Russia", 3343 + "Value": "Russia", 3344 + "Order": 144 3345 + }, 3346 + { 3347 + "Id": 1146, 3348 + "QuestionId": 13, 3349 + "Text": "Rwanda", 3350 + "Value": "Rwanda", 3351 + "Order": 145 3352 + }, 3353 + { 3354 + "Id": 1154, 3355 + "QuestionId": 13, 3356 + "Text": "Saint Kitts and Nevis", 3357 + "Value": "Saint Kitts and Nevis", 3358 + "Order": 146 3359 + }, 3360 + { 3361 + "Id": 1162, 3362 + "QuestionId": 13, 3363 + "Text": "Saint Lucia", 3364 + "Value": "Saint Lucia", 3365 + "Order": 147 3366 + }, 3367 + { 3368 + "Id": 1170, 3369 + "QuestionId": 13, 3370 + "Text": "Saint Vincent", 3371 + "Value": "Saint Vincent", 3372 + "Order": 148 3373 + }, 3374 + { 3375 + "Id": 1178, 3376 + "QuestionId": 13, 3377 + "Text": "Samoa", 3378 + "Value": "Samoa", 3379 + "Order": 149 3380 + }, 3381 + { 3382 + "Id": 1186, 3383 + "QuestionId": 13, 3384 + "Text": "San Marino", 3385 + "Value": "San Marino", 3386 + "Order": 150 3387 + }, 3388 + { 3389 + "Id": 1194, 3390 + "QuestionId": 13, 3391 + "Text": "Sao Tome and Principe", 3392 + "Value": "Sao Tome and Principe", 3393 + "Order": 151 3394 + }, 3395 + { 3396 + "Id": 1202, 3397 + "QuestionId": 13, 3398 + "Text": "Saudi Arabia", 3399 + "Value": "Saudi Arabia", 3400 + "Order": 152 3401 + }, 3402 + { 3403 + "Id": 1210, 3404 + "QuestionId": 13, 3405 + "Text": "Senegal", 3406 + "Value": "Senegal", 3407 + "Order": 153 3408 + }, 3409 + { 3410 + "Id": 1218, 3411 + "QuestionId": 13, 3412 + "Text": "Serbia and Montenegro", 3413 + "Value": "Serbia and Montenegro", 3414 + "Order": 154 3415 + }, 3416 + { 3417 + "Id": 1226, 3418 + "QuestionId": 13, 3419 + "Text": "Seychelles", 3420 + "Value": "Seychelles", 3421 + "Order": 155 3422 + }, 3423 + { 3424 + "Id": 1234, 3425 + "QuestionId": 13, 3426 + "Text": "Sierra Leone", 3427 + "Value": "Sierra Leone", 3428 + "Order": 156 3429 + }, 3430 + { 3431 + "Id": 1242, 3432 + "QuestionId": 13, 3433 + "Text": "Singapore", 3434 + "Value": "Singapore", 3435 + "Order": 157 3436 + }, 3437 + { 3438 + "Id": 1250, 3439 + "QuestionId": 13, 3440 + "Text": "Slovakia", 3441 + "Value": "Slovakia", 3442 + "Order": 158 3443 + }, 3444 + { 3445 + "Id": 1258, 3446 + "QuestionId": 13, 3447 + "Text": "Slovenia", 3448 + "Value": "Slovenia", 3449 + "Order": 159 3450 + }, 3451 + { 3452 + "Id": 1266, 3453 + "QuestionId": 13, 3454 + "Text": "Solomon Islands", 3455 + "Value": "Solomon Islands", 3456 + "Order": 160 3457 + }, 3458 + { 3459 + "Id": 1274, 3460 + "QuestionId": 13, 3461 + "Text": "Somalia", 3462 + "Value": "Somalia", 3463 + "Order": 161 3464 + }, 3465 + { 3466 + "Id": 1282, 3467 + "QuestionId": 13, 3468 + "Text": "South Africa", 3469 + "Value": "South Africa", 3470 + "Order": 162 3471 + }, 3472 + { 3473 + "Id": 1290, 3474 + "QuestionId": 13, 3475 + "Text": "Spain", 3476 + "Value": "Spain", 3477 + "Order": 163 3478 + }, 3479 + { 3480 + "Id": 1298, 3481 + "QuestionId": 13, 3482 + "Text": "Sri Lanka", 3483 + "Value": "Sri Lanka", 3484 + "Order": 164 3485 + }, 3486 + { 3487 + "Id": 1306, 3488 + "QuestionId": 13, 3489 + "Text": "Sudan", 3490 + "Value": "Sudan", 3491 + "Order": 165 3492 + }, 3493 + { 3494 + "Id": 1314, 3495 + "QuestionId": 13, 3496 + "Text": "Suriname", 3497 + "Value": "Suriname", 3498 + "Order": 166 3499 + }, 3500 + { 3501 + "Id": 1322, 3502 + "QuestionId": 13, 3503 + "Text": "Swaziland", 3504 + "Value": "Swaziland", 3505 + "Order": 167 3506 + }, 3507 + { 3508 + "Id": 1330, 3509 + "QuestionId": 13, 3510 + "Text": "Sweden", 3511 + "Value": "Sweden", 3512 + "Order": 168 3513 + }, 3514 + { 3515 + "Id": 1338, 3516 + "QuestionId": 13, 3517 + "Text": "Switzerland", 3518 + "Value": "Switzerland", 3519 + "Order": 169 3520 + }, 3521 + { 3522 + "Id": 1346, 3523 + "QuestionId": 13, 3524 + "Text": "Syria", 3525 + "Value": "Syria", 3526 + "Order": 170 3527 + }, 3528 + { 3529 + "Id": 1354, 3530 + "QuestionId": 13, 3531 + "Text": "Taiwan", 3532 + "Value": "Taiwan", 3533 + "Order": 171 3534 + }, 3535 + { 3536 + "Id": 1362, 3537 + "QuestionId": 13, 3538 + "Text": "Tajikistan", 3539 + "Value": "Tajikistan", 3540 + "Order": 172 3541 + }, 3542 + { 3543 + "Id": 1370, 3544 + "QuestionId": 13, 3545 + "Text": "Tanzania", 3546 + "Value": "Tanzania", 3547 + "Order": 173 3548 + }, 3549 + { 3550 + "Id": 1378, 3551 + "QuestionId": 13, 3552 + "Text": "Thailand", 3553 + "Value": "Thailand", 3554 + "Order": 174 3555 + }, 3556 + { 3557 + "Id": 1386, 3558 + "QuestionId": 13, 3559 + "Text": "Togo", 3560 + "Value": "Togo", 3561 + "Order": 175 3562 + }, 3563 + { 3564 + "Id": 1394, 3565 + "QuestionId": 13, 3566 + "Text": "Tonga", 3567 + "Value": "Tonga", 3568 + "Order": 176 3569 + }, 3570 + { 3571 + "Id": 1402, 3572 + "QuestionId": 13, 3573 + "Text": "Trinidad and Tobago", 3574 + "Value": "Trinidad and Tobago", 3575 + "Order": 177 3576 + }, 3577 + { 3578 + "Id": 1410, 3579 + "QuestionId": 13, 3580 + "Text": "Tunisia", 3581 + "Value": "Tunisia", 3582 + "Order": 178 3583 + }, 3584 + { 3585 + "Id": 1418, 3586 + "QuestionId": 13, 3587 + "Text": "Turkey", 3588 + "Value": "Turkey", 3589 + "Order": 179 3590 + }, 3591 + { 3592 + "Id": 1426, 3593 + "QuestionId": 13, 3594 + "Text": "Turkmenistan", 3595 + "Value": "Turkmenistan", 3596 + "Order": 180 3597 + }, 3598 + { 3599 + "Id": 1434, 3600 + "QuestionId": 13, 3601 + "Text": "Tuvalu", 3602 + "Value": "Tuvalu", 3603 + "Order": 181 3604 + }, 3605 + { 3606 + "Id": 1442, 3607 + "QuestionId": 13, 3608 + "Text": "Uganda", 3609 + "Value": "Uganda", 3610 + "Order": 182 3611 + }, 3612 + { 3613 + "Id": 1450, 3614 + "QuestionId": 13, 3615 + "Text": "Ukraine", 3616 + "Value": "Ukraine", 3617 + "Order": 183 3618 + }, 3619 + { 3620 + "Id": 1458, 3621 + "QuestionId": 13, 3622 + "Text": "United Arab Emirates", 3623 + "Value": "United Arab Emirates", 3624 + "Order": 184 3625 + }, 3626 + { 3627 + "Id": 1466, 3628 + "QuestionId": 13, 3629 + "Text": "United Kingdom", 3630 + "Value": "United Kingdom", 3631 + "Order": 185 3632 + }, 3633 + { 3634 + "Id": 1474, 3635 + "QuestionId": 13, 3636 + "Text": "United States", 3637 + "Value": "United States", 3638 + "Order": 2 3639 + }, 3640 + { 3641 + "Id": 1482, 3642 + "QuestionId": 13, 3643 + "Text": "Uruguay", 3644 + "Value": "Uruguay", 3645 + "Order": 186 3646 + }, 3647 + { 3648 + "Id": 1490, 3649 + "QuestionId": 13, 3650 + "Text": "Uzbekistan", 3651 + "Value": "Uzbekistan", 3652 + "Order": 187 3653 + }, 3654 + { 3655 + "Id": 1498, 3656 + "QuestionId": 13, 3657 + "Text": "Vanuatu", 3658 + "Value": "Vanuatu", 3659 + "Order": 188 3660 + }, 3661 + { 3662 + "Id": 1506, 3663 + "QuestionId": 13, 3664 + "Text": "Vatican City", 3665 + "Value": "Vatican City", 3666 + "Order": 189 3667 + }, 3668 + { 3669 + "Id": 1514, 3670 + "QuestionId": 13, 3671 + "Text": "Venezuela", 3672 + "Value": "Venezuela", 3673 + "Order": 190 3674 + }, 3675 + { 3676 + "Id": 1522, 3677 + "QuestionId": 13, 3678 + "Text": "Vietnam", 3679 + "Value": "Vietnam", 3680 + "Order": 191 3681 + }, 3682 + { 3683 + "Id": 1530, 3684 + "QuestionId": 13, 3685 + "Text": "Yemen", 3686 + "Value": "Yemen", 3687 + "Order": 192 3688 + }, 3689 + { 3690 + "Id": 1538, 3691 + "QuestionId": 13, 3692 + "Text": "Zambia", 3693 + "Value": "Zambia", 3694 + "Order": 193 3695 + }, 3696 + { 3697 + "Id": 1546, 3698 + "QuestionId": 13, 3699 + "Text": "Zimbabwe", 3700 + "Value": "Zimbabwe", 3701 + "Order": 194 3702 + }, 3703 + { 3704 + "Id": 2186, 3705 + "QuestionId": 13, 3706 + "Text": "British Columbia", 3707 + "Value": "British Columbia", 3708 + "Order": 195 3709 + } 3710 + ] 3711 + }, 3712 + { 3713 + "Id": 14, 3714 + "Text": "Phone", 3715 + "Type": "0", 3716 + "Alias": "Phone" 3717 + }, 3718 + { 3719 + "Id": 15, 3720 + "Text": "Fax", 3721 + "Type": "0", 3722 + "Alias": "Fax" 3723 + }, 3724 + { 3725 + "Id": 18, 3726 + "Text": " NEW QUESTION", 3727 + "Type": "0", 3728 + "Alias": "" 3729 + }, 3730 + { 3731 + "Id": 26, 3732 + "Text": " NEW QUESTION", 3733 + "Type": "0", 3734 + "Alias": "" 3735 + }, 3736 + { 3737 + "Id": 34, 3738 + "Text": " NEW QUESTION", 3739 + "Type": "0", 3740 + "Alias": "" 3741 + }, 3742 + { 3743 + "Id": 42, 3744 + "Text": " NEW QUESTION", 3745 + "Type": "0", 3746 + "Alias": "" 3747 + }, 3748 + { 3749 + "Id": 50, 3750 + "Text": " NEW QUESTION", 3751 + "Type": "0", 3752 + "Alias": "" 3753 + }, 3754 + { 3755 + "Id": 58, 3756 + "Text": " NEW QUESTION", 3757 + "Type": "0", 3758 + "Alias": "" 3759 + }, 3760 + { 3761 + "Id": 66, 3762 + "Text": " NEW QUESTION", 3763 + "Type": "0", 3764 + "Alias": "" 3765 + }, 3766 + { 3767 + "Id": 74, 3768 + "Text": " NEW QUESTION", 3769 + "Type": "0", 3770 + "Alias": "" 3771 + }, 3772 + { 3773 + "Id": 82, 3774 + "Text": " NEW QUESTION", 3775 + "Type": "0", 3776 + "Alias": "" 3777 + }, 3778 + { 3779 + "Id": 90, 3780 + "Text": " NEW QUESTION", 3781 + "Type": "0", 3782 + "Alias": "" 3783 + } 3784 + ] 3785 +} 3786 +{{/code}} 2032 2032 2033 -(% class="western" %) 2034 -"result": { 2035 2035 2036 -(% class=" western" %)2037 - "success":"1",3789 +(% id="HGETspecificQuestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 3790 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Question(%%) == 2038 2038 2039 -(% class="western" %) 2040 -"error": { 3792 +---- 2041 2041 2042 -(% class="western" %) 2043 -"code": "0", 3794 +{{panel bgColor="#D3D3D3" width="100%"}} 3795 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}} 3796 +{{/panel}} 2044 2044 2045 -(% class="western" %) 2046 -"message": "" 3798 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2047 2047 2048 -(% class="western" %) 3800 +---- 3801 + 3802 +(% 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}} 3803 + 3804 +==== Example ==== 3805 + 3806 +---- 3807 + 3808 +(% style="color:#6b6b6b" %)Request 3809 + 3810 +{{code language="php" theme="RDark" title="Get specific Question Request"}} 3811 +<?php 3812 + 3813 +$curl = curl_init(); 3814 + 3815 +curl_setopt_array($curl, array( 3816 + CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}', 3817 + CURLOPT_RETURNTRANSFER => true, 3818 + CURLOPT_ENCODING => '', 3819 + CURLOPT_MAXREDIRS => 10, 3820 + CURLOPT_TIMEOUT => 0, 3821 + CURLOPT_FOLLOWLOCATION => true, 3822 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 3823 + CURLOPT_CUSTOMREQUEST => 'GET', 3824 + CURLOPT_HTTPHEADER => array( 3825 + 'Appkey: {{ONECOUNT API KEY}}' 3826 + ), 3827 +)); 3828 + 3829 +$response = curl_exec($curl); 3830 + 3831 +curl_close($curl); 3832 +echo $response; 3833 +{{/code}} 3834 + 3835 + 3836 +(% style="color:#6b6b6b" %)Response 200 OK 3837 + 3838 +{{code language="yml" theme="RDark" collapse="true" title="Get specific question Response"}} 3839 +{ 3840 + "result": { 3841 + "success": "1", 3842 + "error": { 3843 + "code": "", 3844 + "message": "" 3845 + } 3846 + }, 3847 + "Questions": [ 3848 + { 3849 + "Id": 3, 3850 + "Text": "Password", 3851 + "Type": "2", 3852 + "Alias": "Password" 3853 + } 3854 + ] 2049 2049 } 3856 +{{/code}} 2050 2050 2051 -(% class="western" %) 2052 -}, 2053 2053 2054 -(% class=" western" %)2055 -" Questions":[3859 +(% id="HGETlookupquestionbytext" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 3860 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by text(%%) == 2056 2056 2057 -(% class="western" %) 3862 +---- 3863 + 3864 +{{panel bgColor="#D3D3D3" width="100%"}} 3865 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Text=COUNTRY 3866 +{{/panel}} 3867 + 3868 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 3869 + 3870 +---- 3871 + 3872 +(% 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}} 3873 + 3874 +=== (% style="color:#212121" %)Query Params(%%) === 3875 + 3876 +---- 3877 + 3878 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Text COUNTRY(%%) 3879 + 3880 + 3881 +==== Example ==== 3882 + 3883 +---- 3884 + 3885 +(% style="color:#6b6b6b" %)Request 3886 + 3887 +{{code language="php" theme="RDark" title="Lookup question by text Request"}} 3888 +<?php 3889 + 3890 +$curl = curl_init(); 3891 + 3892 +curl_setopt_array($curl, array( 3893 + CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Text=COUNTRY', 3894 + CURLOPT_RETURNTRANSFER => true, 3895 + CURLOPT_ENCODING => '', 3896 + CURLOPT_MAXREDIRS => 10, 3897 + CURLOPT_TIMEOUT => 0, 3898 + CURLOPT_FOLLOWLOCATION => true, 3899 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 3900 + CURLOPT_CUSTOMREQUEST => 'GET', 3901 + CURLOPT_HTTPHEADER => array( 3902 + 'Appkey: {{ONECOUNT API KEY}}' 3903 + ), 3904 +)); 3905 + 3906 +$response = curl_exec($curl); 3907 + 3908 +curl_close($curl); 3909 +echo $response; 3910 +{{/code}} 3911 + 3912 + 3913 +(% style="color:#6b6b6b" %)Response 200 OK 3914 + 3915 +{{code language="yml" theme="RDark" collapse="true" title="Lookup question by title Response"}} 2058 2058 { 3917 + "result": { 3918 + "success": "1", 3919 + "error": { 3920 + "code": "", 3921 + "message": "" 3922 + } 3923 + }, 3924 + "Questions": [ 3925 + { 3926 + "Id": 13, 3927 + "Text": "Country", 3928 + "Type": "4", 3929 + "Alias": "Country", 3930 + "Choices": [ 3931 + { 3932 + "Id": 2, 3933 + "QuestionId": 13, 3934 + "Text": "Select One", 3935 + "Value": "", 3936 + "Order": 1 3937 + }, 3938 + { 3939 + "Id": 10, 3940 + "QuestionId": 13, 3941 + "Text": "Afghanistan", 3942 + "Value": "Afghanistan", 3943 + "Order": 3 3944 + }, 3945 + { 3946 + "Id": 18, 3947 + "QuestionId": 13, 3948 + "Text": "Albania", 3949 + "Value": "Albania", 3950 + "Order": 4 3951 + }, 3952 + { 3953 + "Id": 26, 3954 + "QuestionId": 13, 3955 + "Text": "Algeria", 3956 + "Value": "Algeria", 3957 + "Order": 5 3958 + }, 3959 + { 3960 + "Id": 34, 3961 + "QuestionId": 13, 3962 + "Text": "Andorra", 3963 + "Value": "Andorra", 3964 + "Order": 6 3965 + }, 3966 + { 3967 + "Id": 42, 3968 + "QuestionId": 13, 3969 + "Text": "Angola", 3970 + "Value": "Angola", 3971 + "Order": 7 3972 + }, 3973 + { 3974 + "Id": 50, 3975 + "QuestionId": 13, 3976 + "Text": "Antigua and Barbuda", 3977 + "Value": "Antigua and Barbuda", 3978 + "Order": 8 3979 + }, 3980 + { 3981 + "Id": 58, 3982 + "QuestionId": 13, 3983 + "Text": "Argentina", 3984 + "Value": "Argentina", 3985 + "Order": 9 3986 + }, 3987 + { 3988 + "Id": 66, 3989 + "QuestionId": 13, 3990 + "Text": "Armenia", 3991 + "Value": "Armenia", 3992 + "Order": 10 3993 + }, 3994 + { 3995 + "Id": 74, 3996 + "QuestionId": 13, 3997 + "Text": "Australia", 3998 + "Value": "Australia", 3999 + "Order": 11 4000 + }, 4001 + { 4002 + "Id": 82, 4003 + "QuestionId": 13, 4004 + "Text": "Austria", 4005 + "Value": "Austria", 4006 + "Order": 12 4007 + }, 4008 + { 4009 + "Id": 90, 4010 + "QuestionId": 13, 4011 + "Text": "Azerbaijan", 4012 + "Value": "Azerbaijan", 4013 + "Order": 13 4014 + }, 4015 + { 4016 + "Id": 98, 4017 + "QuestionId": 13, 4018 + "Text": "Bahamas", 4019 + "Value": "Bahamas", 4020 + "Order": 14 4021 + }, 4022 + { 4023 + "Id": 106, 4024 + "QuestionId": 13, 4025 + "Text": "Bahrain", 4026 + "Value": "Bahrain", 4027 + "Order": 15 4028 + }, 4029 + { 4030 + "Id": 114, 4031 + "QuestionId": 13, 4032 + "Text": "Bangladesh", 4033 + "Value": "Bangladesh", 4034 + "Order": 16 4035 + }, 4036 + { 4037 + "Id": 122, 4038 + "QuestionId": 13, 4039 + "Text": "Barbados", 4040 + "Value": "Barbados", 4041 + "Order": 17 4042 + }, 4043 + { 4044 + "Id": 130, 4045 + "QuestionId": 13, 4046 + "Text": "Belarus", 4047 + "Value": "Belarus", 4048 + "Order": 18 4049 + }, 4050 + { 4051 + "Id": 138, 4052 + "QuestionId": 13, 4053 + "Text": "Belgium", 4054 + "Value": "Belgium", 4055 + "Order": 19 4056 + }, 4057 + { 4058 + "Id": 146, 4059 + "QuestionId": 13, 4060 + "Text": "Belize", 4061 + "Value": "Belize", 4062 + "Order": 20 4063 + }, 4064 + { 4065 + "Id": 154, 4066 + "QuestionId": 13, 4067 + "Text": "Benin", 4068 + "Value": "Benin", 4069 + "Order": 21 4070 + }, 4071 + { 4072 + "Id": 162, 4073 + "QuestionId": 13, 4074 + "Text": "Bhutan", 4075 + "Value": "Bhutan", 4076 + "Order": 22 4077 + }, 4078 + { 4079 + "Id": 170, 4080 + "QuestionId": 13, 4081 + "Text": "Bolivia", 4082 + "Value": "Bolivia", 4083 + "Order": 23 4084 + }, 4085 + { 4086 + "Id": 178, 4087 + "QuestionId": 13, 4088 + "Text": "Bosnia and Herzegovina", 4089 + "Value": "Bosnia and Herzegovina", 4090 + "Order": 24 4091 + }, 4092 + { 4093 + "Id": 186, 4094 + "QuestionId": 13, 4095 + "Text": "Botswana", 4096 + "Value": "Botswana", 4097 + "Order": 25 4098 + }, 4099 + { 4100 + "Id": 194, 4101 + "QuestionId": 13, 4102 + "Text": "Brazil", 4103 + "Value": "Brazil", 4104 + "Order": 26 4105 + }, 4106 + { 4107 + "Id": 202, 4108 + "QuestionId": 13, 4109 + "Text": "Brunei", 4110 + "Value": "Brunei", 4111 + "Order": 27 4112 + }, 4113 + { 4114 + "Id": 210, 4115 + "QuestionId": 13, 4116 + "Text": "Bulgaria", 4117 + "Value": "Bulgaria", 4118 + "Order": 28 4119 + }, 4120 + { 4121 + "Id": 218, 4122 + "QuestionId": 13, 4123 + "Text": "Burkina Faso", 4124 + "Value": "Burkina Faso", 4125 + "Order": 29 4126 + }, 4127 + { 4128 + "Id": 226, 4129 + "QuestionId": 13, 4130 + "Text": "Burundi", 4131 + "Value": "Burundi", 4132 + "Order": 30 4133 + }, 4134 + { 4135 + "Id": 234, 4136 + "QuestionId": 13, 4137 + "Text": "Cambodia", 4138 + "Value": "Cambodia", 4139 + "Order": 31 4140 + }, 4141 + { 4142 + "Id": 242, 4143 + "QuestionId": 13, 4144 + "Text": "Cameroon", 4145 + "Value": "Cameroon", 4146 + "Order": 32 4147 + }, 4148 + { 4149 + "Id": 250, 4150 + "QuestionId": 13, 4151 + "Text": "Canada", 4152 + "Value": "Canada", 4153 + "Order": 33 4154 + }, 4155 + { 4156 + "Id": 258, 4157 + "QuestionId": 13, 4158 + "Text": "Cape Verde", 4159 + "Value": "Cape Verde", 4160 + "Order": 34 4161 + }, 4162 + { 4163 + "Id": 266, 4164 + "QuestionId": 13, 4165 + "Text": "Central African Republic", 4166 + "Value": "Central African Republic", 4167 + "Order": 35 4168 + }, 4169 + { 4170 + "Id": 274, 4171 + "QuestionId": 13, 4172 + "Text": "Chad", 4173 + "Value": "Chad", 4174 + "Order": 36 4175 + }, 4176 + { 4177 + "Id": 282, 4178 + "QuestionId": 13, 4179 + "Text": "Chile", 4180 + "Value": "Chile", 4181 + "Order": 37 4182 + }, 4183 + { 4184 + "Id": 290, 4185 + "QuestionId": 13, 4186 + "Text": "China", 4187 + "Value": "China", 4188 + "Order": 38 4189 + }, 4190 + { 4191 + "Id": 298, 4192 + "QuestionId": 13, 4193 + "Text": "Colombia", 4194 + "Value": "Colombia", 4195 + "Order": 39 4196 + }, 4197 + { 4198 + "Id": 306, 4199 + "QuestionId": 13, 4200 + "Text": "Comoros", 4201 + "Value": "Comoros", 4202 + "Order": 40 4203 + }, 4204 + { 4205 + "Id": 314, 4206 + "QuestionId": 13, 4207 + "Text": "Congo (Brazzaville)", 4208 + "Value": "Congo (Brazzaville)", 4209 + "Order": 41 4210 + }, 4211 + { 4212 + "Id": 322, 4213 + "QuestionId": 13, 4214 + "Text": "Congo", 4215 + "Value": "Congo", 4216 + "Order": 42 4217 + }, 4218 + { 4219 + "Id": 330, 4220 + "QuestionId": 13, 4221 + "Text": "Costa Rica", 4222 + "Value": "Costa Rica", 4223 + "Order": 43 4224 + }, 4225 + { 4226 + "Id": 338, 4227 + "QuestionId": 13, 4228 + "Text": "Cote d'Ivoire", 4229 + "Value": "Cote d'Ivoire", 4230 + "Order": 44 4231 + }, 4232 + { 4233 + "Id": 346, 4234 + "QuestionId": 13, 4235 + "Text": "Croatia", 4236 + "Value": "Croatia", 4237 + "Order": 45 4238 + }, 4239 + { 4240 + "Id": 354, 4241 + "QuestionId": 13, 4242 + "Text": "Cuba", 4243 + "Value": "Cuba", 4244 + "Order": 46 4245 + }, 4246 + { 4247 + "Id": 362, 4248 + "QuestionId": 13, 4249 + "Text": "Cyprus", 4250 + "Value": "Cyprus", 4251 + "Order": 47 4252 + }, 4253 + { 4254 + "Id": 370, 4255 + "QuestionId": 13, 4256 + "Text": "Czech Republic", 4257 + "Value": "Czech Republic", 4258 + "Order": 48 4259 + }, 4260 + { 4261 + "Id": 378, 4262 + "QuestionId": 13, 4263 + "Text": "Denmark", 4264 + "Value": "Denmark", 4265 + "Order": 49 4266 + }, 4267 + { 4268 + "Id": 386, 4269 + "QuestionId": 13, 4270 + "Text": "Djibouti", 4271 + "Value": "Djibouti", 4272 + "Order": 50 4273 + }, 4274 + { 4275 + "Id": 394, 4276 + "QuestionId": 13, 4277 + "Text": "Dominica", 4278 + "Value": "Dominica", 4279 + "Order": 51 4280 + }, 4281 + { 4282 + "Id": 402, 4283 + "QuestionId": 13, 4284 + "Text": "Dominican Republic", 4285 + "Value": "Dominican Republic", 4286 + "Order": 52 4287 + }, 4288 + { 4289 + "Id": 410, 4290 + "QuestionId": 13, 4291 + "Text": "East Timor", 4292 + "Value": "East Timor", 4293 + "Order": 53 4294 + }, 4295 + { 4296 + "Id": 418, 4297 + "QuestionId": 13, 4298 + "Text": "Ecuador", 4299 + "Value": "Ecuador", 4300 + "Order": 54 4301 + }, 4302 + { 4303 + "Id": 426, 4304 + "QuestionId": 13, 4305 + "Text": "Egypt", 4306 + "Value": "Egypt", 4307 + "Order": 55 4308 + }, 4309 + { 4310 + "Id": 434, 4311 + "QuestionId": 13, 4312 + "Text": "El Salvador", 4313 + "Value": "El Salvador", 4314 + "Order": 56 4315 + }, 4316 + { 4317 + "Id": 442, 4318 + "QuestionId": 13, 4319 + "Text": "Equatorial Guinea", 4320 + "Value": "Equatorial Guinea", 4321 + "Order": 57 4322 + }, 4323 + { 4324 + "Id": 450, 4325 + "QuestionId": 13, 4326 + "Text": "Eritrea", 4327 + "Value": "Eritrea", 4328 + "Order": 58 4329 + }, 4330 + { 4331 + "Id": 458, 4332 + "QuestionId": 13, 4333 + "Text": "Estonia", 4334 + "Value": "Estonia", 4335 + "Order": 59 4336 + }, 4337 + { 4338 + "Id": 466, 4339 + "QuestionId": 13, 4340 + "Text": "Ethiopia", 4341 + "Value": "Ethiopia", 4342 + "Order": 60 4343 + }, 4344 + { 4345 + "Id": 474, 4346 + "QuestionId": 13, 4347 + "Text": "Fiji", 4348 + "Value": "Fiji", 4349 + "Order": 61 4350 + }, 4351 + { 4352 + "Id": 482, 4353 + "QuestionId": 13, 4354 + "Text": "Finland", 4355 + "Value": "Finland", 4356 + "Order": 62 4357 + }, 4358 + { 4359 + "Id": 490, 4360 + "QuestionId": 13, 4361 + "Text": "France", 4362 + "Value": "France", 4363 + "Order": 63 4364 + }, 4365 + { 4366 + "Id": 498, 4367 + "QuestionId": 13, 4368 + "Text": "Gabon", 4369 + "Value": "Gabon", 4370 + "Order": 64 4371 + }, 4372 + { 4373 + "Id": 506, 4374 + "QuestionId": 13, 4375 + "Text": "Gambia, The", 4376 + "Value": "Gambia, The", 4377 + "Order": 65 4378 + }, 4379 + { 4380 + "Id": 514, 4381 + "QuestionId": 13, 4382 + "Text": "Georgia", 4383 + "Value": "Georgia", 4384 + "Order": 66 4385 + }, 4386 + { 4387 + "Id": 522, 4388 + "QuestionId": 13, 4389 + "Text": "Germany", 4390 + "Value": "Germany", 4391 + "Order": 67 4392 + }, 4393 + { 4394 + "Id": 530, 4395 + "QuestionId": 13, 4396 + "Text": "Ghana", 4397 + "Value": "Ghana", 4398 + "Order": 68 4399 + }, 4400 + { 4401 + "Id": 538, 4402 + "QuestionId": 13, 4403 + "Text": "Greece", 4404 + "Value": "Greece", 4405 + "Order": 69 4406 + }, 4407 + { 4408 + "Id": 546, 4409 + "QuestionId": 13, 4410 + "Text": "Grenada", 4411 + "Value": "Grenada", 4412 + "Order": 70 4413 + }, 4414 + { 4415 + "Id": 554, 4416 + "QuestionId": 13, 4417 + "Text": "Guatemala", 4418 + "Value": "Guatemala", 4419 + "Order": 71 4420 + }, 4421 + { 4422 + "Id": 562, 4423 + "QuestionId": 13, 4424 + "Text": "Guinea", 4425 + "Value": "Guinea", 4426 + "Order": 72 4427 + }, 4428 + { 4429 + "Id": 570, 4430 + "QuestionId": 13, 4431 + "Text": "Guinea-Bissau", 4432 + "Value": "Guinea-Bissau", 4433 + "Order": 73 4434 + }, 4435 + { 4436 + "Id": 578, 4437 + "QuestionId": 13, 4438 + "Text": "Guyana", 4439 + "Value": "Guyana", 4440 + "Order": 74 4441 + }, 4442 + { 4443 + "Id": 586, 4444 + "QuestionId": 13, 4445 + "Text": "Haiti", 4446 + "Value": "Haiti", 4447 + "Order": 75 4448 + }, 4449 + { 4450 + "Id": 594, 4451 + "QuestionId": 13, 4452 + "Text": "Honduras", 4453 + "Value": "Honduras", 4454 + "Order": 76 4455 + }, 4456 + { 4457 + "Id": 602, 4458 + "QuestionId": 13, 4459 + "Text": "Hungary", 4460 + "Value": "Hungary", 4461 + "Order": 77 4462 + }, 4463 + { 4464 + "Id": 610, 4465 + "QuestionId": 13, 4466 + "Text": "Iceland", 4467 + "Value": "Iceland", 4468 + "Order": 78 4469 + }, 4470 + { 4471 + "Id": 618, 4472 + "QuestionId": 13, 4473 + "Text": "India", 4474 + "Value": "India", 4475 + "Order": 79 4476 + }, 4477 + { 4478 + "Id": 626, 4479 + "QuestionId": 13, 4480 + "Text": "Indonesia", 4481 + "Value": "Indonesia", 4482 + "Order": 80 4483 + }, 4484 + { 4485 + "Id": 634, 4486 + "QuestionId": 13, 4487 + "Text": "Iran", 4488 + "Value": "Iran", 4489 + "Order": 81 4490 + }, 4491 + { 4492 + "Id": 642, 4493 + "QuestionId": 13, 4494 + "Text": "Iraq", 4495 + "Value": "Iraq", 4496 + "Order": 82 4497 + }, 4498 + { 4499 + "Id": 650, 4500 + "QuestionId": 13, 4501 + "Text": "Ireland", 4502 + "Value": "Ireland", 4503 + "Order": 83 4504 + }, 4505 + { 4506 + "Id": 658, 4507 + "QuestionId": 13, 4508 + "Text": "Israel", 4509 + "Value": "Israel", 4510 + "Order": 84 4511 + }, 4512 + { 4513 + "Id": 666, 4514 + "QuestionId": 13, 4515 + "Text": "Italy", 4516 + "Value": "Italy", 4517 + "Order": 85 4518 + }, 4519 + { 4520 + "Id": 674, 4521 + "QuestionId": 13, 4522 + "Text": "Jamaica", 4523 + "Value": "Jamaica", 4524 + "Order": 86 4525 + }, 4526 + { 4527 + "Id": 682, 4528 + "QuestionId": 13, 4529 + "Text": "Japan", 4530 + "Value": "Japan", 4531 + "Order": 87 4532 + }, 4533 + { 4534 + "Id": 690, 4535 + "QuestionId": 13, 4536 + "Text": "Jordan", 4537 + "Value": "Jordan", 4538 + "Order": 88 4539 + }, 4540 + { 4541 + "Id": 698, 4542 + "QuestionId": 13, 4543 + "Text": "Kazakhstan", 4544 + "Value": "Kazakhstan", 4545 + "Order": 89 4546 + }, 4547 + { 4548 + "Id": 706, 4549 + "QuestionId": 13, 4550 + "Text": "Kenya", 4551 + "Value": "Kenya", 4552 + "Order": 90 4553 + }, 4554 + { 4555 + "Id": 714, 4556 + "QuestionId": 13, 4557 + "Text": "Kiribati", 4558 + "Value": "Kiribati", 4559 + "Order": 91 4560 + }, 4561 + { 4562 + "Id": 722, 4563 + "QuestionId": 13, 4564 + "Text": "Korea, North", 4565 + "Value": "Korea, North", 4566 + "Order": 92 4567 + }, 4568 + { 4569 + "Id": 730, 4570 + "QuestionId": 13, 4571 + "Text": "Korea, South", 4572 + "Value": "Korea, South", 4573 + "Order": 93 4574 + }, 4575 + { 4576 + "Id": 738, 4577 + "QuestionId": 13, 4578 + "Text": "Kuwait", 4579 + "Value": "Kuwait", 4580 + "Order": 94 4581 + }, 4582 + { 4583 + "Id": 746, 4584 + "QuestionId": 13, 4585 + "Text": "Kyrgyzstan", 4586 + "Value": "Kyrgyzstan", 4587 + "Order": 95 4588 + }, 4589 + { 4590 + "Id": 754, 4591 + "QuestionId": 13, 4592 + "Text": "Laos", 4593 + "Value": "Laos", 4594 + "Order": 96 4595 + }, 4596 + { 4597 + "Id": 762, 4598 + "QuestionId": 13, 4599 + "Text": "Latvia", 4600 + "Value": "Latvia", 4601 + "Order": 97 4602 + }, 4603 + { 4604 + "Id": 770, 4605 + "QuestionId": 13, 4606 + "Text": "Lebanon", 4607 + "Value": "Lebanon", 4608 + "Order": 98 4609 + }, 4610 + { 4611 + "Id": 778, 4612 + "QuestionId": 13, 4613 + "Text": "Lesotho", 4614 + "Value": "Lesotho", 4615 + "Order": 99 4616 + }, 4617 + { 4618 + "Id": 786, 4619 + "QuestionId": 13, 4620 + "Text": "Liberia", 4621 + "Value": "Liberia", 4622 + "Order": 100 4623 + }, 4624 + { 4625 + "Id": 794, 4626 + "QuestionId": 13, 4627 + "Text": "Libya", 4628 + "Value": "Libya", 4629 + "Order": 101 4630 + }, 4631 + { 4632 + "Id": 802, 4633 + "QuestionId": 13, 4634 + "Text": "Liechtenstein", 4635 + "Value": "Liechtenstein", 4636 + "Order": 102 4637 + }, 4638 + { 4639 + "Id": 810, 4640 + "QuestionId": 13, 4641 + "Text": "Lithuania", 4642 + "Value": "Lithuania", 4643 + "Order": 103 4644 + }, 4645 + { 4646 + "Id": 818, 4647 + "QuestionId": 13, 4648 + "Text": "Luxembourg", 4649 + "Value": "Luxembourg", 4650 + "Order": 104 4651 + }, 4652 + { 4653 + "Id": 826, 4654 + "QuestionId": 13, 4655 + "Text": "Macedonia", 4656 + "Value": "Macedonia", 4657 + "Order": 105 4658 + }, 4659 + { 4660 + "Id": 834, 4661 + "QuestionId": 13, 4662 + "Text": "Madagascar", 4663 + "Value": "Madagascar", 4664 + "Order": 106 4665 + }, 4666 + { 4667 + "Id": 842, 4668 + "QuestionId": 13, 4669 + "Text": "Malawi", 4670 + "Value": "Malawi", 4671 + "Order": 107 4672 + }, 4673 + { 4674 + "Id": 850, 4675 + "QuestionId": 13, 4676 + "Text": "Malaysia", 4677 + "Value": "Malaysia", 4678 + "Order": 108 4679 + }, 4680 + { 4681 + "Id": 858, 4682 + "QuestionId": 13, 4683 + "Text": "Maldives", 4684 + "Value": "Maldives", 4685 + "Order": 109 4686 + }, 4687 + { 4688 + "Id": 866, 4689 + "QuestionId": 13, 4690 + "Text": "Mali", 4691 + "Value": "Mali", 4692 + "Order": 110 4693 + }, 4694 + { 4695 + "Id": 874, 4696 + "QuestionId": 13, 4697 + "Text": "Malta", 4698 + "Value": "Malta", 4699 + "Order": 111 4700 + }, 4701 + { 4702 + "Id": 882, 4703 + "QuestionId": 13, 4704 + "Text": "Marshall Islands", 4705 + "Value": "Marshall Islands", 4706 + "Order": 112 4707 + }, 4708 + { 4709 + "Id": 890, 4710 + "QuestionId": 13, 4711 + "Text": "Mauritania", 4712 + "Value": "Mauritania", 4713 + "Order": 113 4714 + }, 4715 + { 4716 + "Id": 898, 4717 + "QuestionId": 13, 4718 + "Text": "Mauritius", 4719 + "Value": "Mauritius", 4720 + "Order": 114 4721 + }, 4722 + { 4723 + "Id": 906, 4724 + "QuestionId": 13, 4725 + "Text": "Mexico", 4726 + "Value": "Mexico", 4727 + "Order": 115 4728 + }, 4729 + { 4730 + "Id": 914, 4731 + "QuestionId": 13, 4732 + "Text": "Micronesia", 4733 + "Value": "Micronesia", 4734 + "Order": 116 4735 + }, 4736 + { 4737 + "Id": 922, 4738 + "QuestionId": 13, 4739 + "Text": "Moldova", 4740 + "Value": "Moldova", 4741 + "Order": 117 4742 + }, 4743 + { 4744 + "Id": 930, 4745 + "QuestionId": 13, 4746 + "Text": "Monaco", 4747 + "Value": "Monaco", 4748 + "Order": 118 4749 + }, 4750 + { 4751 + "Id": 938, 4752 + "QuestionId": 13, 4753 + "Text": "Mongolia", 4754 + "Value": "Mongolia", 4755 + "Order": 119 4756 + }, 4757 + { 4758 + "Id": 946, 4759 + "QuestionId": 13, 4760 + "Text": "Morocco", 4761 + "Value": "Morocco", 4762 + "Order": 120 4763 + }, 4764 + { 4765 + "Id": 954, 4766 + "QuestionId": 13, 4767 + "Text": "Mozambique", 4768 + "Value": "Mozambique", 4769 + "Order": 121 4770 + }, 4771 + { 4772 + "Id": 962, 4773 + "QuestionId": 13, 4774 + "Text": "Myanmar", 4775 + "Value": "Myanmar", 4776 + "Order": 122 4777 + }, 4778 + { 4779 + "Id": 970, 4780 + "QuestionId": 13, 4781 + "Text": "Namibia", 4782 + "Value": "Namibia", 4783 + "Order": 123 4784 + }, 4785 + { 4786 + "Id": 978, 4787 + "QuestionId": 13, 4788 + "Text": "Nauru", 4789 + "Value": "Nauru", 4790 + "Order": 124 4791 + }, 4792 + { 4793 + "Id": 986, 4794 + "QuestionId": 13, 4795 + "Text": "Nepa", 4796 + "Value": "Nepa", 4797 + "Order": 125 4798 + }, 4799 + { 4800 + "Id": 994, 4801 + "QuestionId": 13, 4802 + "Text": "Netherlands", 4803 + "Value": "Netherlands", 4804 + "Order": 126 4805 + }, 4806 + { 4807 + "Id": 1002, 4808 + "QuestionId": 13, 4809 + "Text": "New Zealand", 4810 + "Value": "New Zealand", 4811 + "Order": 127 4812 + }, 4813 + { 4814 + "Id": 1010, 4815 + "QuestionId": 13, 4816 + "Text": "Nicaragua", 4817 + "Value": "Nicaragua", 4818 + "Order": 128 4819 + }, 4820 + { 4821 + "Id": 1018, 4822 + "QuestionId": 13, 4823 + "Text": "Niger", 4824 + "Value": "Niger", 4825 + "Order": 129 4826 + }, 4827 + { 4828 + "Id": 1026, 4829 + "QuestionId": 13, 4830 + "Text": "Nigeria", 4831 + "Value": "Nigeria", 4832 + "Order": 130 4833 + }, 4834 + { 4835 + "Id": 1034, 4836 + "QuestionId": 13, 4837 + "Text": "Norway", 4838 + "Value": "Norway", 4839 + "Order": 131 4840 + }, 4841 + { 4842 + "Id": 1042, 4843 + "QuestionId": 13, 4844 + "Text": "Oman", 4845 + "Value": "Oman", 4846 + "Order": 132 4847 + }, 4848 + { 4849 + "Id": 1050, 4850 + "QuestionId": 13, 4851 + "Text": "Pakistan", 4852 + "Value": "Pakistan", 4853 + "Order": 133 4854 + }, 4855 + { 4856 + "Id": 1058, 4857 + "QuestionId": 13, 4858 + "Text": "Palau", 4859 + "Value": "Palau", 4860 + "Order": 134 4861 + }, 4862 + { 4863 + "Id": 1066, 4864 + "QuestionId": 13, 4865 + "Text": "Panama", 4866 + "Value": "Panama", 4867 + "Order": 135 4868 + }, 4869 + { 4870 + "Id": 1074, 4871 + "QuestionId": 13, 4872 + "Text": "Papua New Guinea", 4873 + "Value": "Papua New Guinea", 4874 + "Order": 136 4875 + }, 4876 + { 4877 + "Id": 1082, 4878 + "QuestionId": 13, 4879 + "Text": "Paraguay", 4880 + "Value": "Paraguay", 4881 + "Order": 137 4882 + }, 4883 + { 4884 + "Id": 1090, 4885 + "QuestionId": 13, 4886 + "Text": "Peru", 4887 + "Value": "Peru", 4888 + "Order": 138 4889 + }, 4890 + { 4891 + "Id": 1098, 4892 + "QuestionId": 13, 4893 + "Text": "Philippines", 4894 + "Value": "Philippines", 4895 + "Order": 139 4896 + }, 4897 + { 4898 + "Id": 1106, 4899 + "QuestionId": 13, 4900 + "Text": "Poland", 4901 + "Value": "Poland", 4902 + "Order": 140 4903 + }, 4904 + { 4905 + "Id": 1114, 4906 + "QuestionId": 13, 4907 + "Text": "Portugal", 4908 + "Value": "Portugal", 4909 + "Order": 141 4910 + }, 4911 + { 4912 + "Id": 1122, 4913 + "QuestionId": 13, 4914 + "Text": "Qatar", 4915 + "Value": "Qatar", 4916 + "Order": 142 4917 + }, 4918 + { 4919 + "Id": 1130, 4920 + "QuestionId": 13, 4921 + "Text": "Romania", 4922 + "Value": "Romania", 4923 + "Order": 143 4924 + }, 4925 + { 4926 + "Id": 1138, 4927 + "QuestionId": 13, 4928 + "Text": "Russia", 4929 + "Value": "Russia", 4930 + "Order": 144 4931 + }, 4932 + { 4933 + "Id": 1146, 4934 + "QuestionId": 13, 4935 + "Text": "Rwanda", 4936 + "Value": "Rwanda", 4937 + "Order": 145 4938 + }, 4939 + { 4940 + "Id": 1154, 4941 + "QuestionId": 13, 4942 + "Text": "Saint Kitts and Nevis", 4943 + "Value": "Saint Kitts and Nevis", 4944 + "Order": 146 4945 + }, 4946 + { 4947 + "Id": 1162, 4948 + "QuestionId": 13, 4949 + "Text": "Saint Lucia", 4950 + "Value": "Saint Lucia", 4951 + "Order": 147 4952 + }, 4953 + { 4954 + "Id": 1170, 4955 + "QuestionId": 13, 4956 + "Text": "Saint Vincent", 4957 + "Value": "Saint Vincent", 4958 + "Order": 148 4959 + }, 4960 + { 4961 + "Id": 1178, 4962 + "QuestionId": 13, 4963 + "Text": "Samoa", 4964 + "Value": "Samoa", 4965 + "Order": 149 4966 + }, 4967 + { 4968 + "Id": 1186, 4969 + "QuestionId": 13, 4970 + "Text": "San Marino", 4971 + "Value": "San Marino", 4972 + "Order": 150 4973 + }, 4974 + { 4975 + "Id": 1194, 4976 + "QuestionId": 13, 4977 + "Text": "Sao Tome and Principe", 4978 + "Value": "Sao Tome and Principe", 4979 + "Order": 151 4980 + }, 4981 + { 4982 + "Id": 1202, 4983 + "QuestionId": 13, 4984 + "Text": "Saudi Arabia", 4985 + "Value": "Saudi Arabia", 4986 + "Order": 152 4987 + }, 4988 + { 4989 + "Id": 1210, 4990 + "QuestionId": 13, 4991 + "Text": "Senegal", 4992 + "Value": "Senegal", 4993 + "Order": 153 4994 + }, 4995 + { 4996 + "Id": 1218, 4997 + "QuestionId": 13, 4998 + "Text": "Serbia and Montenegro", 4999 + "Value": "Serbia and Montenegro", 5000 + "Order": 154 5001 + }, 5002 + { 5003 + "Id": 1226, 5004 + "QuestionId": 13, 5005 + "Text": "Seychelles", 5006 + "Value": "Seychelles", 5007 + "Order": 155 5008 + }, 5009 + { 5010 + "Id": 1234, 5011 + "QuestionId": 13, 5012 + "Text": "Sierra Leone", 5013 + "Value": "Sierra Leone", 5014 + "Order": 156 5015 + }, 5016 + { 5017 + "Id": 1242, 5018 + "QuestionId": 13, 5019 + "Text": "Singapore", 5020 + "Value": "Singapore", 5021 + "Order": 157 5022 + }, 5023 + { 5024 + "Id": 1250, 5025 + "QuestionId": 13, 5026 + "Text": "Slovakia", 5027 + "Value": "Slovakia", 5028 + "Order": 158 5029 + }, 5030 + { 5031 + "Id": 1258, 5032 + "QuestionId": 13, 5033 + "Text": "Slovenia", 5034 + "Value": "Slovenia", 5035 + "Order": 159 5036 + }, 5037 + { 5038 + "Id": 1266, 5039 + "QuestionId": 13, 5040 + "Text": "Solomon Islands", 5041 + "Value": "Solomon Islands", 5042 + "Order": 160 5043 + }, 5044 + { 5045 + "Id": 1274, 5046 + "QuestionId": 13, 5047 + "Text": "Somalia", 5048 + "Value": "Somalia", 5049 + "Order": 161 5050 + }, 5051 + { 5052 + "Id": 1282, 5053 + "QuestionId": 13, 5054 + "Text": "South Africa", 5055 + "Value": "South Africa", 5056 + "Order": 162 5057 + }, 5058 + { 5059 + "Id": 1290, 5060 + "QuestionId": 13, 5061 + "Text": "Spain", 5062 + "Value": "Spain", 5063 + "Order": 163 5064 + }, 5065 + { 5066 + "Id": 1298, 5067 + "QuestionId": 13, 5068 + "Text": "Sri Lanka", 5069 + "Value": "Sri Lanka", 5070 + "Order": 164 5071 + }, 5072 + { 5073 + "Id": 1306, 5074 + "QuestionId": 13, 5075 + "Text": "Sudan", 5076 + "Value": "Sudan", 5077 + "Order": 165 5078 + }, 5079 + { 5080 + "Id": 1314, 5081 + "QuestionId": 13, 5082 + "Text": "Suriname", 5083 + "Value": "Suriname", 5084 + "Order": 166 5085 + }, 5086 + { 5087 + "Id": 1322, 5088 + "QuestionId": 13, 5089 + "Text": "Swaziland", 5090 + "Value": "Swaziland", 5091 + "Order": 167 5092 + }, 5093 + { 5094 + "Id": 1330, 5095 + "QuestionId": 13, 5096 + "Text": "Sweden", 5097 + "Value": "Sweden", 5098 + "Order": 168 5099 + }, 5100 + { 5101 + "Id": 1338, 5102 + "QuestionId": 13, 5103 + "Text": "Switzerland", 5104 + "Value": "Switzerland", 5105 + "Order": 169 5106 + }, 5107 + { 5108 + "Id": 1346, 5109 + "QuestionId": 13, 5110 + "Text": "Syria", 5111 + "Value": "Syria", 5112 + "Order": 170 5113 + }, 5114 + { 5115 + "Id": 1354, 5116 + "QuestionId": 13, 5117 + "Text": "Taiwan", 5118 + "Value": "Taiwan", 5119 + "Order": 171 5120 + }, 5121 + { 5122 + "Id": 1362, 5123 + "QuestionId": 13, 5124 + "Text": "Tajikistan", 5125 + "Value": "Tajikistan", 5126 + "Order": 172 5127 + }, 5128 + { 5129 + "Id": 1370, 5130 + "QuestionId": 13, 5131 + "Text": "Tanzania", 5132 + "Value": "Tanzania", 5133 + "Order": 173 5134 + }, 5135 + { 5136 + "Id": 1378, 5137 + "QuestionId": 13, 5138 + "Text": "Thailand", 5139 + "Value": "Thailand", 5140 + "Order": 174 5141 + }, 5142 + { 5143 + "Id": 1386, 5144 + "QuestionId": 13, 5145 + "Text": "Togo", 5146 + "Value": "Togo", 5147 + "Order": 175 5148 + }, 5149 + { 5150 + "Id": 1394, 5151 + "QuestionId": 13, 5152 + "Text": "Tonga", 5153 + "Value": "Tonga", 5154 + "Order": 176 5155 + }, 5156 + { 5157 + "Id": 1402, 5158 + "QuestionId": 13, 5159 + "Text": "Trinidad and Tobago", 5160 + "Value": "Trinidad and Tobago", 5161 + "Order": 177 5162 + }, 5163 + { 5164 + "Id": 1410, 5165 + "QuestionId": 13, 5166 + "Text": "Tunisia", 5167 + "Value": "Tunisia", 5168 + "Order": 178 5169 + }, 5170 + { 5171 + "Id": 1418, 5172 + "QuestionId": 13, 5173 + "Text": "Turkey", 5174 + "Value": "Turkey", 5175 + "Order": 179 5176 + }, 5177 + { 5178 + "Id": 1426, 5179 + "QuestionId": 13, 5180 + "Text": "Turkmenistan", 5181 + "Value": "Turkmenistan", 5182 + "Order": 180 5183 + }, 5184 + { 5185 + "Id": 1434, 5186 + "QuestionId": 13, 5187 + "Text": "Tuvalu", 5188 + "Value": "Tuvalu", 5189 + "Order": 181 5190 + }, 5191 + { 5192 + "Id": 1442, 5193 + "QuestionId": 13, 5194 + "Text": "Uganda", 5195 + "Value": "Uganda", 5196 + "Order": 182 5197 + }, 5198 + { 5199 + "Id": 1450, 5200 + "QuestionId": 13, 5201 + "Text": "Ukraine", 5202 + "Value": "Ukraine", 5203 + "Order": 183 5204 + }, 5205 + { 5206 + "Id": 1458, 5207 + "QuestionId": 13, 5208 + "Text": "United Arab Emirates", 5209 + "Value": "United Arab Emirates", 5210 + "Order": 184 5211 + }, 5212 + { 5213 + "Id": 1466, 5214 + "QuestionId": 13, 5215 + "Text": "United Kingdom", 5216 + "Value": "United Kingdom", 5217 + "Order": 185 5218 + }, 5219 + { 5220 + "Id": 1474, 5221 + "QuestionId": 13, 5222 + "Text": "United States", 5223 + "Value": "United States", 5224 + "Order": 2 5225 + }, 5226 + { 5227 + "Id": 1482, 5228 + "QuestionId": 13, 5229 + "Text": "Uruguay", 5230 + "Value": "Uruguay", 5231 + "Order": 186 5232 + }, 5233 + { 5234 + "Id": 1490, 5235 + "QuestionId": 13, 5236 + "Text": "Uzbekistan", 5237 + "Value": "Uzbekistan", 5238 + "Order": 187 5239 + }, 5240 + { 5241 + "Id": 1498, 5242 + "QuestionId": 13, 5243 + "Text": "Vanuatu", 5244 + "Value": "Vanuatu", 5245 + "Order": 188 5246 + }, 5247 + { 5248 + "Id": 1506, 5249 + "QuestionId": 13, 5250 + "Text": "Vatican City", 5251 + "Value": "Vatican City", 5252 + "Order": 189 5253 + }, 5254 + { 5255 + "Id": 1514, 5256 + "QuestionId": 13, 5257 + "Text": "Venezuela", 5258 + "Value": "Venezuela", 5259 + "Order": 190 5260 + }, 5261 + { 5262 + "Id": 1522, 5263 + "QuestionId": 13, 5264 + "Text": "Vietnam", 5265 + "Value": "Vietnam", 5266 + "Order": 191 5267 + }, 5268 + { 5269 + "Id": 1530, 5270 + "QuestionId": 13, 5271 + "Text": "Yemen", 5272 + "Value": "Yemen", 5273 + "Order": 192 5274 + }, 5275 + { 5276 + "Id": 1538, 5277 + "QuestionId": 13, 5278 + "Text": "Zambia", 5279 + "Value": "Zambia", 5280 + "Order": 193 5281 + }, 5282 + { 5283 + "Id": 1546, 5284 + "QuestionId": 13, 5285 + "Text": "Zimbabwe", 5286 + "Value": "Zimbabwe", 5287 + "Order": 194 5288 + }, 5289 + { 5290 + "Id": 2186, 5291 + "QuestionId": 13, 5292 + "Text": "British Columbia", 5293 + "Value": "British Columbia", 5294 + "Order": 195 5295 + } 5296 + ] 5297 + } 5298 + ] 5299 +} 5300 +{{/code}} 2059 2059 2060 -(% class="western" %) 2061 -"Id": "6", 2062 2062 2063 -(% class=" western" %)2064 -" Text": "FirstName",5303 +(% id="HGETlookupquestionbyType" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 5304 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup question by Type(%%) == 2065 2065 2066 -(% class="western" %) 2067 -"Type": "1", 5306 +---- 2068 2068 2069 -(% class="western" %) 2070 -"Alias": "FName" 5308 +{{panel bgColor="#D3D3D3" width="100%"}} 5309 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/lookup?Type=4 5310 +{{/panel}} 2071 2071 2072 -(% class="western" %) 5312 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 5313 + 5314 +---- 5315 + 5316 +(% 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}} 5317 + 5318 +=== (% style="color:#212121" %)Query Params(%%) === 5319 + 5320 +---- 5321 + 5322 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Type 4(%%) 5323 + 5324 + 5325 +==== Example ==== 5326 + 5327 +---- 5328 + 5329 +(% style="color:#6b6b6b" %)Request 5330 + 5331 +{{code language="php" theme="RDark" title="Lookup question by Type Request"}} 5332 +<?php 5333 + 5334 +$curl = curl_init(); 5335 + 5336 +curl_setopt_array($curl, array( 5337 + CURLOPT_URL => 'https://api.onecount.net/v2/questions/lookup?Type=4', 5338 + CURLOPT_RETURNTRANSFER => true, 5339 + CURLOPT_ENCODING => '', 5340 + CURLOPT_MAXREDIRS => 10, 5341 + CURLOPT_TIMEOUT => 0, 5342 + CURLOPT_FOLLOWLOCATION => true, 5343 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 5344 + CURLOPT_CUSTOMREQUEST => 'GET', 5345 + CURLOPT_HTTPHEADER => array( 5346 + 'Appkey: {{ONECOUNT API KEY}}' 5347 + ), 5348 +)); 5349 + 5350 +$response = curl_exec($curl); 5351 + 5352 +curl_close($curl); 5353 +echo $response; 5354 +{{/code}} 5355 + 5356 + 5357 +(% style="color:#6b6b6b" %)Response 200 OK 5358 + 5359 +{{code language="yml" theme="RDark" collapse="true" title="Lookup question by type Response"}} 5360 +{ 5361 + "result": { 5362 + "success": "1", 5363 + "error": { 5364 + "code": "", 5365 + "message": "" 5366 + } 5367 + }, 5368 + "Questions": [ 5369 + { 5370 + "Id": 11, 5371 + "Text": "State/Province", 5372 + "Type": "4", 5373 + "Alias": "State/Province", 5374 + "Choices": [ 5375 + { 5376 + "Id": 1554, 5377 + "QuestionId": 11, 5378 + "Text": "Select One", 5379 + "Value": "", 5380 + "Order": 1 5381 + }, 5382 + { 5383 + "Id": 1562, 5384 + "QuestionId": 11, 5385 + "Text": "Alabama", 5386 + "Value": "AL", 5387 + "Order": 2 5388 + }, 5389 + { 5390 + "Id": 1570, 5391 + "QuestionId": 11, 5392 + "Text": "Alaska", 5393 + "Value": "AK", 5394 + "Order": 3 5395 + }, 5396 + { 5397 + "Id": 1578, 5398 + "QuestionId": 11, 5399 + "Text": "Arizona", 5400 + "Value": "AZ", 5401 + "Order": 4 5402 + }, 5403 + { 5404 + "Id": 1586, 5405 + "QuestionId": 11, 5406 + "Text": "Arkansas", 5407 + "Value": "AR", 5408 + "Order": 5 5409 + }, 5410 + { 5411 + "Id": 1594, 5412 + "QuestionId": 11, 5413 + "Text": "California", 5414 + "Value": "CA", 5415 + "Order": 6 5416 + }, 5417 + { 5418 + "Id": 1602, 5419 + "QuestionId": 11, 5420 + "Text": "Colorado", 5421 + "Value": "CO", 5422 + "Order": 7 5423 + }, 5424 + { 5425 + "Id": 1610, 5426 + "QuestionId": 11, 5427 + "Text": "Connecticut", 5428 + "Value": "CT", 5429 + "Order": 8 5430 + }, 5431 + { 5432 + "Id": 1618, 5433 + "QuestionId": 11, 5434 + "Text": "Delaware", 5435 + "Value": "DE", 5436 + "Order": 9 5437 + }, 5438 + { 5439 + "Id": 1626, 5440 + "QuestionId": 11, 5441 + "Text": "District of Columbia", 5442 + "Value": "DC", 5443 + "Order": 10 5444 + }, 5445 + { 5446 + "Id": 1634, 5447 + "QuestionId": 11, 5448 + "Text": "Florida", 5449 + "Value": "FL", 5450 + "Order": 11 5451 + }, 5452 + { 5453 + "Id": 1642, 5454 + "QuestionId": 11, 5455 + "Text": "Georgia", 5456 + "Value": "GA", 5457 + "Order": 12 5458 + }, 5459 + { 5460 + "Id": 1650, 5461 + "QuestionId": 11, 5462 + "Text": "Hawaii", 5463 + "Value": "HI", 5464 + "Order": 13 5465 + }, 5466 + { 5467 + "Id": 1658, 5468 + "QuestionId": 11, 5469 + "Text": "Idaho", 5470 + "Value": "ID", 5471 + "Order": 14 5472 + }, 5473 + { 5474 + "Id": 1666, 5475 + "QuestionId": 11, 5476 + "Text": "Illinois", 5477 + "Value": "IL", 5478 + "Order": 15 5479 + }, 5480 + { 5481 + "Id": 1674, 5482 + "QuestionId": 11, 5483 + "Text": "Indiana", 5484 + "Value": "IN", 5485 + "Order": 16 5486 + }, 5487 + { 5488 + "Id": 1682, 5489 + "QuestionId": 11, 5490 + "Text": "Iowa", 5491 + "Value": "IA", 5492 + "Order": 17 5493 + }, 5494 + { 5495 + "Id": 1690, 5496 + "QuestionId": 11, 5497 + "Text": "Kansas", 5498 + "Value": "KS", 5499 + "Order": 18 5500 + }, 5501 + { 5502 + "Id": 1698, 5503 + "QuestionId": 11, 5504 + "Text": "Kentucky", 5505 + "Value": "KY", 5506 + "Order": 19 5507 + }, 5508 + { 5509 + "Id": 1706, 5510 + "QuestionId": 11, 5511 + "Text": "Louisiana", 5512 + "Value": "LA", 5513 + "Order": 20 5514 + }, 5515 + { 5516 + "Id": 1714, 5517 + "QuestionId": 11, 5518 + "Text": "Maine", 5519 + "Value": "ME", 5520 + "Order": 21 5521 + }, 5522 + { 5523 + "Id": 1722, 5524 + "QuestionId": 11, 5525 + "Text": "Maryland", 5526 + "Value": "MD", 5527 + "Order": 22 5528 + }, 5529 + { 5530 + "Id": 1730, 5531 + "QuestionId": 11, 5532 + "Text": "Massachusetts", 5533 + "Value": "MA", 5534 + "Order": 23 5535 + }, 5536 + { 5537 + "Id": 1738, 5538 + "QuestionId": 11, 5539 + "Text": "Michigan", 5540 + "Value": "MI", 5541 + "Order": 24 5542 + }, 5543 + { 5544 + "Id": 1746, 5545 + "QuestionId": 11, 5546 + "Text": "Minnesota", 5547 + "Value": "MN", 5548 + "Order": 25 5549 + }, 5550 + { 5551 + "Id": 1754, 5552 + "QuestionId": 11, 5553 + "Text": "Mississippi", 5554 + "Value": "MS", 5555 + "Order": 26 5556 + }, 5557 + { 5558 + "Id": 1762, 5559 + "QuestionId": 11, 5560 + "Text": "Missouri", 5561 + "Value": "MO", 5562 + "Order": 27 5563 + }, 5564 + { 5565 + "Id": 1770, 5566 + "QuestionId": 11, 5567 + "Text": "Montana", 5568 + "Value": "MT", 5569 + "Order": 28 5570 + }, 5571 + { 5572 + "Id": 1778, 5573 + "QuestionId": 11, 5574 + "Text": "Nebraska", 5575 + "Value": "NE", 5576 + "Order": 29 5577 + }, 5578 + { 5579 + "Id": 1786, 5580 + "QuestionId": 11, 5581 + "Text": "Nevada", 5582 + "Value": "NV", 5583 + "Order": 30 5584 + }, 5585 + { 5586 + "Id": 1794, 5587 + "QuestionId": 11, 5588 + "Text": "New Hampshire", 5589 + "Value": "NH", 5590 + "Order": 31 5591 + }, 5592 + { 5593 + "Id": 1802, 5594 + "QuestionId": 11, 5595 + "Text": "New Jersey", 5596 + "Value": "NJ", 5597 + "Order": 32 5598 + }, 5599 + { 5600 + "Id": 1810, 5601 + "QuestionId": 11, 5602 + "Text": "New Mexico", 5603 + "Value": "NM", 5604 + "Order": 33 5605 + }, 5606 + { 5607 + "Id": 1818, 5608 + "QuestionId": 11, 5609 + "Text": "New York", 5610 + "Value": "NY", 5611 + "Order": 34 5612 + }, 5613 + { 5614 + "Id": 1826, 5615 + "QuestionId": 11, 5616 + "Text": "North Carolina", 5617 + "Value": "NC", 5618 + "Order": 35 5619 + }, 5620 + { 5621 + "Id": 1834, 5622 + "QuestionId": 11, 5623 + "Text": "Ohio", 5624 + "Value": "OH", 5625 + "Order": 37 5626 + }, 5627 + { 5628 + "Id": 1842, 5629 + "QuestionId": 11, 5630 + "Text": "Oklahoma", 5631 + "Value": "OK", 5632 + "Order": 38 5633 + }, 5634 + { 5635 + "Id": 1850, 5636 + "QuestionId": 11, 5637 + "Text": "Oregon", 5638 + "Value": "OR", 5639 + "Order": 39 5640 + }, 5641 + { 5642 + "Id": 1858, 5643 + "QuestionId": 11, 5644 + "Text": "Pennsylvania", 5645 + "Value": "PA", 5646 + "Order": 40 5647 + }, 5648 + { 5649 + "Id": 1866, 5650 + "QuestionId": 11, 5651 + "Text": "Rhode Island", 5652 + "Value": "RI", 5653 + "Order": 41 5654 + }, 5655 + { 5656 + "Id": 1874, 5657 + "QuestionId": 11, 5658 + "Text": "South Carolina", 5659 + "Value": "SC", 5660 + "Order": 42 5661 + }, 5662 + { 5663 + "Id": 1882, 5664 + "QuestionId": 11, 5665 + "Text": "South Dakota", 5666 + "Value": "SD", 5667 + "Order": 43 5668 + }, 5669 + { 5670 + "Id": 1890, 5671 + "QuestionId": 11, 5672 + "Text": "Tennessee", 5673 + "Value": "TN", 5674 + "Order": 44 5675 + }, 5676 + { 5677 + "Id": 1898, 5678 + "QuestionId": 11, 5679 + "Text": "Texas", 5680 + "Value": "TX", 5681 + "Order": 45 5682 + }, 5683 + { 5684 + "Id": 1906, 5685 + "QuestionId": 11, 5686 + "Text": "Utah", 5687 + "Value": "UT", 5688 + "Order": 46 5689 + }, 5690 + { 5691 + "Id": 1914, 5692 + "QuestionId": 11, 5693 + "Text": "Vermont", 5694 + "Value": "VT", 5695 + "Order": 47 5696 + }, 5697 + { 5698 + "Id": 1922, 5699 + "QuestionId": 11, 5700 + "Text": "Virginia", 5701 + "Value": "VA", 5702 + "Order": 48 5703 + }, 5704 + { 5705 + "Id": 1930, 5706 + "QuestionId": 11, 5707 + "Text": "Washington", 5708 + "Value": "WA", 5709 + "Order": 49 5710 + }, 5711 + { 5712 + "Id": 1938, 5713 + "QuestionId": 11, 5714 + "Text": "West Virginia", 5715 + "Value": "WV", 5716 + "Order": 50 5717 + }, 5718 + { 5719 + "Id": 1946, 5720 + "QuestionId": 11, 5721 + "Text": "Wisconsin", 5722 + "Value": "WI", 5723 + "Order": 51 5724 + }, 5725 + { 5726 + "Id": 1954, 5727 + "QuestionId": 11, 5728 + "Text": "Wyoming", 5729 + "Value": "WY", 5730 + "Order": 52 5731 + }, 5732 + { 5733 + "Id": 1962, 5734 + "QuestionId": 11, 5735 + "Text": "American Samoa", 5736 + "Value": "AS", 5737 + "Order": 53 5738 + }, 5739 + { 5740 + "Id": 1970, 5741 + "QuestionId": 11, 5742 + "Text": "North Dakota", 5743 + "Value": "ND", 5744 + "Order": 36 5745 + }, 5746 + { 5747 + "Id": 1978, 5748 + "QuestionId": 11, 5749 + "Text": "Federated States of Micronesia", 5750 + "Value": "FM", 5751 + "Order": 54 5752 + }, 5753 + { 5754 + "Id": 1986, 5755 + "QuestionId": 11, 5756 + "Text": "Guam", 5757 + "Value": "GU", 5758 + "Order": 55 5759 + }, 5760 + { 5761 + "Id": 1994, 5762 + "QuestionId": 11, 5763 + "Text": "Marshall Islands", 5764 + "Value": "MH", 5765 + "Order": 56 5766 + }, 5767 + { 5768 + "Id": 2002, 5769 + "QuestionId": 11, 5770 + "Text": "Northern Mariana Islands", 5771 + "Value": "MP", 5772 + "Order": 57 5773 + }, 5774 + { 5775 + "Id": 2010, 5776 + "QuestionId": 11, 5777 + "Text": "Palau", 5778 + "Value": "PW", 5779 + "Order": 58 5780 + }, 5781 + { 5782 + "Id": 2018, 5783 + "QuestionId": 11, 5784 + "Text": "Puerto Rico", 5785 + "Value": "PR", 5786 + "Order": 59 5787 + }, 5788 + { 5789 + "Id": 2026, 5790 + "QuestionId": 11, 5791 + "Text": "U.S. Virgin Islands", 5792 + "Value": "VI", 5793 + "Order": 60 5794 + }, 5795 + { 5796 + "Id": 2034, 5797 + "QuestionId": 11, 5798 + "Text": "Armed Forces Africa", 5799 + "Value": "AE", 5800 + "Order": 61 5801 + }, 5802 + { 5803 + "Id": 2042, 5804 + "QuestionId": 11, 5805 + "Text": "Armed Forces Americas (except Canada)", 5806 + "Value": "AA", 5807 + "Order": 62 5808 + }, 5809 + { 5810 + "Id": 2050, 5811 + "QuestionId": 11, 5812 + "Text": "Armed Forces Canada", 5813 + "Value": "AE", 5814 + "Order": 63 5815 + }, 5816 + { 5817 + "Id": 2058, 5818 + "QuestionId": 11, 5819 + "Text": "Armed Forces Europe", 5820 + "Value": "AE", 5821 + "Order": 64 5822 + }, 5823 + { 5824 + "Id": 2066, 5825 + "QuestionId": 11, 5826 + "Text": "Armed Forces Middle East", 5827 + "Value": "AE", 5828 + "Order": 65 5829 + }, 5830 + { 5831 + "Id": 2074, 5832 + "QuestionId": 11, 5833 + "Text": "Armed Forces Pacific", 5834 + "Value": "AP", 5835 + "Order": 66 5836 + }, 5837 + { 5838 + "Id": 2082, 5839 + "QuestionId": 11, 5840 + "Text": "Non-US/Not Applicable", 5841 + "Value": "Non-US/Not Applicable", 5842 + "Order": 67 5843 + }, 5844 + { 5845 + "Id": 2090, 5846 + "QuestionId": 11, 5847 + "Text": "Ontario", 5848 + "Value": "Ontario", 5849 + "Order": 68 5850 + }, 5851 + { 5852 + "Id": 2098, 5853 + "QuestionId": 11, 5854 + "Text": "Quebec", 5855 + "Value": "Quebec", 5856 + "Order": 69 5857 + }, 5858 + { 5859 + "Id": 2106, 5860 + "QuestionId": 11, 5861 + "Text": "Nova Scotia", 5862 + "Value": "Nova Scotia", 5863 + "Order": 70 5864 + }, 5865 + { 5866 + "Id": 2114, 5867 + "QuestionId": 11, 5868 + "Text": "New Brunswick", 5869 + "Value": "New Brunswick", 5870 + "Order": 71 5871 + }, 5872 + { 5873 + "Id": 2122, 5874 + "QuestionId": 11, 5875 + "Text": "Manitoba", 5876 + "Value": "Manitoba", 5877 + "Order": 72 5878 + }, 5879 + { 5880 + "Id": 2130, 5881 + "QuestionId": 11, 5882 + "Text": "Brittish Columbia", 5883 + "Value": "Brittish Columbia", 5884 + "Order": 73 5885 + }, 5886 + { 5887 + "Id": 2138, 5888 + "QuestionId": 11, 5889 + "Text": "Prince Edward Island", 5890 + "Value": "Prince Edward Island", 5891 + "Order": 74 5892 + }, 5893 + { 5894 + "Id": 2146, 5895 + "QuestionId": 11, 5896 + "Text": "Saskatchewan", 5897 + "Value": "Saskatchewan", 5898 + "Order": 75 5899 + }, 5900 + { 5901 + "Id": 2154, 5902 + "QuestionId": 11, 5903 + "Text": "Alberta", 5904 + "Value": "Alberta", 5905 + "Order": 76 5906 + }, 5907 + { 5908 + "Id": 2162, 5909 + "QuestionId": 11, 5910 + "Text": "Newfoundland and Labrador", 5911 + "Value": "Newfoundland and Labrador", 5912 + "Order": 77 5913 + }, 5914 + { 5915 + "Id": 2170, 5916 + "QuestionId": 11, 5917 + "Text": "British Columbia", 5918 + "Value": "British Columbia", 5919 + "Order": 78 5920 + }, 5921 + { 5922 + "Id": 2178, 5923 + "QuestionId": 11, 5924 + "Text": "Ontario", 5925 + "Value": "ON", 5926 + "Order": 79 5927 + } 5928 + ] 5929 + }, 5930 + { 5931 + "Id": 13, 5932 + "Text": "Country", 5933 + "Type": "4", 5934 + "Alias": "Country", 5935 + "Choices": [ 5936 + { 5937 + "Id": 2, 5938 + "QuestionId": 13, 5939 + "Text": "Select One", 5940 + "Value": "", 5941 + "Order": 1 5942 + }, 5943 + { 5944 + "Id": 10, 5945 + "QuestionId": 13, 5946 + "Text": "Afghanistan", 5947 + "Value": "Afghanistan", 5948 + "Order": 3 5949 + }, 5950 + { 5951 + "Id": 18, 5952 + "QuestionId": 13, 5953 + "Text": "Albania", 5954 + "Value": "Albania", 5955 + "Order": 4 5956 + }, 5957 + { 5958 + "Id": 26, 5959 + "QuestionId": 13, 5960 + "Text": "Algeria", 5961 + "Value": "Algeria", 5962 + "Order": 5 5963 + }, 5964 + { 5965 + "Id": 34, 5966 + "QuestionId": 13, 5967 + "Text": "Andorra", 5968 + "Value": "Andorra", 5969 + "Order": 6 5970 + }, 5971 + { 5972 + "Id": 42, 5973 + "QuestionId": 13, 5974 + "Text": "Angola", 5975 + "Value": "Angola", 5976 + "Order": 7 5977 + }, 5978 + { 5979 + "Id": 50, 5980 + "QuestionId": 13, 5981 + "Text": "Antigua and Barbuda", 5982 + "Value": "Antigua and Barbuda", 5983 + "Order": 8 5984 + }, 5985 + { 5986 + "Id": 58, 5987 + "QuestionId": 13, 5988 + "Text": "Argentina", 5989 + "Value": "Argentina", 5990 + "Order": 9 5991 + }, 5992 + { 5993 + "Id": 66, 5994 + "QuestionId": 13, 5995 + "Text": "Armenia", 5996 + "Value": "Armenia", 5997 + "Order": 10 5998 + }, 5999 + { 6000 + "Id": 74, 6001 + "QuestionId": 13, 6002 + "Text": "Australia", 6003 + "Value": "Australia", 6004 + "Order": 11 6005 + }, 6006 + { 6007 + "Id": 82, 6008 + "QuestionId": 13, 6009 + "Text": "Austria", 6010 + "Value": "Austria", 6011 + "Order": 12 6012 + }, 6013 + { 6014 + "Id": 90, 6015 + "QuestionId": 13, 6016 + "Text": "Azerbaijan", 6017 + "Value": "Azerbaijan", 6018 + "Order": 13 6019 + }, 6020 + { 6021 + "Id": 98, 6022 + "QuestionId": 13, 6023 + "Text": "Bahamas", 6024 + "Value": "Bahamas", 6025 + "Order": 14 6026 + }, 6027 + { 6028 + "Id": 106, 6029 + "QuestionId": 13, 6030 + "Text": "Bahrain", 6031 + "Value": "Bahrain", 6032 + "Order": 15 6033 + }, 6034 + { 6035 + "Id": 114, 6036 + "QuestionId": 13, 6037 + "Text": "Bangladesh", 6038 + "Value": "Bangladesh", 6039 + "Order": 16 6040 + }, 6041 + { 6042 + "Id": 122, 6043 + "QuestionId": 13, 6044 + "Text": "Barbados", 6045 + "Value": "Barbados", 6046 + "Order": 17 6047 + }, 6048 + { 6049 + "Id": 130, 6050 + "QuestionId": 13, 6051 + "Text": "Belarus", 6052 + "Value": "Belarus", 6053 + "Order": 18 6054 + }, 6055 + { 6056 + "Id": 138, 6057 + "QuestionId": 13, 6058 + "Text": "Belgium", 6059 + "Value": "Belgium", 6060 + "Order": 19 6061 + }, 6062 + { 6063 + "Id": 146, 6064 + "QuestionId": 13, 6065 + "Text": "Belize", 6066 + "Value": "Belize", 6067 + "Order": 20 6068 + }, 6069 + { 6070 + "Id": 154, 6071 + "QuestionId": 13, 6072 + "Text": "Benin", 6073 + "Value": "Benin", 6074 + "Order": 21 6075 + }, 6076 + { 6077 + "Id": 162, 6078 + "QuestionId": 13, 6079 + "Text": "Bhutan", 6080 + "Value": "Bhutan", 6081 + "Order": 22 6082 + }, 6083 + { 6084 + "Id": 170, 6085 + "QuestionId": 13, 6086 + "Text": "Bolivia", 6087 + "Value": "Bolivia", 6088 + "Order": 23 6089 + }, 6090 + { 6091 + "Id": 178, 6092 + "QuestionId": 13, 6093 + "Text": "Bosnia and Herzegovina", 6094 + "Value": "Bosnia and Herzegovina", 6095 + "Order": 24 6096 + }, 6097 + { 6098 + "Id": 186, 6099 + "QuestionId": 13, 6100 + "Text": "Botswana", 6101 + "Value": "Botswana", 6102 + "Order": 25 6103 + }, 6104 + { 6105 + "Id": 194, 6106 + "QuestionId": 13, 6107 + "Text": "Brazil", 6108 + "Value": "Brazil", 6109 + "Order": 26 6110 + }, 6111 + { 6112 + "Id": 202, 6113 + "QuestionId": 13, 6114 + "Text": "Brunei", 6115 + "Value": "Brunei", 6116 + "Order": 27 6117 + }, 6118 + { 6119 + "Id": 210, 6120 + "QuestionId": 13, 6121 + "Text": "Bulgaria", 6122 + "Value": "Bulgaria", 6123 + "Order": 28 6124 + }, 6125 + { 6126 + "Id": 218, 6127 + "QuestionId": 13, 6128 + "Text": "Burkina Faso", 6129 + "Value": "Burkina Faso", 6130 + "Order": 29 6131 + }, 6132 + { 6133 + "Id": 226, 6134 + "QuestionId": 13, 6135 + "Text": "Burundi", 6136 + "Value": "Burundi", 6137 + "Order": 30 6138 + }, 6139 + { 6140 + "Id": 234, 6141 + "QuestionId": 13, 6142 + "Text": "Cambodia", 6143 + "Value": "Cambodia", 6144 + "Order": 31 6145 + }, 6146 + { 6147 + "Id": 242, 6148 + "QuestionId": 13, 6149 + "Text": "Cameroon", 6150 + "Value": "Cameroon", 6151 + "Order": 32 6152 + }, 6153 + { 6154 + "Id": 250, 6155 + "QuestionId": 13, 6156 + "Text": "Canada", 6157 + "Value": "Canada", 6158 + "Order": 33 6159 + }, 6160 + { 6161 + "Id": 258, 6162 + "QuestionId": 13, 6163 + "Text": "Cape Verde", 6164 + "Value": "Cape Verde", 6165 + "Order": 34 6166 + }, 6167 + { 6168 + "Id": 266, 6169 + "QuestionId": 13, 6170 + "Text": "Central African Republic", 6171 + "Value": "Central African Republic", 6172 + "Order": 35 6173 + }, 6174 + { 6175 + "Id": 274, 6176 + "QuestionId": 13, 6177 + "Text": "Chad", 6178 + "Value": "Chad", 6179 + "Order": 36 6180 + }, 6181 + { 6182 + "Id": 282, 6183 + "QuestionId": 13, 6184 + "Text": "Chile", 6185 + "Value": "Chile", 6186 + "Order": 37 6187 + }, 6188 + { 6189 + "Id": 290, 6190 + "QuestionId": 13, 6191 + "Text": "China", 6192 + "Value": "China", 6193 + "Order": 38 6194 + }, 6195 + { 6196 + "Id": 298, 6197 + "QuestionId": 13, 6198 + "Text": "Colombia", 6199 + "Value": "Colombia", 6200 + "Order": 39 6201 + }, 6202 + { 6203 + "Id": 306, 6204 + "QuestionId": 13, 6205 + "Text": "Comoros", 6206 + "Value": "Comoros", 6207 + "Order": 40 6208 + }, 6209 + { 6210 + "Id": 314, 6211 + "QuestionId": 13, 6212 + "Text": "Congo (Brazzaville)", 6213 + "Value": "Congo (Brazzaville)", 6214 + "Order": 41 6215 + }, 6216 + { 6217 + "Id": 322, 6218 + "QuestionId": 13, 6219 + "Text": "Congo", 6220 + "Value": "Congo", 6221 + "Order": 42 6222 + }, 6223 + { 6224 + "Id": 330, 6225 + "QuestionId": 13, 6226 + "Text": "Costa Rica", 6227 + "Value": "Costa Rica", 6228 + "Order": 43 6229 + }, 6230 + { 6231 + "Id": 338, 6232 + "QuestionId": 13, 6233 + "Text": "Cote d'Ivoire", 6234 + "Value": "Cote d'Ivoire", 6235 + "Order": 44 6236 + }, 6237 + { 6238 + "Id": 346, 6239 + "QuestionId": 13, 6240 + "Text": "Croatia", 6241 + "Value": "Croatia", 6242 + "Order": 45 6243 + }, 6244 + { 6245 + "Id": 354, 6246 + "QuestionId": 13, 6247 + "Text": "Cuba", 6248 + "Value": "Cuba", 6249 + "Order": 46 6250 + }, 6251 + { 6252 + "Id": 362, 6253 + "QuestionId": 13, 6254 + "Text": "Cyprus", 6255 + "Value": "Cyprus", 6256 + "Order": 47 6257 + }, 6258 + { 6259 + "Id": 370, 6260 + "QuestionId": 13, 6261 + "Text": "Czech Republic", 6262 + "Value": "Czech Republic", 6263 + "Order": 48 6264 + }, 6265 + { 6266 + "Id": 378, 6267 + "QuestionId": 13, 6268 + "Text": "Denmark", 6269 + "Value": "Denmark", 6270 + "Order": 49 6271 + }, 6272 + { 6273 + "Id": 386, 6274 + "QuestionId": 13, 6275 + "Text": "Djibouti", 6276 + "Value": "Djibouti", 6277 + "Order": 50 6278 + }, 6279 + { 6280 + "Id": 394, 6281 + "QuestionId": 13, 6282 + "Text": "Dominica", 6283 + "Value": "Dominica", 6284 + "Order": 51 6285 + }, 6286 + { 6287 + "Id": 402, 6288 + "QuestionId": 13, 6289 + "Text": "Dominican Republic", 6290 + "Value": "Dominican Republic", 6291 + "Order": 52 6292 + }, 6293 + { 6294 + "Id": 410, 6295 + "QuestionId": 13, 6296 + "Text": "East Timor", 6297 + "Value": "East Timor", 6298 + "Order": 53 6299 + }, 6300 + { 6301 + "Id": 418, 6302 + "QuestionId": 13, 6303 + "Text": "Ecuador", 6304 + "Value": "Ecuador", 6305 + "Order": 54 6306 + }, 6307 + { 6308 + "Id": 426, 6309 + "QuestionId": 13, 6310 + "Text": "Egypt", 6311 + "Value": "Egypt", 6312 + "Order": 55 6313 + }, 6314 + { 6315 + "Id": 434, 6316 + "QuestionId": 13, 6317 + "Text": "El Salvador", 6318 + "Value": "El Salvador", 6319 + "Order": 56 6320 + }, 6321 + { 6322 + "Id": 442, 6323 + "QuestionId": 13, 6324 + "Text": "Equatorial Guinea", 6325 + "Value": "Equatorial Guinea", 6326 + "Order": 57 6327 + }, 6328 + { 6329 + "Id": 450, 6330 + "QuestionId": 13, 6331 + "Text": "Eritrea", 6332 + "Value": "Eritrea", 6333 + "Order": 58 6334 + }, 6335 + { 6336 + "Id": 458, 6337 + "QuestionId": 13, 6338 + "Text": "Estonia", 6339 + "Value": "Estonia", 6340 + "Order": 59 6341 + }, 6342 + { 6343 + "Id": 466, 6344 + "QuestionId": 13, 6345 + "Text": "Ethiopia", 6346 + "Value": "Ethiopia", 6347 + "Order": 60 6348 + }, 6349 + { 6350 + "Id": 474, 6351 + "QuestionId": 13, 6352 + "Text": "Fiji", 6353 + "Value": "Fiji", 6354 + "Order": 61 6355 + }, 6356 + { 6357 + "Id": 482, 6358 + "QuestionId": 13, 6359 + "Text": "Finland", 6360 + "Value": "Finland", 6361 + "Order": 62 6362 + }, 6363 + { 6364 + "Id": 490, 6365 + "QuestionId": 13, 6366 + "Text": "France", 6367 + "Value": "France", 6368 + "Order": 63 6369 + }, 6370 + { 6371 + "Id": 498, 6372 + "QuestionId": 13, 6373 + "Text": "Gabon", 6374 + "Value": "Gabon", 6375 + "Order": 64 6376 + }, 6377 + { 6378 + "Id": 506, 6379 + "QuestionId": 13, 6380 + "Text": "Gambia, The", 6381 + "Value": "Gambia, The", 6382 + "Order": 65 6383 + }, 6384 + { 6385 + "Id": 514, 6386 + "QuestionId": 13, 6387 + "Text": "Georgia", 6388 + "Value": "Georgia", 6389 + "Order": 66 6390 + }, 6391 + { 6392 + "Id": 522, 6393 + "QuestionId": 13, 6394 + "Text": "Germany", 6395 + "Value": "Germany", 6396 + "Order": 67 6397 + }, 6398 + { 6399 + "Id": 530, 6400 + "QuestionId": 13, 6401 + "Text": "Ghana", 6402 + "Value": "Ghana", 6403 + "Order": 68 6404 + }, 6405 + { 6406 + "Id": 538, 6407 + "QuestionId": 13, 6408 + "Text": "Greece", 6409 + "Value": "Greece", 6410 + "Order": 69 6411 + }, 6412 + { 6413 + "Id": 546, 6414 + "QuestionId": 13, 6415 + "Text": "Grenada", 6416 + "Value": "Grenada", 6417 + "Order": 70 6418 + }, 6419 + { 6420 + "Id": 554, 6421 + "QuestionId": 13, 6422 + "Text": "Guatemala", 6423 + "Value": "Guatemala", 6424 + "Order": 71 6425 + }, 6426 + { 6427 + "Id": 562, 6428 + "QuestionId": 13, 6429 + "Text": "Guinea", 6430 + "Value": "Guinea", 6431 + "Order": 72 6432 + }, 6433 + { 6434 + "Id": 570, 6435 + "QuestionId": 13, 6436 + "Text": "Guinea-Bissau", 6437 + "Value": "Guinea-Bissau", 6438 + "Order": 73 6439 + }, 6440 + { 6441 + "Id": 578, 6442 + "QuestionId": 13, 6443 + "Text": "Guyana", 6444 + "Value": "Guyana", 6445 + "Order": 74 6446 + }, 6447 + { 6448 + "Id": 586, 6449 + "QuestionId": 13, 6450 + "Text": "Haiti", 6451 + "Value": "Haiti", 6452 + "Order": 75 6453 + }, 6454 + { 6455 + "Id": 594, 6456 + "QuestionId": 13, 6457 + "Text": "Honduras", 6458 + "Value": "Honduras", 6459 + "Order": 76 6460 + }, 6461 + { 6462 + "Id": 602, 6463 + "QuestionId": 13, 6464 + "Text": "Hungary", 6465 + "Value": "Hungary", 6466 + "Order": 77 6467 + }, 6468 + { 6469 + "Id": 610, 6470 + "QuestionId": 13, 6471 + "Text": "Iceland", 6472 + "Value": "Iceland", 6473 + "Order": 78 6474 + }, 6475 + { 6476 + "Id": 618, 6477 + "QuestionId": 13, 6478 + "Text": "India", 6479 + "Value": "India", 6480 + "Order": 79 6481 + }, 6482 + { 6483 + "Id": 626, 6484 + "QuestionId": 13, 6485 + "Text": "Indonesia", 6486 + "Value": "Indonesia", 6487 + "Order": 80 6488 + }, 6489 + { 6490 + "Id": 634, 6491 + "QuestionId": 13, 6492 + "Text": "Iran", 6493 + "Value": "Iran", 6494 + "Order": 81 6495 + }, 6496 + { 6497 + "Id": 642, 6498 + "QuestionId": 13, 6499 + "Text": "Iraq", 6500 + "Value": "Iraq", 6501 + "Order": 82 6502 + }, 6503 + { 6504 + "Id": 650, 6505 + "QuestionId": 13, 6506 + "Text": "Ireland", 6507 + "Value": "Ireland", 6508 + "Order": 83 6509 + }, 6510 + { 6511 + "Id": 658, 6512 + "QuestionId": 13, 6513 + "Text": "Israel", 6514 + "Value": "Israel", 6515 + "Order": 84 6516 + }, 6517 + { 6518 + "Id": 666, 6519 + "QuestionId": 13, 6520 + "Text": "Italy", 6521 + "Value": "Italy", 6522 + "Order": 85 6523 + }, 6524 + { 6525 + "Id": 674, 6526 + "QuestionId": 13, 6527 + "Text": "Jamaica", 6528 + "Value": "Jamaica", 6529 + "Order": 86 6530 + }, 6531 + { 6532 + "Id": 682, 6533 + "QuestionId": 13, 6534 + "Text": "Japan", 6535 + "Value": "Japan", 6536 + "Order": 87 6537 + }, 6538 + { 6539 + "Id": 690, 6540 + "QuestionId": 13, 6541 + "Text": "Jordan", 6542 + "Value": "Jordan", 6543 + "Order": 88 6544 + }, 6545 + { 6546 + "Id": 698, 6547 + "QuestionId": 13, 6548 + "Text": "Kazakhstan", 6549 + "Value": "Kazakhstan", 6550 + "Order": 89 6551 + }, 6552 + { 6553 + "Id": 706, 6554 + "QuestionId": 13, 6555 + "Text": "Kenya", 6556 + "Value": "Kenya", 6557 + "Order": 90 6558 + }, 6559 + { 6560 + "Id": 714, 6561 + "QuestionId": 13, 6562 + "Text": "Kiribati", 6563 + "Value": "Kiribati", 6564 + "Order": 91 6565 + }, 6566 + { 6567 + "Id": 722, 6568 + "QuestionId": 13, 6569 + "Text": "Korea, North", 6570 + "Value": "Korea, North", 6571 + "Order": 92 6572 + }, 6573 + { 6574 + "Id": 730, 6575 + "QuestionId": 13, 6576 + "Text": "Korea, South", 6577 + "Value": "Korea, South", 6578 + "Order": 93 6579 + }, 6580 + { 6581 + "Id": 738, 6582 + "QuestionId": 13, 6583 + "Text": "Kuwait", 6584 + "Value": "Kuwait", 6585 + "Order": 94 6586 + }, 6587 + { 6588 + "Id": 746, 6589 + "QuestionId": 13, 6590 + "Text": "Kyrgyzstan", 6591 + "Value": "Kyrgyzstan", 6592 + "Order": 95 6593 + }, 6594 + { 6595 + "Id": 754, 6596 + "QuestionId": 13, 6597 + "Text": "Laos", 6598 + "Value": "Laos", 6599 + "Order": 96 6600 + }, 6601 + { 6602 + "Id": 762, 6603 + "QuestionId": 13, 6604 + "Text": "Latvia", 6605 + "Value": "Latvia", 6606 + "Order": 97 6607 + }, 6608 + { 6609 + "Id": 770, 6610 + "QuestionId": 13, 6611 + "Text": "Lebanon", 6612 + "Value": "Lebanon", 6613 + "Order": 98 6614 + }, 6615 + { 6616 + "Id": 778, 6617 + "QuestionId": 13, 6618 + "Text": "Lesotho", 6619 + "Value": "Lesotho", 6620 + "Order": 99 6621 + }, 6622 + { 6623 + "Id": 786, 6624 + "QuestionId": 13, 6625 + "Text": "Liberia", 6626 + "Value": "Liberia", 6627 + "Order": 100 6628 + }, 6629 + { 6630 + "Id": 794, 6631 + "QuestionId": 13, 6632 + "Text": "Libya", 6633 + "Value": "Libya", 6634 + "Order": 101 6635 + }, 6636 + { 6637 + "Id": 802, 6638 + "QuestionId": 13, 6639 + "Text": "Liechtenstein", 6640 + "Value": "Liechtenstein", 6641 + "Order": 102 6642 + }, 6643 + { 6644 + "Id": 810, 6645 + "QuestionId": 13, 6646 + "Text": "Lithuania", 6647 + "Value": "Lithuania", 6648 + "Order": 103 6649 + }, 6650 + { 6651 + "Id": 818, 6652 + "QuestionId": 13, 6653 + "Text": "Luxembourg", 6654 + "Value": "Luxembourg", 6655 + "Order": 104 6656 + }, 6657 + { 6658 + "Id": 826, 6659 + "QuestionId": 13, 6660 + "Text": "Macedonia", 6661 + "Value": "Macedonia", 6662 + "Order": 105 6663 + }, 6664 + { 6665 + "Id": 834, 6666 + "QuestionId": 13, 6667 + "Text": "Madagascar", 6668 + "Value": "Madagascar", 6669 + "Order": 106 6670 + }, 6671 + { 6672 + "Id": 842, 6673 + "QuestionId": 13, 6674 + "Text": "Malawi", 6675 + "Value": "Malawi", 6676 + "Order": 107 6677 + }, 6678 + { 6679 + "Id": 850, 6680 + "QuestionId": 13, 6681 + "Text": "Malaysia", 6682 + "Value": "Malaysia", 6683 + "Order": 108 6684 + }, 6685 + { 6686 + "Id": 858, 6687 + "QuestionId": 13, 6688 + "Text": "Maldives", 6689 + "Value": "Maldives", 6690 + "Order": 109 6691 + }, 6692 + { 6693 + "Id": 866, 6694 + "QuestionId": 13, 6695 + "Text": "Mali", 6696 + "Value": "Mali", 6697 + "Order": 110 6698 + }, 6699 + { 6700 + "Id": 874, 6701 + "QuestionId": 13, 6702 + "Text": "Malta", 6703 + "Value": "Malta", 6704 + "Order": 111 6705 + }, 6706 + { 6707 + "Id": 882, 6708 + "QuestionId": 13, 6709 + "Text": "Marshall Islands", 6710 + "Value": "Marshall Islands", 6711 + "Order": 112 6712 + }, 6713 + { 6714 + "Id": 890, 6715 + "QuestionId": 13, 6716 + "Text": "Mauritania", 6717 + "Value": "Mauritania", 6718 + "Order": 113 6719 + }, 6720 + { 6721 + "Id": 898, 6722 + "QuestionId": 13, 6723 + "Text": "Mauritius", 6724 + "Value": "Mauritius", 6725 + "Order": 114 6726 + }, 6727 + { 6728 + "Id": 906, 6729 + "QuestionId": 13, 6730 + "Text": "Mexico", 6731 + "Value": "Mexico", 6732 + "Order": 115 6733 + }, 6734 + { 6735 + "Id": 914, 6736 + "QuestionId": 13, 6737 + "Text": "Micronesia", 6738 + "Value": "Micronesia", 6739 + "Order": 116 6740 + }, 6741 + { 6742 + "Id": 922, 6743 + "QuestionId": 13, 6744 + "Text": "Moldova", 6745 + "Value": "Moldova", 6746 + "Order": 117 6747 + }, 6748 + { 6749 + "Id": 930, 6750 + "QuestionId": 13, 6751 + "Text": "Monaco", 6752 + "Value": "Monaco", 6753 + "Order": 118 6754 + }, 6755 + { 6756 + "Id": 938, 6757 + "QuestionId": 13, 6758 + "Text": "Mongolia", 6759 + "Value": "Mongolia", 6760 + "Order": 119 6761 + }, 6762 + { 6763 + "Id": 946, 6764 + "QuestionId": 13, 6765 + "Text": "Morocco", 6766 + "Value": "Morocco", 6767 + "Order": 120 6768 + }, 6769 + { 6770 + "Id": 954, 6771 + "QuestionId": 13, 6772 + "Text": "Mozambique", 6773 + "Value": "Mozambique", 6774 + "Order": 121 6775 + }, 6776 + { 6777 + "Id": 962, 6778 + "QuestionId": 13, 6779 + "Text": "Myanmar", 6780 + "Value": "Myanmar", 6781 + "Order": 122 6782 + }, 6783 + { 6784 + "Id": 970, 6785 + "QuestionId": 13, 6786 + "Text": "Namibia", 6787 + "Value": "Namibia", 6788 + "Order": 123 6789 + }, 6790 + { 6791 + "Id": 978, 6792 + "QuestionId": 13, 6793 + "Text": "Nauru", 6794 + "Value": "Nauru", 6795 + "Order": 124 6796 + }, 6797 + { 6798 + "Id": 986, 6799 + "QuestionId": 13, 6800 + "Text": "Nepa", 6801 + "Value": "Nepa", 6802 + "Order": 125 6803 + }, 6804 + { 6805 + "Id": 994, 6806 + "QuestionId": 13, 6807 + "Text": "Netherlands", 6808 + "Value": "Netherlands", 6809 + "Order": 126 6810 + }, 6811 + { 6812 + "Id": 1002, 6813 + "QuestionId": 13, 6814 + "Text": "New Zealand", 6815 + "Value": "New Zealand", 6816 + "Order": 127 6817 + }, 6818 + { 6819 + "Id": 1010, 6820 + "QuestionId": 13, 6821 + "Text": "Nicaragua", 6822 + "Value": "Nicaragua", 6823 + "Order": 128 6824 + }, 6825 + { 6826 + "Id": 1018, 6827 + "QuestionId": 13, 6828 + "Text": "Niger", 6829 + "Value": "Niger", 6830 + "Order": 129 6831 + }, 6832 + { 6833 + "Id": 1026, 6834 + "QuestionId": 13, 6835 + "Text": "Nigeria", 6836 + "Value": "Nigeria", 6837 + "Order": 130 6838 + }, 6839 + { 6840 + "Id": 1034, 6841 + "QuestionId": 13, 6842 + "Text": "Norway", 6843 + "Value": "Norway", 6844 + "Order": 131 6845 + }, 6846 + { 6847 + "Id": 1042, 6848 + "QuestionId": 13, 6849 + "Text": "Oman", 6850 + "Value": "Oman", 6851 + "Order": 132 6852 + }, 6853 + { 6854 + "Id": 1050, 6855 + "QuestionId": 13, 6856 + "Text": "Pakistan", 6857 + "Value": "Pakistan", 6858 + "Order": 133 6859 + }, 6860 + { 6861 + "Id": 1058, 6862 + "QuestionId": 13, 6863 + "Text": "Palau", 6864 + "Value": "Palau", 6865 + "Order": 134 6866 + }, 6867 + { 6868 + "Id": 1066, 6869 + "QuestionId": 13, 6870 + "Text": "Panama", 6871 + "Value": "Panama", 6872 + "Order": 135 6873 + }, 6874 + { 6875 + "Id": 1074, 6876 + "QuestionId": 13, 6877 + "Text": "Papua New Guinea", 6878 + "Value": "Papua New Guinea", 6879 + "Order": 136 6880 + }, 6881 + { 6882 + "Id": 1082, 6883 + "QuestionId": 13, 6884 + "Text": "Paraguay", 6885 + "Value": "Paraguay", 6886 + "Order": 137 6887 + }, 6888 + { 6889 + "Id": 1090, 6890 + "QuestionId": 13, 6891 + "Text": "Peru", 6892 + "Value": "Peru", 6893 + "Order": 138 6894 + }, 6895 + { 6896 + "Id": 1098, 6897 + "QuestionId": 13, 6898 + "Text": "Philippines", 6899 + "Value": "Philippines", 6900 + "Order": 139 6901 + }, 6902 + { 6903 + "Id": 1106, 6904 + "QuestionId": 13, 6905 + "Text": "Poland", 6906 + "Value": "Poland", 6907 + "Order": 140 6908 + }, 6909 + { 6910 + "Id": 1114, 6911 + "QuestionId": 13, 6912 + "Text": "Portugal", 6913 + "Value": "Portugal", 6914 + "Order": 141 6915 + }, 6916 + { 6917 + "Id": 1122, 6918 + "QuestionId": 13, 6919 + "Text": "Qatar", 6920 + "Value": "Qatar", 6921 + "Order": 142 6922 + }, 6923 + { 6924 + "Id": 1130, 6925 + "QuestionId": 13, 6926 + "Text": "Romania", 6927 + "Value": "Romania", 6928 + "Order": 143 6929 + }, 6930 + { 6931 + "Id": 1138, 6932 + "QuestionId": 13, 6933 + "Text": "Russia", 6934 + "Value": "Russia", 6935 + "Order": 144 6936 + }, 6937 + { 6938 + "Id": 1146, 6939 + "QuestionId": 13, 6940 + "Text": "Rwanda", 6941 + "Value": "Rwanda", 6942 + "Order": 145 6943 + }, 6944 + { 6945 + "Id": 1154, 6946 + "QuestionId": 13, 6947 + "Text": "Saint Kitts and Nevis", 6948 + "Value": "Saint Kitts and Nevis", 6949 + "Order": 146 6950 + }, 6951 + { 6952 + "Id": 1162, 6953 + "QuestionId": 13, 6954 + "Text": "Saint Lucia", 6955 + "Value": "Saint Lucia", 6956 + "Order": 147 6957 + }, 6958 + { 6959 + "Id": 1170, 6960 + "QuestionId": 13, 6961 + "Text": "Saint Vincent", 6962 + "Value": "Saint Vincent", 6963 + "Order": 148 6964 + }, 6965 + { 6966 + "Id": 1178, 6967 + "QuestionId": 13, 6968 + "Text": "Samoa", 6969 + "Value": "Samoa", 6970 + "Order": 149 6971 + }, 6972 + { 6973 + "Id": 1186, 6974 + "QuestionId": 13, 6975 + "Text": "San Marino", 6976 + "Value": "San Marino", 6977 + "Order": 150 6978 + }, 6979 + { 6980 + "Id": 1194, 6981 + "QuestionId": 13, 6982 + "Text": "Sao Tome and Principe", 6983 + "Value": "Sao Tome and Principe", 6984 + "Order": 151 6985 + }, 6986 + { 6987 + "Id": 1202, 6988 + "QuestionId": 13, 6989 + "Text": "Saudi Arabia", 6990 + "Value": "Saudi Arabia", 6991 + "Order": 152 6992 + }, 6993 + { 6994 + "Id": 1210, 6995 + "QuestionId": 13, 6996 + "Text": "Senegal", 6997 + "Value": "Senegal", 6998 + "Order": 153 6999 + }, 7000 + { 7001 + "Id": 1218, 7002 + "QuestionId": 13, 7003 + "Text": "Serbia and Montenegro", 7004 + "Value": "Serbia and Montenegro", 7005 + "Order": 154 7006 + }, 7007 + { 7008 + "Id": 1226, 7009 + "QuestionId": 13, 7010 + "Text": "Seychelles", 7011 + "Value": "Seychelles", 7012 + "Order": 155 7013 + }, 7014 + { 7015 + "Id": 1234, 7016 + "QuestionId": 13, 7017 + "Text": "Sierra Leone", 7018 + "Value": "Sierra Leone", 7019 + "Order": 156 7020 + }, 7021 + { 7022 + "Id": 1242, 7023 + "QuestionId": 13, 7024 + "Text": "Singapore", 7025 + "Value": "Singapore", 7026 + "Order": 157 7027 + }, 7028 + { 7029 + "Id": 1250, 7030 + "QuestionId": 13, 7031 + "Text": "Slovakia", 7032 + "Value": "Slovakia", 7033 + "Order": 158 7034 + }, 7035 + { 7036 + "Id": 1258, 7037 + "QuestionId": 13, 7038 + "Text": "Slovenia", 7039 + "Value": "Slovenia", 7040 + "Order": 159 7041 + }, 7042 + { 7043 + "Id": 1266, 7044 + "QuestionId": 13, 7045 + "Text": "Solomon Islands", 7046 + "Value": "Solomon Islands", 7047 + "Order": 160 7048 + }, 7049 + { 7050 + "Id": 1274, 7051 + "QuestionId": 13, 7052 + "Text": "Somalia", 7053 + "Value": "Somalia", 7054 + "Order": 161 7055 + }, 7056 + { 7057 + "Id": 1282, 7058 + "QuestionId": 13, 7059 + "Text": "South Africa", 7060 + "Value": "South Africa", 7061 + "Order": 162 7062 + }, 7063 + { 7064 + "Id": 1290, 7065 + "QuestionId": 13, 7066 + "Text": "Spain", 7067 + "Value": "Spain", 7068 + "Order": 163 7069 + }, 7070 + { 7071 + "Id": 1298, 7072 + "QuestionId": 13, 7073 + "Text": "Sri Lanka", 7074 + "Value": "Sri Lanka", 7075 + "Order": 164 7076 + }, 7077 + { 7078 + "Id": 1306, 7079 + "QuestionId": 13, 7080 + "Text": "Sudan", 7081 + "Value": "Sudan", 7082 + "Order": 165 7083 + }, 7084 + { 7085 + "Id": 1314, 7086 + "QuestionId": 13, 7087 + "Text": "Suriname", 7088 + "Value": "Suriname", 7089 + "Order": 166 7090 + }, 7091 + { 7092 + "Id": 1322, 7093 + "QuestionId": 13, 7094 + "Text": "Swaziland", 7095 + "Value": "Swaziland", 7096 + "Order": 167 7097 + }, 7098 + { 7099 + "Id": 1330, 7100 + "QuestionId": 13, 7101 + "Text": "Sweden", 7102 + "Value": "Sweden", 7103 + "Order": 168 7104 + }, 7105 + { 7106 + "Id": 1338, 7107 + "QuestionId": 13, 7108 + "Text": "Switzerland", 7109 + "Value": "Switzerland", 7110 + "Order": 169 7111 + }, 7112 + { 7113 + "Id": 1346, 7114 + "QuestionId": 13, 7115 + "Text": "Syria", 7116 + "Value": "Syria", 7117 + "Order": 170 7118 + }, 7119 + { 7120 + "Id": 1354, 7121 + "QuestionId": 13, 7122 + "Text": "Taiwan", 7123 + "Value": "Taiwan", 7124 + "Order": 171 7125 + }, 7126 + { 7127 + "Id": 1362, 7128 + "QuestionId": 13, 7129 + "Text": "Tajikistan", 7130 + "Value": "Tajikistan", 7131 + "Order": 172 7132 + }, 7133 + { 7134 + "Id": 1370, 7135 + "QuestionId": 13, 7136 + "Text": "Tanzania", 7137 + "Value": "Tanzania", 7138 + "Order": 173 7139 + }, 7140 + { 7141 + "Id": 1378, 7142 + "QuestionId": 13, 7143 + "Text": "Thailand", 7144 + "Value": "Thailand", 7145 + "Order": 174 7146 + }, 7147 + { 7148 + "Id": 1386, 7149 + "QuestionId": 13, 7150 + "Text": "Togo", 7151 + "Value": "Togo", 7152 + "Order": 175 7153 + }, 7154 + { 7155 + "Id": 1394, 7156 + "QuestionId": 13, 7157 + "Text": "Tonga", 7158 + "Value": "Tonga", 7159 + "Order": 176 7160 + }, 7161 + { 7162 + "Id": 1402, 7163 + "QuestionId": 13, 7164 + "Text": "Trinidad and Tobago", 7165 + "Value": "Trinidad and Tobago", 7166 + "Order": 177 7167 + }, 7168 + { 7169 + "Id": 1410, 7170 + "QuestionId": 13, 7171 + "Text": "Tunisia", 7172 + "Value": "Tunisia", 7173 + "Order": 178 7174 + }, 7175 + { 7176 + "Id": 1418, 7177 + "QuestionId": 13, 7178 + "Text": "Turkey", 7179 + "Value": "Turkey", 7180 + "Order": 179 7181 + }, 7182 + { 7183 + "Id": 1426, 7184 + "QuestionId": 13, 7185 + "Text": "Turkmenistan", 7186 + "Value": "Turkmenistan", 7187 + "Order": 180 7188 + }, 7189 + { 7190 + "Id": 1434, 7191 + "QuestionId": 13, 7192 + "Text": "Tuvalu", 7193 + "Value": "Tuvalu", 7194 + "Order": 181 7195 + }, 7196 + { 7197 + "Id": 1442, 7198 + "QuestionId": 13, 7199 + "Text": "Uganda", 7200 + "Value": "Uganda", 7201 + "Order": 182 7202 + }, 7203 + { 7204 + "Id": 1450, 7205 + "QuestionId": 13, 7206 + "Text": "Ukraine", 7207 + "Value": "Ukraine", 7208 + "Order": 183 7209 + }, 7210 + { 7211 + "Id": 1458, 7212 + "QuestionId": 13, 7213 + "Text": "United Arab Emirates", 7214 + "Value": "United Arab Emirates", 7215 + "Order": 184 7216 + }, 7217 + { 7218 + "Id": 1466, 7219 + "QuestionId": 13, 7220 + "Text": "United Kingdom", 7221 + "Value": "United Kingdom", 7222 + "Order": 185 7223 + }, 7224 + { 7225 + "Id": 1474, 7226 + "QuestionId": 13, 7227 + "Text": "United States", 7228 + "Value": "United States", 7229 + "Order": 2 7230 + }, 7231 + { 7232 + "Id": 1482, 7233 + "QuestionId": 13, 7234 + "Text": "Uruguay", 7235 + "Value": "Uruguay", 7236 + "Order": 186 7237 + }, 7238 + { 7239 + "Id": 1490, 7240 + "QuestionId": 13, 7241 + "Text": "Uzbekistan", 7242 + "Value": "Uzbekistan", 7243 + "Order": 187 7244 + }, 7245 + { 7246 + "Id": 1498, 7247 + "QuestionId": 13, 7248 + "Text": "Vanuatu", 7249 + "Value": "Vanuatu", 7250 + "Order": 188 7251 + }, 7252 + { 7253 + "Id": 1506, 7254 + "QuestionId": 13, 7255 + "Text": "Vatican City", 7256 + "Value": "Vatican City", 7257 + "Order": 189 7258 + }, 7259 + { 7260 + "Id": 1514, 7261 + "QuestionId": 13, 7262 + "Text": "Venezuela", 7263 + "Value": "Venezuela", 7264 + "Order": 190 7265 + }, 7266 + { 7267 + "Id": 1522, 7268 + "QuestionId": 13, 7269 + "Text": "Vietnam", 7270 + "Value": "Vietnam", 7271 + "Order": 191 7272 + }, 7273 + { 7274 + "Id": 1530, 7275 + "QuestionId": 13, 7276 + "Text": "Yemen", 7277 + "Value": "Yemen", 7278 + "Order": 192 7279 + }, 7280 + { 7281 + "Id": 1538, 7282 + "QuestionId": 13, 7283 + "Text": "Zambia", 7284 + "Value": "Zambia", 7285 + "Order": 193 7286 + }, 7287 + { 7288 + "Id": 1546, 7289 + "QuestionId": 13, 7290 + "Text": "Zimbabwe", 7291 + "Value": "Zimbabwe", 7292 + "Order": 194 7293 + }, 7294 + { 7295 + "Id": 2186, 7296 + "QuestionId": 13, 7297 + "Text": "British Columbia", 7298 + "Value": "British Columbia", 7299 + "Order": 195 7300 + } 7301 + ] 7302 + }, 7303 + { 7304 + "Id": 178, 7305 + "Text": "Job Function", 7306 + "Type": "4", 7307 + "Alias": "Job Function", 7308 + "Choices": [ 7309 + { 7310 + "Id": 2266, 7311 + "QuestionId": 178, 7312 + "Text": "Select One", 7313 + "Value": "", 7314 + "Order": 1 7315 + }, 7316 + { 7317 + "Id": 2274, 7318 + "QuestionId": 178, 7319 + "Text": "Sales", 7320 + "Value": "Sales", 7321 + "Order": 2 7322 + }, 7323 + { 7324 + "Id": 2282, 7325 + "QuestionId": 178, 7326 + "Text": "Marketing", 7327 + "Value": "Marketing", 7328 + "Order": 3 7329 + }, 7330 + { 7331 + "Id": 2290, 7332 + "QuestionId": 178, 7333 + "Text": "New Media", 7334 + "Value": "New Media", 7335 + "Order": 4 7336 + }, 7337 + { 7338 + "Id": 2298, 7339 + "QuestionId": 178, 7340 + "Text": "Audience Development", 7341 + "Value": "Audience Development", 7342 + "Order": 5 7343 + }, 7344 + { 7345 + "Id": 2306, 7346 + "QuestionId": 178, 7347 + "Text": "Editorial", 7348 + "Value": "Editorial", 7349 + "Order": 6 7350 + }, 7351 + { 7352 + "Id": 2314, 7353 + "QuestionId": 178, 7354 + "Text": "Information Technology", 7355 + "Value": "IT", 7356 + "Order": 7 7357 + }, 7358 + { 7359 + "Id": 2322, 7360 + "QuestionId": 178, 7361 + "Text": "Corporate", 7362 + "Value": "Corporate", 7363 + "Order": 8 7364 + }, 7365 + { 7366 + "Id": 2418, 7367 + "QuestionId": 178, 7368 + "Text": "Other", 7369 + "Value": "Other", 7370 + "Order": 9 7371 + } 7372 + ] 7373 + }, 7374 + { 7375 + "Id": 202, 7376 + "Text": "Type of Publication", 7377 + "Type": "4", 7378 + "Alias": "Type of Publication", 7379 + "Choices": [ 7380 + { 7381 + "Id": 2330, 7382 + "QuestionId": 202, 7383 + "Text": "Select One", 7384 + "Value": "", 7385 + "Order": 1 7386 + }, 7387 + { 7388 + "Id": 2338, 7389 + "QuestionId": 202, 7390 + "Text": "Magazine", 7391 + "Value": "Magazine", 7392 + "Order": 2 7393 + }, 7394 + { 7395 + "Id": 2346, 7396 + "QuestionId": 202, 7397 + "Text": "Newspaper", 7398 + "Value": "Newspaper", 7399 + "Order": 3 7400 + }, 7401 + { 7402 + "Id": 2354, 7403 + "QuestionId": 202, 7404 + "Text": "Digital Publisher", 7405 + "Value": "Digital Publisher", 7406 + "Order": 4 7407 + }, 7408 + { 7409 + "Id": 2362, 7410 + "QuestionId": 202, 7411 + "Text": "Book Publisher", 7412 + "Value": "Book Publisher", 7413 + "Order": 5 7414 + }, 7415 + { 7416 + "Id": 2370, 7417 + "QuestionId": 202, 7418 + "Text": "Newsletter/Email", 7419 + "Value": "Newsletter/Email", 7420 + "Order": 6 7421 + } 7422 + ] 7423 + }, 7424 + { 7425 + "Id": 226, 7426 + "Text": "What is your time frame for deployment?", 7427 + "Type": "4", 7428 + "Alias": "What is your time frame for deployment?", 7429 + "Choices": [ 7430 + { 7431 + "Id": 2378, 7432 + "QuestionId": 226, 7433 + "Text": "Select One", 7434 + "Value": "", 7435 + "Order": 1 7436 + }, 7437 + { 7438 + "Id": 2386, 7439 + "QuestionId": 226, 7440 + "Text": "0-3 months", 7441 + "Value": "0-3", 7442 + "Order": 2 7443 + }, 7444 + { 7445 + "Id": 2394, 7446 + "QuestionId": 226, 7447 + "Text": "3-6 months", 7448 + "Value": "3-6", 7449 + "Order": 3 7450 + }, 7451 + { 7452 + "Id": 2402, 7453 + "QuestionId": 226, 7454 + "Text": "6-12 months", 7455 + "Value": "6-12", 7456 + "Order": 4 7457 + }, 7458 + { 7459 + "Id": 2410, 7460 + "QuestionId": 226, 7461 + "Text": "No Formal Plans", 7462 + "Value": "No Formal Plans", 7463 + "Order": 5 7464 + } 7465 + ] 7466 + }, 7467 + { 7468 + "Id": 250, 7469 + "Text": "Industry", 7470 + "Type": "4", 7471 + "Alias": "Industry", 7472 + "Choices": [ 7473 + { 7474 + "Id": 2426, 7475 + "QuestionId": 250, 7476 + "Text": "Agency", 7477 + "Value": "Agency", 7478 + "Order": 2 7479 + }, 7480 + { 7481 + "Id": 2434, 7482 + "QuestionId": 250, 7483 + "Text": "Association", 7484 + "Value": "Association", 7485 + "Order": 3 7486 + }, 7487 + { 7488 + "Id": 2442, 7489 + "QuestionId": 250, 7490 + "Text": "Direct Marketing", 7491 + "Value": "Direct Marketing", 7492 + "Order": 4 7493 + }, 7494 + { 7495 + "Id": 2450, 7496 + "QuestionId": 250, 7497 + "Text": "Publisher", 7498 + "Value": "Publisher", 7499 + "Order": 5 7500 + }, 7501 + { 7502 + "Id": 2458, 7503 + "QuestionId": 250, 7504 + "Text": "Service Bureau", 7505 + "Value": "Service Bureau", 7506 + "Order": 6 7507 + }, 7508 + { 7509 + "Id": 2466, 7510 + "QuestionId": 250, 7511 + "Text": "Select One", 7512 + "Value": "Government", 7513 + "Order": 1 7514 + }, 7515 + { 7516 + "Id": 2737, 7517 + "QuestionId": 250, 7518 + "Text": "Other", 7519 + "Value": "Other", 7520 + "Order": 7 7521 + }, 7522 + { 7523 + "Id": 3051, 7524 + "QuestionId": 250, 7525 + "Text": "Business Services", 7526 + "Value": "Business Services", 7527 + "Order": 8 7528 + }, 7529 + { 7530 + "Id": 3059, 7531 + "QuestionId": 250, 7532 + "Text": "Business Services, Media & Internet", 7533 + "Value": "Business Services, Media & Internet", 7534 + "Order": 9 7535 + }, 7536 + { 7537 + "Id": 3067, 7538 + "QuestionId": 250, 7539 + "Text": "Business Services,Consumer Services", 7540 + "Value": "Business Services,Consumer Services", 7541 + "Order": 10 7542 + }, 7543 + { 7544 + "Id": 3075, 7545 + "QuestionId": 250, 7546 + "Text": "Business Services,Finance", 7547 + "Value": "Business Services,Finance", 7548 + "Order": 11 7549 + }, 7550 + { 7551 + "Id": 3083, 7552 + "QuestionId": 250, 7553 + "Text": "Business Services,Retail,Media & Internet", 7554 + "Value": "Business Services,Retail,Media & Internet", 7555 + "Order": 12 7556 + }, 7557 + { 7558 + "Id": 3091, 7559 + "QuestionId": 250, 7560 + "Text": "Business Services,Telecommunications", 7561 + "Value": "Business Services,Telecommunications", 7562 + "Order": 13 7563 + }, 7564 + { 7565 + "Id": 3099, 7566 + "QuestionId": 250, 7567 + "Text": "Energy, Utilities & Waste Treatment", 7568 + "Value": "Energy, Utilities & Waste Treatment", 7569 + "Order": 14 7570 + }, 7571 + { 7572 + "Id": 3107, 7573 + "QuestionId": 250, 7574 + "Text": "Finance", 7575 + "Value": "Finance", 7576 + "Order": 15 7577 + }, 7578 + { 7579 + "Id": 3115, 7580 + "QuestionId": 250, 7581 + "Text": "Hospitality", 7582 + "Value": "Hospitality", 7583 + "Order": 16 7584 + }, 7585 + { 7586 + "Id": 3123, 7587 + "QuestionId": 250, 7588 + "Text": "Hospitality,Media & Internet", 7589 + "Value": "Hospitality,Media & Internet", 7590 + "Order": 17 7591 + }, 7592 + { 7593 + "Id": 3131, 7594 + "QuestionId": 250, 7595 + "Text": "Insurance", 7596 + "Value": "Insurance", 7597 + "Order": 18 7598 + }, 7599 + { 7600 + "Id": 3139, 7601 + "QuestionId": 250, 7602 + "Text": "Insurance, Finance", 7603 + "Value": "Insurance, Finance", 7604 + "Order": 19 7605 + }, 7606 + { 7607 + "Id": 3147, 7608 + "QuestionId": 250, 7609 + "Text": "Manufacturing", 7610 + "Value": "Manufacturing", 7611 + "Order": 20 7612 + }, 7613 + { 7614 + "Id": 3155, 7615 + "QuestionId": 250, 7616 + "Text": "Manufacturing,Business Services", 7617 + "Value": "Manufacturing,Business Services", 7618 + "Order": 21 7619 + }, 7620 + { 7621 + "Id": 3163, 7622 + "QuestionId": 250, 7623 + "Text": "Manufacturing,Retail,Healthcare", 7624 + "Value": "Manufacturing,Retail,Healthcare", 7625 + "Order": 22 7626 + }, 7627 + { 7628 + "Id": 3171, 7629 + "QuestionId": 250, 7630 + "Text": "Media & Internet", 7631 + "Value": "Media & Internet", 7632 + "Order": 23 7633 + }, 7634 + { 7635 + "Id": 3179, 7636 + "QuestionId": 250, 7637 + "Text": "Media & Internet,Business Services", 7638 + "Value": "Media & Internet,Business Services", 7639 + "Order": 24 7640 + }, 7641 + { 7642 + "Id": 3187, 7643 + "QuestionId": 250, 7644 + "Text": "Organizations", 7645 + "Value": "Organizations", 7646 + "Order": 25 7647 + }, 7648 + { 7649 + "Id": 3195, 7650 + "QuestionId": 250, 7651 + "Text": "Real Estate", 7652 + "Value": "Real Estate", 7653 + "Order": 26 7654 + }, 7655 + { 7656 + "Id": 3203, 7657 + "QuestionId": 250, 7658 + "Text": "Retail", 7659 + "Value": "Retail", 7660 + "Order": 27 7661 + }, 7662 + { 7663 + "Id": 3211, 7664 + "QuestionId": 250, 7665 + "Text": "Retail,Software,Consumer Services", 7666 + "Value": "Retail,Software,Consumer Services", 7667 + "Order": 28 7668 + }, 7669 + { 7670 + "Id": 3219, 7671 + "QuestionId": 250, 7672 + "Text": "Software", 7673 + "Value": "Software", 7674 + "Order": 29 7675 + }, 7676 + { 7677 + "Id": 3227, 7678 + "QuestionId": 250, 7679 + "Text": "Retail, Manufacturing", 7680 + "Value": "Retail, Manufacturing", 7681 + "Order": 30 7682 + }, 7683 + { 7684 + "Id": 3235, 7685 + "QuestionId": 250, 7686 + "Text": "Software,Manufacturing,Retail", 7687 + "Value": "Software,Manufacturing,Retail", 7688 + "Order": 31 7689 + }, 7690 + { 7691 + "Id": 3243, 7692 + "QuestionId": 250, 7693 + "Text": "Business Services,Media & Internet", 7694 + "Value": "Business Services,Media & Internet", 7695 + "Order": 32 7696 + }, 7697 + { 7698 + "Id": 3251, 7699 + "QuestionId": 250, 7700 + "Text": "Telecommunications", 7701 + "Value": "Telecommunications", 7702 + "Order": 33 7703 + } 7704 + ] 7705 + }, 7706 + { 7707 + "Id": 274, 7708 + "Text": "How many employees work at your company?_Copy", 7709 + "Type": "4", 7710 + "Alias": "ALL", 7711 + "Choices": [ 7712 + { 7713 + "Id": 2698, 7714 + "QuestionId": 274, 7715 + "Text": "1-25", 7716 + "Value": "01", 7717 + "Order": 1 7718 + }, 7719 + { 7720 + "Id": 2706, 7721 + "QuestionId": 274, 7722 + "Text": "26-100", 7723 + "Value": "02", 7724 + "Order": 2 7725 + }, 7726 + { 7727 + "Id": 2714, 7728 + "QuestionId": 274, 7729 + "Text": "101-250", 7730 + "Value": "03", 7731 + "Order": 3 7732 + }, 7733 + { 7734 + "Id": 2722, 7735 + "QuestionId": 274, 7736 + "Text": "251-500", 7737 + "Value": "04", 7738 + "Order": 4 7739 + }, 7740 + { 7741 + "Id": 2730, 7742 + "QuestionId": 274, 7743 + "Text": "500+", 7744 + "Value": "05", 7745 + "Order": 5 7746 + } 7747 + ] 7748 + }, 7749 + { 7750 + "Id": 281, 7751 + "Text": "How many employees work at your company?_Copy", 7752 + "Type": "4", 7753 + "Alias": "How many employees work at your company?_Copy", 7754 + "Choices": [ 7755 + { 7756 + "Id": 2745, 7757 + "QuestionId": 281, 7758 + "Text": "1-25", 7759 + "Value": "01", 7760 + "Order": 1 7761 + }, 7762 + { 7763 + "Id": 2753, 7764 + "QuestionId": 281, 7765 + "Text": "26-100", 7766 + "Value": "02", 7767 + "Order": 2 7768 + }, 7769 + { 7770 + "Id": 2761, 7771 + "QuestionId": 281, 7772 + "Text": "101-250", 7773 + "Value": "03", 7774 + "Order": 3 7775 + }, 7776 + { 7777 + "Id": 2769, 7778 + "QuestionId": 281, 7779 + "Text": "251-500", 7780 + "Value": "04", 7781 + "Order": 4 7782 + }, 7783 + { 7784 + "Id": 2777, 7785 + "QuestionId": 281, 7786 + "Text": "500+", 7787 + "Value": "05", 7788 + "Order": 5 7789 + } 7790 + ] 7791 + }, 7792 + { 7793 + "Id": 291, 7794 + "Text": "DAS Question Update", 7795 + "Type": "4", 7796 + "Alias": "DAS Question Update", 7797 + "Choices": [ 7798 + { 7799 + "Id": 2859, 7800 + "QuestionId": 291, 7801 + "Text": "Choice a Update", 7802 + "Value": "a Update", 7803 + "Order": 1 7804 + }, 7805 + { 7806 + "Id": 2867, 7807 + "QuestionId": 291, 7808 + "Text": "Choice b Update", 7809 + "Value": "b Update", 7810 + "Order": 2 7811 + } 7812 + ] 7813 + }, 7814 + { 7815 + "Id": 363, 7816 + "Text": "Group Size", 7817 + "Type": "4", 7818 + "Alias": "Group Size", 7819 + "Choices": [ 7820 + { 7821 + "Id": 3027, 7822 + "QuestionId": 363, 7823 + "Text": "NA", 7824 + "Value": "NA", 7825 + "Order": 1 7826 + }, 7827 + { 7828 + "Id": 3035, 7829 + "QuestionId": 363, 7830 + "Text": "0-10", 7831 + "Value": "0-10", 7832 + "Order": 2 7833 + }, 7834 + { 7835 + "Id": 3043, 7836 + "QuestionId": 363, 7837 + "Text": "10-25", 7838 + "Value": "10-25", 7839 + "Order": 3 7840 + } 7841 + ] 7842 + }, 7843 + { 7844 + "Id": 399, 7845 + "Text": "What best describes your job title?", 7846 + "Type": "4", 7847 + "Alias": "1105-title", 7848 + "Choices": [ 7849 + { 7850 + "Id": 3255, 7851 + "QuestionId": 399, 7852 + "Text": "CIO, CTO, CKO, Technical/VP", 7853 + "Value": "CIO", 7854 + "Order": 1 7855 + }, 7856 + { 7857 + "Id": 3263, 7858 + "QuestionId": 399, 7859 + "Text": "Corporate Management", 7860 + "Value": "corporate", 7861 + "Order": 2 7862 + }, 7863 + { 7864 + "Id": 3271, 7865 + "QuestionId": 399, 7866 + "Text": "IS/IT Director/Manager", 7867 + "Value": "it", 7868 + "Order": 3 7869 + }, 7870 + { 7871 + "Id": 3279, 7872 + "QuestionId": 399, 7873 + "Text": "Director of Softare Development", 7874 + "Value": "software director", 7875 + "Order": 4 7876 + }, 7877 + { 7878 + "Id": 3287, 7879 + "QuestionId": 399, 7880 + "Text": "Application Development Manager", 7881 + "Value": "ADM", 7882 + "Order": 5 7883 + } 7884 + ] 7885 + }, 7886 + { 7887 + "Id": 407, 7888 + "Text": "What is your organization's (or largest client, if you are a consultant) primary business at this location?", 7889 + "Type": "4", 7890 + "Alias": "1105 largest client", 7891 + "Choices": [ 7892 + { 7893 + "Id": 3295, 7894 + "QuestionId": 407, 7895 + "Text": "Aerospace", 7896 + "Value": "aerospace", 7897 + "Order": 1 7898 + }, 7899 + { 7900 + "Id": 3303, 7901 + "QuestionId": 407, 7902 + "Text": "Agriculture/Mining/Gas/Oil", 7903 + "Value": "ag", 7904 + "Order": 2 7905 + }, 7906 + { 7907 + "Id": 3311, 7908 + "QuestionId": 407, 7909 + "Text": "Business Services/Consultants", 7910 + "Value": "bs", 7911 + "Order": 3 7912 + }, 7913 + { 7914 + "Id": 3319, 7915 + "QuestionId": 407, 7916 + "Text": "Construction/Architecture/Engineering", 7917 + "Value": "construction", 7918 + "Order": 4 7919 + }, 7920 + { 7921 + "Id": 3327, 7922 + "QuestionId": 407, 7923 + "Text": "Education/Training", 7924 + "Value": "education", 7925 + "Order": 5 7926 + } 7927 + ] 7928 + }, 7929 + { 7930 + "Id": 415, 7931 + "Text": "What is the total number of employees in your entire organzation?", 7932 + "Type": "4", 7933 + "Alias": "1105 num employees", 7934 + "Choices": [ 7935 + { 7936 + "Id": 3335, 7937 + "QuestionId": 415, 7938 + "Text": "10,000 or more", 7939 + "Value": "10000", 7940 + "Order": 1 7941 + }, 7942 + { 7943 + "Id": 3343, 7944 + "QuestionId": 415, 7945 + "Text": "5,000 - 9,999", 7946 + "Value": "5000", 7947 + "Order": 2 7948 + }, 7949 + { 7950 + "Id": 3351, 7951 + "QuestionId": 415, 7952 + "Text": "1,000 - 4,999", 7953 + "Value": "1000", 7954 + "Order": 3 7955 + }, 7956 + { 7957 + "Id": 3359, 7958 + "QuestionId": 415, 7959 + "Text": "500 - 999", 7960 + "Value": "500", 7961 + "Order": 4 7962 + }, 7963 + { 7964 + "Id": 3367, 7965 + "QuestionId": 415, 7966 + "Text": "100 - 499", 7967 + "Value": "100", 7968 + "Order": 5 7969 + }, 7970 + { 7971 + "Id": 3375, 7972 + "QuestionId": 415, 7973 + "Text": "Under 100", 7974 + "Value": "Under 100", 7975 + "Order": 6 7976 + } 7977 + ] 7978 + }, 7979 + { 7980 + "Id": 423, 7981 + "Text": "saaa", 7982 + "Type": "4", 7983 + "Alias": "test", 7984 + "Choices": [ 7985 + { 7986 + "Id": 3383, 7987 + "QuestionId": 423, 7988 + "Text": "1", 7989 + "Value": "1", 7990 + "Order": 1 7991 + }, 7992 + { 7993 + "Id": 3391, 7994 + "QuestionId": 423, 7995 + "Text": "3", 7996 + "Value": "3", 7997 + "Order": 2 7998 + } 7999 + ] 8000 + } 8001 + ] 2073 2073 } 8003 +{{/code}} 2074 2074 2075 -(% class="western" %) 2076 -] 2077 2077 2078 -(% class="western" %) 8006 +(% id="HPOSTCreatequestiontypenumeric2Ctext2Cpassword2Ctextareaanddate" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8007 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create question type numeric, text, password, textarea and date(%%) == 8008 + 8009 +---- 8010 + 8011 +{{panel bgColor="#D3D3D3" width="100%"}} 8012 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions 8013 +{{/panel}} 8014 + 8015 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8016 + 8017 +---- 8018 + 8019 +(% 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}} 8020 + 8021 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8022 + 8023 +---- 8024 + 8025 +{{code language="yml" theme="RDark" title="Body"}} 8026 +{"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"} 8027 +{{/code}} 8028 + 8029 +==== Example ==== 8030 + 8031 +---- 8032 + 8033 +(% style="color:#6b6b6b" %)Request 8034 + 8035 +{{code language="php" theme="RDark" title="Create Question Request"}} 8036 +<?php 8037 + 8038 +$curl = curl_init(); 8039 + 8040 +curl_setopt_array($curl, array( 8041 + CURLOPT_URL => 'https://api.onecount.net/v2/questions', 8042 + CURLOPT_RETURNTRANSFER => true, 8043 + CURLOPT_ENCODING => '', 8044 + CURLOPT_MAXREDIRS => 10, 8045 + CURLOPT_TIMEOUT => 0, 8046 + CURLOPT_FOLLOWLOCATION => true, 8047 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8048 + CURLOPT_CUSTOMREQUEST => 'POST', 8049 + CURLOPT_POSTFIELDS =>'{"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}', 8050 + CURLOPT_HTTPHEADER => array( 8051 + 'Appkey: {{ONECOUNT API KEY}}' 8052 + ), 8053 +)); 8054 + 8055 +$response = curl_exec($curl); 8056 + 8057 +curl_close($curl); 8058 +echo $response; 8059 +{{/code}} 8060 + 8061 + 8062 +(% style="color:#6b6b6b" %)Response 200 OK 8063 + 8064 +{{code language="yml" theme="RDark" collapse="true" title="Create question Response"}} 8065 +{ 8066 + "result": { 8067 + "success": "1", 8068 + "error": { 8069 + "code": "", 8070 + "message": "" 8071 + } 8072 + }, 8073 + "Questions": [ 8074 + { 8075 + "Id": 455 8076 + } 8077 + ] 2079 2079 } 8079 +{{/code}} 2080 2080 2081 -(% class="western" %) 2082 -\\ 2083 2083 2084 -(% class="western" %)2085 - **COMPONENT: Products**8082 +(% id="HPOSTCreatequestiontypeselect2Cradioandcheckbox" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8083 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create question type select, radio and checkbox(%%) == 2086 2086 8085 +---- 8086 + 8087 +{{panel bgColor="#D3D3D3" width="100%"}} 8088 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions 8089 +{{/panel}} 8090 + 8091 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8092 + 8093 +---- 8094 + 8095 +(% 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}} 8096 + 8097 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8098 + 8099 +---- 8100 + 8101 +{{code language="yml" theme="RDark" title="Body"}} 8102 +{"Text":"Test from API 6","Type":4,"Alias":"Test from API 6", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]} 8103 +{{/code}} 8104 + 8105 +==== Example ==== 8106 + 8107 +---- 8108 + 8109 +(% style="color:#6b6b6b" %)Request 8110 + 8111 +{{code language="php" theme="RDark" title="Create Question Request"}} 8112 +<?php 8113 + 8114 +$curl = curl_init(); 8115 + 8116 +curl_setopt_array($curl, array( 8117 + CURLOPT_URL => 'https://api.onecount.net/v2/questions', 8118 + CURLOPT_RETURNTRANSFER => true, 8119 + CURLOPT_ENCODING => '', 8120 + CURLOPT_MAXREDIRS => 10, 8121 + CURLOPT_TIMEOUT => 0, 8122 + CURLOPT_FOLLOWLOCATION => true, 8123 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8124 + CURLOPT_CUSTOMREQUEST => 'POST', 8125 + 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"}]}', 8126 + CURLOPT_HTTPHEADER => array( 8127 + 'Appkey: {{ONECOUNT API KEY}}' 8128 + ), 8129 +)); 8130 + 8131 +$response = curl_exec($curl); 8132 + 8133 +curl_close($curl); 8134 +echo $response; 8135 +{{/code}} 8136 + 8137 + 8138 +(% style="color:#6b6b6b" %)Response 200 OK 8139 + 8140 +{{code language="yml" theme="RDark" collapse="true" title="Create question Response"}} 8141 +{ 8142 + "result": { 8143 + "success": "1", 8144 + "error": { 8145 + "code": "", 8146 + "message": "" 8147 + } 8148 + }, 8149 + "Questions": [ 8150 + { 8151 + "Id": 495 8152 + } 8153 + ] 8154 +} 8155 +{{/code}} 8156 + 8157 + 8158 +(% id="HPUTUpdatequestion" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8159 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update question(%%) == 8160 + 8161 + 8162 +NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body. 8163 + 8164 +{{panel bgColor="#D3D3D3" width="100%"}} 8165 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/questions/~{~{QUESTION ID}} 8166 +{{/panel}} 8167 + 8168 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8169 + 8170 +---- 8171 + 8172 +(% 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}} 8173 + 8174 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8175 + 8176 +---- 8177 + 8178 +{{code language="yml" theme="RDark" title="Body"}} 8179 +{"Text":"Test from API 6 changed","Type":4,"Alias":"Test from API 6 changed", "Choices":[{"Text":"test 1","Value":"test 1"},{"Text":"test 2","Value":"test 2"}]} 8180 +{{/code}} 8181 + 8182 +==== Example ==== 8183 + 8184 +---- 8185 + 8186 +(% style="color:#6b6b6b" %)Request 8187 + 8188 +{{code language="php" theme="RDark" title="Update Question Request"}} 8189 +<?php 8190 + 8191 +$curl = curl_init(); 8192 + 8193 +curl_setopt_array($curl, array( 8194 + CURLOPT_URL => 'https://api.onecount.net/v2/questions/{{QUESTION ID}}', 8195 + CURLOPT_RETURNTRANSFER => true, 8196 + CURLOPT_ENCODING => '', 8197 + CURLOPT_MAXREDIRS => 10, 8198 + CURLOPT_TIMEOUT => 0, 8199 + CURLOPT_FOLLOWLOCATION => true, 8200 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8201 + CURLOPT_CUSTOMREQUEST => 'PUT', 8202 + 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"}]}', 8203 + CURLOPT_HTTPHEADER => array( 8204 + 'Appkey: {{ONECOUNT API KEY}}' 8205 + ), 8206 +)); 8207 + 8208 +$response = curl_exec($curl); 8209 + 8210 +curl_close($curl); 8211 +echo $response; 8212 + 8213 + 8214 +{{/code}} 8215 + 8216 + 8217 +(% style="color:#6b6b6b" %)Response 200 OK 8218 + 8219 +{{code language="yml" theme="RDark" collapse="true" title="Update Question Response"}} 8220 +{ 8221 + "result": { 8222 + "success": "1", 8223 + "error": { 8224 + "code": "", 8225 + "message": "" 8226 + } 8227 + }, 8228 + "Questions": [ 8229 + { 8230 + "Id": 503 8231 + } 8232 + ] 8233 +} 8234 +{{/code}} 8235 + 8236 + 8237 +(% id="HCOMPONENT:Products" class="western" %) 8238 +=== **COMPONENT: Products** === 8239 + 2087 2087 (% class="western" %) 2088 2088 This resource is for manipulating products resource. A product can be created, updated or searched. 2089 2089 2090 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 8243 +(% class="wrapped" %) 8244 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2091 2091 ((( 2092 2092 (% class="western" %) 2093 2093 **Method** 2094 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8248 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2095 2095 ((( 2096 2096 (% class="western" %) 2097 2097 **Url** 2098 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8252 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2099 2099 ((( 2100 2100 (% class="western" %) 2101 2101 **Action** 2102 2102 ))) 2103 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)8257 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2104 2104 ((( 2105 2105 (% class="western" %) 2106 2106 GET 2107 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8261 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2108 2108 ((( 2109 2109 (% class="western" %) 2110 2110 /products 2111 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8265 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2112 2112 ((( 2113 2113 (% class="western" %) 2114 2114 Get all product details 2115 2115 ))) 2116 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)8270 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2117 2117 ((( 2118 2118 (% class="western" %) 2119 2119 GET 2120 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8274 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2121 2121 ((( 2122 2122 (% class="western" %) 2123 2123 /products/5 2124 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8278 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2125 2125 ((( 2126 2126 (% class="western" %) 2127 2127 Get product id 5 2128 2128 ))) 2129 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)8283 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2130 2130 ((( 2131 2131 (% class="western" %) 2132 2132 GET 2133 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8287 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2134 2134 ((( 2135 2135 (% class="western" %) 2136 2136 /products/lookup?Title=productname 2137 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8291 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2138 2138 ((( 2139 2139 (% class="western" %) 2140 2140 Lookup products by Title 2141 2141 ))) 2142 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)8296 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2143 2143 ((( 2144 2144 (% class="western" %) 2145 2145 POST 2146 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8300 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2147 2147 ((( 2148 2148 (% class="western" %) 2149 2149 /products 2150 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8304 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2151 2151 ((( 2152 2152 (% class="western" %) 2153 2153 JSON of the Products type object needs to be sent as post data. Id field should not be sent. 2154 2154 ))) 2155 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)8309 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2156 2156 ((( 2157 2157 (% class="western" %) 2158 2158 PUT 2159 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8313 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2160 2160 ((( 2161 2161 (% class="western" %) 2162 2162 /products/5 2163 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8317 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2164 2164 ((( 2165 2165 (% class="western" %) 2166 2166 JSON of the Products type object needs to be sent as post data. Id field is mandatory for update. 2167 2167 ))) 2168 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)8322 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2169 2169 ((( 2170 2170 (% class="western" %) 2171 2171 POST 2172 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8326 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2173 2173 ((( 2174 2174 (% class="western" %) 2175 2175 /products/attachResource 2176 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)8330 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2177 2177 ((( 2178 2178 (% class="western" %) 2179 2179 JSON of the Product and Resource ids to be sent as post data. ... ... @@ -2188,484 +2188,1259 @@ 2188 2188 {"ProductID":"65","ResourceID":”121"} 2189 2189 ))) 2190 2190 2191 -\\ 8345 +(% id="HGETAllProducts" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8346 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Products(%%) == 2192 2192 2193 -(% class="western" %) 2194 -**GET method should be used to lookup products.** 8348 +---- 2195 2195 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. 8350 +---- 2221 2221 2222 -(% class="western" %) 2223 -Params: 8352 +{{panel bgColor="#D3D3D3" width="100%"}} 8353 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products 8354 +{{/panel}} 2224 2224 2225 -(% class="western" %) 2226 -Name: Name of the Product for lookup (String) 2227 -))) 8356 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2228 2228 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 -))) 8358 +---- 2255 2255 2256 - \\8360 +(% 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}} 2257 2257 2258 -(% class="western" %) 2259 -**POST method should be used to create products.** 8362 +==== Example ==== 2260 2260 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. 8364 +---- 2286 2286 2287 -(% class="western" %) 2288 -Example: 8366 +(% style="color:#6b6b6b" %)Request 2289 2289 2290 -(% class="western" %) 2291 -{"Title":"Test123","Description": "Testss","Terms":{"Name":"Product123"},"PrimaryFormId":10,"ResourceID":17} 2292 -))) 8368 +{{code language="php" theme="RDark" title="Get All Products Request"}} 8369 +<?php 2293 2293 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 -))) 8371 +$curl = curl_init(); 2320 2320 2321 -\\ 8373 +curl_setopt_array($curl, array( 8374 + CURLOPT_URL => 'https://api.onecount.net/v2/products', 8375 + CURLOPT_RETURNTRANSFER => true, 8376 + CURLOPT_ENCODING => '', 8377 + CURLOPT_MAXREDIRS => 10, 8378 + CURLOPT_TIMEOUT => 0, 8379 + CURLOPT_FOLLOWLOCATION => true, 8380 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8381 + CURLOPT_CUSTOMREQUEST => 'GET', 8382 + CURLOPT_HTTPHEADER => array( 8383 + 'Appkey: {{ONECOUNT API KEY}}' 8384 + ), 8385 +)); 2322 2322 2323 -(% class="western" %) 2324 -PUT method should be used to update an individual product given the product info. 8387 +$response = curl_exec($curl); 2325 2325 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. 8389 +curl_close($curl); 8390 +echo $response; 2351 2351 2352 -(% class="western" %) 2353 -**Possible Request Params**: Title, Description, PrimaryFormId, ResourceID 2354 2354 2355 -(% class="western" %) 2356 -**Example**: 8393 +{{/code}} 2357 2357 2358 -(% class="western" %) 2359 -{"Title":"Test123","Description": "Testss","PrimaryFormId":10,"ResourceID":17} 2360 -))) 2361 2361 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 -))) 8396 +(% style="color:#6b6b6b" %)Response 200 OK 2388 2388 2389 -\\ 8398 +{{code language="yml" theme="RDark" collapse="true" title="Get All Products Response"}} 8399 + { 8400 + "result": { 8401 + "success": "1", 8402 + "error": { 8403 + "code": "", 8404 + "message": "" 8405 + } 8406 + }, 8407 + "Products": [ 8408 + { 8409 + "ProductId": 26, 8410 + "Title": "ONEcount Product Demo", 8411 + "Description": "", 8412 + "ResourceIDs": [], 8413 + "PrimaryFormID": [ 8414 + "307", 8415 + "34" 8416 + ], 8417 + "Terms": { 8418 + "Id": 26, 8419 + "Name": "Please contact me to arrange a demo", 8420 + "Description": "", 8421 + "Duration": 1, 8422 + "DurationUnit": "I", 8423 + "Price": "0", 8424 + "ProductId": 26 8425 + } 8426 + }, 8427 + { 8428 + "ProductId": 34, 8429 + "Title": "ONEcount Promotional Emails", 8430 + "Description": "Master List of ONEcount prospects to receive promotional emails, etc.", 8431 + "ResourceIDs": [ 8432 + 98, 8433 + 114 8434 + ], 8435 + "PrimaryFormID": [ 8436 + "194" 8437 + ], 8438 + "Terms": { 8439 + "Id": 34, 8440 + "Name": "ONEcount Promotional Emails", 8441 + "Description": "ONEcount promotional emails", 8442 + "Duration": 1, 8443 + "DurationUnit": "I", 8444 + "Price": "0", 8445 + "ProductId": 34 8446 + } 8447 + }, 8448 + { 8449 + "ProductId": 42, 8450 + "Title": "ONEcount Staff", 8451 + "Description": "ONEcount/GCN Media Staff", 8452 + "ResourceIDs": [ 8453 + 18 8454 + ], 8455 + "PrimaryFormID": [ 8456 + "186" 8457 + ], 8458 + "Terms": { 8459 + "Id": 42, 8460 + "Name": "ONEcount Staff List", 8461 + "Description": "List of ONEcount/GCN Media Staff", 8462 + "Duration": 1, 8463 + "DurationUnit": "I", 8464 + "Price": "0", 8465 + "ProductId": 42 8466 + } 8467 + }, 8468 + { 8469 + "ProductId": 49, 8470 + "Title": "ONEcount Medical Publishers", 8471 + "Description": "For blasts to medical publishers and associations", 8472 + "ResourceIDs": [ 8473 + 137 8474 + ], 8475 + "PrimaryFormID": [ 8476 + "170" 8477 + ], 8478 + "Terms": { 8479 + "Id": 49, 8480 + "Name": "ONEcount Medical Publishers", 8481 + "Description": "ONEcount Medical Publishers and Associations", 8482 + "Duration": 1, 8483 + "DurationUnit": "I", 8484 + "Price": "0", 8485 + "ProductId": 49 8486 + } 8487 + }, 8488 + { 8489 + "ProductId": 57, 8490 + "Title": "000 Pop-Up Form", 8491 + "Description": "", 8492 + "ResourceIDs": [ 8493 + 145 8494 + ], 8495 + "PrimaryFormID": [ 8496 + "170" 8497 + ], 8498 + "Terms": { 8499 + "Id": 57, 8500 + "Name": "000 Pop-Up Term", 8501 + "Description": "", 8502 + "Duration": 1, 8503 + "DurationUnit": "I", 8504 + "Price": "0", 8505 + "ProductId": 57 8506 + } 8507 + }, 8508 + { 8509 + "ProductId": 65, 8510 + "Title": "TEST", 8511 + "Description": "", 8512 + "ResourceIDs": [], 8513 + "PrimaryFormID": [ 8514 + "194" 8515 + ], 8516 + "Terms": {} 8517 + }, 8518 + { 8519 + "ProductId": 67, 8520 + "Title": "Gated Product Example PKG", 8521 + "Description": "", 8522 + "ResourceIDs": [], 8523 + "PrimaryFormID": [ 8524 + "195" 8525 + ], 8526 + "Terms": { 8527 + "Id": 59, 8528 + "Name": "Get it for free", 8529 + "Description": "", 8530 + "Duration": 1, 8531 + "DurationUnit": "I", 8532 + "Price": "0", 8533 + "ProductId": 67 8534 + } 8535 + }, 8536 + { 8537 + "ProductId": 75, 8538 + "Title": "SB: Apple Moves To Limit Tracking in Safari: Prove", 8539 + "Description": "", 8540 + "ResourceIDs": [], 8541 + "PrimaryFormID": [], 8542 + "Terms": {} 8543 + }, 8544 + { 8545 + "ProductId": 83, 8546 + "Title": "SB: Audience Extension: Turning Identity Into Cash", 8547 + "Description": "", 8548 + "ResourceIDs": [], 8549 + "PrimaryFormID": [], 8550 + "Terms": {} 8551 + }, 8552 + { 8553 + "ProductId": 91, 8554 + "Title": "DAS_freepass_00", 8555 + "Description": "", 8556 + "ResourceIDs": [ 8557 + 187 8558 + ], 8559 + "PrimaryFormID": [ 8560 + "267" 8561 + ], 8562 + "Terms": { 8563 + "Id": 67, 8564 + "Name": "DAS_freepass_00", 8565 + "Description": "", 8566 + "Duration": 30, 8567 + "DurationUnit": "D", 8568 + "Price": "0", 8569 + "ProductId": 91 8570 + } 8571 + }, 8572 + { 8573 + "ProductId": 99, 8574 + "Title": "Test12311111", 8575 + "Description": "Testss", 8576 + "ResourceIDs": [], 8577 + "PrimaryFormID": [ 8578 + "10" 8579 + ], 8580 + "Terms": { 8581 + "Id": 75, 8582 + "Name": "Product123", 8583 + "Description": null, 8584 + "Duration": 0, 8585 + "DurationUnit": "", 8586 + "Price": "0", 8587 + "ProductId": 99 8588 + } 8589 + }, 8590 + { 8591 + "ProductId": 107, 8592 + "Title": "Test123-456", 8593 + "Description": "Testss updated", 8594 + "ResourceIDs": [ 8595 + 98 8596 + ], 8597 + "PrimaryFormID": [ 8598 + "10" 8599 + ], 8600 + "Terms": { 8601 + "Id": 83, 8602 + "Name": "Product123", 8603 + "Description": null, 8604 + "Duration": 0, 8605 + "DurationUnit": "", 8606 + "Price": "0", 8607 + "ProductId": 107 8608 + } 8609 + }, 8610 + { 8611 + "ProductId": 109, 8612 + "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM", 8613 + "Description": "", 8614 + "ResourceIDs": [ 8615 + 197 8616 + ], 8617 + "PrimaryFormID": [], 8618 + "Terms": { 8619 + "Id": 93, 8620 + "Name": "Enhanced Analytics Webinar", 8621 + "Description": "Check the box to register for the February 26th webinar.", 8622 + "Duration": 1, 8623 + "DurationUnit": "I", 8624 + "Price": "0", 8625 + "ProductId": 109 8626 + } 8627 + } 8628 + ] 8629 +} 8630 +{{/code}} 2390 2390 2391 -(% class="western" %) 2392 -**COMPONENT: Terms** 2393 2393 8633 +(% id="HGETspecificProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8634 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Product(%%) == 8635 + 8636 +---- 8637 + 8638 +{{panel bgColor="#D3D3D3" width="100%"}} 8639 + (% class="nolink" %)https:~/~/api.onecount.net/v2/users(% style="color:#212121" %)/products/~{~{product id}} 8640 +{{/panel}} 8641 + 8642 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8643 + 8644 +---- 8645 + 8646 +(% 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}} 8647 + 8648 +==== Example ==== 8649 + 8650 +---- 8651 + 8652 +(% style="color:#6b6b6b" %)Request 8653 + 8654 +{{code language="php" theme="RDark" title="Get specific Product Request"}} 8655 + <?php 8656 + 8657 +$curl = curl_init(); 8658 + 8659 +curl_setopt_array($curl, array( 8660 + CURLOPT_URL => 'https://api.onecount.net/v2/users/products/{{product id}}', 8661 + CURLOPT_RETURNTRANSFER => true, 8662 + CURLOPT_ENCODING => '', 8663 + CURLOPT_MAXREDIRS => 10, 8664 + CURLOPT_TIMEOUT => 0, 8665 + CURLOPT_FOLLOWLOCATION => true, 8666 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8667 + CURLOPT_CUSTOMREQUEST => 'GET', 8668 + CURLOPT_HTTPHEADER => array( 8669 + 'Appkey: {{ONECOUNT API KEY}}' 8670 + ), 8671 +)); 8672 + 8673 +$response = curl_exec($curl); 8674 + 8675 +curl_close($curl); 8676 +echo $response; 8677 +{{/code}} 8678 + 8679 + 8680 +(% style="color:#6b6b6b" %)Response 200 OK 8681 + 8682 +{{code language="yml" theme="RDark" collapse="true" title="Get specific Product Response"}} 8683 + { 8684 + "result": { 8685 + "success": "1", 8686 + "error": { 8687 + "code": "", 8688 + "message": "" 8689 + } 8690 + }, 8691 + "Products": [ 8692 + { 8693 + "ProductId": 109, 8694 + "Title": "Webinar: Enhanced Analytics 2-26-2019 at 1 PM", 8695 + "Description": "", 8696 + "ResourceIDs": [ 8697 + 197 8698 + ], 8699 + "PrimaryFormID": [], 8700 + "Terms": { 8701 + "Id": 93, 8702 + "Name": "Enhanced Analytics Webinar", 8703 + "Description": "Check the box to register for the February 26th webinar.", 8704 + "Duration": 1, 8705 + "DurationUnit": "I", 8706 + "Price": "0", 8707 + "ProductId": 109 8708 + } 8709 + } 8710 + ] 8711 +} 8712 +{{/code}} 8713 + 8714 + 8715 +(% id="HGETlookupProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8716 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Product(%%) == 8717 + 8718 +---- 8719 + 8720 +{{panel bgColor="#D3D3D3" width="100%"}} 8721 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/lookup?Title=~{~{Product Name}} 8722 +{{/panel}} 8723 + 8724 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8725 + 8726 +---- 8727 + 8728 +(% 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}} 8729 + 8730 +=== (% style="color:#212121" %)Query Params(%%) === 8731 + 8732 +---- 8733 + 8734 +(% 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" %) 8735 + 8736 +==== Example ==== 8737 + 8738 +---- 8739 + 8740 +(% style="color:#6b6b6b" %)Request 8741 + 8742 +{{code language="php" theme="RDark" title="Lookup Product Request"}} 8743 + <?php 8744 + 8745 +$curl = curl_init(); 8746 + 8747 +curl_setopt_array($curl, array( 8748 + CURLOPT_URL => 'https://api.onecount.net/v2/products/lookup?Title={{Product Name}}', 8749 + CURLOPT_RETURNTRANSFER => true, 8750 + CURLOPT_ENCODING => '', 8751 + CURLOPT_MAXREDIRS => 10, 8752 + CURLOPT_TIMEOUT => 0, 8753 + CURLOPT_FOLLOWLOCATION => true, 8754 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8755 + CURLOPT_CUSTOMREQUEST => 'GET', 8756 + CURLOPT_HTTPHEADER => array( 8757 + 'Appkey: {{ONECOUNT API KEY}}' 8758 + ), 8759 +)); 8760 + 8761 +$response = curl_exec($curl); 8762 + 8763 +curl_close($curl); 8764 +echo $response; 8765 +{{/code}} 8766 + 8767 + 8768 +(% style="color:#6b6b6b" %)Response 200 OK 8769 + 8770 +{{code language="yml" theme="RDark" collapse="true" title="Lookup Product Response"}} 8771 + { 8772 + "result": { 8773 + "success": "1", 8774 + "error": { 8775 + "code": "", 8776 + "message": "" 8777 + } 8778 + }, 8779 + "Products": [ 8780 + { 8781 + "ProductId": 107, 8782 + "Title": "Test123-456", 8783 + "Description": "Testss updated", 8784 + "Terms": { 8785 + "Id": 83, 8786 + "Name": "Product123", 8787 + "Description": null, 8788 + "Duration": 0, 8789 + "DurationUnit": "", 8790 + "Price": "0", 8791 + "ProductId": 107 8792 + } 8793 + } 8794 + ] 8795 +} 8796 +{{/code}} 8797 + 8798 + 8799 +(% id="HPOSTCreateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8800 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Product(%%) == 8801 + 8802 +---- 8803 + 8804 +{{panel bgColor="#D3D3D3" width="100%"}} 8805 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products 8806 +{{/panel}} 8807 + 8808 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8809 + 8810 +---- 8811 + 8812 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 8813 + 8814 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8815 + 8816 +---- 8817 + 8818 +{{code language="yml" theme="RDark" title="Body"}} 8819 +{"Title":"Test API package creation 2","Description": "Test API package creation 2","Terms":{"Name":"Test term for API 2"},"PrimaryFormId":0} 8820 +{{/code}} 8821 + 8822 +==== Example ==== 8823 + 8824 +---- 8825 + 8826 +(% style="color:#6b6b6b" %)Request 8827 + 8828 +{{code language="php" theme="RDark" title="Create Product Request"}} 8829 + <?php 8830 + 8831 +$curl = curl_init(); 8832 + 8833 +curl_setopt_array($curl, array( 8834 + CURLOPT_URL => 'https://api.onecount.net/v2/products', 8835 + CURLOPT_RETURNTRANSFER => true, 8836 + CURLOPT_ENCODING => '', 8837 + CURLOPT_MAXREDIRS => 10, 8838 + CURLOPT_TIMEOUT => 0, 8839 + CURLOPT_FOLLOWLOCATION => true, 8840 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8841 + CURLOPT_CUSTOMREQUEST => 'POST', 8842 + CURLOPT_POSTFIELDS =>'{"Title":"Test API package creation 1","Description": "Test API package creation 1","Terms":{"Name":"Test term for API 1"},"PrimaryFormId":0}', 8843 + CURLOPT_HTTPHEADER => array( 8844 + 'Appkey: {{ONECOUNT API KEY}}' 8845 + ), 8846 +)); 8847 + 8848 +$response = curl_exec($curl); 8849 + 8850 +curl_close($curl); 8851 +echo $response; 8852 +{{/code}} 8853 + 8854 + 8855 +(% style="color:#6b6b6b" %)Response 200 OK 8856 + 8857 +{{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}} 8858 + { 8859 + "result": { 8860 + "success": "1", 8861 + "error": { 8862 + "code": "", 8863 + "message": "" 8864 + } 8865 + }, 8866 + "Products": [ 8867 + { 8868 + "ProductId": 599 8869 + } 8870 + ] 8871 +} 8872 +{{/code}} 8873 + 8874 + 8875 +(% id="HPUTUpdateProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8876 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Product(%%) == 8877 + 8878 +---- 8879 + 8880 +{{panel bgColor="#D3D3D3" width="100%"}} 8881 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/~{~{Product id}} 8882 +{{/panel}} 8883 + 8884 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8885 + 8886 +---- 8887 + 8888 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 8889 + 8890 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8891 + 8892 +---- 8893 + 8894 +{{code language="yml" theme="RDark" title="Body"}} 8895 +{"Title":"Test API package 23","Description": "Test API package 23","PrimaryFormId":0} 8896 +{{/code}} 8897 + 8898 +==== Example ==== 8899 + 8900 +---- 8901 + 8902 +(% style="color:#6b6b6b" %)Request 8903 + 8904 +{{code language="php" theme="RDark" title="Update Product Request"}} 8905 +<?php 8906 + 8907 +$curl = curl_init(); 8908 + 8909 +curl_setopt_array($curl, array( 8910 + CURLOPT_URL => 'https://api.onecount.net/v2/products/{{Product id}}', 8911 + CURLOPT_RETURNTRANSFER => true, 8912 + CURLOPT_ENCODING => '', 8913 + CURLOPT_MAXREDIRS => 10, 8914 + CURLOPT_TIMEOUT => 0, 8915 + CURLOPT_FOLLOWLOCATION => true, 8916 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8917 + CURLOPT_CUSTOMREQUEST => 'PUT', 8918 + CURLOPT_POSTFIELDS =>'{"Title":"Test API package 1","Description": "Test API package 1","PrimaryFormId":0}', 8919 + CURLOPT_HTTPHEADER => array( 8920 + 'Appkey: {{ONECOUNT API KEY}}' 8921 + ), 8922 +)); 8923 + 8924 +$response = curl_exec($curl); 8925 + 8926 +curl_close($curl); 8927 +echo $response; 8928 + 8929 +{{/code}} 8930 + 8931 + 8932 +(% style="color:#6b6b6b" %)Response 200 OK 8933 + 8934 +{{code language="yml" theme="RDark" collapse="true" title="Update Product Response"}} 8935 + { 8936 + "result": { 8937 + "success": "1", 8938 + "error": { 8939 + "code": "", 8940 + "message": "" 8941 + } 8942 + }, 8943 + "Products": [ 8944 + { 8945 + "ProductId": 599, 8946 + "Title": "Test API package 1", 8947 + "Description": "Test API package 1" 8948 + } 8949 + ] 8950 +} 8951 +{{/code}} 8952 + 8953 + 8954 +(% id="HPOSTAttachResourcetoProduct" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 8955 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Attach Resource to Product(%%) == 8956 + 8957 +---- 8958 + 8959 +{{panel bgColor="#D3D3D3" width="100%"}} 8960 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/products/attachResource 8961 +{{/panel}} 8962 + 8963 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 8964 + 8965 +---- 8966 + 8967 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 8968 + 8969 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 8970 + 8971 +---- 8972 + 8973 +{{code language="yml" theme="RDark" title="Body"}} 8974 +{"ProductID":"599","ResourceID":"903"} 8975 +{{/code}} 8976 + 8977 +==== Example ==== 8978 + 8979 +---- 8980 + 8981 +(% style="color:#6b6b6b" %)Request 8982 + 8983 +{{code language="php" theme="RDark" title="Attach Resource to Product Request"}} 8984 + <?php 8985 + 8986 +$curl = curl_init(); 8987 + 8988 +curl_setopt_array($curl, array( 8989 + CURLOPT_URL => 'https://api.onecount.net/v2/products/attachResource', 8990 + CURLOPT_RETURNTRANSFER => true, 8991 + CURLOPT_ENCODING => '', 8992 + CURLOPT_MAXREDIRS => 10, 8993 + CURLOPT_TIMEOUT => 0, 8994 + CURLOPT_FOLLOWLOCATION => true, 8995 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 8996 + CURLOPT_CUSTOMREQUEST => 'POST', 8997 + CURLOPT_POSTFIELDS =>'{"ProductID":"599","ResourceID":"903"}', 8998 + CURLOPT_HTTPHEADER => array( 8999 + 'Appkey: {{ONECOUNT API KEY}}' 9000 + ), 9001 +)); 9002 + 9003 +$response = curl_exec($curl); 9004 + 9005 +curl_close($curl); 9006 +echo $response; 9007 +{{/code}} 9008 + 9009 + 9010 +(% style="color:#6b6b6b" %)Response 200 OK 9011 + 9012 +{{code language="yml" theme="RDark" collapse="true" title="Create Product Response"}} 9013 + { 9014 + "result": { 9015 + "success": "1", 9016 + "error": { 9017 + "code": "", 9018 + "message": "" 9019 + } 9020 + }, 9021 + "Products": "599" 9022 +} 9023 +{{/code}} 9024 + 9025 +(% id="HCOMPONENT:Terms" class="western" %) 9026 +=== **COMPONENT: Terms** === 9027 + 2394 2394 (% class="western" %) 2395 2395 This resource is for manipulating terms resource. A term can be created, updated or searched. 2396 2396 2397 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9031 +(% class="wrapped" %) 9032 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2398 2398 ((( 2399 2399 (% class="western" %) 2400 2400 **Method** 2401 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9036 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2402 2402 ((( 2403 2403 (% class="western" %) 2404 2404 **Url** 2405 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9040 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2406 2406 ((( 2407 2407 (% class="western" %) 2408 2408 **Action** 2409 2409 ))) 2410 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9045 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2411 2411 ((( 2412 2412 (% class="western" %) 2413 2413 GET 2414 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9049 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2415 2415 ((( 2416 2416 (% class="western" %) 2417 2417 /terms/5 2418 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9053 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2419 2419 ((( 2420 2420 (% class="western" %) 2421 2421 Get term id 5 2422 2422 ))) 2423 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9058 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2424 2424 ((( 2425 2425 (% class="western" %) 2426 2426 GET 2427 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9062 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2428 2428 ((( 2429 2429 (% class="western" %) 2430 2430 /terms/lookup?Name=termname 2431 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9066 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2432 2432 ((( 2433 2433 (% class="western" %) 2434 2434 Lookup terms by Name 2435 2435 ))) 2436 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9071 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2437 2437 ((( 2438 2438 (% class="western" %) 2439 2439 POST 2440 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9075 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2441 2441 ((( 2442 2442 (% class="western" %) 2443 2443 /terms 2444 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9079 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2445 2445 ((( 2446 2446 (% class="western" %) 2447 2447 JSON of the terms type object needs to be sent as post data. Id field should not be sent. 2448 2448 ))) 2449 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9084 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2450 2450 ((( 2451 2451 (% class="western" %) 2452 2452 PUT 2453 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9088 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2454 2454 ((( 2455 2455 (% class="western" %) 2456 2456 /terms/5 2457 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9092 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2458 2458 ((( 2459 2459 (% class="western" %) 2460 2460 JSON of the terms type object needs to be sent as post data. Id field is mandatory for update. 2461 2461 ))) 2462 2462 2463 -\\ 9098 +(% id="HGETAllTerms" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9099 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Terms(%%) == 2464 2464 2465 -(% class="western" %) 2466 -**GET method should be used to lookup products.** 9101 +---- 2467 2467 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. 9103 +---- 2493 2493 2494 -(% class="western" %) 2495 -Params: 9105 +{{panel bgColor="#D3D3D3" width="100%"}} 9106 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms 9107 +{{/panel}} 2496 2496 2497 -(% class="western" %) 2498 -Name: Name of the term for lookup (String) 2499 -))) 9109 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2500 2500 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 -))) 9111 +---- 2527 2527 2528 - \\9113 +(% 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}} 2529 2529 2530 -(% class="western" %) 2531 -**POST method should be used to create products.** 9115 +==== Example ==== 2532 2532 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. 9117 +---- 2558 2558 2559 -(% class="western" %) 2560 -**Possible Request Params**: Name, Description, Duration, DurationUnit, Price, ProductId, Active, ProductStatusId, Quantity, QuantityTxt 9119 +(% style="color:#6b6b6b" %)Request 2561 2561 2562 - (%class="western"%)2563 - **Example**:9121 +{{code language="php" theme="RDark" title="Get All Terms Request"}} 9122 + <?php 2564 2564 2565 -(% class="western" %) 2566 -{"Name":"Test123","Description":Testss","Duration":10,"ProductId":17} 2567 -))) 9124 +$curl = curl_init(); 2568 2568 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 -))) 9126 +curl_setopt_array($curl, array( 9127 + CURLOPT_URL => 'https://api.onecount.net/v2/terms', 9128 + CURLOPT_RETURNTRANSFER => true, 9129 + CURLOPT_ENCODING => '', 9130 + CURLOPT_MAXREDIRS => 10, 9131 + CURLOPT_TIMEOUT => 0, 9132 + CURLOPT_FOLLOWLOCATION => true, 9133 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9134 + CURLOPT_CUSTOMREQUEST => 'GET', 9135 + CURLOPT_HTTPHEADER => array( 9136 + 'Appkey: {{ONECOUNT API KEY}}' 9137 + ), 9138 +)); 2595 2595 2596 - \\9140 +$response = curl_exec($curl); 2597 2597 2598 -(% class="western" %) 2599 -PUT method should be used to update an individual term given the term info. 9142 +curl_close($curl); 9143 +echo $response; 9144 +{{/code}} 2600 2600 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. 2626 2626 2627 -(% class="western" %) 2628 -\\ 9147 +(% style="color:#6b6b6b" %)Response 200 OK 2629 2629 2630 -(% class="western" %) 2631 -**Example**: 9149 +{{code language="yml" theme="RDark" collapse="true" title="Get All Terms Response"}} 9150 + { 9151 + "result": { 9152 + "success": "1", 9153 + "error": { 9154 + "code": "", 9155 + "message": "" 9156 + } 9157 + }, 9158 + "Terms": [ 9159 + { 9160 + "Id": 26, 9161 + "Name": "Please contact me to arrange a demo", 9162 + "Description": "", 9163 + "Duration": 1, 9164 + "DurationUnit": "I", 9165 + "Price": "0", 9166 + "ProductId": 26 9167 + }, 9168 + { 9169 + "Id": 34, 9170 + "Name": "ONEcount Promotional Emails", 9171 + "Description": "ONEcount promotional emails", 9172 + "Duration": 1, 9173 + "DurationUnit": "I", 9174 + "Price": "0", 9175 + "ProductId": 34 9176 + }, 9177 + { 9178 + "Id": 42, 9179 + "Name": "ONEcount Staff List", 9180 + "Description": "List of ONEcount/GCN Media Staff", 9181 + "Duration": 1, 9182 + "DurationUnit": "I", 9183 + "Price": "0", 9184 + "ProductId": 42 9185 + }, 9186 + { 9187 + "Id": 49, 9188 + "Name": "ONEcount Medical Publishers", 9189 + "Description": "ONEcount Medical Publishers and Associations", 9190 + "Duration": 1, 9191 + "DurationUnit": "I", 9192 + "Price": "0", 9193 + "ProductId": 49 9194 + }, 9195 + { 9196 + "Id": 57, 9197 + "Name": "000 Pop-Up Term", 9198 + "Description": "", 9199 + "Duration": 1, 9200 + "DurationUnit": "I", 9201 + "Price": "0", 9202 + "ProductId": 57 9203 + }, 9204 + { 9205 + "Id": 59, 9206 + "Name": "Get it for free", 9207 + "Description": "", 9208 + "Duration": 1, 9209 + "DurationUnit": "I", 9210 + "Price": "0", 9211 + "ProductId": 67 9212 + }, 9213 + { 9214 + "Id": 67, 9215 + "Name": "DAS_freepass_00", 9216 + "Description": "", 9217 + "Duration": 30, 9218 + "DurationUnit": "D", 9219 + "Price": "0", 9220 + "ProductId": 91 9221 + }, 9222 + { 9223 + "Id": 75, 9224 + "Name": "Product123", 9225 + "Description": null, 9226 + "Duration": 0, 9227 + "DurationUnit": "", 9228 + "Price": "0", 9229 + "ProductId": 99 9230 + }, 9231 + { 9232 + "Id": 83, 9233 + "Name": "Product123", 9234 + "Description": null, 9235 + "Duration": 0, 9236 + "DurationUnit": "", 9237 + "Price": "0", 9238 + "ProductId": 107 9239 + }, 9240 + { 9241 + "Id": 91, 9242 + "Name": "Test123 update ", 9243 + "Description": "Testss updated", 9244 + "Duration": 10, 9245 + "DurationUnit": "", 9246 + "Price": "0", 9247 + "ProductId": 107 9248 + }, 9249 + { 9250 + "Id": 93, 9251 + "Name": "Enhanced Analytics Webinar", 9252 + "Description": "Check the box to register for the February 26th webinar.", 9253 + "Duration": 1, 9254 + "DurationUnit": "I", 9255 + "Price": "0", 9256 + "ProductId": 109 9257 + }, 9258 + { 9259 + "Id": 423, 9260 + "Name": "Test term for API", 9261 + "Description": null, 9262 + "Duration": 0, 9263 + "DurationUnit": "", 9264 + "Price": "0.00", 9265 + "ProductId": 591 9266 + }, 9267 + { 9268 + "Id": 431, 9269 + "Name": "Test term for API 1", 9270 + "Description": null, 9271 + "Duration": 0, 9272 + "DurationUnit": "", 9273 + "Price": "0.00", 9274 + "ProductId": 599 9275 + } 9276 + ] 9277 +} 9278 +{{/code}} 2632 2632 2633 -(% class="western" %) 2634 -{"Name":"Test123","Description":Testss","Duration":10,"ProductId":17} 2635 -))) 2636 2636 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 -))) 9281 +(% id="HGETspecificTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9282 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Term(%%) == 2663 2663 2664 - \\9284 +---- 2665 2665 2666 -(% class="western" %) 2667 -**COMPONENT: Resources** 9286 +{{panel bgColor="#D3D3D3" width="100%"}} 9287 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}} 9288 +{{/panel}} 2668 2668 9290 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9291 + 9292 +---- 9293 + 9294 +(% 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}} 9295 + 9296 +==== Example ==== 9297 + 9298 +---- 9299 + 9300 +(% style="color:#6b6b6b" %)Request 9301 + 9302 +{{code language="php" theme="RDark" title="Get specific Term Request"}} 9303 + <?php 9304 + 9305 +$curl = curl_init(); 9306 + 9307 +curl_setopt_array($curl, array( 9308 + CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}', 9309 + CURLOPT_RETURNTRANSFER => true, 9310 + CURLOPT_ENCODING => '', 9311 + CURLOPT_MAXREDIRS => 10, 9312 + CURLOPT_TIMEOUT => 0, 9313 + CURLOPT_FOLLOWLOCATION => true, 9314 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9315 + CURLOPT_CUSTOMREQUEST => 'GET', 9316 + CURLOPT_HTTPHEADER => array( 9317 + 'Appkey: {{ONECOUNT API KEY}}' 9318 + ), 9319 +)); 9320 + 9321 +$response = curl_exec($curl); 9322 + 9323 +curl_close($curl); 9324 +echo $response; 9325 +{{/code}} 9326 + 9327 + 9328 +(% style="color:#6b6b6b" %)Response 200 OK 9329 + 9330 +{{code language="yml" theme="RDark" collapse="true" title="Get specific Term Response"}} 9331 + { 9332 + "result": { 9333 + "success": "1", 9334 + "error": { 9335 + "code": "", 9336 + "message": "" 9337 + } 9338 + }, 9339 + "Terms": [ 9340 + { 9341 + "Id": 431, 9342 + "Name": "Test term for API 1", 9343 + "Description": null, 9344 + "Duration": 0, 9345 + "DurationUnit": "", 9346 + "Price": "0.00", 9347 + "ProductId": 599 9348 + } 9349 + ] 9350 +} 9351 +{{/code}} 9352 + 9353 + 9354 +(% id="HGETlookupTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9355 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Term(%%) == 9356 + 9357 +---- 9358 + 9359 +{{panel bgColor="#D3D3D3" width="100%"}} 9360 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/lookup?Name={(%%){Term Name}} 9361 +{{/panel}} 9362 + 9363 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9364 + 9365 +---- 9366 + 9367 +(% 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}} 9368 + 9369 +=== (% style="color:#212121" %)Query Params(%%) === 9370 + 9371 +---- 9372 + 9373 +(% 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}} 9374 + 9375 +==== Example ==== 9376 + 9377 +---- 9378 + 9379 +(% style="color:#6b6b6b" %)Request 9380 + 9381 +{{code language="php" theme="RDark" title="Lookup Term Request"}} 9382 + <?php 9383 + 9384 +$curl = curl_init(); 9385 + 9386 +curl_setopt_array($curl, array( 9387 + CURLOPT_URL => 'https://api.onecount.net/v2/terms/lookup?Name={{Term Name}}', 9388 + CURLOPT_RETURNTRANSFER => true, 9389 + CURLOPT_ENCODING => '', 9390 + CURLOPT_MAXREDIRS => 10, 9391 + CURLOPT_TIMEOUT => 0, 9392 + CURLOPT_FOLLOWLOCATION => true, 9393 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9394 + CURLOPT_CUSTOMREQUEST => 'GET', 9395 + CURLOPT_HTTPHEADER => array( 9396 + 'Appkey: {{ONECOUNT API KEY}}' 9397 + ), 9398 +)); 9399 + 9400 +$response = curl_exec($curl); 9401 + 9402 +curl_close($curl); 9403 +echo $response; 9404 +{{/code}} 9405 + 9406 + 9407 +(% style="color:#6b6b6b" %)Response 200 OK 9408 + 9409 +{{code language="yml" theme="RDark" collapse="true" title="Lookup Term Response"}} 9410 +{ 9411 + "result": { 9412 + "success": "1", 9413 + "error": { 9414 + "code": "", 9415 + "message": "" 9416 + } 9417 + }, 9418 + "Terms": [ 9419 + { 9420 + "Id": 431, 9421 + "Name": "Test term for API 1", 9422 + "Description": null, 9423 + "Duration": 0, 9424 + "DurationUnit": "", 9425 + "Price": "0.00", 9426 + "ProductId": 599 9427 + } 9428 + ] 9429 +} 9430 +{{/code}} 9431 + 9432 + 9433 +(% id="HPOSTCreateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9434 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Term(%%) == 9435 + 9436 +---- 9437 + 9438 +{{panel bgColor="#D3D3D3" width="100%"}} 9439 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms 9440 +{{/panel}} 9441 + 9442 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9443 + 9444 +---- 9445 + 9446 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 9447 + 9448 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 9449 + 9450 +---- 9451 + 9452 +{{code language="yml" theme="RDark" title="Body"}} 9453 +{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599} 9454 +{{/code}} 9455 + 9456 +==== Example ==== 9457 + 9458 +---- 9459 + 9460 +(% style="color:#6b6b6b" %)Request 9461 + 9462 +{{code language="php" theme="RDark" title="Create Term Request"}} 9463 +<?php 9464 + 9465 +$curl = curl_init(); 9466 + 9467 +curl_setopt_array($curl, array( 9468 + CURLOPT_URL => 'https://api.onecount.net/v2/terms', 9469 + CURLOPT_RETURNTRANSFER => true, 9470 + CURLOPT_ENCODING => '', 9471 + CURLOPT_MAXREDIRS => 10, 9472 + CURLOPT_TIMEOUT => 0, 9473 + CURLOPT_FOLLOWLOCATION => true, 9474 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9475 + CURLOPT_CUSTOMREQUEST => 'POST', 9476 + CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599} 9477 + 9478 +', 9479 + CURLOPT_HTTPHEADER => array( 9480 + 'Appkey: {{ONECOUNT API KEY}}' 9481 + ), 9482 +)); 9483 + 9484 +$response = curl_exec($curl); 9485 + 9486 +curl_close($curl); 9487 +echo $response; 9488 + 9489 + 9490 +{{/code}} 9491 + 9492 + 9493 +(% style="color:#6b6b6b" %)Response 200 OK 9494 + 9495 +{{code language="yml" theme="RDark" collapse="true" title="Create Term Response"}} 9496 +{ 9497 + "result": { 9498 + "success": "1", 9499 + "error": { 9500 + "code": "", 9501 + "message": "" 9502 + } 9503 + }, 9504 + "Terms": [ 9505 + { 9506 + "Id": 447 9507 + } 9508 + ] 9509 +} 9510 +{{/code}} 9511 + 9512 + 9513 +(% id="HPUTUpdateTerm" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9514 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Term(%%) == 9515 + 9516 +---- 9517 + 9518 +{{panel bgColor="#D3D3D3" width="100%"}} 9519 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/terms/~{~{Term Id}} 9520 +{{/panel}} 9521 + 9522 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9523 + 9524 +---- 9525 + 9526 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 9527 + 9528 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 9529 + 9530 +---- 9531 + 9532 +{{code language="yml" theme="RDark" title="Body"}} 9533 +{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599} 9534 +{{/code}} 9535 + 9536 +==== Example ==== 9537 + 9538 +---- 9539 + 9540 +(% style="color:#6b6b6b" %)Request 9541 + 9542 +{{code language="php" theme="RDark" title="Update Term Request"}} 9543 + <?php 9544 + 9545 +$curl = curl_init(); 9546 + 9547 +curl_setopt_array($curl, array( 9548 + CURLOPT_URL => 'https://api.onecount.net/v2/terms/{{Term Id}}', 9549 + CURLOPT_RETURNTRANSFER => true, 9550 + CURLOPT_ENCODING => '', 9551 + CURLOPT_MAXREDIRS => 10, 9552 + CURLOPT_TIMEOUT => 0, 9553 + CURLOPT_FOLLOWLOCATION => true, 9554 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9555 + CURLOPT_CUSTOMREQUEST => 'PUT', 9556 + CURLOPT_POSTFIELDS =>'{"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}', 9557 + CURLOPT_HTTPHEADER => array( 9558 + 'Appkey: {{ONECOUNT API KEY}}' 9559 + ), 9560 +)); 9561 + 9562 +$response = curl_exec($curl); 9563 + 9564 +curl_close($curl); 9565 +echo $response; 9566 +{{/code}} 9567 + 9568 + 9569 +(% style="color:#6b6b6b" %)Response 200 OK 9570 + 9571 +{{code language="yml" theme="RDark" collapse="true" title="Update Term Response"}} 9572 + { 9573 + "result": { 9574 + "success": "1", 9575 + "error": { 9576 + "code": "", 9577 + "message": "" 9578 + } 9579 + }, 9580 + "Terms": [ 9581 + { 9582 + "Id": 447, 9583 + "Name": "Test API term creation update", 9584 + "Description": "Test API term creation update", 9585 + "Duration": 10, 9586 + "DurationUnit": "", 9587 + "Price": "0.00", 9588 + "ProductId": 599 9589 + } 9590 + ] 9591 +} 9592 +{{/code}} 9593 + 9594 + 9595 +(% id="HCOMPONENT:Resources" class="western" %) 9596 +=== **COMPONENT: Resources** === 9597 + 2669 2669 (% class="western" %) 2670 2670 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. 2671 2671 ... ... @@ -2704,880 +2704,4612 @@ 2704 2704 (% class="western" %) 2705 2705 This resource is for manipulating resources resource. A resource can be created, updated or searched. 2706 2706 2707 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 9636 +(% class="wrapped" %) 9637 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2708 2708 ((( 2709 2709 (% class="western" %) 2710 2710 **Method** 2711 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9641 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2712 2712 ((( 2713 2713 (% class="western" %) 2714 2714 **Url** 2715 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9645 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2716 2716 ((( 2717 2717 (% class="western" %) 2718 2718 **Action** 2719 2719 ))) 2720 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9650 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2721 2721 ((( 2722 2722 (% class="western" %) 2723 2723 GET 2724 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9654 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2725 2725 ((( 2726 2726 (% class="western" %) 2727 2727 /resources/5 2728 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9658 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2729 2729 ((( 2730 2730 (% class="western" %) 2731 2731 Get resource id 5 2732 2732 ))) 2733 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9663 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2734 2734 ((( 2735 2735 (% class="western" %) 2736 2736 GET 2737 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9667 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2738 2738 ((( 2739 2739 (% class="western" %) 2740 2740 /resources/lookup?Name=resourcename 2741 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9671 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2742 2742 ((( 2743 2743 (% class="western" %) 2744 2744 Lookup resources by Name 2745 2745 ))) 2746 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9676 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2747 2747 ((( 2748 2748 (% class="western" %) 2749 2749 POST 2750 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9680 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2751 2751 ((( 2752 2752 (% class="western" %) 2753 2753 /resources 2754 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9684 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2755 2755 ((( 2756 2756 (% class="western" %) 2757 2757 JSON of the resources type object needs to be sent as post data. Id field should not be sent. 2758 2758 ))) 2759 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)9689 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2760 2760 ((( 2761 2761 (% class="western" %) 2762 2762 PUT 2763 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9693 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2764 2764 ((( 2765 2765 (% class="western" %) 2766 2766 /resources/5 2767 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)9697 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 2768 2768 ((( 2769 2769 (% class="western" %) 2770 2770 JSON of the resources type object needs to be sent as post data. Id field is mandatory for update. 2771 2771 ))) 2772 2772 2773 -\\ 9703 +(% id="HGETAllResources" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9704 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Resources(%%) == 2774 2774 2775 -(% class="western" %) 2776 -**GET method should be used to lookup resources.** 9706 +---- 2777 2777 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. 9708 +---- 2803 2803 2804 -(% class="western" %) 2805 -Params: 9710 +{{panel bgColor="#D3D3D3" width="100%"}} 9711 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources 9712 +{{/panel}} 2806 2806 2807 -(% class="western" %) 2808 -Name: Name of the resource for lookup (String) 2809 -))) 9714 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2810 2810 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 -))) 9716 +---- 2837 2837 2838 - \\9718 +(% 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}} 2839 2839 2840 -(% class="western" %) 2841 -**POST method should be used to create resources.** 9720 +==== Example ==== 2842 2842 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. 9722 +---- 2868 2868 2869 -(% class="western" %) 2870 -**Possible Request Params**: Name, Description, Type, Value, FreePass 9724 +(% style="color:#6b6b6b" %)Request 2871 2871 2872 - (%class="western"%)2873 - **Example**:9726 +{{code language="php" theme="RDark" title="Get All Resource Request"}} 9727 + <?php 2874 2874 2875 -(% class="western" %) 2876 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 9729 +$curl = curl_init(); 2877 2877 2878 -(% class="western" %) 2879 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 9731 +curl_setopt_array($curl, array( 9732 + CURLOPT_URL => 'https://api.onecount.net/v2/resources', 9733 + CURLOPT_RETURNTRANSFER => true, 9734 + CURLOPT_ENCODING => '', 9735 + CURLOPT_MAXREDIRS => 10, 9736 + CURLOPT_TIMEOUT => 0, 9737 + CURLOPT_FOLLOWLOCATION => true, 9738 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9739 + CURLOPT_CUSTOMREQUEST => 'GET', 9740 + CURLOPT_HTTPHEADER => array( 9741 + 'Appkey: {{ONECOUNT API KEY}}' 9742 + ), 9743 +)); 2880 2880 2881 -(% class="western" %) 2882 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”, "FreePass":1} 9745 +$response = curl_exec($curl); 2883 2883 2884 - (%class="western" %)2885 - {"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”,"/article/"],"FreePass":1}2886 - )))9747 +curl_close($curl); 9748 +echo $response; 9749 +{{/code}} 2887 2887 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 -))) 2914 2914 2915 - \\9752 +(% style="color:#6b6b6b" %)Response 200 OK 2916 2916 2917 -(% class="western" %) 2918 -PUT method should be used to update an individual resource given the resource info. 9754 +{{code language="yml" theme="RDark" collapse="true" title="Get All Resource Response"}} 9755 + { 9756 + "result": { 9757 + "success": "1", 9758 + "error": { 9759 + "code": "", 9760 + "message": "" 9761 + } 9762 + }, 9763 + "Resources": [ 9764 + { 9765 + "Id": 18, 9766 + "Name": "ONEcount/GCN Staff Newsletter Resource", 9767 + "Description": "ONEcount/GCN Staff Newsletter List", 9768 + "Type": "2", 9769 + "Value": "57|53|55", 9770 + "FreePass": 0 9771 + }, 9772 + { 9773 + "Id": 26, 9774 + "Name": "GCN TEST GROUP", 9775 + "Description": "THESE USER WILL GET TEST MESSAGE", 9776 + "Type": "2", 9777 + "Value": "47", 9778 + "FreePass": 0 9779 + }, 9780 + { 9781 + "Id": 98, 9782 + "Name": "ONEcount Prospects List", 9783 + "Description": "Newsletter List of ONEcount Prospects", 9784 + "Type": "2", 9785 + "Value": "55", 9786 + "FreePass": 0 9787 + }, 9788 + { 9789 + "Id": 106, 9790 + "Name": "Google Ads Form", 9791 + "Description": "", 9792 + "Type": "3", 9793 + "Value": "http://ocreg.one-count.com/onecount/reg/registerForm.cgi?form=186&brand=OC", 9794 + "FreePass": 0 9795 + }, 9796 + { 9797 + "Id": 114, 9798 + "Name": "secure files", 9799 + "Description": "", 9800 + "Type": "3", 9801 + "Value": "/download.php", 9802 + "FreePass": 0 9803 + }, 9804 + { 9805 + "Id": 130, 9806 + "Name": "REQUEST A DEMO", 9807 + "Description": "", 9808 + "Type": "3", 9809 + "Value": "http://ocreg.one-count.com/onecount/flexreg/displayform.cgi?g=0&form=34", 9810 + "FreePass": 0 9811 + }, 9812 + { 9813 + "Id": 137, 9814 + "Name": "ONEcount Medical Publishers", 9815 + "Description": "ONEcount Medical Publishers and Associations", 9816 + "Type": "2", 9817 + "Value": "61", 9818 + "FreePass": 0 9819 + }, 9820 + { 9821 + "Id": 145, 9822 + "Name": "Pop-Up Test Page", 9823 + "Description": "", 9824 + "Type": "3", 9825 + "Value": "http://omar.gcnmedia.com/projects/form/gated.html", 9826 + "FreePass": 0 9827 + }, 9828 + { 9829 + "Id": 146, 9830 + "Name": "Platform Resource", 9831 + "Description": "Test Resource", 9832 + "Type": "3", 9833 + "Value": "/Platform", 9834 + "FreePass": 0 9835 + }, 9836 + { 9837 + "Id": 153, 9838 + "Name": "Submitted", 9839 + "Description": "", 9840 + "Type": "3", 9841 + "Value": "http://gcn-reg.onecount.net/onecount/reg/tSuccessView.php?brand=oc", 9842 + "FreePass": 0 9843 + } 9844 + ] 9845 +} 9846 +{{/code}} 2919 2919 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. 2945 2945 2946 -(% class=" western" %)2947 - \\9849 +(% id="HGETspecificResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9850 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Resource(%%) == 2948 2948 2949 -(% class="western" %) 2950 -Examples: 9852 +---- 2951 2951 2952 -(% class="western" %) 2953 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”} 9854 +{{panel bgColor="#D3D3D3" width="100%"}} 9855 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/{(%%){Resource ID}} 9856 +{{/panel}} 2954 2954 2955 -(% class="western" %) 2956 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"]} 9858 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 2957 2957 2958 -(% class="western" %) 2959 -{"Name":"Test123","Description":Testss","Type":3,"Value":”/digital/”,"FreePass":1} 9860 +---- 2960 2960 2961 -(% class="western" %) 2962 -{"Name":"Test123","Description":Testss","Type":3,"Value":[”/digital/”, "/article/"],"FreePass":1} 2963 -))) 9862 +(% 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}} 2964 2964 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 -))) 9864 +==== Example ==== 2991 2991 2992 - \\9866 +---- 2993 2993 2994 - \\9868 +(% style="color:#6b6b6b" %)Request 2995 2995 2996 - (%class="western"%)2997 - \\9870 +{{code language="php" theme="RDark" title="Get specific Resource Request"}} 9871 + <?php 2998 2998 2999 -(% class="western" %) 3000 -**COMPONENT: Source Codes 3001 -** 9873 +$curl = curl_init(); 3002 3002 9875 +curl_setopt_array($curl, array( 9876 + CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{Resource ID}}', 9877 + CURLOPT_RETURNTRANSFER => true, 9878 + CURLOPT_ENCODING => '', 9879 + CURLOPT_MAXREDIRS => 10, 9880 + CURLOPT_TIMEOUT => 0, 9881 + CURLOPT_FOLLOWLOCATION => true, 9882 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9883 + CURLOPT_CUSTOMREQUEST => 'GET', 9884 + CURLOPT_HTTPHEADER => array( 9885 + 'Appkey: {{ONECOUNT API KEY}}' 9886 + ), 9887 +)); 9888 + 9889 +$response = curl_exec($curl); 9890 + 9891 +curl_close($curl); 9892 +echo $response; 9893 +{{/code}} 9894 + 9895 + 9896 +(% style="color:#6b6b6b" %)Response 200 OK 9897 + 9898 +{{code language="yml" theme="RDark" collapse="true" title="Get specific Resource Response"}} 9899 + { 9900 + "result": { 9901 + "success": "1", 9902 + "error": { 9903 + "code": "", 9904 + "message": "" 9905 + } 9906 + }, 9907 + "Resources": [ 9908 + { 9909 + "Id": 623, 9910 + "Name": "TOP 3 THINGS - NonStop Local News", 9911 + "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.", 9912 + "Type": "2", 9913 + "Value": "", 9914 + "FreePass": 0 9915 + } 9916 + ] 9917 +} 9918 +{{/code}} 9919 + 9920 + 9921 +(% id="HGETlookupResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 9922 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Resource(%%) == 9923 + 9924 +---- 9925 + 9926 +{{panel bgColor="#D3D3D3" width="100%"}} 9927 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/lookup?Name={(%%){Resource Name}} 9928 +{{/panel}} 9929 + 9930 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 9931 + 9932 +---- 9933 + 9934 +(% 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}} 9935 + 9936 +=== (% style="color:#212121" %)Query Params(%%) === 9937 + 9938 +---- 9939 + 9940 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Name (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Resource Name}} 9941 + 9942 +==== Example ==== 9943 + 9944 +---- 9945 + 9946 +(% style="color:#6b6b6b" %)Request 9947 + 9948 +{{code language="php" theme="RDark" title="Lookup Resource Request"}} 9949 + <?php 9950 + 9951 +$curl = curl_init(); 9952 + 9953 +curl_setopt_array($curl, array( 9954 + CURLOPT_URL => 'https://api.onecount.net/v2/resources/lookup?Name={{Resource Name}}', 9955 + CURLOPT_RETURNTRANSFER => true, 9956 + CURLOPT_ENCODING => '', 9957 + CURLOPT_MAXREDIRS => 10, 9958 + CURLOPT_TIMEOUT => 0, 9959 + CURLOPT_FOLLOWLOCATION => true, 9960 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 9961 + CURLOPT_CUSTOMREQUEST => 'GET', 9962 + CURLOPT_HTTPHEADER => array( 9963 + 'Appkey: {{ONECOUNT API KEY}}' 9964 + ), 9965 +)); 9966 + 9967 +$response = curl_exec($curl); 9968 + 9969 +curl_close($curl); 9970 +echo $response; 9971 +{{/code}} 9972 + 9973 + 9974 +(% style="color:#6b6b6b" %)Response 200 OK 9975 + 9976 +{{code language="yml" theme="RDark" collapse="true" title="Lookup Resource Response"}} 9977 + { 9978 + "result": { 9979 + "success": "1", 9980 + "error": { 9981 + "code": "", 9982 + "message": "" 9983 + } 9984 + }, 9985 + "Resources": [ 9986 + { 9987 + "Id": 479, 9988 + "Name": "Virtualization Review", 9989 + "Description": "", 9990 + "Type": "0", 9991 + "Value": "", 9992 + "FreePass": 0 9993 + } 9994 + ] 9995 +} 9996 +{{/code}} 9997 + 9998 + 9999 +(% id="HPOSTCreateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10000 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Resource(%%) == 10001 + 10002 +---- 10003 + 10004 +{{panel bgColor="#D3D3D3" width="100%"}} 10005 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources 10006 +{{/panel}} 10007 + 10008 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10009 + 10010 +---- 10011 + 10012 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10013 + 10014 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10015 + 10016 +---- 10017 + 10018 +{{code language="yml" theme="RDark" title="Body"}} 10019 +{"Name":"Test API product creation 22","Description":"Test API product creation 22","Type":3,"FreePass":1,"Value":["http://one-count.com"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1} 10020 +{{/code}} 10021 + 10022 +==== Example ==== 10023 + 10024 +---- 10025 + 10026 +(% style="color:#6b6b6b" %)Request 10027 + 10028 +{{code language="php" theme="RDark" title="Create Resource Request"}} 10029 + <?php 10030 + 10031 +$curl = curl_init(); 10032 + 10033 +curl_setopt_array($curl, array( 10034 + CURLOPT_URL => 'https://api.onecount.net/v2/resources', 10035 + CURLOPT_RETURNTRANSFER => true, 10036 + CURLOPT_ENCODING => '', 10037 + CURLOPT_MAXREDIRS => 10, 10038 + CURLOPT_TIMEOUT => 0, 10039 + CURLOPT_FOLLOWLOCATION => true, 10040 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10041 + CURLOPT_CUSTOMREQUEST => 'POST', 10042 + CURLOPT_POSTFIELDS =>'{"Name":"Test API product creation 21","Description":"Test API product creation 21","Type":3,"FreePass":1,"Value":["http://one-count.com"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}', 10043 + CURLOPT_HTTPHEADER => array( 10044 + 'Appkey: {{ONECOUNT API KEY}}' 10045 + ), 10046 +)); 10047 + 10048 +$response = curl_exec($curl); 10049 + 10050 +curl_close($curl); 10051 +echo $response; 10052 +{{/code}} 10053 + 10054 + 10055 +(% style="color:#6b6b6b" %)Response 200 OK 10056 + 10057 +{{code language="yml" theme="RDark" collapse="true" title="Create Resource Response"}} 10058 + { 10059 + "result": { 10060 + "success": "1", 10061 + "error": { 10062 + "code": "", 10063 + "message": "" 10064 + } 10065 + }, 10066 + "Resources": [ 10067 + { 10068 + "Id": 871, 10069 + "Name": "Test API product creation 21", 10070 + "Description": "Test API product creation 21", 10071 + "Type": "3", 10072 + "Value": "http://one-count.com", 10073 + "FreePass": 1 10074 + } 10075 + ] 10076 +} 10077 +{{/code}} 10078 + 10079 + 10080 +(% id="HPUTUpdateResource" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10081 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Resource(%%) == 10082 + 10083 +---- 10084 + 10085 +{{panel bgColor="#D3D3D3" width="100%"}} 10086 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/resources/~{~{resource id}} 10087 +{{/panel}} 10088 + 10089 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10090 + 10091 +---- 10092 + 10093 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10094 + 10095 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10096 + 10097 +---- 10098 + 10099 +{{code language="yml" theme="RDark" title="Body"}} 10100 +{"Name":"Test API product creation 23","Description":"Test API product creation 23","Type":3,"FreePass":1,"Value":["http://one-count.com","onecount.net"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1} 10101 +{{/code}} 10102 + 10103 +==== Example ==== 10104 + 10105 +---- 10106 + 10107 +(% style="color:#6b6b6b" %)Request 10108 + 10109 +{{code language="php" theme="RDark" title="Update Resource Request"}} 10110 + <?php 10111 + 10112 +$curl = curl_init(); 10113 + 10114 +curl_setopt_array($curl, array( 10115 + CURLOPT_URL => 'https://api.onecount.net/v2/resources/{{resource id}}', 10116 + CURLOPT_RETURNTRANSFER => true, 10117 + CURLOPT_ENCODING => '', 10118 + CURLOPT_MAXREDIRS => 10, 10119 + CURLOPT_TIMEOUT => 0, 10120 + CURLOPT_FOLLOWLOCATION => true, 10121 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10122 + CURLOPT_CUSTOMREQUEST => 'PUT', 10123 + CURLOPT_POSTFIELDS =>'{"Name":"Test API product creation 23","Description":"Test API product creation 23","Type":3,"FreePass":1,"Value":["http://one-count.com","onecount.net"],"Gating":false,"Price":0,"PrimaryFormId":"","VendorId":1}', 10124 + CURLOPT_HTTPHEADER => array( 10125 + 'Appkey: {{ONECOUNT API KEY}}' 10126 + ), 10127 +)); 10128 + 10129 +$response = curl_exec($curl); 10130 + 10131 +curl_close($curl); 10132 +echo $response; 10133 +{{/code}} 10134 + 10135 + 10136 +(% style="color:#6b6b6b" %)Response 200 OK 10137 + 10138 +{{code language="yml" theme="RDark" collapse="true" title="Update Resource Response"}} 10139 + { 10140 + "result": { 10141 + "success": "1", 10142 + "error": { 10143 + "code": "", 10144 + "message": "" 10145 + } 10146 + }, 10147 + "Resources": [ 10148 + { 10149 + "Id": 903, 10150 + "Name": "Test API product creation 23", 10151 + "Description": "Test API product creation 23", 10152 + "Type": "3", 10153 + "Value": "http://one-count.com", 10154 + "FreePass": 1 10155 + }, 10156 + { 10157 + "Id": 903, 10158 + "Name": "Test API product creation 23", 10159 + "Description": "Test API product creation 23", 10160 + "Type": "3", 10161 + "Value": "onecount.net", 10162 + "FreePass": 1 10163 + } 10164 + ] 10165 +} 10166 +{{/code}} 10167 + 10168 + 10169 +(% id="HCOMPONENT:SourceCodes" class="western" %) 10170 +=== **COMPONENT: Source Codes** === 10171 + 10172 +* 10173 +** === 10174 + 3003 3003 (% class="western" %) 3004 3004 This resource is for manipulating source code for a resource. A source code can be created, updated or searched. 3005 3005 3006 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10178 +(% class="wrapped" %) 10179 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3007 3007 ((( 3008 3008 (% class="western" %) 3009 3009 **Method** 3010 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10183 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3011 3011 ((( 3012 3012 (% class="western" %) 3013 3013 **Url** 3014 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10187 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3015 3015 ((( 3016 3016 (% class="western" %) 3017 3017 **Action** 3018 3018 ))) 3019 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)10192 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3020 3020 ((( 3021 3021 (% class="western" %) 3022 3022 GET 3023 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10196 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3024 3024 ((( 3025 3025 (% class="western" %) 3026 3026 /sources/1 3027 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10200 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3028 3028 ((( 3029 3029 (% class="western" %) 3030 3030 Get source id 1. 3031 3031 ))) 3032 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)10205 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3033 3033 ((( 3034 3034 (% class="western" %) 3035 3035 GET 3036 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10209 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3037 3037 ((( 3038 3038 (% class="western" %) 3039 3039 /sources/lookup?Source=sourcename 3040 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10213 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3041 3041 ((( 3042 3042 (% class="western" %) 3043 3043 Lookup sources by source. 3044 3044 ))) 3045 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)10218 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3046 3046 ((( 3047 3047 (% class="western" %) 3048 3048 POST 3049 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10222 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3050 3050 ((( 3051 3051 (% class="western" %) 3052 3052 /sources 3053 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10226 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3054 3054 ((( 3055 3055 (% class="western" %) 3056 3056 JSON of the Sources type object needs to be sent as post data. Id field should not be sent. 3057 3057 ))) 3058 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)10231 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3059 3059 ((( 3060 3060 (% class="western" %) 3061 3061 PUT 3062 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10235 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3063 3063 ((( 3064 3064 (% class="western" %) 3065 3065 /sources 3066 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10239 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3067 3067 ((( 3068 3068 (% class="western" %) 3069 3069 JSON of the Sources type object needs to be sent as post data. Id field is mandatory for update. 3070 3070 ))) 3071 3071 3072 -\\ 10245 +(% id="HGETAllSourcecodes" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10246 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Source codes(%%) == 3073 3073 10248 +---- 10249 + 10250 +---- 10251 + 10252 +{{panel bgColor="#D3D3D3" width="100%"}} 10253 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources 10254 +{{/panel}} 10255 + 10256 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10257 + 10258 +---- 10259 + 10260 +(% 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}} 10261 + 10262 +==== Example ==== 10263 + 10264 +---- 10265 + 10266 +(% style="color:#6b6b6b" %)Request 10267 + 10268 +{{code language="php" theme="RDark" title="Get All Source code Request"}} 10269 + <?php 10270 + 10271 +$curl = curl_init(); 10272 + 10273 +curl_setopt_array($curl, array( 10274 + CURLOPT_URL => 'https://api.onecount.net/v2/sources', 10275 + CURLOPT_RETURNTRANSFER => true, 10276 + CURLOPT_ENCODING => '', 10277 + CURLOPT_MAXREDIRS => 10, 10278 + CURLOPT_TIMEOUT => 0, 10279 + CURLOPT_FOLLOWLOCATION => true, 10280 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10281 + CURLOPT_CUSTOMREQUEST => 'GET', 10282 + CURLOPT_HTTPHEADER => array( 10283 + 'Appkey: {{ONECOUNT API KEY}}' 10284 + ), 10285 +)); 10286 + 10287 +$response = curl_exec($curl); 10288 + 10289 +curl_close($curl); 10290 +echo $response; 10291 +{{/code}} 10292 + 10293 + 10294 +(% style="color:#6b6b6b" %)Response 200 OK 10295 + 10296 +{{code language="yml" theme="RDark" collapse="true" title="Get All Source code Response"}} 10297 + { 10298 + "result": { 10299 + "success": "1", 10300 + "error": { 10301 + "code": "", 10302 + "message": "" 10303 + } 10304 + }, 10305 + "Sources": [ 10306 + { 10307 + "Id": 26, 10308 + "Source": "GCN-Member", 10309 + "Description": "Uploaded from Reston VA", 10310 + "Parent": 0 10311 + }, 10312 + { 10313 + "Id": 34, 10314 + "Source": "SugarID", 10315 + "Description": "Sugar IDs cleaned contacts list and cleaned leads list sent by Sean Fulton for upload.", 10316 + "Parent": 0 10317 + }, 10318 + { 10319 + "Id": 42, 10320 + "Source": "DEMOFORM", 10321 + "Description": "\"Request a Demo\" form from one-count.com", 10322 + "Parent": 0 10323 + }, 10324 + { 10325 + "Id": 50, 10326 + "Source": "ABM ANNUAL 2014", 10327 + "Description": "ABM Annual 2014 - Registration List for Sponsors", 10328 + "Parent": 0 10329 + }, 10330 + { 10331 + "Id": 58, 10332 + "Source": "BIMS REG LIST", 10333 + "Description": "BIMS Registration List for Sponsors (2013/2014)", 10334 + "Parent": 0 10335 + }, 10336 + { 10337 + "Id": 66, 10338 + "Source": "SIPA 13", 10339 + "Description": "SIPA 2013 - sponsor - attendees", 10340 + "Parent": 0 10341 + }, 10342 + { 10343 + "Id": 74, 10344 + "Source": "Google Ads", 10345 + "Description": "From Google Banner Ads", 10346 + "Parent": 0 10347 + }, 10348 + { 10349 + "Id": 82, 10350 + "Source": "EDIT PROFILE", 10351 + "Description": "FOR EDIT PROFILE FORM", 10352 + "Parent": 0 10353 + }, 10354 + { 10355 + "Id": 83, 10356 + "Source": "Test Source Code", 10357 + "Description": "", 10358 + "Parent": 0 10359 + }, 10360 + { 10361 + "Id": 91, 10362 + "Source": "NEWSLETTER", 10363 + "Description": "Newsletter", 10364 + "Parent": 0 10365 + }, 10366 + { 10367 + "Id": 99, 10368 + "Source": "INFOTANKS-comps-only_12032019", 10369 + "Description": "", 10370 + "Parent": 0 10371 + }, 10372 + { 10373 + "Id": 107, 10374 + "Source": "INFOTANKS-DMP-only_12102019", 10375 + "Description": "", 10376 + "Parent": 0 10377 + }, 10378 + { 10379 + "Id": 109, 10380 + "Source": "BMVM", 10381 + "Description": "Active Attendees", 10382 + "Parent": 0 10383 + }, 10384 + { 10385 + "Id": 115, 10386 + "Source": "USECASES", 10387 + "Description": "Use Case PDF", 10388 + "Parent": 0 10389 + }, 10390 + { 10391 + "Id": 123, 10392 + "Source": "Borrell Miami 2022", 10393 + "Description": "", 10394 + "Parent": 0 10395 + }, 10396 + { 10397 + "Id": 131, 10398 + "Source": "05092022-telemarketing", 10399 + "Description": "", 10400 + "Parent": 0 10401 + }, 10402 + { 10403 + "Id": 139, 10404 + "Source": "WEBINAR6.15.22", 10405 + "Description": "Live Webinar Series June 15, 2022", 10406 + "Parent": 0 10407 + }, 10408 + { 10409 + "Id": 147, 10410 + "Source": "LMA Show List", 10411 + "Description": "", 10412 + "Parent": 0 10413 + }, 10414 + { 10415 + "Id": 155, 10416 + "Source": "AAA", 10417 + "Description": "", 10418 + "Parent": 0 10419 + }, 10420 + { 10421 + "Id": 163, 10422 + "Source": "MGS2022", 10423 + "Description": "", 10424 + "Parent": 0 10425 + }, 10426 + { 10427 + "Id": 171, 10428 + "Source": "MGS2023", 10429 + "Description": "", 10430 + "Parent": 0 10431 + }, 10432 + { 10433 + "Id": 179, 10434 + "Source": "Sugar Leads", 10435 + "Description": "", 10436 + "Parent": 0 10437 + }, 10438 + { 10439 + "Id": 187, 10440 + "Source": "seansbox", 10441 + "Description": "", 10442 + "Parent": 0 10443 + }, 10444 + { 10445 + "Id": 191, 10446 + "Source": "SEEITLIVE", 10447 + "Description": "Lunch & Learn Webinar Series with Special Partner Guests", 10448 + "Parent": 0 10449 + }, 10450 + { 10451 + "Id": 199, 10452 + "Source": "80-percent-conversion-rates", 10453 + "Description": "", 10454 + "Parent": 0 10455 + } 10456 + ] 10457 +} 10458 +{{/code}} 10459 + 10460 + 10461 +(% id="HGETspecificSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10462 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Source code(%%) == 10463 + 10464 +---- 10465 + 10466 +{{panel bgColor="#D3D3D3" width="100%"}} 10467 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}} 10468 +{{/panel}} 10469 + 10470 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10471 + 10472 +---- 10473 + 10474 +(% 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}} 10475 + 10476 +==== Example ==== 10477 + 10478 +---- 10479 + 10480 +(% style="color:#6b6b6b" %)Request 10481 + 10482 +{{code language="php" theme="RDark" title="Get specific Source Request"}} 10483 + <?php 10484 + 10485 +$curl = curl_init(); 10486 + 10487 +curl_setopt_array($curl, array( 10488 + CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}', 10489 + CURLOPT_RETURNTRANSFER => true, 10490 + CURLOPT_ENCODING => '', 10491 + CURLOPT_MAXREDIRS => 10, 10492 + CURLOPT_TIMEOUT => 0, 10493 + CURLOPT_FOLLOWLOCATION => true, 10494 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10495 + CURLOPT_CUSTOMREQUEST => 'GET', 10496 + CURLOPT_HTTPHEADER => array( 10497 + 'Appkey: {{ONECOUNT API KEY}}' 10498 + ), 10499 +)); 10500 + 10501 +$response = curl_exec($curl); 10502 + 10503 +curl_close($curl); 10504 +echo $response; 10505 +{{/code}} 10506 + 10507 + 10508 +(% style="color:#6b6b6b" %)Response 200 OK 10509 + 10510 +{{code language="yml" theme="RDark" collapse="true" title="Get specific Source Response"}} 10511 + { 10512 + "result": { 10513 + "success": "1", 10514 + "error": { 10515 + "code": "", 10516 + "message": "" 10517 + } 10518 + }, 10519 + "Sources": [ 10520 + { 10521 + "Id": 26, 10522 + "Source": "GCN-Member", 10523 + "Description": "Uploaded from Reston VA", 10524 + "Parent": 0 10525 + } 10526 + ] 10527 +} 10528 +{{/code}} 10529 + 10530 + 10531 +(% id="HGETlookupSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10532 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Source code(%%) == 10533 + 10534 +---- 10535 + 10536 +{{panel bgColor="#D3D3D3" width="100%"}} 10537 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/lookup?Source={(%%){Source code Name}} 10538 +{{/panel}} 10539 + 10540 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10541 + 10542 +---- 10543 + 10544 +(% 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}} 10545 + 10546 +=== (% style="color:#212121" %)Query Params(%%) === 10547 + 10548 +---- 10549 + 10550 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Source (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{Source code Name}} 10551 + 10552 +==== Example ==== 10553 + 10554 +---- 10555 + 10556 +(% style="color:#6b6b6b" %)Request 10557 + 10558 +{{code language="php" theme="RDark" title="Lookup Source code Request"}} 10559 + <?php 10560 + 10561 +$curl = curl_init(); 10562 + 10563 +curl_setopt_array($curl, array( 10564 + CURLOPT_URL => 'https://api.onecount.net/v2/sources/lookup?Source={{Source code Name}}', 10565 + CURLOPT_RETURNTRANSFER => true, 10566 + CURLOPT_ENCODING => '', 10567 + CURLOPT_MAXREDIRS => 10, 10568 + CURLOPT_TIMEOUT => 0, 10569 + CURLOPT_FOLLOWLOCATION => true, 10570 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10571 + CURLOPT_CUSTOMREQUEST => 'GET', 10572 + CURLOPT_HTTPHEADER => array( 10573 + 'Appkey: {{ONECOUNT API KEY}}' 10574 + ), 10575 +)); 10576 + 10577 +$response = curl_exec($curl); 10578 + 10579 +curl_close($curl); 10580 +echo $response; 10581 +{{/code}} 10582 + 10583 + 10584 +(% style="color:#6b6b6b" %)Response 200 OK 10585 + 10586 +{{code language="yml" theme="RDark" collapse="true" title="Lookup Source code Response"}} 10587 + { 10588 + "result": { 10589 + "success": "1", 10590 + "error": { 10591 + "code": "", 10592 + "message": "" 10593 + } 10594 + }, 10595 + "Sources": [ 10596 + { 10597 + "Id": 26, 10598 + "Source": "GCN-Member", 10599 + "Description": "Uploaded from Reston VA", 10600 + "Parent": 0 10601 + } 10602 + ] 10603 +} 10604 +{{/code}} 10605 + 10606 + 10607 +(% id="HPOSTCreateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10608 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Source code(%%) == 10609 + 10610 +---- 10611 + 10612 +{{panel bgColor="#D3D3D3" width="100%"}} 10613 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources 10614 +{{/panel}} 10615 + 10616 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10617 + 10618 +---- 10619 + 10620 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10621 + 10622 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10623 + 10624 +---- 10625 + 10626 +{{code language="yml" theme="RDark" title="Body"}} 10627 +{"Source":"Test source code from API"} 10628 +{{/code}} 10629 + 10630 +==== Example ==== 10631 + 10632 +---- 10633 + 10634 +(% style="color:#6b6b6b" %)Request 10635 + 10636 +{{code language="php" theme="RDark" title="Create Source code Request"}} 10637 + <?php 10638 + 10639 +$curl = curl_init(); 10640 + 10641 +curl_setopt_array($curl, array( 10642 + CURLOPT_URL => 'https://api.onecount.net/v2/sources', 10643 + CURLOPT_RETURNTRANSFER => true, 10644 + CURLOPT_ENCODING => '', 10645 + CURLOPT_MAXREDIRS => 10, 10646 + CURLOPT_TIMEOUT => 0, 10647 + CURLOPT_FOLLOWLOCATION => true, 10648 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10649 + CURLOPT_CUSTOMREQUEST => 'POST', 10650 + CURLOPT_POSTFIELDS =>'{"Source":"Test source code from API"}', 10651 + CURLOPT_HTTPHEADER => array( 10652 + 'Appkey: {{ONECOUNT API KEY}}' 10653 + ), 10654 +)); 10655 + 10656 +$response = curl_exec($curl); 10657 + 10658 +curl_close($curl); 10659 +echo $response; 10660 +{{/code}} 10661 + 10662 + 10663 +(% style="color:#6b6b6b" %)Response 200 OK 10664 + 10665 +{{code language="yml" theme="RDark" collapse="true" title="Create Source code Response"}} 10666 + { 10667 + "result": { 10668 + "success": "1", 10669 + "error": { 10670 + "code": "", 10671 + "message": "" 10672 + } 10673 + }, 10674 + "Sources": [ 10675 + { 10676 + "Id": 223, 10677 + "Source": "Test source code from API", 10678 + "Description": "", 10679 + "Parent": 0 10680 + } 10681 + ] 10682 +} 10683 +{{/code}} 10684 + 10685 + 10686 +(% id="HPUTUpdateSourcecode" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10687 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Source code(%%) == 10688 + 10689 +---- 10690 + 10691 +{{panel bgColor="#D3D3D3" width="100%"}} 10692 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/sources/~{~{source code id}} 10693 +{{/panel}} 10694 + 10695 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10696 + 10697 +---- 10698 + 10699 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 10700 + 10701 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 10702 + 10703 +---- 10704 + 10705 +{{code language="yml" theme="RDark" title="Body"}} 10706 +{"Source":"Test API","Parent":215} 10707 +{{/code}} 10708 + 10709 +==== Example ==== 10710 + 10711 +---- 10712 + 10713 +(% style="color:#6b6b6b" %)Request 10714 + 10715 +{{code language="php" theme="RDark" title="Update Source code Request"}} 10716 + <?php 10717 + 10718 +$curl = curl_init(); 10719 + 10720 +curl_setopt_array($curl, array( 10721 + CURLOPT_URL => 'https://api.onecount.net/v2/sources/{{source code id}}', 10722 + CURLOPT_RETURNTRANSFER => true, 10723 + CURLOPT_ENCODING => '', 10724 + CURLOPT_MAXREDIRS => 10, 10725 + CURLOPT_TIMEOUT => 0, 10726 + CURLOPT_FOLLOWLOCATION => true, 10727 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10728 + CURLOPT_CUSTOMREQUEST => 'PUT', 10729 + CURLOPT_POSTFIELDS =>'{"Source":"Test API","Parent":215}', 10730 + CURLOPT_HTTPHEADER => array( 10731 + 'Appkey: {{ONECOUNT API KEY}}' 10732 + ), 10733 +)); 10734 + 10735 +$response = curl_exec($curl); 10736 + 10737 +curl_close($curl); 10738 +echo $response; 10739 +{{/code}} 10740 + 10741 + 10742 +(% style="color:#6b6b6b" %)Response 200 OK 10743 + 10744 +{{code language="yml" theme="RDark" collapse="true" title="Update Source code Response"}} 10745 + { 10746 + "result": { 10747 + "success": "1", 10748 + "error": { 10749 + "code": "", 10750 + "message": "" 10751 + } 10752 + }, 10753 + "Sources": [ 10754 + { 10755 + "Id": 223, 10756 + "Source": "Test API", 10757 + "Description": "", 10758 + "Parent": 215 10759 + } 10760 + ] 10761 +} 10762 +{{/code}} 10763 + 10764 + 10765 +(% id="HCOMPONENT:Transactions" class="western" %) 10766 +=== **COMPONENT: Transactions** === 10767 + 3074 3074 (% class="western" %) 3075 - **Sourcescan be lookedupgiven thecodeorId.GETmethodshouldbeusedforlookup.**10769 +This resource is for manipulating transactions resource. A transaction can be created or searched. 3076 3076 3077 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10771 +(% class="wrapped" %) 10772 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3078 3078 ((( 3079 3079 (% class="western" %) 3080 -** Request**3081 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10775 +**Method** 10776 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3082 3082 ((( 3083 3083 (% class="western" %) 3084 -** Type**3085 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10779 +**Url** 10780 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3086 3086 ((( 3087 3087 (% class="western" %) 3088 -** Description**10783 +**Action** 3089 3089 ))) 3090 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)10785 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3091 3091 ((( 3092 3092 (% class="western" %) 3093 - Lookup params3094 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10788 +GET 10789 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3095 3095 ((( 3096 3096 (% class="western" %) 3097 - String3098 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10792 +/transactions 10793 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3099 3099 ((( 3100 3100 (% class="western" %) 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) 10796 +List all transactions 3108 3108 ))) 3109 - 3110 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 10798 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3111 3111 ((( 3112 3112 (% class="western" %) 3113 - **Response**3114 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10801 +GET 10802 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3115 3115 ((( 3116 3116 (% class="western" %) 3117 - **Type**3118 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10805 +/transactions/lookup?UserId=1 10806 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3119 3119 ((( 3120 3120 (% class="western" %) 3121 - **Description**10809 +Lookup all transaction of UserId = 1 3122 3122 ))) 3123 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)10811 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3124 3124 ((( 3125 3125 (% class="western" %) 3126 -S ources3127 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10814 +POST 10815 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3128 3128 ((( 3129 3129 (% class="western" %) 3130 - Sources3131 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)10818 +/transactions 10819 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3132 3132 ((( 3133 3133 (% class="western" %) 3134 - Returnsfoundurcedetails.10822 +JSON of the Transactions type object needs to be sent as post data. Id field should not be sent. 3135 3135 ))) 3136 3136 3137 -\\ 10825 +(% id="HGETAllTransactions" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 10826 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Transactions(%%) == 3138 3138 3139 -(% class="western" %) 3140 -\\ 10828 +---- 3141 3141 10830 +---- 10831 + 10832 +{{panel bgColor="#D3D3D3" width="100%"}} 10833 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions 10834 +{{/panel}} 10835 + 10836 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 10837 + 10838 +---- 10839 + 10840 +(% 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}} 10841 + 10842 +==== Example ==== 10843 + 10844 +---- 10845 + 10846 +(% style="color:#6b6b6b" %)Request 10847 + 10848 +{{code language="php" theme="RDark" title="Get All Transaction Request"}} 10849 + <?php 10850 + 10851 +$curl = curl_init(); 10852 + 10853 +curl_setopt_array($curl, array( 10854 + CURLOPT_URL => 'https://api.onecount.net/v2/transactions', 10855 + CURLOPT_RETURNTRANSFER => true, 10856 + CURLOPT_ENCODING => '', 10857 + CURLOPT_MAXREDIRS => 10, 10858 + CURLOPT_TIMEOUT => 0, 10859 + CURLOPT_FOLLOWLOCATION => true, 10860 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 10861 + CURLOPT_CUSTOMREQUEST => 'GET', 10862 + CURLOPT_HTTPHEADER => array( 10863 + 'Appkey: {{ONECOUNT API KEY}}' 10864 + ), 10865 +)); 10866 + 10867 +$response = curl_exec($curl); 10868 + 10869 +curl_close($curl); 10870 +echo $response; 10871 +{{/code}} 10872 + 10873 + 10874 +(% style="color:#6b6b6b" %)Response 200 OK 10875 + 10876 +{{code language="yml" theme="RDark" collapse="true" title="Get All Transaction Response"}} 10877 + { 10878 + "result": { 10879 + "success": "1", 10880 + "error": { 10881 + "code": "", 10882 + "message": "" 10883 + } 10884 + }, 10885 + "Transactions": [ 10886 + { 10887 + "Id": 10, 10888 + "UserId": 10, 10889 + "TermId": 2, 10890 + "TransactionDate": "2014-07-17", 10891 + "TransactionTime": "10:02:13", 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": 26, 10903 + "UserId": 10, 10904 + "TermId": 2, 10905 + "TransactionDate": "2014-07-17", 10906 + "TransactionTime": "10:41:59", 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": 50, 10918 + "UserId": 26, 10919 + "TermId": 2, 10920 + "TransactionDate": "2014-07-17", 10921 + "TransactionTime": "12:25:38", 10922 + "RequestDate": "2014-07-17", 10923 + "UserIP": "74.201.38.1", 10924 + "SubscriptionType": "n", 10925 + "ProductId": 2, 10926 + "Source": 10, 10927 + "ProductStatus": 2, 10928 + "MediaFilePath": "", 10929 + "Amount": "" 10930 + }, 10931 + { 10932 + "Id": 58, 10933 + "UserId": 10, 10934 + "TermId": 2, 10935 + "TransactionDate": "2014-07-17", 10936 + "TransactionTime": "12:25:43", 10937 + "RequestDate": "2014-07-17", 10938 + "UserIP": "74.201.38.1", 10939 + "SubscriptionType": "r", 10940 + "ProductId": 2, 10941 + "Source": 10, 10942 + "ProductStatus": 2, 10943 + "MediaFilePath": "", 10944 + "Amount": "" 10945 + }, 10946 + { 10947 + "Id": 66, 10948 + "UserId": 42, 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": 74, 10963 + "UserId": 50, 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": 82, 10978 + "UserId": 58, 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": 90, 10993 + "UserId": 66, 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": 98, 11008 + "UserId": 74, 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": 106, 11023 + "UserId": 82, 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": 114, 11038 + "UserId": 90, 11039 + "TermId": 2, 11040 + "TransactionDate": "2014-07-17", 11041 + "TransactionTime": "12:57:11", 11042 + "RequestDate": "2014-07-17", 11043 + "UserIP": "74.201.38.1", 11044 + "SubscriptionType": "n", 11045 + "ProductId": 2, 11046 + "Source": 26, 11047 + "ProductStatus": 2, 11048 + "MediaFilePath": "", 11049 + "Amount": "" 11050 + }, 11051 + { 11052 + "Id": 122, 11053 + "UserId": 98, 11054 + "TermId": 2, 11055 + "TransactionDate": "2014-07-17", 11056 + "TransactionTime": "12:57:11", 11057 + "RequestDate": "2014-07-17", 11058 + "UserIP": "74.201.38.1", 11059 + "SubscriptionType": "n", 11060 + "ProductId": 2, 11061 + "Source": 26, 11062 + "ProductStatus": 2, 11063 + "MediaFilePath": "", 11064 + "Amount": "" 11065 + }, 11066 + { 11067 + "Id": 130, 11068 + "UserId": 42, 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": 138, 11083 + "UserId": 50, 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": 146, 11098 + "UserId": 58, 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": 154, 11113 + "UserId": 66, 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": 162, 11128 + "UserId": 74, 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": 170, 11143 + "UserId": 82, 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": 178, 11158 + "UserId": 90, 11159 + "TermId": 2, 11160 + "TransactionDate": "2014-07-17", 11161 + "TransactionTime": "12:59:10", 11162 + "RequestDate": "2014-07-17", 11163 + "UserIP": "74.201.38.1", 11164 + "SubscriptionType": "r", 11165 + "ProductId": 2, 11166 + "Source": 10, 11167 + "ProductStatus": 2, 11168 + "MediaFilePath": "", 11169 + "Amount": "" 11170 + }, 11171 + { 11172 + "Id": 186, 11173 + "UserId": 98, 11174 + "TermId": 2, 11175 + "TransactionDate": "2014-07-17", 11176 + "TransactionTime": "12:59:10", 11177 + "RequestDate": "2014-07-17", 11178 + "UserIP": "74.201.38.1", 11179 + "SubscriptionType": "r", 11180 + "ProductId": 2, 11181 + "Source": 10, 11182 + "ProductStatus": 2, 11183 + "MediaFilePath": "", 11184 + "Amount": "" 11185 + }, 11186 + { 11187 + "Id": 194, 11188 + "UserId": 162, 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": 202, 11203 + "UserId": 170, 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": 210, 11218 + "UserId": 178, 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": 218, 11233 + "UserId": 186, 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": 226, 11248 + "UserId": 194, 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": 234, 11263 + "UserId": 202, 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": 242, 11278 + "UserId": 210, 11279 + "TermId": 2, 11280 + "TransactionDate": "2014-07-17", 11281 + "TransactionTime": "13:00:42", 11282 + "RequestDate": "2014-07-17", 11283 + "UserIP": "74.201.38.1", 11284 + "SubscriptionType": "n", 11285 + "ProductId": 2, 11286 + "Source": 10, 11287 + "ProductStatus": 2, 11288 + "MediaFilePath": "", 11289 + "Amount": "" 11290 + }, 11291 + { 11292 + "Id": 250, 11293 + "UserId": 218, 11294 + "TermId": 2, 11295 + "TransactionDate": "2014-07-17", 11296 + "TransactionTime": "13:00:42", 11297 + "RequestDate": "2014-07-17", 11298 + "UserIP": "74.201.38.1", 11299 + "SubscriptionType": "n", 11300 + "ProductId": 2, 11301 + "Source": 10, 11302 + "ProductStatus": 2, 11303 + "MediaFilePath": "", 11304 + "Amount": "" 11305 + }, 11306 + { 11307 + "Id": 258, 11308 + "UserId": 282, 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": 266, 11323 + "UserId": 290, 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": 274, 11338 + "UserId": 298, 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": 282, 11353 + "UserId": 306, 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": 290, 11368 + "UserId": 314, 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": 298, 11383 + "UserId": 322, 11384 + "TermId": 2, 11385 + "TransactionDate": "2014-07-17", 11386 + "TransactionTime": "13:02:19", 11387 + "RequestDate": "2014-07-17", 11388 + "UserIP": "74.201.38.1", 11389 + "SubscriptionType": "n", 11390 + "ProductId": 2, 11391 + "Source": 10, 11392 + "ProductStatus": 2, 11393 + "MediaFilePath": "", 11394 + "Amount": "" 11395 + }, 11396 + { 11397 + "Id": 306, 11398 + "UserId": 330, 11399 + "TermId": 2, 11400 + "TransactionDate": "2014-07-17", 11401 + "TransactionTime": "13:02:19", 11402 + "RequestDate": "2014-07-17", 11403 + "UserIP": "74.201.38.1", 11404 + "SubscriptionType": "n", 11405 + "ProductId": 2, 11406 + "Source": 10, 11407 + "ProductStatus": 2, 11408 + "MediaFilePath": "", 11409 + "Amount": "" 11410 + }, 11411 + { 11412 + "Id": 466, 11413 + "UserId": 698, 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": 474, 11428 + "UserId": 706, 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": 482, 11443 + "UserId": 714, 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": 490, 11458 + "UserId": 722, 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": 498, 11473 + "UserId": 730, 11474 + "TermId": 2, 11475 + "TransactionDate": "2014-07-17", 11476 + "TransactionTime": "13:13:06", 11477 + "RequestDate": "2014-07-17", 11478 + "UserIP": "74.201.38.1", 11479 + "SubscriptionType": "n", 11480 + "ProductId": 2, 11481 + "Source": 26, 11482 + "ProductStatus": 2, 11483 + "MediaFilePath": "", 11484 + "Amount": "" 11485 + }, 11486 + { 11487 + "Id": 506, 11488 + "UserId": 738, 11489 + "TermId": 2, 11490 + "TransactionDate": "2014-07-17", 11491 + "TransactionTime": "13:13:06", 11492 + "RequestDate": "2014-07-17", 11493 + "UserIP": "74.201.38.1", 11494 + "SubscriptionType": "n", 11495 + "ProductId": 2, 11496 + "Source": 26, 11497 + "ProductStatus": 2, 11498 + "MediaFilePath": "", 11499 + "Amount": "" 11500 + }, 11501 + { 11502 + "Id": 522, 11503 + "UserId": 754, 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": 530, 11518 + "UserId": 762, 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": 538, 11533 + "UserId": 770, 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": 546, 11548 + "UserId": 778, 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": 554, 11563 + "UserId": 786, 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": 570, 11578 + "UserId": 802, 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": 578, 11593 + "UserId": 810, 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": 586, 11608 + "UserId": 818, 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": 602, 11623 + "UserId": 834, 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": 610, 11638 + "UserId": 842, 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": 618, 11653 + "UserId": 850, 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": 626, 11668 + "UserId": 858, 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": 634, 11683 + "UserId": 866, 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": 642, 11698 + "UserId": 874, 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": 650, 11713 + "UserId": 882, 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": 658, 11728 + "UserId": 890, 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": 666, 11743 + "UserId": 898, 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": 674, 11758 + "UserId": 906, 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": 682, 11773 + "UserId": 914, 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": 690, 11788 + "UserId": 922, 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": 698, 11803 + "UserId": 930, 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": 706, 11818 + "UserId": 938, 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": 714, 11833 + "UserId": 946, 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": 722, 11848 + "UserId": 954, 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": 730, 11863 + "UserId": 962, 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": 738, 11878 + "UserId": 970, 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": 746, 11893 + "UserId": 978, 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": 754, 11908 + "UserId": 986, 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": 762, 11923 + "UserId": 994, 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": 770, 11938 + "UserId": 1002, 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": 778, 11953 + "UserId": 1010, 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": 786, 11968 + "UserId": 1018, 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": 794, 11983 + "UserId": 1026, 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": 802, 11998 + "UserId": 1034, 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": 810, 12013 + "UserId": 1042, 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": 818, 12028 + "UserId": 1050, 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": 826, 12043 + "UserId": 1058, 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": 834, 12058 + "UserId": 1066, 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": 842, 12073 + "UserId": 1074, 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": 850, 12088 + "UserId": 1082, 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": 858, 12103 + "UserId": 1090, 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": 866, 12118 + "UserId": 1098, 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": 874, 12133 + "UserId": 1106, 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": 882, 12148 + "UserId": 1114, 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": 890, 12163 + "UserId": 1122, 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": 898, 12178 + "UserId": 1130, 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": 906, 12193 + "UserId": 1138, 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": 914, 12208 + "UserId": 1146, 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": 922, 12223 + "UserId": 1154, 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": 930, 12238 + "UserId": 1162, 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": 938, 12253 + "UserId": 1170, 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": 946, 12268 + "UserId": 1178, 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": 954, 12283 + "UserId": 1186, 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": 962, 12298 + "UserId": 1194, 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": 970, 12313 + "UserId": 1202, 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": 978, 12328 + "UserId": 1210, 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": 986, 12343 + "UserId": 1218, 12344 + "TermId": 18, 12345 + "TransactionDate": "2014-08-19", 12346 + "TransactionTime": "11:18:55", 12347 + "RequestDate": "2014-08-19", 12348 + "UserIP": "74.201.38.1", 12349 + "SubscriptionType": "n", 12350 + "ProductId": 18, 12351 + "Source": 34, 12352 + "ProductStatus": 2, 12353 + "MediaFilePath": "", 12354 + "Amount": "" 12355 + }, 12356 + { 12357 + "Id": 994, 12358 + "UserId": 1226, 12359 + "TermId": 18, 12360 + "TransactionDate": "2014-08-19", 12361 + "TransactionTime": "11:18:55", 12362 + "RequestDate": "2014-08-19", 12363 + "UserIP": "74.201.38.1", 12364 + "SubscriptionType": "n", 12365 + "ProductId": 18, 12366 + "Source": 34, 12367 + "ProductStatus": 2, 12368 + "MediaFilePath": "", 12369 + "Amount": "" 12370 + }, 12371 + { 12372 + "Id": 1002, 12373 + "UserId": 1234, 12374 + "TermId": 18, 12375 + "TransactionDate": "2014-08-19", 12376 + "TransactionTime": "11:18:55", 12377 + "RequestDate": "2014-08-19", 12378 + "UserIP": "74.201.38.1", 12379 + "SubscriptionType": "n", 12380 + "ProductId": 18, 12381 + "Source": 34, 12382 + "ProductStatus": 2, 12383 + "MediaFilePath": "", 12384 + "Amount": "" 12385 + } 12386 + ] 12387 +} 12388 +{{/code}} 12389 + 12390 + 12391 +(% id="HGETspecificTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12392 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Transaction(%%) == 12393 + 12394 +---- 12395 + 12396 +{{panel bgColor="#D3D3D3" width="100%"}} 12397 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/~{~{Transaction id}} 12398 +{{/panel}} 12399 + 12400 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12401 + 12402 +---- 12403 + 12404 +(% 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}} 12405 + 12406 +==== Example ==== 12407 + 12408 +---- 12409 + 12410 +(% style="color:#6b6b6b" %)Request 12411 + 12412 +{{code language="php" theme="RDark" title="Get specific Transaction Request"}} 12413 + <?php 12414 + 12415 +$curl = curl_init(); 12416 + 12417 +curl_setopt_array($curl, array( 12418 + CURLOPT_URL => 'https://api.onecount.net/v2/transactions/{{Transaction id}}', 12419 + CURLOPT_RETURNTRANSFER => true, 12420 + CURLOPT_ENCODING => '', 12421 + CURLOPT_MAXREDIRS => 10, 12422 + CURLOPT_TIMEOUT => 0, 12423 + CURLOPT_FOLLOWLOCATION => true, 12424 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12425 + CURLOPT_CUSTOMREQUEST => 'GET', 12426 + CURLOPT_HTTPHEADER => array( 12427 + 'Appkey: {{ONECOUNT API KEY}}' 12428 + ), 12429 +)); 12430 + 12431 +$response = curl_exec($curl); 12432 + 12433 +curl_close($curl); 12434 +echo $response; 12435 +{{/code}} 12436 + 12437 + 12438 +(% style="color:#6b6b6b" %)Response 200 OK 12439 + 12440 +{{code language="yml" theme="RDark" collapse="true" title="Get specific Transaction Response"}} 12441 + { 12442 + "result": { 12443 + "success": "1", 12444 + "error": { 12445 + "code": "", 12446 + "message": "" 12447 + } 12448 + }, 12449 + "Transactions": [ 12450 + { 12451 + "Id": 1002, 12452 + "UserId": 1234, 12453 + "TermId": 18, 12454 + "TransactionDate": "2014-08-19", 12455 + "TransactionTime": "11:18:55", 12456 + "RequestDate": "2014-08-19", 12457 + "UserIP": "74.201.38.1", 12458 + "SubscriptionType": "n", 12459 + "ProductId": 18, 12460 + "Source": 34, 12461 + "ProductStatus": 2, 12462 + "MediaFilePath": "", 12463 + "Amount": "" 12464 + } 12465 + ] 12466 +} 12467 +{{/code}} 12468 + 12469 + 12470 +(% id="HGETlookupTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12471 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)lookup Transaction(%%) == 12472 + 12473 +---- 12474 + 12475 +{{panel bgColor="#D3D3D3" width="100%"}} 12476 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions/lookup?UserId=~{~{OCID}} 12477 +{{/panel}} 12478 + 12479 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12480 + 12481 +---- 12482 + 12483 +(% 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}} 12484 + 12485 +=== (% style="color:#212121" %)Query Params(%%) === 12486 + 12487 +---- 12488 + 12489 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)UserId (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key nolink sc-fznXWL" style="color:#212121" %)~{~{OCID}} 12490 + 12491 +==== Example ==== 12492 + 12493 +---- 12494 + 12495 +(% style="color:#6b6b6b" %)Request 12496 + 12497 +{{code language="php" theme="RDark" title="Lookup Transaction Request"}} 12498 + <?php 12499 + 12500 +$curl = curl_init(); 12501 + 12502 +curl_setopt_array($curl, array( 12503 + CURLOPT_URL => 'https://api.onecount.net/v2/transactions/lookup?UserId={{OCID}}', 12504 + CURLOPT_RETURNTRANSFER => true, 12505 + CURLOPT_ENCODING => '', 12506 + CURLOPT_MAXREDIRS => 10, 12507 + CURLOPT_TIMEOUT => 0, 12508 + CURLOPT_FOLLOWLOCATION => true, 12509 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12510 + CURLOPT_CUSTOMREQUEST => 'GET', 12511 + CURLOPT_HTTPHEADER => array( 12512 + 'Appkey: {{ONECOUNT API KEY}}' 12513 + ), 12514 +)); 12515 + 12516 +$response = curl_exec($curl); 12517 + 12518 +curl_close($curl); 12519 +echo $response; 12520 +{{/code}} 12521 + 12522 + 12523 +(% style="color:#6b6b6b" %)Response 200 OK 12524 + 12525 +{{code language="yml" theme="RDark" collapse="true" title="Lookup Transaction Response"}} 12526 + { 12527 + "result": { 12528 + "success": "1", 12529 + "error": { 12530 + "code": "", 12531 + "message": "" 12532 + } 12533 + }, 12534 + "Transactions": [ 12535 + { 12536 + "Id": 52494786, 12537 + "UserId": 1234, 12538 + "TermId": 34, 12539 + "TransactionDate": "2016-01-19", 12540 + "TransactionTime": "15:30:04", 12541 + "RequestDate": "2016-01-19", 12542 + "UserIP": "12.226.247.2", 12543 + "SubscriptionType": "u", 12544 + "ProductId": 34, 12545 + "Source": 0, 12546 + "ProductStatus": 0, 12547 + "MediaFilePath": "", 12548 + "Amount": "" 12549 + }, 12550 + { 12551 + "Id": 42654041, 12552 + "UserId": 1234, 12553 + "TermId": 34, 12554 + "TransactionDate": "2015-09-09", 12555 + "TransactionTime": "11:20:39", 12556 + "RequestDate": "2015-09-09", 12557 + "UserIP": "24.187.236.98", 12558 + "SubscriptionType": "n", 12559 + "ProductId": 34, 12560 + "Source": 0, 12561 + "ProductStatus": 2, 12562 + "MediaFilePath": "", 12563 + "Amount": "" 12564 + }, 12565 + { 12566 + "Id": 97251022, 12567 + "UserId": 1234, 12568 + "TermId": 34, 12569 + "TransactionDate": "2015-06-04", 12570 + "TransactionTime": "14:59:42", 12571 + "RequestDate": "2015-06-04", 12572 + "UserIP": "12.226.247.2", 12573 + "SubscriptionType": "u", 12574 + "ProductId": 34, 12575 + "Source": 0, 12576 + "ProductStatus": 0, 12577 + "MediaFilePath": "", 12578 + "Amount": "" 12579 + }, 12580 + { 12581 + "Id": 55492559, 12582 + "UserId": 1234, 12583 + "TermId": 34, 12584 + "TransactionDate": "2015-04-03", 12585 + "TransactionTime": "16:32:04", 12586 + "RequestDate": "2015-04-03", 12587 + "UserIP": "24.187.236.98", 12588 + "SubscriptionType": "r", 12589 + "ProductId": 34, 12590 + "Source": 58, 12591 + "ProductStatus": 106, 12592 + "MediaFilePath": "", 12593 + "Amount": "" 12594 + }, 12595 + { 12596 + "Id": 98173391, 12597 + "UserId": 1234, 12598 + "TermId": 34, 12599 + "TransactionDate": "2015-04-03", 12600 + "TransactionTime": "15:50:45", 12601 + "RequestDate": "2014-08-19", 12602 + "UserIP": "24.187.236.98", 12603 + "SubscriptionType": "n", 12604 + "ProductId": 34, 12605 + "Source": 34, 12606 + "ProductStatus": 106, 12607 + "MediaFilePath": "", 12608 + "Amount": "" 12609 + }, 12610 + { 12611 + "Id": 91711793, 12612 + "UserId": 1234, 12613 + "TermId": 18, 12614 + "TransactionDate": "2015-04-27", 12615 + "TransactionTime": "14:24:51", 12616 + "RequestDate": "2015-04-27", 12617 + "UserIP": "24.187.236.98", 12618 + "SubscriptionType": "u", 12619 + "ProductId": 18, 12620 + "Source": 0, 12621 + "ProductStatus": 106, 12622 + "MediaFilePath": "", 12623 + "Amount": "" 12624 + }, 12625 + { 12626 + "Id": 74936400, 12627 + "UserId": 1234, 12628 + "TermId": 18, 12629 + "TransactionDate": "2015-04-27", 12630 + "TransactionTime": "12:35:18", 12631 + "RequestDate": "2015-04-27", 12632 + "UserIP": "68.196.187.74", 12633 + "SubscriptionType": "n", 12634 + "ProductId": 18, 12635 + "Source": 34, 12636 + "ProductStatus": 106, 12637 + "MediaFilePath": "", 12638 + "Amount": "" 12639 + }, 12640 + { 12641 + "Id": 21664714, 12642 + "UserId": 1234, 12643 + "TermId": 18, 12644 + "TransactionDate": "2015-04-03", 12645 + "TransactionTime": "15:50:46", 12646 + "RequestDate": "2015-04-03", 12647 + "UserIP": "24.187.236.98", 12648 + "SubscriptionType": "u", 12649 + "ProductId": 18, 12650 + "Source": 0, 12651 + "ProductStatus": 2, 12652 + "MediaFilePath": "", 12653 + "Amount": "" 12654 + }, 12655 + { 12656 + "Id": 81129263, 12657 + "UserId": 1234, 12658 + "TermId": 18, 12659 + "TransactionDate": "2014-08-19", 12660 + "TransactionTime": "11:18:55", 12661 + "RequestDate": "2014-08-19", 12662 + "UserIP": "74.201.38.1", 12663 + "SubscriptionType": "n", 12664 + "ProductId": 18, 12665 + "Source": 34, 12666 + "ProductStatus": 2, 12667 + "MediaFilePath": "", 12668 + "Amount": "" 12669 + }, 12670 + { 12671 + "Id": 30461748, 12672 + "UserId": 1234, 12673 + "ResourceId": 459, 12674 + "TransactionDate": "2023-03-15", 12675 + "TransactionTime": "12:07:55", 12676 + "RequestDate": "2023-03-15", 12677 + "UserIP": "74.201.38.12", 12678 + "SubscriptionType": "n", 12679 + "SourceCode": 0, 12680 + "ProductStatus": 0, 12681 + "MediaFilePath": "", 12682 + "Amount": "" 12683 + }, 12684 + { 12685 + "Id": 25858253, 12686 + "UserId": 1234, 12687 + "ResourceId": 451, 12688 + "TransactionDate": "2023-03-15", 12689 + "TransactionTime": "11:45:19", 12690 + "RequestDate": "2023-03-15", 12691 + "UserIP": "74.201.38.12", 12692 + "SubscriptionType": "n", 12693 + "SourceCode": 0, 12694 + "ProductStatus": 0, 12695 + "MediaFilePath": "", 12696 + "Amount": "" 12697 + }, 12698 + { 12699 + "Id": 69453260, 12700 + "UserId": 1234, 12701 + "ResourceId": 411, 12702 + "TransactionDate": "2022-06-07", 12703 + "TransactionTime": "17:03:14", 12704 + "RequestDate": "2022-06-07", 12705 + "UserIP": "74.201.38.12", 12706 + "SubscriptionType": "n", 12707 + "SourceCode": 0, 12708 + "ProductStatus": 0, 12709 + "MediaFilePath": "", 12710 + "Amount": "" 12711 + }, 12712 + { 12713 + "Id": 51354425, 12714 + "UserId": 1234, 12715 + "ResourceId": 355, 12716 + "TransactionDate": "2020-04-06", 12717 + "TransactionTime": "12:24:08", 12718 + "RequestDate": "2020-04-06", 12719 + "UserIP": "74.201.38.12", 12720 + "SubscriptionType": "n", 12721 + "SourceCode": 0, 12722 + "ProductStatus": 0, 12723 + "MediaFilePath": "", 12724 + "Amount": "" 12725 + } 12726 + ] 12727 +} 12728 +{{/code}} 12729 + 12730 + 12731 +(% id="HPOSTCreateTransaction" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12732 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Transaction(%%) == 12733 + 12734 +---- 12735 + 12736 +{{panel bgColor="#D3D3D3" width="100%"}} 12737 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/transactions 12738 +{{/panel}} 12739 + 12740 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12741 + 12742 +---- 12743 + 12744 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 12745 + 12746 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 12747 + 12748 +---- 12749 + 12750 +{{code language="yml" theme="RDark" title="Body"}} 12751 +{"UserId": 1845775,"TermId":447 ,"UserIP":"192.168.0.1" ,"SubscriptionType":"n" , "ProductId":599 ,"FormId": "8f93834c-adce-4dc7-acd0-f3a1e0f7c63f","Source": 83,"ProductStatus": 2,"Amount":"0.00" ,"PaypalTransId":"" , "MediaFilePath":"" ,"Remarks": "USER SUBSCRIBED","BatchId":"1234" ,"Quantity": 1, "ExpireDate":"20251211" } 12752 +{{/code}} 12753 + 12754 +==== Example ==== 12755 + 12756 +---- 12757 + 12758 +(% style="color:#6b6b6b" %)Request 12759 + 12760 +{{code language="php" theme="RDark" title="Create Transaction Request"}} 12761 + <?php 12762 + 12763 +$curl = curl_init(); 12764 + 12765 +curl_setopt_array($curl, array( 12766 + CURLOPT_URL => 'https://api.onecount.net/v2/transactions', 12767 + CURLOPT_RETURNTRANSFER => true, 12768 + CURLOPT_ENCODING => '', 12769 + CURLOPT_MAXREDIRS => 10, 12770 + CURLOPT_TIMEOUT => 0, 12771 + CURLOPT_FOLLOWLOCATION => true, 12772 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12773 + CURLOPT_CUSTOMREQUEST => 'POST', 12774 + CURLOPT_POSTFIELDS =>'{"UserId": 1845775,"TermId":447 ,"UserIP":"192.168.0.1" ,"SubscriptionType":"n" , "ProductId":599 ,"FormId": "8f93834c-adce-4dc7-acd0-f3a1e0f7c63f","Source": 83,"ProductStatus": 2,"Amount":"0.00" ,"PaypalTransId":"" , "MediaFilePath":"" ,"Remarks": "USER SUBSCRIBED","BatchId":"1234" ,"Quantity": 1, "ExpireDate":"20251211" }', 12775 + CURLOPT_HTTPHEADER => array( 12776 + 'Appkey: {{ONECOUNT API KEY}}' 12777 + ), 12778 +)); 12779 + 12780 +$response = curl_exec($curl); 12781 + 12782 +curl_close($curl); 12783 +echo $response; 12784 +{{/code}} 12785 + 12786 + 12787 +(% style="color:#6b6b6b" %)Response 200 OK 12788 + 12789 +{{code language="yml" theme="RDark" collapse="true" title="Create Transaction Response"}} 12790 + { 12791 + "result": { 12792 + "success": "1", 12793 + "error": { 12794 + "code": "", 12795 + "message": "" 12796 + } 12797 + }, 12798 + "Transactions": { 12799 + "Id": "1234", 12800 + "UserId": 1845775, 12801 + "TermId": 447, 12802 + "TransactionDate": "20231211", 12803 + "TransactionTime": "09:34:26", 12804 + "RequestDate": "20231211", 12805 + "UserIP": "192.168.0.1", 12806 + "SubscriptionType": "n", 12807 + "ProductId": 599, 12808 + "Source": 83, 12809 + "ProductStatus": 2, 12810 + "MediaFilePath": "", 12811 + "Amount": "0.00" 12812 + } 12813 +} 12814 +{{/code}} 12815 + 12816 + 12817 +=== **COMPONENT: Engagements** === 12818 + 3142 3142 (% class="western" %) 3143 - POSTmethodshouldbeusedto create anindividualsourcegiven the sourceparameters.12820 +Engagement can be added, updated and searched for using the engagements resource from the api. 3144 3144 3145 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12822 + 12823 +(% class="wrapped" %) 12824 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3146 3146 ((( 3147 3147 (% class="western" %) 3148 -** Request**3149 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12827 +**Method** 12828 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3150 3150 ((( 3151 3151 (% class="western" %) 3152 -** Type**3153 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12831 +**Url** 12832 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3154 3154 ((( 3155 3155 (% class="western" %) 3156 -** Description**12835 +**Action** 3157 3157 ))) 3158 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)12837 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3159 3159 ((( 3160 3160 (% class="western" %) 3161 - Sources3162 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12840 +GET 12841 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3163 3163 ((( 3164 3164 (% class="western" %) 3165 - Sources3166 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12844 +/(% style="color:#212121" %)engagements 12845 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3167 3167 ((( 3168 3168 (% class="western" %) 3169 - Definesthecontents thatmakes upthesource. Idparametersshould notbe set.12848 +Get engagement data limiting 25. 3170 3170 ))) 3171 - 3172 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12850 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3173 3173 ((( 3174 3174 (% class="western" %) 3175 - **Response**3176 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12853 +GET 12854 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3177 3177 ((( 3178 3178 (% class="western" %) 3179 - **Type**3180 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12857 +/(% style="color:#212121" %)engagements(%%)/<engagement id> 12858 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3181 3181 ((( 3182 3182 (% class="western" %) 3183 - **Description**12861 +Get data for engagement id. The engagement id is a string 3184 3184 ))) 3185 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)12863 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3186 3186 ((( 3187 3187 (% class="western" %) 3188 -S ourceId3189 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12866 +POST 12867 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3190 3190 ((( 3191 3191 (% class="western" %) 3192 - int3193 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12870 +/(% style="color:#212121" %)engagements 12871 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3194 3194 ((( 3195 3195 (% class="western" %) 3196 -Returns created source code id. 3197 -))) 12874 +Create a new engagement 3198 3198 3199 -\\ 3200 - 3201 3201 (% class="western" %) 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;" %) 3205 -((( 3206 -(% class="western" %) 3207 -**Request** 3208 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3209 -((( 3210 -(% class="western" %) 3211 -**Type** 3212 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3213 -((( 3214 -(% class="western" %) 3215 -**Description** 12877 +Parameters required to create the engagement needs to be sent as post data in JSON format. 3216 3216 ))) 3217 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)12879 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3218 3218 ((( 3219 3219 (% class="western" %) 3220 - Sources3221 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12882 +PUT 12883 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3222 3222 ((( 3223 3223 (% class="western" %) 3224 - Sources3225 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12886 +/(% style="color:#212121" %)engagements(%%)/<engagement id> 12887 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3226 3226 ((( 3227 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. 3229 -))) 12890 +Update engagement by engagement id. The engagement id string 3230 3230 3231 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3232 -((( 3233 3233 (% class="western" %) 3234 -**Response** 3235 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3236 -((( 12893 +Parameters required to update the engagement needs to be sent as post data in JSON format. 12894 + 3237 3237 (% class="western" %) 3238 -**Type** 3239 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 3240 -((( 3241 -(% class="western" %) 3242 -**Description** 12896 +NOTE: While updating a select and checkbox type question you need to pass complete set of Choices for that question including the one which are already existing. If not the choices will be overwritten from the choices from the body. 3243 3243 ))) 3244 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 12898 +|(% style="text-align:left; vertical-align:top" %)POST|(% style="text-align:left; vertical-align:top" %)/engagements/metric/<engagement id>|(% style="text-align:left; vertical-align:top" %)((( 12899 +Add options to specific metric in an engagement without passing all options and overriding existing options. 12900 + 12901 +Parameters required to update the engagement needs to be sent as post data in JSON format. 12902 +\\This API is used to add options only for select and checkbox metrics. 12903 +))) 12904 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3245 3245 ((( 3246 3246 (% class="western" %) 3247 -S ourceId3248 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12907 +POST 12908 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3249 3249 ((( 3250 3250 (% class="western" %) 3251 - int3252 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)12911 +(% style="color:#212121" %)/engagements/addUser 12912 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3253 3253 ((( 3254 3254 (% class="western" %) 3255 -Returns updated source id. 12915 +Add user to engagement 12916 + 12917 +(% class="western" %) 12918 +Parameters required to add user to the engagement needs to be sent as post data in JSON format. 3256 3256 ))) 3257 3257 3258 -\\ 12921 +(% id="HGETAllEngagements" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 12922 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Engagements(%%) == 3259 3259 3260 -(% class="western" %) 3261 -\\ 12924 +---- 3262 3262 3263 -(% class="western" %) 3264 -**COMPONENT: Transactions** 12926 +---- 3265 3265 12928 +{{panel bgColor="#D3D3D3" width="100%"}} 12929 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 12930 +{{/panel}} 12931 + 12932 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 12933 + 12934 +---- 12935 + 12936 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 12937 + 12938 +==== Example ==== 12939 + 12940 +---- 12941 + 12942 +(% style="color:#6b6b6b" %)Request 12943 + 12944 +{{code language="php" theme="RDark" title="Get All Engagement Request"}} 12945 +<?php 12946 + 12947 +$curl = curl_init(); 12948 + 12949 +curl_setopt_array($curl, array( 12950 + CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 12951 + CURLOPT_RETURNTRANSFER => true, 12952 + CURLOPT_ENCODING => '', 12953 + CURLOPT_MAXREDIRS => 10, 12954 + CURLOPT_TIMEOUT => 0, 12955 + CURLOPT_FOLLOWLOCATION => true, 12956 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 12957 + CURLOPT_CUSTOMREQUEST => 'GET', 12958 + CURLOPT_HTTPHEADER => array( 12959 + 'Appkey: {{ONECOUNT API KEY}}' 12960 + ), 12961 +)); 12962 + 12963 +$response = curl_exec($curl); 12964 + 12965 +curl_close($curl); 12966 +echo $response; 12967 + 12968 + 12969 +{{/code}} 12970 + 12971 + 12972 +(% style="color:#6b6b6b" %)Response 200 OK 12973 + 12974 +{{code language="yml" theme="RDark" collapse="true" title="Get all engagements Response"}} 12975 + { 12976 + "result": { 12977 + "success": "1", 12978 + "error": { 12979 + "code": "", 12980 + "message": "" 12981 + } 12982 + }, 12983 + "Engagements": [ 12984 + { 12985 + "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 12986 + "Name": "Test Engagement 1", 12987 + "Engagement Fields": [ 12988 + { 12989 + "Name": "id", 12990 + "Type": "text" 12991 + }, 12992 + { 12993 + "Name": "activity_time", 12994 + "Type": "text" 12995 + }, 12996 + { 12997 + "Name": "Name", 12998 + "Type": "text" 12999 + }, 13000 + { 13001 + "Name": "Test Field", 13002 + "Type": "select", 13003 + "Values": [ 13004 + { 13005 + "text": "Test 1", 13006 + "value": "Test1" 13007 + } 13008 + ] 13009 + } 13010 + ] 13011 + } 13012 + ] 13013 +} 13014 +{{/code}} 13015 + 13016 + 13017 +(% id="HGETSpecificEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13018 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Specific Engagement(%%) == 13019 + 13020 +---- 13021 + 13022 +---- 13023 + 13024 +{{panel bgColor="#D3D3D3" width="100%"}} 13025 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement ID}} 13026 +{{/panel}} 13027 + 13028 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13029 + 13030 +---- 13031 + 13032 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13033 + 13034 +==== Example ==== 13035 + 13036 +---- 13037 + 13038 +(% style="color:#6b6b6b" %)Request 13039 + 13040 +{{code language="php" theme="RDark" title="Get Specific Engagement Request"}} 13041 +<?php 13042 + 13043 +$curl = curl_init(); 13044 + 13045 +curl_setopt_array($curl, array( 13046 + CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement ID}}', 13047 + CURLOPT_RETURNTRANSFER => true, 13048 + CURLOPT_ENCODING => '', 13049 + CURLOPT_MAXREDIRS => 10, 13050 + CURLOPT_TIMEOUT => 0, 13051 + CURLOPT_FOLLOWLOCATION => true, 13052 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13053 + CURLOPT_CUSTOMREQUEST => 'GET', 13054 + CURLOPT_HTTPHEADER => array( 13055 + 'Appkey: {{ONECOUNT API KEY}}' 13056 + ), 13057 +)); 13058 + 13059 +$response = curl_exec($curl); 13060 + 13061 +curl_close($curl); 13062 +echo $response; 13063 + 13064 + 13065 +{{/code}} 13066 + 13067 + 13068 +(% style="color:#6b6b6b" %)Response 200 OK 13069 + 13070 +{{code language="yml" theme="RDark" collapse="true" title="Get specific engagement Response"}} 13071 + { 13072 + "result": { 13073 + "success": "1", 13074 + "error": { 13075 + "code": "", 13076 + "message": "" 13077 + } 13078 + }, 13079 + "Engagements": [ 13080 + { 13081 + "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3", 13082 + "Name": "Test Engagement 1", 13083 + "Engagement Fields": [ 13084 + { 13085 + "Name": "id", 13086 + "Type": "text" 13087 + }, 13088 + { 13089 + "Name": "activity_time", 13090 + "Type": "text" 13091 + }, 13092 + { 13093 + "Name": "Name", 13094 + "Type": "text" 13095 + }, 13096 + { 13097 + "Name": "Test Field", 13098 + "Type": "select", 13099 + "Values": [ 13100 + { 13101 + "text": "Test 1", 13102 + "value": "Test1" 13103 + } 13104 + ] 13105 + } 13106 + ] 13107 + } 13108 + ] 13109 +} 13110 +{{/code}} 13111 + 13112 + 13113 +(% id="HPOSTCreateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13114 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Create Engagement(%%) == 13115 + 13116 +---- 13117 + 13118 +{{panel bgColor="#D3D3D3" width="100%"}} 13119 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements 13120 +{{/panel}} 13121 + 13122 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13123 + 13124 +---- 13125 + 13126 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13127 + 13128 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13129 + 13130 +---- 13131 + 13132 +{{code language="yml" theme="RDark" title="Body"}} 13133 +{"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[ 13134 + {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"}, 13135 + {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"}, 13136 + {"Price":[],"Type": "numeric"}, 13137 + {"Transaction Date":[],"Type": "date"} 13138 +]} 13139 +{{/code}} 13140 + 13141 +==== Example ==== 13142 + 13143 +---- 13144 + 13145 +(% style="color:#6b6b6b" %)Request 13146 + 13147 +{{code language="php" theme="RDark" title="Create Engagement Request"}} 13148 +<?php 13149 + 13150 +$curl = curl_init(); 13151 + 13152 +curl_setopt_array($curl, array( 13153 + CURLOPT_URL => 'https://api.onecount.net/v2/engagements', 13154 + CURLOPT_RETURNTRANSFER => true, 13155 + CURLOPT_ENCODING => '', 13156 + CURLOPT_MAXREDIRS => 10, 13157 + CURLOPT_TIMEOUT => 0, 13158 + CURLOPT_FOLLOWLOCATION => true, 13159 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13160 + CURLOPT_CUSTOMREQUEST => 'POST', 13161 + CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[ 13162 + {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"}, 13163 + {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13164 + {"Price":[],"Type": "numeric"}, 13165 + {"Transaction Date":[],"Type": "text"} 13166 +]}', 13167 + CURLOPT_HTTPHEADER => array( 13168 + 'Appkey: {{ONECOUNT API KEY}}', 13169 + 'Content-Type: application/json' 13170 + ), 13171 +)); 13172 + 13173 +$response = curl_exec($curl); 13174 + 13175 +curl_close($curl); 13176 +echo $response; 13177 + 13178 + 13179 +{{/code}} 13180 + 13181 + 13182 +(% style="color:#6b6b6b" %)Response 200 OK 13183 + 13184 +{{code language="yml" theme="RDark" collapse="true" title="Create Engagement Response"}} 13185 + { 13186 + "result": { 13187 + "success": "1", 13188 + "error": { 13189 + "code": "", 13190 + "message": "" 13191 + } 13192 + }, 13193 + "Engagements": [ 13194 + { 13195 + "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565", 13196 + "Name": "Test engagement 2", 13197 + "Metrics": [ 13198 + { 13199 + "Name": "Name", 13200 + "Type": "select", 13201 + "Values": [ 13202 + { 13203 + "text": "Webinar 1", 13204 + "value": "Webinar_1" 13205 + }, 13206 + { 13207 + "text": "Webinar 2", 13208 + "value": "Webinar_2" 13209 + } 13210 + ] 13211 + }, 13212 + { 13213 + "Name": "Attendance Status", 13214 + "Type": "select", 13215 + "Values": [ 13216 + { 13217 + "text": "Attended", 13218 + "value": "attended" 13219 + }, 13220 + { 13221 + "text": "Not Attended", 13222 + "value": "not_attended" 13223 + } 13224 + ] 13225 + }, 13226 + { 13227 + "Name": "Price", 13228 + "Type": "numeric" 13229 + }, 13230 + { 13231 + "Name": "Transaction Date", 13232 + "Type": "text" 13233 + }, 13234 + { 13235 + "Name": "id", 13236 + "Type": "text" 13237 + }, 13238 + { 13239 + "Name": "activity_time", 13240 + "Type": "text" 13241 + } 13242 + ] 13243 + } 13244 + ] 13245 +} 13246 +{{/code}} 13247 + 13248 + 13249 +(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13250 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %)PUT (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Update Engagement(%%) == 13251 + 13252 +---- 13253 + 13254 +{{panel bgColor="#D3D3D3" width="100%"}} 13255 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/~{~{Engagement Id}} 13256 +{{/panel}} 13257 + 13258 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13259 + 13260 +---- 13261 + 13262 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13263 + 13264 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13265 + 13266 +---- 13267 + 13268 +{{code language="yml" theme="RDark" title="Body"}} 13269 +{"Name":"Test engagement 3", "Metrics":[ 13270 + {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13271 + {"Price":[],"Type": "text"} 13272 + ]} 13273 +{{/code}} 13274 + 13275 +==== Example ==== 13276 + 13277 +---- 13278 + 13279 +(% style="color:#6b6b6b" %)Request 13280 + 13281 +{{code language="php" theme="RDark" title="Update Engagement Request"}} 13282 + <?php 13283 + 13284 +$curl = curl_init(); 13285 + 13286 +curl_setopt_array($curl, array( 13287 + CURLOPT_URL => 'https://api.onecount.net/v2/engagements/{{Engagement Id}}', 13288 + CURLOPT_RETURNTRANSFER => true, 13289 + CURLOPT_ENCODING => '', 13290 + CURLOPT_MAXREDIRS => 10, 13291 + CURLOPT_TIMEOUT => 0, 13292 + CURLOPT_FOLLOWLOCATION => true, 13293 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13294 + CURLOPT_CUSTOMREQUEST => 'PUT', 13295 + CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[ 13296 + {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13297 + {"Price":[],"Type": "text"} 13298 + ]}', 13299 + CURLOPT_HTTPHEADER => array( 13300 + 'Appkey: {{ONECOUNT API KEY}}', 13301 + 'Content-Type: application/json' 13302 + ), 13303 +)); 13304 + 13305 +$response = curl_exec($curl); 13306 + 13307 +curl_close($curl); 13308 +echo $response; 13309 + 13310 +{{/code}} 13311 + 13312 + 13313 +(% style="color:#6b6b6b" %)Response 200 OK 13314 + 13315 +{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13316 +{ 13317 + "result": { 13318 + "success": "1", 13319 + "error": { 13320 + "code": "", 13321 + "message": "" 13322 + } 13323 + }, 13324 + "Engagements": [ 13325 + { 13326 + "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13327 + "Name": "Test engagement 3", 13328 + "Metrics": [ 13329 + { 13330 + "Name": "Attendance Status", 13331 + "Type": "select", 13332 + "Values": [ 13333 + { 13334 + "text": "Attended", 13335 + "value": "attended" 13336 + }, 13337 + { 13338 + "text": "Not Attended", 13339 + "value": "not_attended" 13340 + } 13341 + ] 13342 + }, 13343 + { 13344 + "Name": "Price", 13345 + "Type": "text" 13346 + }, 13347 + { 13348 + "Name": "Name", 13349 + "Type": "select", 13350 + "Values": [ 13351 + { 13352 + "text": "Webinar 1", 13353 + "value": "Webinar_1" 13354 + }, 13355 + { 13356 + "text": "Webinar 2", 13357 + "value": "Webinar_2" 13358 + } 13359 + ] 13360 + }, 13361 + { 13362 + "Name": "Transaction Date", 13363 + "Type": "text" 13364 + }, 13365 + { 13366 + "Name": "id", 13367 + "Type": "text" 13368 + }, 13369 + { 13370 + "Name": "activity_time", 13371 + "Type": "text" 13372 + } 13373 + ] 13374 + } 13375 + ] 13376 +} 13377 +{{/code}} 13378 + 13379 + 13380 +(% id="HPUTUpdateEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13381 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" id="cke_bm_7146126S" style="color:#0053b8; display:none" %) (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#0053b8" %) (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)Add options to metric(%%) == 13382 + 13383 +---- 13384 + 13385 +{{panel bgColor="#D3D3D3" width="100%"}} 13386 + (% class="nolink" %)https:~/~/api.onecount.net/v2(%%)/engagements/metric/(% style="color:#212121" %)~{~{Engagement Id}} 13387 +{{/panel}} 13388 + 13389 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13390 + 13391 +---- 13392 + 13393 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13394 + 13395 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13396 + 13397 +---- 13398 + 13399 +{{code language="yml" title="Body"}} 13400 +{"Metrics":[ 13401 + {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13402 + {"lagacy status":[{"text":"c","value":"c"}]} 13403 + ]} 13404 +{{/code}} 13405 + 13406 +==== Example ==== 13407 + 13408 +---- 13409 + 13410 +(% style="color:#6b6b6b" %)Request 13411 + 13412 +{{code language="php" title="(% class=~"documentation-core-item-request-name jbmEtY sc-fzomuh~" style=~"color:#212121~" %)Add options to metric"}} 13413 + <?php 13414 + 13415 +$curl = curl_init(); 13416 + 13417 +curl_setopt_array($curl, array( 13418 + CURLOPT_URL => 'https://api.onecount.net/v2/engagements/metric/{{Engagement Id}}', 13419 + CURLOPT_RETURNTRANSFER => true, 13420 + CURLOPT_ENCODING => '', 13421 + CURLOPT_MAXREDIRS => 10, 13422 + CURLOPT_TIMEOUT => 0, 13423 + CURLOPT_FOLLOWLOCATION => true, 13424 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13425 + CURLOPT_CUSTOMREQUEST => 'PUT', 13426 + CURLOPT_POSTFIELDS =>'{"Metrics":[ 13427 + {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13428 + {"lagacy status":[{"text":"c","value":"c"}]} 13429 + ]}', 13430 + CURLOPT_HTTPHEADER => array( 13431 + 'Appkey: {{ONECOUNT API KEY}}', 13432 + 'Content-Type: application/json' 13433 + ), 13434 +)); 13435 + 13436 +$response = curl_exec($curl); 13437 + 13438 +curl_close($curl); 13439 +echo $response; 13440 + 13441 +{{/code}} 13442 + 13443 + 13444 +(% style="color:#6b6b6b" %)Response 200 OK 13445 + 13446 +{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13447 +{ 13448 + "result": { 13449 + "success": "1", 13450 + "error": { 13451 + "code": "", 13452 + "message": "" 13453 + } 13454 + }, 13455 + "Engagements": [ 13456 + { 13457 + "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357", 13458 + "Name": "Test engagement 3", 13459 + "Metrics": [ 13460 + { 13461 + "Name": "Attendance Status", 13462 + "Type": "select", 13463 + "Values": [ 13464 + { 13465 + "text": "Attended", 13466 + "value": "attended" 13467 + }, 13468 + { 13469 + "text": "Not Attended", 13470 + "value": "not_attended" 13471 + } 13472 + ] 13473 + }, 13474 + { 13475 + "Name": "Price", 13476 + "Type": "text" 13477 + }, 13478 + { 13479 + "Name": "Name", 13480 + "Type": "select", 13481 + "Values": [ 13482 + { 13483 + "text": "Webinar 1", 13484 + "value": "Webinar_1" 13485 + }, 13486 + { 13487 + "text": "Webinar 2", 13488 + "value": "Webinar_2" 13489 + } 13490 + ] 13491 + }, 13492 + { 13493 + "Name": "Transaction Date", 13494 + "Type": "text" 13495 + }, 13496 + { 13497 + "Name": "id", 13498 + "Type": "text" 13499 + }, 13500 + { 13501 + "Name": "activity_time", 13502 + "Type": "text" 13503 + } 13504 + ] 13505 + } 13506 + ] 13507 +} 13508 +{{/code}} 13509 + 13510 + 13511 + 13512 + 13513 + 13514 + 13515 +(% id="HPOSTAddUsertoEngagement" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13516 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Add User to Engagement(%%) == 13517 + 13518 +---- 13519 + 13520 +{{panel bgColor="#D3D3D3" width="100%"}} 13521 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/engagements/addUser 13522 +{{/panel}} 13523 + 13524 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13525 + 13526 +---- 13527 + 13528 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13529 + 13530 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 13531 + 13532 +---- 13533 + 13534 +{{code language="yml" title="Body"}} 13535 +{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","name":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}} 13536 +{{/code}} 13537 + 13538 +==== Example ==== 13539 + 13540 +---- 13541 + 13542 +(% style="color:#6b6b6b" %)Request 13543 + 13544 +{{code language="php" title="Add User to Engagement Request"}} 13545 + <?php 13546 + 13547 +$curl = curl_init(); 13548 + 13549 +curl_setopt_array($curl, array( 13550 + CURLOPT_URL => 'https://api.onecount.net/v2/engagements/addUser', 13551 + CURLOPT_RETURNTRANSFER => true, 13552 + CURLOPT_ENCODING => '', 13553 + CURLOPT_MAXREDIRS => 10, 13554 + CURLOPT_TIMEOUT => 0, 13555 + CURLOPT_FOLLOWLOCATION => true, 13556 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13557 + CURLOPT_CUSTOMREQUEST => 'POST', 13558 + CURLOPT_POSTFIELDS =>'{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","name":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}', 13559 + CURLOPT_HTTPHEADER => array( 13560 + 'Appkey: {{ONECOUNT API KEY}}' 13561 + ), 13562 +)); 13563 + 13564 +$response = curl_exec($curl); 13565 + 13566 +curl_close($curl); 13567 +echo $response; 13568 +{{/code}} 13569 + 13570 + 13571 +(% style="color:#6b6b6b" %)Response 200 OK 13572 + 13573 +{{code language="yml" theme="RDark" collapse="true" title="Add Users to Engagement Response"}} 13574 + { 13575 + "result": { 13576 + "success": "1", 13577 + "error": { 13578 + "code": "", 13579 + "message": "" 13580 + } 13581 + }, 13582 + "Users": { 13583 + "ocid": 1845775, 13584 + "uuid": { 13585 + "type": { 13586 + "name": "uuid" 13587 + }, 13588 + "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7", 13589 + "version": 4 13590 + }, 13591 + "blacklisted": null, 13592 + "demo": { 13593 + "1": "rayaan@one-count.com", 13594 + "2": "user_1701788987", 13595 + "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5" 13596 + }, 13597 + "email": "rayaan@one-count.com", 13598 + "espid": null, 13599 + "known": { 13600 + "type": { 13601 + "name": "smallint" 13602 + }, 13603 + "value": "1" 13604 + }, 13605 + "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b", 13606 + "partners_hash": null, 13607 + "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5", 13608 + "payment_cc_exp": null, 13609 + "payment_vendor_token": null, 13610 + "products": { 13611 + "599": "447" 13612 + }, 13613 + "remarks": null, 13614 + "resources": null, 13615 + "smartlink_hash": null, 13616 + "subscription_active_resource_info": null, 13617 + "subscription_active_term_info": { 13618 + "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}" 13619 + }, 13620 + "subscription_log": { 13621 + "type": { 13622 + "valueType": { 13623 + "name": "varchar" 13624 + } 13625 + }, 13626 + "values": [ 13627 + "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:09:01\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702303741,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}", 13628 + "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:20:49\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702304449,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}", 13629 + "{\"batch_id\":\"1234\",\"__cuuid\":\"49\",\"subscription_time\":\"2023-12-11 09:34:26\",\"product_status\":\"2\",\"promo_code\":\"\",\"type\":\"term\",\"expiration_date\":20251211,\"subscription_date\":20231211,\"ocid\":1845775,\"product_uid\":\"599\",\"timestamp\":1702305266,\"amount\":0,\"quantity\":1,\"import_id\":\"83\",\"ip\":\"10.10.20.7\",\"form_id\":\"8f93834c-adce-4dc7-acd0-f3a1e0f7c63f\",\"previous_expiration_date\":20231211,\"term_uid\":\"447\",\"renewed\":1,\"request_date\":20231211,\"payment_transaction_id\":\"0\",\"subscription_type\":\"n\",\"payment_processor\":\"\",\"remarks\":\"USER SUBSCRIBED\",\"user_uid\":\"a1425a04-4c0c-4790-bcd6-425bc7729fd7\"}" 13630 + ] 13631 + }, 13632 + "subscription_log_by_resource": null, 13633 + "subscription_source_code": [ 13634 + "83" 13635 + ], 13636 + "targets": null, 13637 + "timestamp": { 13638 + "type": { 13639 + "name": "bigint" 13640 + }, 13641 + "value": "1701788987" 13642 + }, 13643 + "unconfirmed": null, 13644 + "update_time": null, 13645 + "username": "user_1701788987", 13646 + "vendor_blacklisted": null, 13647 + "vendor_esp": null, 13648 + "vendor_unconfirmed": null 13649 + } 13650 +} 13651 +{{/code}} 13652 + 13653 + 13654 +(% id="HCOMPONENT:Segments" class="western" %) 13655 +=== **COMPONENT: Segments** === 13656 + 13657 +* 13658 +** === 13659 + 3266 3266 (% class="western" %) 3267 -This resource is for manipulating transactionsresource. Atransaction can becreated or searched.13661 +This resource is for manipulating segment for a resource. A segment can be searched (or) add users to segment (or) get all segment for a user. 3268 3268 3269 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)13663 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3270 3270 ((( 3271 3271 (% class="western" %) 3272 3272 **Method** 3273 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13667 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3274 3274 ((( 3275 3275 (% class="western" %) 3276 3276 **Url** 3277 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13671 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3278 3278 ((( 3279 3279 (% class="western" %) 3280 3280 **Action** 3281 3281 ))) 3282 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)13676 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3283 3283 ((( 3284 3284 (% class="western" %) 3285 3285 GET 3286 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13680 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3287 3287 ((( 3288 3288 (% class="western" %) 3289 -/ transactions3290 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13683 +/(% style="color:#212121" %)segments 13684 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3291 3291 ((( 3292 3292 (% class="western" %) 3293 - List alltransactions13687 +Get all segments. 3294 3294 ))) 3295 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)13689 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3296 3296 ((( 3297 3297 (% class="western" %) 3298 3298 GET 3299 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13693 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3300 3300 ((( 3301 3301 (% class="western" %) 3302 -/tr ansactions/lookup?UserId=13303 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13696 +/(% style="color:#212121" %)segments(%%)/(% class="resolvedVariable" style="text-decoration:none" %)~{~{Segment id}} 13697 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3304 3304 ((( 3305 3305 (% class="western" %) 3306 - Lookup alltransaction ofUserId=113700 +Get specific segment based on segment id. 3307 3307 ))) 3308 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)13702 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3309 3309 ((( 3310 3310 (% class="western" %) 3311 3311 POST 3312 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13706 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3313 3313 ((( 3314 3314 (% class="western" %) 3315 -/tr ansactions3316 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13709 +/(% style="color:#212121" %)segments/addUsers 13710 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3317 3317 ((( 3318 3318 (% class="western" %) 3319 - JSONof theTransactionstypeobjectneedsto besentas post data.Id field should not be sent.13713 +Add users to segment. 3320 3320 ))) 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;" %) 13715 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3331 3331 ((( 3332 3332 (% class="western" %) 3333 - **Request**3334 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13718 +GET 13719 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3335 3335 ((( 3336 3336 (% class="western" %) 3337 - **Type**3338 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)13722 +/(% style="color:#212121" %)segments/users/(% class="resolvedVariable" style="text-decoration:none" %)~{~{ocid}} 13723 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3339 3339 ((( 3340 3340 (% class="western" %) 3341 - **Description**13726 +Get all segment user has be subscribed based on user id. 3342 3342 ))) 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. 3355 3355 3356 -(% class=" western" %)3357 - Params:13729 +(% id="HGETAllSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13730 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)All Segments(%%) == 3358 3358 3359 -(% class="western" %) 3360 -UserId: Id of the user whose transaction is to be looked up (Int) 13732 +---- 3361 3361 3362 -(% class="western" %) 3363 -StartDate: Date from which the start should happen. Only valid when UserId is set. (Date) 13734 +---- 3364 3364 3365 - (%class="western")3366 - EndDate:Whenthesearch should end.Onlyvalid whenUserIdisset. (Date)3367 - )))13736 +{{panel bgColor="#D3D3D3" width="100%"}} 13737 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments 13738 +{{/panel}} 3368 3368 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 -))) 13740 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 3395 3395 3396 - \\13742 +---- 3397 3397 3398 - **Sampleresponse for/(%style="color:rgb(80,80,80);" %)transactions/lookup?UserId=25255105:(%%)**13744 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 3399 3399 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 -))) 13746 +==== Example ==== 3407 3407 3408 - \\13748 +---- 3409 3409 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. 13750 +(% style="color:#6b6b6b" %)Request 3412 3412 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 -))) 13752 +{{code language="php" theme="RDark" title="Get All Segments Request"}} 13753 +<?php 3439 3439 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 -))) 13755 +$curl = curl_init(); 3466 3466 3467 -\\ 13757 +curl_setopt_array($curl, array( 13758 + CURLOPT_URL => 'https://api.onecount.net/v2/segments', 13759 + CURLOPT_RETURNTRANSFER => true, 13760 + CURLOPT_ENCODING => '', 13761 + CURLOPT_MAXREDIRS => 10, 13762 + CURLOPT_TIMEOUT => 0, 13763 + CURLOPT_FOLLOWLOCATION => true, 13764 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13765 + CURLOPT_CUSTOMREQUEST => 'GET', 13766 + CURLOPT_HTTPHEADER => array( 13767 + 'Appkey: {{ONECOUNT API KEY}}' 13768 + ), 13769 +)); 3468 3468 3469 - \\13771 +$response = curl_exec($curl); 3470 3470 3471 - (%class="western" %)3472 - **COMPONENT:Leads3473 - **13773 +curl_close($curl); 13774 +echo $response; 13775 +{{/code}} 3474 3474 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. 3477 3477 3478 -(% class="western" %) 3479 -\\ 13778 +(% style="color:#6b6b6b" %)Response 200 OK 3480 3480 3481 -(% class="western" %) 3482 -\\ 13780 +{{code language="yml" theme="RDark" collapse="true" title="Get All Segments Response"}} 13781 + { 13782 + "result": { 13783 + "success": "1", 13784 + "error": { 13785 + "code": "", 13786 + "message": "" 13787 + } 13788 + }, 13789 + "Segments": [ 13790 + { 13791 + "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43", 13792 + "Name": "2022 Use Cases PDF Download" 13793 + }, 13794 + { 13795 + "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 13796 + "Name": "58-percent conversion-rate" 13797 + }, 13798 + { 13799 + "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138", 13800 + "Name": "Audience Marketing Pop-Up" 13801 + }, 13802 + { 13803 + "Id": "68219b37-c155-4459-a5ce-497261286ffe", 13804 + "Name": "Bold Minds Reminders" 13805 + }, 13806 + { 13807 + "Id": "6450defc-7658-4182-9c2a-a8f8420f801e", 13808 + "Name": "Demo - Aviator's Guide - NL Popup" 13809 + }, 13810 + { 13811 + "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0", 13812 + "Name": "Getting 80-Percent Conversion Rates Pop-up" 13813 + }, 13814 + { 13815 + "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 13816 + "Name": "Holiday Special Offer - 3 mo. Pilot" 13817 + }, 13818 + { 13819 + "Id": "16305ad0-8e65-4085-942e-04d99fd39207", 13820 + "Name": "Identity Resolution Test II" 13821 + }, 13822 + { 13823 + "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3", 13824 + "Name": "Live ONEcount Popup Example Segment" 13825 + }, 13826 + { 13827 + "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a", 13828 + "Name": "Live webinar - June 15 - Accelerate Revenue" 13829 + }, 13830 + { 13831 + "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de", 13832 + "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign" 13833 + }, 13834 + { 13835 + "Id": "d883ecdb-5307-416d-9558-c196472021c9", 13836 + "Name": "New Year - Increase Revenue 30-Percent" 13837 + }, 13838 + { 13839 + "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73", 13840 + "Name": "OC Test" 13841 + }, 13842 + { 13843 + "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 13844 + "Name": "Something big" 13845 + }, 13846 + { 13847 + "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 13848 + "Name": "Something No Other Platform Has" 13849 + }, 13850 + { 13851 + "Id": "5eaa0345-a825-4ba0-a787-336312a77744", 13852 + "Name": "Something Revolutionary" 13853 + }, 13854 + { 13855 + "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 13856 + "Name": "Something that will change your life" 13857 + }, 13858 + { 13859 + "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 13860 + "Name": "Something You Have Always Wanted" 13861 + }, 13862 + { 13863 + "Id": "28361c73-e253-49bb-a791-5481be2070a0", 13864 + "Name": "Something You Never Thought Possible" 13865 + }, 13866 + { 13867 + "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814", 13868 + "Name": "Test behaviour " 13869 + }, 13870 + { 13871 + "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 13872 + "Name": "Test behaviour banner segment" 13873 + }, 13874 + { 13875 + "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561", 13876 + "Name": "Test behaviour combo" 13877 + }, 13878 + { 13879 + "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a", 13880 + "Name": "Test behaviour content" 13881 + }, 13882 + { 13883 + "Id": "89424642-1363-476e-9842-4f0a2544151f", 13884 + "Name": "Test behaviour email" 13885 + }, 13886 + { 13887 + "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c", 13888 + "Name": "Test demographic segments" 13889 + }, 13890 + { 13891 + "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd", 13892 + "Name": "Test with unknown only selecting all filters" 13893 + } 13894 + ] 13895 +} 13896 +{{/code}} 3483 3483 3484 -(% class="western" %) 3485 -\\ 3486 3486 3487 -(% class=" western" %)3488 - \\13899 +(% id="HGETspecificSegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13900 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)specific Segments(%%) == 3489 3489 3490 -(% class="western" %) 3491 -\\ 13902 +---- 3492 3492 13904 +{{panel bgColor="#D3D3D3" width="100%"}} 13905 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color:#212121" %)/segments/~{~{segment id}} 13906 +{{/panel}} 13907 + 13908 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 13909 + 13910 +---- 13911 + 13912 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 13913 + 13914 +==== Example ==== 13915 + 13916 +---- 13917 + 13918 +(% style="color:#6b6b6b" %)Request 13919 + 13920 +{{code language="php" theme="RDark" title="Get specific Segment Request"}} 13921 + <?php 13922 + 13923 +$curl = curl_init(); 13924 + 13925 +curl_setopt_array($curl, array( 13926 + CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}', 13927 + CURLOPT_RETURNTRANSFER => true, 13928 + CURLOPT_ENCODING => '', 13929 + CURLOPT_MAXREDIRS => 10, 13930 + CURLOPT_TIMEOUT => 0, 13931 + CURLOPT_FOLLOWLOCATION => true, 13932 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13933 + CURLOPT_CUSTOMREQUEST => 'GET', 13934 + CURLOPT_HTTPHEADER => array( 13935 + 'Appkey: {{ONECOUNT API KEY}}' 13936 + ), 13937 +)); 13938 + 13939 +$response = curl_exec($curl); 13940 + 13941 +curl_close($curl); 13942 +echo $response; 13943 +{{/code}} 13944 + 13945 + 13946 +(% style="color:#6b6b6b" %)Response 200 OK 13947 + 13948 +{{code language="yml" theme="RDark" collapse="true" title="Get specific Segments Response"}} 13949 + { 13950 + "result": { 13951 + "success": "1", 13952 + "error": { 13953 + "code": "", 13954 + "message": "" 13955 + } 13956 + }, 13957 + "Segments": { 13958 + "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4", 13959 + "Demos": { 13960 + "_empty_": [], 13961 + "type": "" 13962 + }, 13963 + "Description": "", 13964 + "Action": { 13965 + "action": {} 13966 + }, 13967 + "Name": "Test behaviour banner segment", 13968 + "Behaviours": [ 13969 + { 13970 + "end_date": "05/26/2022", 13971 + "date_type": "Future", 13972 + "sub_category_values": [], 13973 + "sub_category": "clicked", 13974 + "category": "1", 13975 + "targets": [ 13976 + "all" 13977 + ], 13978 + "joining_logic": "AND", 13979 + "frequency": "1", 13980 + "start_date": "04/26/2022", 13981 + "day_count": "100" 13982 + } 13983 + ], 13984 + "Accounts": [] 13985 + } 13986 +} 13987 +{{/code}} 13988 + 13989 + 13990 +(% id="HPOSTAdduserstosegments" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 13991 +== (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#ad7a03" %)POST(% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %) Add users to segments(%%) == 13992 + 13993 +---- 13994 + 13995 +{{panel bgColor="#D3D3D3" width="100%"}} 13996 +(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/addUsers 13997 +{{/panel}} 13998 + 13999 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 14000 + 14001 +---- 14002 + 14003 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 14004 + 14005 +=== (% style="color:#212121" %)Body (% style="color:#6b6b6b" %)raw (json)(%%) === 14006 + 14007 +---- 14008 + 14009 +{{code language="yml" theme="RDark" title="Body"}} 14010 +{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]} 14011 +{{/code}} 14012 + 14013 +==== Example ==== 14014 + 14015 +---- 14016 + 14017 +(% style="color:#6b6b6b" %)Request 14018 + 14019 +{{code language="php" theme="RDark" title="Add users to Segment Request"}} 14020 +<?php 14021 + 14022 +$curl = curl_init(); 14023 + 14024 +curl_setopt_array($curl, array( 14025 + CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers', 14026 + CURLOPT_RETURNTRANSFER => true, 14027 + CURLOPT_ENCODING => '', 14028 + CURLOPT_MAXREDIRS => 10, 14029 + CURLOPT_TIMEOUT => 0, 14030 + CURLOPT_FOLLOWLOCATION => true, 14031 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14032 + CURLOPT_CUSTOMREQUEST => 'POST', 14033 + CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}', 14034 + CURLOPT_HTTPHEADER => array( 14035 + 'Appkey: {{ONECOUNT API KEY}}', 14036 + 'Content-Type: application/json' 14037 + ), 14038 +)); 14039 + 14040 +$response = curl_exec($curl); 14041 + 14042 +curl_close($curl); 14043 +echo $response; 14044 +{{/code}} 14045 + 14046 + 14047 +(% style="color:#6b6b6b" %)Response 200 OK 14048 + 14049 +{{code language="yml" theme="RDark" collapse="true" title="Add users to segment Response"}} 14050 +{ 14051 + "result": { 14052 + "success": "1", 14053 + "error": { 14054 + "code": "", 14055 + "message": "" 14056 + } 14057 + }, 14058 + "Segments": { 14059 + "Error user ids": [ 14060 + 676172, 14061 + 2134321 14062 + ], 14063 + "Inserted user ids": [ 14064 + 164499 14065 + ] 14066 + } 14067 +} 14068 +{{/code}} 14069 + 14070 + 14071 +(% id="HGETallsegmentsforaUser" style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %) 14072 +== (% class="imuBmi sc-fzoaKM" style="color:#007f31" %)GET (% class="documentation-core-item-request-name jbmEtY sc-fzomuh" style="color:#212121" %)all segments for a User(%%) == 14073 + 14074 +---- 14075 + 14076 +{{panel bgColor="#D3D3D3" width="100%"}} 14077 + (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color:#212121" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration:none" %)~{~{ocid}} 14078 +{{/panel}} 14079 + 14080 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 14081 + 14082 +---- 14083 + 14084 +(% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} 14085 + 14086 +==== Example ==== 14087 + 14088 +---- 14089 + 14090 +(% style="color:#6b6b6b" %)Request 14091 + 14092 +{{code language="php" theme="RDark" title="Get all segments for a user Request"}} 14093 +<?php 14094 + 14095 +$curl = curl_init(); 14096 + 14097 +curl_setopt_array($curl, array( 14098 + CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••', 14099 + CURLOPT_RETURNTRANSFER => true, 14100 + CURLOPT_ENCODING => '', 14101 + CURLOPT_MAXREDIRS => 10, 14102 + CURLOPT_TIMEOUT => 0, 14103 + CURLOPT_FOLLOWLOCATION => true, 14104 + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 14105 + CURLOPT_CUSTOMREQUEST => 'GET', 14106 + CURLOPT_HTTPHEADER => array( 14107 + 'Appkey: {{ONECOUNT API KEY}}' 14108 + ), 14109 +)); 14110 + 14111 +$response = curl_exec($curl); 14112 + 14113 +curl_close($curl); 14114 +echo $response; 14115 +{{/code}} 14116 + 14117 + 14118 +(% style="color:#6b6b6b" %)Response 200 OK 14119 + 14120 +{{code language="yml" theme="RDark" collapse="true" title="Get all Segments for a user Response"}} 14121 +{ 14122 + "result": { 14123 + "success": "1", 14124 + "error": { 14125 + "code": "", 14126 + "message": "" 14127 + } 14128 + }, 14129 + "Segments": [ 14130 + "0d37c79e-deb2-4287-9444-ae4812a9d8f0", 14131 + "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e", 14132 + "24cf72e9-ad71-489c-89ef-b80d0c42e2e2", 14133 + "28361c73-e253-49bb-a791-5481be2070a0", 14134 + "28774f7c-9fd3-4dff-a42e-683460f437c0", 14135 + "5eaa0345-a825-4ba0-a787-336312a77744", 14136 + "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa", 14137 + "a639cb1f-6509-447b-a1d7-93a8e8ef61b1", 14138 + "bcb403a2-c0a1-414f-90c1-277a41009c97", 14139 + "c905d313-8d5e-45c1-aaab-7f8c8adc2bea", 14140 + "d883ecdb-5307-416d-9558-c196472021c9", 14141 + "d8d1bc9d-ede2-4c82-a747-10ab9fb979de" 14142 + ] 14143 +} 14144 +{{/code}} 14145 + 14146 + 14147 +(% id="HCOMPONENT:Leads" class="western" %) 14148 +=== **COMPONENT: Leads** === 14149 + 14150 +* 14151 +** === 14152 + 3493 3493 (% class="western" %) 3494 -**Telemarketing Leads 3495 -** 14154 +Stats resource can be used to submit any type of stat collected on the third party systems. Each type of stat will be represented by a sub-resource. So, for telemarketing it could be **/stats/telemarketing** endpoint, for videos it can be **/stats/videos**, for webinar it could be **/stats/webinars** etc. Right now we only have telemarketing sub-resource. 3496 3496 3497 3497 (% class="western" %) 14157 +**Telemarketing Leads** 3498 3498 14159 + 3499 3499 This resource is for manipulating telemarketing stat resource. A telemarketing stat can be created or listed. 3500 3500 3501 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14162 +(% class="wrapped" %) 14163 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3502 3502 ((( 3503 3503 (% class="western" %) 3504 3504 **Method** 3505 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14167 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3506 3506 ((( 3507 3507 (% class="western" %) 3508 3508 **Url** 3509 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14171 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3510 3510 ((( 3511 3511 (% class="western" %) 3512 3512 **Action** 3513 3513 ))) 3514 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14176 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3515 3515 ((( 3516 3516 (% class="western" %) 3517 3517 GET 3518 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14180 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3519 3519 ((( 3520 3520 (% class="western" %) 3521 3521 /stats/telemarketing 3522 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14184 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3523 3523 ((( 3524 3524 (% class="western" %) 3525 3525 List telemarketing stats 3526 3526 ))) 3527 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14189 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3528 3528 ((( 3529 3529 (% class="western" %) 3530 3530 GET 3531 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14193 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3532 3532 ((( 3533 3533 (% class="western" %) 3534 3534 /stats/telemarketing/1000 3535 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14197 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3536 3536 ((( 3537 3537 (% class="western" %) 3538 3538 Get telemarketing stat whose id is 1000 in the system. 3539 3539 ))) 3540 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14202 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3541 3541 ((( 3542 3542 (% class="western" %) 3543 3543 POST 3544 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14206 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3545 3545 ((( 3546 3546 (% class="western" %) 3547 3547 /stats/telemarketing 3548 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14210 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3549 3549 ((( 3550 3550 (% class="western" %) 3551 3551 JSON of the Telemarketing type object needs to be sent as post data. Id field should not be sent. 3552 3552 ))) 3553 3553 3554 -\\ 3555 - 3556 3556 (% class="western" %) 3557 3557 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. 3558 3558 3559 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14219 +(% class="wrapped" %) 14220 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3560 3560 ((( 3561 3561 (% class="western" %) 3562 3562 **Request** 3563 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14224 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3564 3564 ((( 3565 3565 (% class="western" %) 3566 3566 **Type** 3567 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14228 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3568 3568 ((( 3569 3569 (% class="western" %) 3570 3570 **Description** 3571 3571 ))) 3572 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14233 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3573 3573 ((( 3574 3574 (% class="western" %) 3575 3575 Telemarketing 3576 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14237 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3577 3577 ((( 3578 3578 (% class="western" %) 3579 3579 Telemarketing 3580 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14241 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3581 3581 ((( 3582 3582 (% class="western" %) 3583 3583 Contains fields that define a telemarketing stat. Id field should not be set. Refer to telemarketing object in references section. ... ... @@ -3610,7 +3610,7 @@ 3610 3610 "ResourceId":"250", 3611 3611 3612 3612 (% class="western" %) 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"]]",14274 +"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"]]", 3614 3614 3615 3615 (% class="western" %) 3616 3616 "PageTitle":"tests" ... ... @@ -3624,57 +3624,48 @@ 3624 3624 (% class="western" %) 3625 3625 } 3626 3626 ))) 3627 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14288 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3628 3628 ((( 3629 3629 (% class="western" %) 3630 - \\3631 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14291 + 14292 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3632 3632 ((( 3633 3633 (% class="western" %) 3634 - \\3635 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14295 + 14296 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3636 3636 ((( 3637 3637 (% class="western" %) 3638 - \\14299 + 3639 3639 ))) 3640 3640 3641 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14302 +(% class="wrapped" %) 14303 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3642 3642 ((( 3643 3643 (% class="western" %) 3644 3644 **Response** 3645 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14307 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3646 3646 ((( 3647 3647 (% class="western" %) 3648 3648 **Type** 3649 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14311 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3650 3650 ((( 3651 3651 (% class="western" %) 3652 3652 **Description** 3653 3653 ))) 3654 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14316 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3655 3655 ((( 3656 3656 (% class="western" %) 3657 3657 Ids 3658 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14320 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3659 3659 ((( 3660 3660 (% class="western" %) 3661 3661 String 3662 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14324 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3663 3663 ((( 3664 3664 (% class="western" %) 3665 3665 Returns telemarketing ids of the newly created transaction. If multiple stats are sent, multiple ids are returned in cvs format. 3666 3666 ))) 3667 3667 3668 -\\ 3669 - 3670 -\\ 3671 - 3672 -\\ 3673 - 3674 -\\ 3675 - 3676 -\\ 3677 - 3678 3678 (% class="western" %) 3679 3679 **API REFERENCE** 3680 3680 ... ... @@ -3681,54 +3681,55 @@ 3681 3681 (% class="western" %) 3682 3682 **Type: Questions** 3683 3683 3684 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14336 +(% class="wrapped" %) 14337 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3685 3685 ((( 3686 3686 (% class="western" %) 3687 3687 **Property Name** 3688 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14341 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3689 3689 ((( 3690 3690 (% class="western" %) 3691 3691 **Type** 3692 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14345 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3693 3693 ((( 3694 3694 (% class="western" %) 3695 3695 **Description** 3696 3696 ))) 3697 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14350 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3698 3698 ((( 3699 3699 (% class="western" %) 3700 3700 Id 3701 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14354 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3702 3702 ((( 3703 3703 (% class="western" %) 3704 3704 Int 3705 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14358 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3706 3706 ((( 3707 3707 (% class="western" %) 3708 3708 Id of the question. 3709 3709 ))) 3710 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14363 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3711 3711 ((( 3712 3712 (% class="western" %) 3713 3713 Text 3714 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14367 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3715 3715 ((( 3716 3716 (% class="western" %) 3717 3717 String 3718 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14371 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3719 3719 ((( 3720 3720 (% class="western" %) 3721 3721 Text of the question. 3722 3722 ))) 3723 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14376 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3724 3724 ((( 3725 3725 (% class="western" %) 3726 3726 Type 3727 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14380 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3728 3728 ((( 3729 3729 (% class="western" %) 3730 3730 Int 3731 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14384 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3732 3732 ((( 3733 3733 (% class="western" %) 3734 3734 Determines which type of question it is. Textbox, checkbox, select, radio. ... ... @@ -3740,28 +3740,28 @@ 3740 3740 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. 3741 3741 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. 3742 3742 ))) 3743 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14396 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3744 3744 ((( 3745 3745 (% class="western" %) 3746 3746 Choices 3747 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14400 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3748 3748 ((( 3749 3749 (% class="western" %) 3750 3750 choices 3751 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14404 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3752 3752 ((( 3753 3753 (% class="western" %) 3754 3754 If multiple choice question this field will have the choices. 3755 3755 ))) 3756 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14409 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3757 3757 ((( 3758 3758 (% class="western" %) 3759 3759 Alias 3760 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14413 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3761 3761 ((( 3762 3762 (% class="western" %) 3763 3763 String 3764 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14417 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3765 3765 ((( 3766 3766 (% class="western" %) 3767 3767 Alias for admin purpose. ... ... @@ -3768,476 +3768,467 @@ 3768 3768 ))) 3769 3769 3770 3770 (% class="western" %) 3771 -\\ 3772 - 3773 -(% class="western" %) 3774 -\\ 3775 - 3776 -(% class="western" %) 3777 3777 **Type: Choices** 3778 3778 3779 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14426 +(% class="wrapped" %) 14427 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3780 3780 ((( 3781 3781 (% class="western" %) 3782 3782 **Property Name** 3783 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14431 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3784 3784 ((( 3785 3785 (% class="western" %) 3786 3786 **Type** 3787 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14435 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3788 3788 ((( 3789 3789 (% class="western" %) 3790 3790 **Description** 3791 3791 ))) 3792 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14440 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3793 3793 ((( 3794 3794 (% class="western" %) 3795 3795 Id 3796 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14444 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3797 3797 ((( 3798 3798 (% class="western" %) 3799 3799 int 3800 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14448 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3801 3801 ((( 3802 3802 (% class="western" %) 3803 3803 Id of the choice. 3804 3804 ))) 3805 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14453 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3806 3806 ((( 3807 3807 (% class="western" %) 3808 3808 Text 3809 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14457 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3810 3810 ((( 3811 3811 (% class="western" %) 3812 3812 string 3813 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14461 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3814 3814 ((( 3815 3815 (% class="western" %) 3816 3816 Display text of choice. 3817 3817 ))) 3818 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14466 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3819 3819 ((( 3820 3820 (% class="western" %) 3821 3821 Value 3822 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14470 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3823 3823 ((( 3824 3824 (% class="western" %) 3825 3825 String 3826 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14474 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3827 3827 ((( 3828 3828 (% class="western" %) 3829 3829 Value stored in db. 3830 3830 ))) 3831 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14479 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3832 3832 ((( 3833 3833 (% class="western" %) 3834 3834 Order 3835 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14483 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3836 3836 ((( 3837 3837 (% class="western" %) 3838 3838 Int 3839 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14487 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3840 3840 ((( 3841 3841 (% class="western" %) 3842 3842 Display order. 3843 3843 ))) 3844 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14492 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3845 3845 ((( 3846 3846 (% class="western" %) 3847 3847 QuestionId 3848 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14496 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3849 3849 ((( 3850 3850 (% class="western" %) 3851 3851 Int 3852 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14500 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3853 3853 ((( 3854 3854 (% class="western" %) 3855 3855 Tied to which question id. 3856 3856 ))) 3857 3857 3858 -\\ 3859 - 3860 3860 (% class="western" %) 3861 3861 **Type: Users** 3862 3862 3863 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14509 +(% class="wrapped" %) 14510 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3864 3864 ((( 3865 3865 (% class="western" %) 3866 3866 **Property Name** 3867 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14514 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3868 3868 ((( 3869 3869 (% class="western" %) 3870 3870 **Type** 3871 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14518 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3872 3872 ((( 3873 3873 (% class="western" %) 3874 3874 **Description** 3875 3875 ))) 3876 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14523 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3877 3877 ((( 3878 3878 (% class="western" %) 3879 3879 Id 3880 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14527 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3881 3881 ((( 3882 3882 (% class="western" %) 3883 3883 Int 3884 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14531 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3885 3885 ((( 3886 3886 (% class="western" %) 3887 3887 ID of the user in ONEcount. 3888 3888 ))) 3889 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14536 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3890 3890 ((( 3891 3891 (% class="western" %) 3892 3892 PartnerId 3893 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14540 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3894 3894 ((( 3895 3895 (% class="western" %) 3896 3896 Int 3897 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14544 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3898 3898 ((( 3899 3899 (% class="western" %) 3900 3900 ID of the user in partners system (e.g. id of your system). 3901 3901 ))) 3902 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14549 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3903 3903 ((( 3904 3904 (% class="western" %) 3905 3905 Demo 3906 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14553 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3907 3907 ((( 3908 3908 (% class="western" %) 3909 3909 Demo 3910 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14557 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3911 3911 ((( 3912 3912 (% class="western" %) 3913 3913 Object of user's demo question ids and respective response values. 3914 3914 ))) 3915 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14562 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3916 3916 ((( 3917 3917 (% class="western" %) 3918 3918 RequestDate 3919 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14566 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3920 3920 ((( 3921 3921 (% class="western" %) 3922 3922 Date 3923 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14570 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3924 3924 ((( 3925 3925 (% class="western" %) 3926 3926 Request date. 3927 3927 ))) 3928 3928 3929 -\\ 3930 - 3931 3931 (% class="western" %) 3932 3932 **Type: Demo** 3933 3933 3934 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14579 +(% class="wrapped" %) 14580 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3935 3935 ((( 3936 3936 (% class="western" %) 3937 3937 **Property Name** 3938 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14584 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3939 3939 ((( 3940 3940 (% class="western" %) 3941 3941 **Type** 3942 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14588 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3943 3943 ((( 3944 3944 (% class="western" %) 3945 3945 **Description** 3946 3946 ))) 3947 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14593 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3948 3948 ((( 3949 3949 (% class="western" %) 3950 3950 QuestionId (e.g 6) 3951 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14597 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3952 3952 ((( 3953 3953 (% class="western" %) 3954 3954 String 3955 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14601 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3956 3956 ((( 3957 3957 (% class="western" %) 3958 3958 6 is the value of “Id” property of question resource(Text = “First Name”) 3959 3959 ))) 3960 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14606 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3961 3961 ((( 3962 3962 (% class="western" %) 3963 3963 QuestionId (e.g 7) 3964 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14610 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3965 3965 ((( 3966 3966 (% class="western" %) 3967 3967 String 3968 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14614 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3969 3969 ((( 3970 3970 (% class="western" %) 3971 3971 7 is the value of “Id” property of question resource(Text = “Last Name”) 3972 3972 ))) 3973 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14619 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3974 3974 ((( 3975 3975 (% class="western" %) 3976 3976 ... 3977 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14623 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3978 3978 ((( 3979 3979 (% class="western" %) 3980 3980 ... 3981 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14627 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3982 3982 ((( 3983 3983 (% class="western" %) 3984 3984 ... 3985 3985 ))) 3986 3986 3987 -\\ 3988 - 3989 3989 (% class="western" %) 3990 3990 **Type: Transactions** 3991 3991 3992 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14636 +(% class="wrapped" %) 14637 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3993 3993 ((( 3994 3994 (% class="western" %) 3995 3995 **Property Name** 3996 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14641 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 3997 3997 ((( 3998 3998 (% class="western" %) 3999 3999 **Type** 4000 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14645 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4001 4001 ((( 4002 4002 (% class="western" %) 4003 4003 **Description** 4004 4004 ))) 4005 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14650 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4006 4006 ((( 4007 4007 (% class="western" %) 4008 4008 Id 4009 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14654 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4010 4010 ((( 4011 4011 (% class="western" %) 4012 4012 Int 4013 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14658 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4014 4014 ((( 4015 4015 (% class="western" %) 4016 4016 ID of the transaction. 4017 4017 ))) 4018 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14663 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4019 4019 ((( 4020 4020 (% class="western" %) 4021 4021 UserId 4022 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14667 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4023 4023 ((( 4024 4024 (% class="western" %) 4025 4025 Int 4026 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14671 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4027 4027 ((( 4028 4028 (% class="western" %) 4029 4029 Id of user in ONEcount. 4030 4030 ))) 4031 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14676 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4032 4032 ((( 4033 4033 (% class="western" %) 4034 4034 TermId 4035 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14680 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4036 4036 ((( 4037 4037 (% class="western" %) 4038 4038 Int 4039 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14684 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4040 4040 ((( 4041 4041 (% class="western" %) 4042 4042 TermId in ONEcount. 4043 4043 ))) 4044 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14689 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4045 4045 ((( 4046 4046 (% class="western" %) 4047 4047 ProductStatus 4048 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14693 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4049 4049 ((( 4050 4050 (% class="western" %) 4051 4051 Int 4052 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14697 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4053 4053 ((( 4054 4054 (% class="western" %) 4055 4055 Status ID. 4056 4056 ))) 4057 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14702 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4058 4058 ((( 4059 4059 (% class="western" %) 4060 4060 SubscriptionType 4061 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14706 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4062 4062 ((( 4063 4063 (% class="western" %) 4064 4064 Char 4065 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14710 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4066 4066 ((( 4067 4067 (% class="western" %) 4068 4068 Can be n,r or u for new, renew or unsubscribe. 4069 4069 ))) 4070 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14715 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4071 4071 ((( 4072 4072 (% class="western" %) 4073 4073 TransactionDate 4074 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14719 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4075 4075 ((( 4076 4076 (% class="western" %) 4077 4077 Date 4078 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14723 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4079 4079 ((( 4080 4080 (% class="western" %) 4081 4081 Date when the transaction occurred. 4082 4082 ))) 4083 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14728 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4084 4084 ((( 4085 4085 (% class="western" %) 4086 4086 TransactionTime 4087 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14732 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4088 4088 ((( 4089 4089 (% class="western" %) 4090 4090 Time 4091 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14736 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4092 4092 ((( 4093 4093 (% class="western" %) 4094 4094 Time of transaction. 4095 4095 ))) 4096 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14741 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4097 4097 ((( 4098 4098 (% class="western" %) 4099 4099 RequestDate 4100 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14745 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4101 4101 ((( 4102 4102 (% class="western" %) 4103 4103 Date 4104 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14749 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4105 4105 ((( 4106 4106 (% class="western" %) 4107 4107 The effective request date for the transaction. 4108 4108 ))) 4109 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14754 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4110 4110 ((( 4111 4111 (% class="western" %) 4112 4112 UserIP 4113 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14758 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4114 4114 ((( 4115 4115 (% class="western" %) 4116 4116 String 4117 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14762 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4118 4118 ((( 4119 4119 (% class="western" %) 4120 4120 IP of the user. 4121 4121 ))) 4122 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14767 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4123 4123 ((( 4124 4124 (% class="western" %) 4125 4125 Source 4126 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14771 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4127 4127 ((( 4128 4128 (% class="western" %) 4129 4129 String 4130 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14775 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4131 4131 ((( 4132 4132 (% class="western" %) 4133 4133 The transaction needs to be tied to a source code this will define it. 4134 4134 ))) 4135 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14780 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4136 4136 ((( 4137 4137 (% class="western" %) 4138 4138 MediaFilePath 4139 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14784 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4140 4140 ((( 4141 4141 (% class="western" %) 4142 4142 String 4143 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14788 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4144 4144 ((( 4145 4145 (% class="western" %) 4146 4146 The url of media associated with that transaction. Eg image, audio. 4147 4147 ))) 4148 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14793 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4149 4149 ((( 4150 4150 (% class="western" %) 4151 4151 ExpireDate 4152 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14797 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4153 4153 ((( 4154 4154 (% class="western" %) 4155 4155 Date 4156 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14801 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4157 4157 ((( 4158 4158 (% class="western" %) 4159 4159 Date when the subscription expires. 4160 4160 ))) 4161 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14806 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4162 4162 ((( 4163 4163 (% class="western" %) 4164 4164 Amount 4165 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14810 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4166 4166 ((( 4167 4167 (% class="western" %) 4168 4168 Float 4169 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14814 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4170 4170 ((( 4171 4171 (% class="western" %) 4172 4172 If there is amount (USD) included in transaction. 4173 4173 ))) 4174 4174 4175 -\\ 4176 - 4177 4177 (% class="western" %) 4178 4178 **Type: Sources** 4179 4179 4180 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14823 +(% class="wrapped" %) 14824 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4181 4181 ((( 4182 4182 (% class="western" %) 4183 4183 **Property Name** 4184 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14828 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4185 4185 ((( 4186 4186 (% class="western" %) 4187 4187 **Type** 4188 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14832 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4189 4189 ((( 4190 4190 (% class="western" %) 4191 4191 **Description** 4192 4192 ))) 4193 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14837 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4194 4194 ((( 4195 4195 (% class="western" %) 4196 4196 Id 4197 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14841 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4198 4198 ((( 4199 4199 (% class="western" %) 4200 4200 Int 4201 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14845 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4202 4202 ((( 4203 4203 (% class="western" %) 4204 4204 Id of the source. 4205 4205 ))) 4206 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14850 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4207 4207 ((( 4208 4208 (% class="western" %) 4209 4209 Source 4210 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14854 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4211 4211 ((( 4212 4212 (% class="western" %) 4213 4213 String 4214 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14858 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4215 4215 ((( 4216 4216 (% class="western" %) 4217 4217 Value of the source. 4218 4218 ))) 4219 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14863 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4220 4220 ((( 4221 4221 (% class="western" %) 4222 4222 Description 4223 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14867 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4224 4224 ((( 4225 4225 (% class="western" %) 4226 4226 Text 4227 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14871 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4228 4228 ((( 4229 4229 (% class="western" %) 4230 4230 Description of the source. 4231 4231 ))) 4232 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14876 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4233 4233 ((( 4234 4234 (% class="western" %) 4235 4235 ParentId 4236 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14880 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4237 4237 ((( 4238 4238 (% class="western" %) 4239 4239 int 4240 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14884 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4241 4241 ((( 4242 4242 (% class="western" %) 4243 4243 If this is a child source then list the parent source id. ... ... @@ -4244,253 +4244,249 @@ 4244 4244 ))) 4245 4245 4246 4246 (% class="western" %) 4247 -\\ 4248 - 4249 -(% class="western" %) 4250 4250 **Type: Products** 4251 4251 4252 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14893 +(% class="wrapped" %) 14894 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4253 4253 ((( 4254 4254 (% class="western" %) 4255 4255 **Property Name** 4256 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14898 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4257 4257 ((( 4258 4258 (% class="western" %) 4259 4259 **Type** 4260 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14902 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4261 4261 ((( 4262 4262 (% class="western" %) 4263 4263 **Description** 4264 4264 ))) 4265 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14907 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4266 4266 ((( 4267 4267 (% class="western" %) 4268 4268 Id 4269 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14911 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4270 4270 ((( 4271 4271 (% class="western" %) 4272 4272 Int 4273 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14915 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4274 4274 ((( 4275 4275 (% class="western" %) 4276 4276 Specify only for update. 4277 4277 ))) 4278 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14920 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4279 4279 ((( 4280 4280 (% class="western" %) 4281 4281 Name 4282 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14924 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4283 4283 ((( 4284 4284 (% class="western" %) 4285 4285 String 4286 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14928 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4287 4287 ((( 4288 4288 (% class="western" %) 4289 4289 Name of the Product. 4290 4290 ))) 4291 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14933 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4292 4292 ((( 4293 4293 (% class="western" %) 4294 4294 Description 4295 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14937 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4296 4296 ((( 4297 4297 (% class="western" %) 4298 4298 Text 4299 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14941 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4300 4300 ((( 4301 4301 (% class="western" %) 4302 4302 Description of the product. 4303 4303 ))) 4304 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14946 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4305 4305 ((( 4306 4306 (% class="western" %) 4307 4307 Terms 4308 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14950 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4309 4309 ((( 4310 4310 (% class="western" %) 4311 4311 Terms 4312 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14954 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4313 4313 ((( 4314 4314 (% class="western" %) 4315 4315 (Array of) Terms associated with the product. 4316 4316 ))) 4317 4317 4318 -\\ 4319 - 4320 4320 (% class="western" %) 4321 4321 **Type: Terms** 4322 4322 4323 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 14963 +(% class="wrapped" %) 14964 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4324 4324 ((( 4325 4325 (% class="western" %) 4326 4326 **Property Name** 4327 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14968 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4328 4328 ((( 4329 4329 (% class="western" %) 4330 4330 **Type** 4331 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14972 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4332 4332 ((( 4333 4333 (% class="western" %) 4334 4334 **Description** 4335 4335 ))) 4336 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14977 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4337 4337 ((( 4338 4338 (% class="western" %) 4339 4339 Id 4340 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14981 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4341 4341 ((( 4342 4342 (% class="western" %) 4343 4343 int 4344 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14985 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4345 4345 ((( 4346 4346 (% class="western" %) 4347 4347 Id of the term. 4348 4348 ))) 4349 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)14990 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4350 4350 ((( 4351 4351 (% class="western" %) 4352 4352 Name 4353 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14994 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4354 4354 ((( 4355 4355 (% class="western" %) 4356 4356 string 4357 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)14998 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4358 4358 ((( 4359 4359 (% class="western" %) 4360 4360 Name of the Term. 4361 4361 ))) 4362 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15003 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4363 4363 ((( 4364 4364 (% class="western" %) 4365 4365 Description 4366 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15007 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4367 4367 ((( 4368 4368 (% class="western" %) 4369 4369 text 4370 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15011 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4371 4371 ((( 4372 4372 (% class="western" %) 4373 4373 Description of the term. 4374 4374 ))) 4375 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15016 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4376 4376 ((( 4377 4377 (% class="western" %) 4378 4378 Duration 4379 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15020 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4380 4380 ((( 4381 4381 (% class="western" %) 4382 4382 int 4383 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15024 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4384 4384 ((( 4385 4385 (% class="western" %) 4386 4386 Duration of term validity. 4387 4387 ))) 4388 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15029 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4389 4389 ((( 4390 4390 (% class="western" %) 4391 4391 DurationUnit 4392 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15033 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4393 4393 ((( 4394 4394 (% class="western" %) 4395 4395 sting 4396 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15037 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4397 4397 ((( 4398 4398 (% class="western" %) 4399 4399 Y (year), M (Month), D (Days). 4400 4400 ))) 4401 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15042 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4402 4402 ((( 4403 4403 (% class="western" %) 4404 4404 ProductId 4405 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15046 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4406 4406 ((( 4407 4407 (% class="western" %) 4408 4408 int 4409 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15050 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4410 4410 ((( 4411 4411 (% class="western" %) 4412 4412 Id of the product the term is tied to. 4413 4413 ))) 4414 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15055 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4415 4415 ((( 4416 4416 (% class="western" %) 4417 4417 Price 4418 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15059 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4419 4419 ((( 4420 4420 (% class="western" %) 4421 4421 float 4422 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15063 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4423 4423 ((( 4424 4424 (% class="western" %) 4425 4425 If there is price (USD) for the term. 4426 4426 ))) 4427 4427 4428 -\\ 4429 - 4430 4430 (% class="western" %) 4431 4431 **Type: Resources** 4432 4432 4433 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15072 +(% class="wrapped" %) 15073 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4434 4434 ((( 4435 4435 (% class="western" %) 4436 4436 **Property Name** 4437 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15077 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4438 4438 ((( 4439 4439 (% class="western" %) 4440 4440 **Type** 4441 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15081 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4442 4442 ((( 4443 4443 (% class="western" %) 4444 4444 **Description** 4445 4445 ))) 4446 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15086 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4447 4447 ((( 4448 4448 (% class="western" %) 4449 4449 Id 4450 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15090 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4451 4451 ((( 4452 4452 (% class="western" %) 4453 4453 Int 4454 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15094 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4455 4455 ((( 4456 4456 (% class="western" %) 4457 4457 Specify only for update. 4458 4458 ))) 4459 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15099 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4460 4460 ((( 4461 4461 (% class="western" %) 4462 4462 Name 4463 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15103 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4464 4464 ((( 4465 4465 (% class="western" %) 4466 4466 String 4467 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15107 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4468 4468 ((( 4469 4469 (% class="western" %) 4470 4470 Name of the Resource. 4471 4471 ))) 4472 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15112 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4473 4473 ((( 4474 4474 (% class="western" %) 4475 4475 Description 4476 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15116 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4477 4477 ((( 4478 4478 (% class="western" %) 4479 4479 Text 4480 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15120 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4481 4481 ((( 4482 4482 (% class="western" %) 4483 4483 Description of the Resource. 4484 4484 ))) 4485 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15125 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4486 4486 ((( 4487 4487 (% class="western" %) 4488 4488 Type 4489 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15129 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4490 4490 ((( 4491 4491 (% class="western" %) 4492 4492 Int 4493 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15133 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4494 4494 ((( 4495 4495 (% class="western" %) 4496 4496 Type Options ... ... @@ -4510,11 +4510,11 @@ 4510 4510 (% class="western" %) 4511 4511 **5 : **Function 4512 4512 ))) 4513 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15153 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4514 4514 ((( 4515 4515 (% class="western" %) 4516 4516 Value 4517 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15157 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4518 4518 ((( 4519 4519 (% class="western" %) 4520 4520 String ... ... @@ -4524,7 +4524,7 @@ 4524 4524 4525 4525 (% class="western" %) 4526 4526 Array 4527 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15167 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4528 4528 ((( 4529 4529 (% class="western" %) 4530 4530 Value of Resource Type: ... ... @@ -4539,115 +4539,114 @@ 4539 4539 Example : 4540 4540 4541 4541 (% class="western" %) 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/**"]15182 +if the Type sent is 3 with one value then Value would be "**/digital/**" or **["/digital"/].** We recommend using the second approach of **["/digital"/].** 15183 +if the Type sent is 3 with two values then Value would be ["**/digital/**", "**/articles/**"] 4544 4544 4545 4545 (% class="western" %) 4546 4546 For Function type resource leave it blank. 4547 4547 ))) 4548 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15188 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4549 4549 ((( 4550 4550 (% class="western" %) 4551 4551 limit 4552 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15192 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4553 4553 ((( 4554 4554 (% class="western" %) 4555 4555 Int 4556 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15196 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4557 4557 ((( 4558 4558 (% class="western" %) 4559 4559 Default limit is 25 but if all the data needs to be pulled then pass limit=0. 4560 4560 ))) 4561 - (% class="" %)|(% colspan="1" style="text-align:;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)15201 +|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 4562 4562 ((( 4563 4563 FreePass 4564 -)))|(% colspan="1" style="text-align: ;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)15204 +)))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 4565 4565 ((( 4566 4566 Int 4567 -)))|(% colspan="1" style="text-align: ;" %)(% colspan="1" style="text-align: left;vertical-align: top;" %)15207 +)))|(% colspan="1" style="text-align:left; vertical-align:top" %)(% colspan="1" style="text-align: left;vertical-align: top;" %) 4568 4568 ((( 4569 4569 Default value is 0. This parameter is used to provide access to protected content. 4570 4570 ))) 4571 4571 4572 -\\ 4573 - 4574 4574 (% class="western" %) 4575 4575 **Type: Telemarketing** 4576 4576 4577 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %) 15215 +(% class="wrapped" %) 15216 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4578 4578 ((( 4579 4579 (% class="western" %) 4580 4580 **Property Name** 4581 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15220 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4582 4582 ((( 4583 4583 (% class="western" %) 4584 4584 **Type** 4585 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15224 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4586 4586 ((( 4587 4587 (% class="western" %) 4588 4588 **Description** 4589 4589 ))) 4590 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15229 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4591 4591 ((( 4592 4592 (% class="western" %) 4593 4593 Id 4594 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15233 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4595 4595 ((( 4596 4596 (% class="western" %) 4597 4597 int 4598 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15237 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4599 4599 ((( 4600 4600 (% class="western" %) 4601 4601 Id of the telemarketing stat. This is autogenerated from the system and can be used to lookup the stat. 4602 4602 ))) 4603 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15242 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4604 4604 ((( 4605 4605 (% class="western" %) 4606 4606 OCID 4607 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15246 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4608 4608 ((( 4609 4609 (% class="western" %) 4610 4610 int 4611 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15250 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4612 4612 ((( 4613 4613 (% class="western" %) 4614 4614 Onecount ID of the user. 4615 4615 ))) 4616 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15255 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4617 4617 ((( 4618 4618 (% class="western" %) 4619 4619 Date 4620 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15259 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4621 4621 ((( 4622 4622 (% class="western" %) 4623 4623 Date 4624 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15263 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4625 4625 ((( 4626 4626 (% class="western" %) 4627 4627 Date when the stat occurred. Format: yyyy-mm-dd 4628 4628 ))) 4629 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15268 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4630 4630 ((( 4631 4631 (% class="western" %) 4632 4632 Time 4633 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15272 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4634 4634 ((( 4635 4635 (% class="western" %) 4636 4636 Time 4637 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15276 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4638 4638 ((( 4639 4639 (% class="western" %) 4640 4640 Time of stat. Format: h:m:s (24 hour format) 4641 4641 ))) 4642 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15281 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4643 4643 ((( 4644 4644 (% class="western" %) 4645 4645 ResourceId 4646 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15285 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4647 4647 ((( 4648 4648 (% class="western" %) 4649 4649 int 4650 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15289 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4651 4651 ((( 4652 4652 (% class="western" %) 4653 4653 Id of resource currently being sent for the sat. If the resource type is page type resource then need to send ... ... @@ -4655,37 +4655,33 @@ 4655 4655 (% class="western" %) 4656 4656 PageTitle otherwise it will follow the process described in PageTitle. 4657 4657 ))) 4658 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15297 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4659 4659 ((( 4660 4660 (% class="western" %) 4661 4661 PageUrl 4662 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15301 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4663 4663 ((( 4664 4664 (% class="western" %) 4665 4665 string 4666 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15305 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4667 4667 ((( 4668 4668 (% class="western" %) 4669 4669 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. 4670 4670 ))) 4671 - (% class="" %)|(% style="text-align:;" %)(% style="text-align: left;vertical-align: top;" %)15310 +|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4672 4672 ((( 4673 4673 (% class="western" %) 4674 4674 PageTitle 4675 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15314 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4676 4676 ((( 4677 4677 (% class="western" %) 4678 4678 string 4679 -)))|(% style="text-align: ;" %)(% style="text-align: left;vertical-align: top;" %)15318 +)))|(% style="text-align:left; vertical-align:top" %)(% style="text-align: left;vertical-align: top;" %) 4680 4680 ((( 4681 4681 (% class="western" %) 4682 4682 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. 4683 4683 4684 -(% class="western" %) 4685 -\\ 4686 4686 4687 4687 (% class="western" %) 4688 4688 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. 4689 4689 ))) 4690 - 4691 -\\
- Screen Shot 2020-02-26 at 11.14.29 AM.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +397.9 KB - Content
- Screen Shot 2020-02-26 at 11.15.52 AM.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +50.1 KB - Content
- Screen Shot 2020-02-26 at 11.22.13 AM.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +159.8 KB - Content
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -10826547 91 +108265477 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://info.onecount.net//wiki/spaces/OD/pages/10826547 9/ONEcount API Documentation1 +https://info.onecount.net//wiki/spaces/OD/pages/108265477/ONEcount API Documentation