Last modified by Rayaan Ahmed on 2025/02/09 22:20

From version 8.1
edited by rayaan@one-count_com
on 2024/01/10 14:39
Change comment: There is no comment for this version
To version 5.1
edited by rayaan@one-count_com
on 2023/12/12 07:43
Change comment: There is no comment for this version

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,0 @@
1 -System Setup Detail and Technical Information
Content
... ... @@ -59,11 +59,6 @@
59 59  11. Create Engagements
60 60  11. Update Engagements
61 61  11. Add users data to Engagement
62 -1. Segments\\
63 -11. Get all Segments
64 -11. Get specific segment by segment id
65 -11. Add users to segment
66 -11. Get all segment ids for a user
67 67  
68 68  \\
69 69  
... ... @@ -120,7 +120,7 @@
120 120  (% class="western" %)
121 121  API will output the response in a JSON format discussed below.
122 122  
123 -{{code language="yml" theme="RDark" title="Response"}}
118 +{{code language="yml" theme="RDark" title="Response" collapse="true"}}
124 124  {
125 125   "result": {
126 126   "success": "1",
... ... @@ -340,7 +340,7 @@
340 340  
341 341  (% style="color: rgb(107,107,107);" %)Request
342 342  
343 -{{code language="php" theme="RDark" title="Get All Users Request"}}
338 +{{code language="php" theme="RDark" title="Get All Users Request" collapse="true"}}
344 344  <?php
345 345  
346 346  $curl = curl_init();
... ... @@ -369,7 +369,7 @@
369 369  
370 370  \\
371 371  
372 -(% style="color: rgb(107,107,107);" %)Response  200 OK
367 +(% style="color: rgb(107,107,107);" %)Response  200 OK
373 373  
374 374  {{code language="yml" theme="RDark" title="Get All Users Response" collapse="true"}}
375 375  {
... ... @@ -880,7 +880,7 @@
880 880  
881 881  (% style="color: rgb(107,107,107);" %)Request
882 882  
883 -{{code language="php" theme="RDark" title="Get specific User Request"}}
878 +{{code language="php" theme="RDark" title="Get specific User Request" collapse="true"}}
884 884  <?php
885 885  
886 886  $curl = curl_init();
... ... @@ -907,7 +907,7 @@
907 907  
908 908  \\
909 909  
910 -(% style="color: rgb(107,107,107);" %)Response  200 OK
905 +(% style="color: rgb(107,107,107);" %)Response  200 OK
911 911  
912 912  {{code language="yml" theme="RDark" title="Get specific user Response" collapse="true"}}
913 913  {
... ... @@ -978,7 +978,7 @@
978 978  
979 979  ----
980 980  
981 -{{code language="yml" theme="RDark" title="Body"}}
976 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
982 982  {"e":"rayaan@one-count.com","p":"12345"}
983 983  {{/code}}
984 984  
... ... @@ -988,7 +988,7 @@
988 988  
989 989  (% style="color: rgb(107,107,107);" %)Request
990 990  
991 -{{code language="php" theme="RDark" title="User login Request"}}
986 +{{code language="php" theme="RDark" title="User login Request" collapse="true"}}
992 992  <?php
993 993  
994 994  $curl = curl_init();
... ... @@ -1016,7 +1016,7 @@
1016 1016  
1017 1017  \\
1018 1018  
1019 -(% style="color: rgb(107,107,107);" %)Response  200 OK
1014 +(% style="color: rgb(107,107,107);" %)Response  200 OK
1020 1020  
1021 1021  {{code language="yml" theme="RDark" title="Login user Response" collapse="true"}}
1022 1022  {
... ... @@ -1063,7 +1063,7 @@
1063 1063  
1064 1064  (% style="color: rgb(107,107,107);" %)Request
1065 1065  
1066 -{{code language="php" theme="RDark" title="Lookup user Request"}}
1061 +{{code language="php" theme="RDark" title="Lookup user Request" collapse="true"}}
1067 1067  <?php
1068 1068  
1069 1069  $curl = curl_init();
... ... @@ -1090,7 +1090,7 @@
1090 1090  
1091 1091  \\
1092 1092  
1093 -(% style="color: rgb(107,107,107);" %)Response  200 OK
1088 +(% style="color: rgb(107,107,107);" %)Response  200 OK
1094 1094  
1095 1095  {{code language="yml" theme="RDark" title="Lookup user Response" collapse="true"}}
1096 1096  {
... ... @@ -1251,7 +1251,7 @@
1251 1251  
1252 1252  ----
1253 1253  
1254 -{{code language="yml" theme="RDark" title="Body"}}
1249 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
1255 1255  {"Users":{"PartnerId":1,"Demo":{"1":"testApirayaan7@onecount.net","4":"Rayaan","5":"Ahmed"}},"DedupeColumns":"1","Transactions":[]}
1256 1256  {{/code}}
1257 1257  
... ... @@ -1261,7 +1261,7 @@
1261 1261  
1262 1262  (% style="color: rgb(107,107,107);" %)Request
1263 1263  
1264 -{{code language="php" theme="RDark" title="Create User Request"}}
1259 +{{code language="php" theme="RDark" title="Create User Request" collapse="true"}}
1265 1265  <?php
1266 1266  
1267 1267  $curl = curl_init();
... ... @@ -1289,7 +1289,7 @@
1289 1289  
1290 1290  \\
1291 1291  
1292 -(% style="color: rgb(107,107,107);" %)Response  200 OK
1287 +(% style="color: rgb(107,107,107);" %)Response  200 OK
1293 1293  
1294 1294  {{code language="yml" theme="RDark" title="Create user Response" collapse="true"}}
1295 1295  {
... ... @@ -1415,7 +1415,7 @@
1415 1415  
1416 1416  ----
1417 1417  
1418 -{{code language="yml" theme="RDark" title="Body"}}
1413 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
1419 1419  {"Users":{"Demo":{"6":"title1"}}}
1420 1420  {{/code}}
1421 1421  
... ... @@ -1425,7 +1425,7 @@
1425 1425  
1426 1426  (% style="color: rgb(107,107,107);" %)Request
1427 1427  
1428 -{{code language="php" theme="RDark" title="Update User Request"}}
1423 +{{code language="php" theme="RDark" title="Update User Request" collapse="true"}}
1429 1429  <?php
1430 1430  
1431 1431  $curl = curl_init();
... ... @@ -1455,7 +1455,7 @@
1455 1455  
1456 1456  \\
1457 1457  
1458 -(% style="color: rgb(107,107,107);" %)Response  200 OK
1453 +(% style="color: rgb(107,107,107);" %)Response  200 OK
1459 1459  
1460 1460  {{code language="yml" theme="RDark" title="Update user Response" collapse="true"}}
1461 1461  {
... ... @@ -1669,7 +1669,7 @@
1669 1669  
1670 1670  (% style="color: rgb(107,107,107);" %)Request
1671 1671  
1672 -{{code language="php" theme="RDark" title="Get All Questions Request"}}
1667 +{{code language="php" theme="RDark" title="Get All Questions Request" collapse="true"}}
1673 1673  <?php
1674 1674  
1675 1675  $curl = curl_init();
... ... @@ -1699,7 +1699,7 @@
1699 1699  
1700 1700  \\
1701 1701  
1702 -(% style="color: rgb(107,107,107);" %)Response  200 OK
1697 +(% style="color: rgb(107,107,107);" %)Response  200 OK
1703 1703  
1704 1704  {{code language="yml" theme="RDark" title="Get All Questions Response" collapse="true"}}
1705 1705  {
... ... @@ -3810,7 +3810,7 @@
3810 3810  
3811 3811  (% style="color: rgb(107,107,107);" %)Request
3812 3812  
3813 -{{code language="php" theme="RDark" title="Get specific Question Request"}}
3808 +{{code language="php" theme="RDark" title="Get specific Question Request" collapse="true"}}
3814 3814  <?php
3815 3815  
3816 3816  $curl = curl_init();
... ... @@ -3837,7 +3837,7 @@
3837 3837  
3838 3838  \\
3839 3839  
3840 -(% style="color: rgb(107,107,107);" %)Response  200 OK
3835 +(% style="color: rgb(107,107,107);" %)Response  200 OK
3841 3841  
3842 3842  {{code language="yml" theme="RDark" title="Get specific question Response" collapse="true"}}
3843 3843  {
... ... @@ -3889,7 +3889,7 @@
3889 3889  
3890 3890  (% style="color: rgb(107,107,107);" %)Request
3891 3891  
3892 -{{code language="php" theme="RDark" title="Lookup question by text Request"}}
3887 +{{code language="php" theme="RDark" title="Lookup question by text Request" collapse="true"}}
3893 3893  <?php
3894 3894  
3895 3895  $curl = curl_init();
... ... @@ -3916,7 +3916,7 @@
3916 3916  
3917 3917  \\
3918 3918  
3919 -(% style="color: rgb(107,107,107);" %)Response  200 OK
3914 +(% style="color: rgb(107,107,107);" %)Response  200 OK
3920 3920  
3921 3921  {{code language="yml" theme="RDark" title="Lookup question by title Response" collapse="true"}}
3922 3922  {
... ... @@ -5335,7 +5335,7 @@
5335 5335  
5336 5336  (% style="color: rgb(107,107,107);" %)Request
5337 5337  
5338 -{{code language="php" theme="RDark" title="Lookup question by Type Request"}}
5333 +{{code language="php" theme="RDark" title="Lookup question by Type Request" collapse="true"}}
5339 5339  <?php
5340 5340  
5341 5341  $curl = curl_init();
... ... @@ -5362,7 +5362,7 @@
5362 5362  
5363 5363  \\
5364 5364  
5365 -(% style="color: rgb(107,107,107);" %)Response  200 OK
5360 +(% style="color: rgb(107,107,107);" %)Response  200 OK
5366 5366  
5367 5367  {{code language="yml" theme="RDark" title="Lookup question by type Response" collapse="true"}}
5368 5368  {
... ... @@ -8032,7 +8032,7 @@
8032 8032  
8033 8033  ----
8034 8034  
8035 -{{code language="yml" theme="RDark" title="Body"}}
8030 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
8036 8036  {"Text":"Test from API 3","Type":0,"Alias":"Test from API 3"}
8037 8037  {{/code}}
8038 8038  
... ... @@ -8042,7 +8042,7 @@
8042 8042  
8043 8043  (% style="color: rgb(107,107,107);" %)Request
8044 8044  
8045 -{{code language="php" theme="RDark" title="Create Question Request"}}
8040 +{{code language="php" theme="RDark" title="Create Question Request" collapse="true"}}
8046 8046  <?php
8047 8047  
8048 8048  $curl = curl_init();
... ... @@ -8070,7 +8070,7 @@
8070 8070  
8071 8071  \\
8072 8072  
8073 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8068 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8074 8074  
8075 8075  {{code language="yml" theme="RDark" title="Create question Response" collapse="true"}}
8076 8076  {
... ... @@ -8110,7 +8110,7 @@
8110 8110  
8111 8111  ----
8112 8112  
8113 -{{code language="yml" theme="RDark" title="Body"}}
8108 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
8114 8114  {"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"}]}
8115 8115  {{/code}}
8116 8116  
... ... @@ -8120,7 +8120,7 @@
8120 8120  
8121 8121  (% style="color: rgb(107,107,107);" %)Request
8122 8122  
8123 -{{code language="php" theme="RDark" title="Create Question Request"}}
8118 +{{code language="php" theme="RDark" title="Create Question Request" collapse="true"}}
8124 8124  <?php
8125 8125  
8126 8126  $curl = curl_init();
... ... @@ -8148,7 +8148,7 @@
8148 8148  
8149 8149  \\
8150 8150  
8151 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8146 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8152 8152  
8153 8153  {{code language="yml" theme="RDark" title="Create question Response" collapse="true"}}
8154 8154  {
... ... @@ -8188,7 +8188,7 @@
8188 8188  
8189 8189  ----
8190 8190  
8191 -{{code language="yml" theme="RDark" title="Body"}}
8186 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
8192 8192  {"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"}]}
8193 8193  {{/code}}
8194 8194  
... ... @@ -8198,7 +8198,7 @@
8198 8198  
8199 8199  (% style="color: rgb(107,107,107);" %)Request
8200 8200  
8201 -{{code language="php" theme="RDark" title="Update Question Request"}}
8196 +{{code language="php" theme="RDark" title="Update Question Request" collapse="true"}}
8202 8202  <?php
8203 8203  
8204 8204  $curl = curl_init();
... ... @@ -8228,7 +8228,7 @@
8228 8228  
8229 8229  \\
8230 8230  
8231 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8226 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8232 8232  
8233 8233  {{code language="yml" theme="RDark" title="Update Question Response" collapse="true"}}
8234 8234  {
... ... @@ -8383,7 +8383,7 @@
8383 8383  
8384 8384  (% style="color: rgb(107,107,107);" %)Request
8385 8385  
8386 -{{code language="php" theme="RDark" title="Get All Products Request"}}
8381 +{{code language="php" theme="RDark" title="Get All Products Request" collapse="true"}}
8387 8387  <?php
8388 8388  
8389 8389  $curl = curl_init();
... ... @@ -8412,7 +8412,7 @@
8412 8412  
8413 8413  \\
8414 8414  
8415 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8410 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8416 8416  
8417 8417  {{code language="yml" theme="RDark" title="Get All Products Response" collapse="true"}}
8418 8418   {
... ... @@ -8671,7 +8671,7 @@
8671 8671  
8672 8672  (% style="color: rgb(107,107,107);" %)Request
8673 8673  
8674 -{{code language="php" theme="RDark" title="Get specific Product Request"}}
8669 +{{code language="php" theme="RDark" title="Get specific Product Request" collapse="true"}}
8675 8675   <?php
8676 8676  
8677 8677  $curl = curl_init();
... ... @@ -8698,7 +8698,7 @@
8698 8698  
8699 8699  \\
8700 8700  
8701 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8696 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8702 8702  
8703 8703  {{code language="yml" theme="RDark" title="Get specific Product Response" collapse="true"}}
8704 8704   {
... ... @@ -8761,7 +8761,7 @@
8761 8761  
8762 8762  (% style="color: rgb(107,107,107);" %)Request
8763 8763  
8764 -{{code language="php" theme="RDark" title="Lookup Product Request"}}
8759 +{{code language="php" theme="RDark" title="Lookup Product Request" collapse="true"}}
8765 8765   <?php
8766 8766  
8767 8767  $curl = curl_init();
... ... @@ -8788,7 +8788,7 @@
8788 8788  
8789 8789  \\
8790 8790  
8791 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8786 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8792 8792  
8793 8793  {{code language="yml" theme="RDark" title="Lookup Product Response" collapse="true"}}
8794 8794   {
... ... @@ -8839,7 +8839,7 @@
8839 8839  
8840 8840  ----
8841 8841  
8842 -{{code language="yml" theme="RDark" title="Body"}}
8837 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
8843 8843  {"Title":"Test API package creation 2","Description": "Test API package creation 2","Terms":{"Name":"Test term for API 2"},"PrimaryFormId":0}
8844 8844  {{/code}}
8845 8845  
... ... @@ -8849,7 +8849,7 @@
8849 8849  
8850 8850  (% style="color: rgb(107,107,107);" %)Request
8851 8851  
8852 -{{code language="php" theme="RDark" title="Create Product Request"}}
8847 +{{code language="php" theme="RDark" title="Create Product Request" collapse="true"}}
8853 8853   <?php
8854 8854  
8855 8855  $curl = curl_init();
... ... @@ -8877,7 +8877,7 @@
8877 8877  
8878 8878  \\
8879 8879  
8880 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8875 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8881 8881  
8882 8882  {{code language="yml" theme="RDark" title="Create Product Response" collapse="true"}}
8883 8883   {
... ... @@ -8917,7 +8917,7 @@
8917 8917  
8918 8918  ----
8919 8919  
8920 -{{code language="yml" theme="RDark" title="Body"}}
8915 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
8921 8921  {"Title":"Test API package 23","Description": "Test API package 23","PrimaryFormId":0}
8922 8922  {{/code}}
8923 8923  
... ... @@ -8927,7 +8927,7 @@
8927 8927  
8928 8928  (% style="color: rgb(107,107,107);" %)Request
8929 8929  
8930 -{{code language="php" theme="RDark" title="Update Product Request"}}
8925 +{{code language="php" theme="RDark" title="Update Product Request" collapse="true"}}
8931 8931  <?php
8932 8932  
8933 8933  $curl = curl_init();
... ... @@ -8956,7 +8956,7 @@
8956 8956  
8957 8957  \\
8958 8958  
8959 -(% style="color: rgb(107,107,107);" %)Response  200 OK
8954 +(% style="color: rgb(107,107,107);" %)Response  200 OK
8960 8960  
8961 8961  {{code language="yml" theme="RDark" title="Update Product Response" collapse="true"}}
8962 8962   {
... ... @@ -8998,7 +8998,7 @@
8998 8998  
8999 8999  ----
9000 9000  
9001 -{{code language="yml" theme="RDark" title="Body"}}
8996 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
9002 9002  {"ProductID":"599","ResourceID":"903"}
9003 9003  {{/code}}
9004 9004  
... ... @@ -9008,7 +9008,7 @@
9008 9008  
9009 9009  (% style="color: rgb(107,107,107);" %)Request
9010 9010  
9011 -{{code language="php" theme="RDark" title="Attach Resource to Product Request"}}
9006 +{{code language="php" theme="RDark" title="Attach Resource to Product Request" collapse="true"}}
9012 9012   <?php
9013 9013  
9014 9014  $curl = curl_init();
... ... @@ -9036,7 +9036,7 @@
9036 9036  
9037 9037  \\
9038 9038  
9039 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9034 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9040 9040  
9041 9041  {{code language="yml" theme="RDark" title="Create Product Response" collapse="true"}}
9042 9042   {
... ... @@ -9149,7 +9149,7 @@
9149 9149  
9150 9150  (% style="color: rgb(107,107,107);" %)Request
9151 9151  
9152 -{{code language="php" theme="RDark" title="Get All Terms Request"}}
9147 +{{code language="php" theme="RDark" title="Get All Terms Request" collapse="true"}}
9153 9153   <?php
9154 9154  
9155 9155  $curl = curl_init();
... ... @@ -9176,7 +9176,7 @@
9176 9176  
9177 9177  \\
9178 9178  
9179 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9174 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9180 9180  
9181 9181  {{code language="yml" theme="RDark" title="Get All Terms Response" collapse="true"}}
9182 9182   {
... ... @@ -9332,7 +9332,7 @@
9332 9332  
9333 9333  (% style="color: rgb(107,107,107);" %)Request
9334 9334  
9335 -{{code language="php" theme="RDark" title="Get specific Term Request"}}
9330 +{{code language="php" theme="RDark" title="Get specific Term Request" collapse="true"}}
9336 9336   <?php
9337 9337  
9338 9338  $curl = curl_init();
... ... @@ -9359,7 +9359,7 @@
9359 9359  
9360 9360  \\
9361 9361  
9362 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9357 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9363 9363  
9364 9364  {{code language="yml" theme="RDark" title="Get specific Term Response" collapse="true"}}
9365 9365   {
... ... @@ -9413,7 +9413,7 @@
9413 9413  
9414 9414  (% style="color: rgb(107,107,107);" %)Request
9415 9415  
9416 -{{code language="php" theme="RDark" title="Lookup Term Request"}}
9411 +{{code language="php" theme="RDark" title="Lookup Term Request" collapse="true"}}
9417 9417   <?php
9418 9418  
9419 9419  $curl = curl_init();
... ... @@ -9440,7 +9440,7 @@
9440 9440  
9441 9441  \\
9442 9442  
9443 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9438 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9444 9444  
9445 9445  {{code language="yml" theme="RDark" title="Lookup Term Response" collapse="true"}}
9446 9446  {
... ... @@ -9486,7 +9486,7 @@
9486 9486  
9487 9487  ----
9488 9488  
9489 -{{code language="yml" theme="RDark" title="Body"}}
9484 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
9490 9490  {"Name":"Test API term creation","Description":"Test API term creation","Duration":10,"ProductId":599}
9491 9491  {{/code}}
9492 9492  
... ... @@ -9496,7 +9496,7 @@
9496 9496  
9497 9497  (% style="color: rgb(107,107,107);" %)Request
9498 9498  
9499 -{{code language="php" theme="RDark" title="Create Term Request"}}
9494 +{{code language="php" theme="RDark" title="Create Term Request" collapse="true"}}
9500 9500  <?php
9501 9501  
9502 9502  $curl = curl_init();
... ... @@ -9528,7 +9528,7 @@
9528 9528  
9529 9529  \\
9530 9530  
9531 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9526 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9532 9532  
9533 9533  {{code language="yml" theme="RDark" title="Create Term Response" collapse="true"}}
9534 9534  {
... ... @@ -9568,7 +9568,7 @@
9568 9568  
9569 9569  ----
9570 9570  
9571 -{{code language="yml" theme="RDark" title="Body"}}
9566 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
9572 9572  {"Name":"Test API term creation update","Description":"Test API term creation update","Duration":10,"ProductId":599}
9573 9573  {{/code}}
9574 9574  
... ... @@ -9578,7 +9578,7 @@
9578 9578  
9579 9579  (% style="color: rgb(107,107,107);" %)Request
9580 9580  
9581 -{{code language="php" theme="RDark" title="Update Term Request"}}
9576 +{{code language="php" theme="RDark" title="Update Term Request" collapse="true"}}
9582 9582   <?php
9583 9583  
9584 9584  $curl = curl_init();
... ... @@ -9606,7 +9606,7 @@
9606 9606  
9607 9607  \\
9608 9608  
9609 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9604 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9610 9610  
9611 9611  {{code language="yml" theme="RDark" title="Update Term Response" collapse="true"}}
9612 9612   {
... ... @@ -9766,7 +9766,7 @@
9766 9766  
9767 9767  (% style="color: rgb(107,107,107);" %)Request
9768 9768  
9769 -{{code language="php" theme="RDark" title="Get All Resource Request"}}
9764 +{{code language="php" theme="RDark" title="Get All Resource Request" collapse="true"}}
9770 9770   <?php
9771 9771  
9772 9772  $curl = curl_init();
... ... @@ -9793,7 +9793,7 @@
9793 9793  
9794 9794  \\
9795 9795  
9796 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9791 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9797 9797  
9798 9798  {{code language="yml" theme="RDark" title="Get All Resource Response" collapse="true"}}
9799 9799   {
... ... @@ -9912,7 +9912,7 @@
9912 9912  
9913 9913  (% style="color: rgb(107,107,107);" %)Request
9914 9914  
9915 -{{code language="php" theme="RDark" title="Get specific Resource Request"}}
9910 +{{code language="php" theme="RDark" title="Get specific Resource Request" collapse="true"}}
9916 9916   <?php
9917 9917  
9918 9918  $curl = curl_init();
... ... @@ -9939,7 +9939,7 @@
9939 9939  
9940 9940  \\
9941 9941  
9942 -(% style="color: rgb(107,107,107);" %)Response  200 OK
9937 +(% style="color: rgb(107,107,107);" %)Response  200 OK
9943 9943  
9944 9944  {{code language="yml" theme="RDark" title="Get specific Resource Response" collapse="true"}}
9945 9945   {
... ... @@ -9992,7 +9992,7 @@
9992 9992  
9993 9993  (% style="color: rgb(107,107,107);" %)Request
9994 9994  
9995 -{{code language="php" theme="RDark" title="Lookup Resource Request"}}
9990 +{{code language="php" theme="RDark" title="Lookup Resource Request" collapse="true"}}
9996 9996   <?php
9997 9997  
9998 9998  $curl = curl_init();
... ... @@ -10019,7 +10019,7 @@
10019 10019  
10020 10020  \\
10021 10021  
10022 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10017 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10023 10023  
10024 10024  {{code language="yml" theme="RDark" title="Lookup Resource Response" collapse="true"}}
10025 10025   {
... ... @@ -10064,7 +10064,7 @@
10064 10064  
10065 10065  ----
10066 10066  
10067 -{{code language="yml" theme="RDark" title="Body"}}
10062 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
10068 10068  {"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}
10069 10069  {{/code}}
10070 10070  
... ... @@ -10074,7 +10074,7 @@
10074 10074  
10075 10075  (% style="color: rgb(107,107,107);" %)Request
10076 10076  
10077 -{{code language="php" theme="RDark" title="Create Resource Request"}}
10072 +{{code language="php" theme="RDark" title="Create Resource Request" collapse="true"}}
10078 10078   <?php
10079 10079  
10080 10080  $curl = curl_init();
... ... @@ -10102,7 +10102,7 @@
10102 10102  
10103 10103  \\
10104 10104  
10105 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10100 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10106 10106  
10107 10107  {{code language="yml" theme="RDark" title="Create Resource Response" collapse="true"}}
10108 10108   {
... ... @@ -10147,7 +10147,7 @@
10147 10147  
10148 10148  ----
10149 10149  
10150 -{{code language="yml" theme="RDark" title="Body"}}
10145 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
10151 10151  {"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}
10152 10152  {{/code}}
10153 10153  
... ... @@ -10157,7 +10157,7 @@
10157 10157  
10158 10158  (% style="color: rgb(107,107,107);" %)Request
10159 10159  
10160 -{{code language="php" theme="RDark" title="Update Resource Request"}}
10155 +{{code language="php" theme="RDark" title="Update Resource Request" collapse="true"}}
10161 10161   <?php
10162 10162  
10163 10163  $curl = curl_init();
... ... @@ -10185,7 +10185,7 @@
10185 10185  
10186 10186  \\
10187 10187  
10188 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10183 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10189 10189  
10190 10190  {{code language="yml" theme="RDark" title="Update Resource Response" collapse="true"}}
10191 10191   {
... ... @@ -10319,7 +10319,7 @@
10319 10319  
10320 10320  (% style="color: rgb(107,107,107);" %)Request
10321 10321  
10322 -{{code language="php" theme="RDark" title="Get All Source code Request"}}
10317 +{{code language="php" theme="RDark" title="Get All Source code Request" collapse="true"}}
10323 10323   <?php
10324 10324  
10325 10325  $curl = curl_init();
... ... @@ -10346,7 +10346,7 @@
10346 10346  
10347 10347  \\
10348 10348  
10349 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10344 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10350 10350  
10351 10351  {{code language="yml" theme="RDark" title="Get All Source code Response" collapse="true"}}
10352 10352   {
... ... @@ -10535,7 +10535,7 @@
10535 10535  
10536 10536  (% style="color: rgb(107,107,107);" %)Request
10537 10537  
10538 -{{code language="php" theme="RDark" title="Get specific Source Request"}}
10533 +{{code language="php" theme="RDark" title="Get specific Source Request" collapse="true"}}
10539 10539   <?php
10540 10540  
10541 10541  $curl = curl_init();
... ... @@ -10562,7 +10562,7 @@
10562 10562  
10563 10563  \\
10564 10564  
10565 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10560 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10566 10566  
10567 10567  {{code language="yml" theme="RDark" title="Get specific Source Response" collapse="true"}}
10568 10568   {
... ... @@ -10613,7 +10613,7 @@
10613 10613  
10614 10614  (% style="color: rgb(107,107,107);" %)Request
10615 10615  
10616 -{{code language="php" theme="RDark" title="Lookup Source code Request"}}
10611 +{{code language="php" theme="RDark" title="Lookup Source code Request" collapse="true"}}
10617 10617   <?php
10618 10618  
10619 10619  $curl = curl_init();
... ... @@ -10640,7 +10640,7 @@
10640 10640  
10641 10641  \\
10642 10642  
10643 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10638 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10644 10644  
10645 10645  {{code language="yml" theme="RDark" title="Lookup Source code Response" collapse="true"}}
10646 10646   {
... ... @@ -10683,7 +10683,7 @@
10683 10683  
10684 10684  ----
10685 10685  
10686 -{{code language="yml" theme="RDark" title="Body"}}
10681 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
10687 10687  {"Source":"Test source code from API"}
10688 10688  {{/code}}
10689 10689  
... ... @@ -10693,7 +10693,7 @@
10693 10693  
10694 10694  (% style="color: rgb(107,107,107);" %)Request
10695 10695  
10696 -{{code language="php" theme="RDark" title="Create Source code Request"}}
10691 +{{code language="php" theme="RDark" title="Create Source code Request" collapse="true"}}
10697 10697   <?php
10698 10698  
10699 10699  $curl = curl_init();
... ... @@ -10721,7 +10721,7 @@
10721 10721  
10722 10722  \\
10723 10723  
10724 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10719 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10725 10725  
10726 10726  {{code language="yml" theme="RDark" title="Create Source code Response" collapse="true"}}
10727 10727   {
... ... @@ -10764,7 +10764,7 @@
10764 10764  
10765 10765  ----
10766 10766  
10767 -{{code language="yml" theme="RDark" title="Body"}}
10762 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
10768 10768  {"Source":"Test API","Parent":215}
10769 10769  {{/code}}
10770 10770  
... ... @@ -10774,7 +10774,7 @@
10774 10774  
10775 10775  (% style="color: rgb(107,107,107);" %)Request
10776 10776  
10777 -{{code language="php" theme="RDark" title="Update Source code Request"}}
10772 +{{code language="php" theme="RDark" title="Update Source code Request" collapse="true"}}
10778 10778   <?php
10779 10779  
10780 10780  $curl = curl_init();
... ... @@ -10802,7 +10802,7 @@
10802 10802  
10803 10803  \\
10804 10804  
10805 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10800 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10806 10806  
10807 10807  {{code language="yml" theme="RDark" title="Update Source code Response" collapse="true"}}
10808 10808   {
... ... @@ -10912,7 +10912,7 @@
10912 10912  
10913 10913  (% style="color: rgb(107,107,107);" %)Request
10914 10914  
10915 -{{code language="php" theme="RDark" title="Get All Transaction Request"}}
10910 +{{code language="php" theme="RDark" title="Get All Transaction Request" collapse="true"}}
10916 10916   <?php
10917 10917  
10918 10918  $curl = curl_init();
... ... @@ -10939,7 +10939,7 @@
10939 10939  
10940 10940  \\
10941 10941  
10942 -(% style="color: rgb(107,107,107);" %)Response  200 OK
10937 +(% style="color: rgb(107,107,107);" %)Response  200 OK
10943 10943  
10944 10944  {{code language="yml" theme="RDark" title="Get All Transaction Response" collapse="true"}}
10945 10945   {
... ... @@ -12478,7 +12478,7 @@
12478 12478  
12479 12479  (% style="color: rgb(107,107,107);" %)Request
12480 12480  
12481 -{{code language="php" theme="RDark" title="Get specific Transaction Request"}}
12476 +{{code language="php" theme="RDark" title="Get specific Transaction Request" collapse="true"}}
12482 12482   <?php
12483 12483  
12484 12484  $curl = curl_init();
... ... @@ -12505,7 +12505,7 @@
12505 12505  
12506 12506  \\
12507 12507  
12508 -(% style="color: rgb(107,107,107);" %)Response  200 OK
12503 +(% style="color: rgb(107,107,107);" %)Response  200 OK
12509 12509  
12510 12510  {{code language="yml" theme="RDark" title="Get specific Transaction Response" collapse="true"}}
12511 12511   {
... ... @@ -12565,7 +12565,7 @@
12565 12565  
12566 12566  (% style="color: rgb(107,107,107);" %)Request
12567 12567  
12568 -{{code language="php" theme="RDark" title="Lookup Transaction Request"}}
12563 +{{code language="php" theme="RDark" title="Lookup Transaction Request" collapse="true"}}
12569 12569   <?php
12570 12570  
12571 12571  $curl = curl_init();
... ... @@ -12592,7 +12592,7 @@
12592 12592  
12593 12593  \\
12594 12594  
12595 -(% style="color: rgb(107,107,107);" %)Response  200 OK
12590 +(% style="color: rgb(107,107,107);" %)Response  200 OK
12596 12596  
12597 12597  {{code language="yml" theme="RDark" title="Lookup Transaction Response" collapse="true"}}
12598 12598   {
... ... @@ -12820,7 +12820,7 @@
12820 12820  
12821 12821  ----
12822 12822  
12823 -{{code language="yml" theme="RDark" title="Body"}}
12818 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
12824 12824  {"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" }
12825 12825  {{/code}}
12826 12826  
... ... @@ -12830,7 +12830,7 @@
12830 12830  
12831 12831  (% style="color: rgb(107,107,107);" %)Request
12832 12832  
12833 -{{code language="php" theme="RDark" title="Create Transaction Request"}}
12828 +{{code language="php" theme="RDark" title="Create Transaction Request" collapse="true"}}
12834 12834   <?php
12835 12835  
12836 12836  $curl = curl_init();
... ... @@ -12858,7 +12858,7 @@
12858 12858  
12859 12859  \\
12860 12860  
12861 -(% style="color: rgb(107,107,107);" %)Response  200 OK
12856 +(% style="color: rgb(107,107,107);" %)Response  200 OK
12862 12862  
12863 12863  {{code language="yml" theme="RDark" title="Create Transaction Response" collapse="true"}}
12864 12864   {
... ... @@ -12897,7 +12897,6 @@
12897 12897  (% class="western" %)
12898 12898  \\
12899 12899  
12900 -(% class="wrapped" %)
12901 12901  (% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
12902 12902  (((
12903 12903  (% class="western" %)
... ... @@ -13011,7 +13011,7 @@
13011 13011  
13012 13012  (% style="color: rgb(107,107,107);" %)Request
13013 13013  
13014 -{{code language="php" theme="RDark" title="Get All Engagement Request"}}
13008 +{{code language="php" theme="RDark" title="Get All Engagement Request" collapse="true"}}
13015 13015  <?php
13016 13016  
13017 13017  $curl = curl_init();
... ... @@ -13040,52 +13040,6 @@
13040 13040  
13041 13041  \\
13042 13042  
13043 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13044 -
13045 -{{code language="yml" theme="RDark" title="Get all engagements Response" collapse="true"}}
13046 - {
13047 - "result": {
13048 - "success": "1",
13049 - "error": {
13050 - "code": "",
13051 - "message": ""
13052 - }
13053 - },
13054 - "Engagements": [
13055 - {
13056 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
13057 - "Name": "Test Engagement 1",
13058 - "Engagement Fields": [
13059 - {
13060 - "Name": "id",
13061 - "Type": "text"
13062 - },
13063 - {
13064 - "Name": "activity_time",
13065 - "Type": "text"
13066 - },
13067 - {
13068 - "Name": "Name",
13069 - "Type": "text"
13070 - },
13071 - {
13072 - "Name": "Test Field",
13073 - "Type": "select",
13074 - "Values": [
13075 - {
13076 - "text": "Test 1",
13077 - "value": "Test1"
13078 - }
13079 - ]
13080 - }
13081 - ]
13082 - }
13083 - ]
13084 -}
13085 -{{/code}}
13086 -
13087 -\\
13088 -
13089 13089  (% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13090 13090  == (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)Specific Engagement(%%) ==
13091 13091  
... ... @@ -13109,7 +13109,7 @@
13109 13109  
13110 13110  (% style="color: rgb(107,107,107);" %)Request
13111 13111  
13112 -{{code language="php" theme="RDark" title="Get Specific Engagement Request"}}
13060 +{{code language="php" theme="RDark" title="Get Specific Engagement Request" collapse="true"}}
13113 13113  <?php
13114 13114  
13115 13115  $curl = curl_init();
... ... @@ -13138,52 +13138,6 @@
13138 13138  
13139 13139  \\
13140 13140  
13141 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13142 -
13143 -{{code language="yml" theme="RDark" title="Get specific engagement Response" collapse="true"}}
13144 - {
13145 - "result": {
13146 - "success": "1",
13147 - "error": {
13148 - "code": "",
13149 - "message": ""
13150 - }
13151 - },
13152 - "Engagements": [
13153 - {
13154 - "Id": "048d38e9-d6c3-432e-9671-3f31809d48b3",
13155 - "Name": "Test Engagement 1",
13156 - "Engagement Fields": [
13157 - {
13158 - "Name": "id",
13159 - "Type": "text"
13160 - },
13161 - {
13162 - "Name": "activity_time",
13163 - "Type": "text"
13164 - },
13165 - {
13166 - "Name": "Name",
13167 - "Type": "text"
13168 - },
13169 - {
13170 - "Name": "Test Field",
13171 - "Type": "select",
13172 - "Values": [
13173 - {
13174 - "text": "Test 1",
13175 - "value": "Test1"
13176 - }
13177 - ]
13178 - }
13179 - ]
13180 - }
13181 - ]
13182 -}
13183 -{{/code}}
13184 -
13185 -\\
13186 -
13187 13187  (% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13188 13188  == (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %) Create Engagement(%%) ==
13189 13189  
... ... @@ -13203,7 +13203,7 @@
13203 13203  
13204 13204  ----
13205 13205  
13206 -{{code language="yml" theme="RDark" title="Body"}}
13108 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
13207 13207  {"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[
13208 13208   {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"},
13209 13209   {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"},
... ... @@ -13218,8 +13218,8 @@
13218 13218  
13219 13219  (% style="color: rgb(107,107,107);" %)Request
13220 13220  
13221 -{{code language="php" theme="RDark" title="Create Engagement Request"}}
13222 -<?php
13123 +{{code language="php" theme="RDark" title="Create Engagement Request" collapse="true"}}
13124 + <?php
13223 13223  
13224 13224  $curl = curl_init();
13225 13225  
... ... @@ -13232,15 +13232,14 @@
13232 13232   CURLOPT_FOLLOWLOCATION => true,
13233 13233   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13234 13234   CURLOPT_CUSTOMREQUEST => 'POST',
13235 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 2", "Description":"Test engagement 2", "Metrics":[
13236 - {"Name":[{"text":"Webinar 1","value":"Webinar_1"},{"text":"Webinar 2","value":"Webinar_2"}],"Type": "select"},
13237 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13137 + CURLOPT_POSTFIELDS =>'{"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[
13138 + {"Name":[{"webinar ID 1":"Webinar 1"},{"webinar ID 3":"Webinar 3"},{"webinar ID 3":"Webinar 3"}],"Type": "select"},
13139 + {"Attendance Status":[{"attended":"Attended"},{"not_attended":"Not Attended"}],"Type": "select"},
13238 13238   {"Price":[],"Type": "numeric"},
13239 - {"Transaction Date":[],"Type": "text"}
13141 + {"Transaction Date":[],"Type": "date"}
13240 13240  ]}',
13241 13241   CURLOPT_HTTPHEADER => array(
13242 - 'Appkey: {{ONECOUNT API KEY}}',
13243 - 'Content-Type: application/json'
13144 + 'Appkey: {{ONECOUNT API KEY}}'
13244 13244   ),
13245 13245  ));
13246 13246  
... ... @@ -13248,80 +13248,10 @@
13248 13248  
13249 13249  curl_close($curl);
13250 13250  echo $response;
13251 -
13252 -
13253 13253  {{/code}}
13254 13254  
13255 13255  \\
13256 13256  
13257 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13258 -
13259 -{{code language="yml" theme="RDark" title="Create Engagement Response" collapse="true"}}
13260 - {
13261 - "result": {
13262 - "success": "1",
13263 - "error": {
13264 - "code": "",
13265 - "message": ""
13266 - }
13267 - },
13268 - "Engagements": [
13269 - {
13270 - "Id": "71c1115f-e5bb-470a-bedf-6940f5ac8565",
13271 - "Name": "Test engagement 2",
13272 - "Metrics": [
13273 - {
13274 - "Name": "Name",
13275 - "Type": "select",
13276 - "Values": [
13277 - {
13278 - "text": "Webinar 1",
13279 - "value": "Webinar_1"
13280 - },
13281 - {
13282 - "text": "Webinar 2",
13283 - "value": "Webinar_2"
13284 - }
13285 - ]
13286 - },
13287 - {
13288 - "Name": "Attendance Status",
13289 - "Type": "select",
13290 - "Values": [
13291 - {
13292 - "text": "Attended",
13293 - "value": "attended"
13294 - },
13295 - {
13296 - "text": "Not Attended",
13297 - "value": "not_attended"
13298 - }
13299 - ]
13300 - },
13301 - {
13302 - "Name": "Price",
13303 - "Type": "numeric"
13304 - },
13305 - {
13306 - "Name": "Transaction Date",
13307 - "Type": "text"
13308 - },
13309 - {
13310 - "Name": "id",
13311 - "Type": "text"
13312 - },
13313 - {
13314 - "Name": "activity_time",
13315 - "Type": "text"
13316 - }
13317 - ]
13318 - }
13319 - ]
13320 -}
13321 -{{/code}}
13322 -
13323 -\\
13324 -
13325 13325  (% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13326 13326  == (% 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 Engagement(%%) ==
13327 13327  
... ... @@ -13341,11 +13341,11 @@
13341 13341  
13342 13342  ----
13343 13343  
13344 -{{code language="yml" theme="RDark" title="Body"}}
13345 -{"Name":"Test engagement 3", "Metrics":[
13346 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13175 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
13176 +{"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[
13177 + {"Name":[{"webinar ID 5":"Webinar 5"},{"webinar ID 4":"Webinar 4"}],"Type": "select"},
13347 13347   {"Price":[],"Type": "text"}
13348 - ]}
13179 +]}
13349 13349  {{/code}}
13350 13350  
13351 13351  ==== Example ====
... ... @@ -13354,7 +13354,7 @@
13354 13354  
13355 13355  (% style="color: rgb(107,107,107);" %)Request
13356 13356  
13357 -{{code language="php" theme="RDark" title="Update Engagement Request"}}
13188 +{{code language="php" theme="RDark" title="Update Engagement Request" collapse="true"}}
13358 13358   <?php
13359 13359  
13360 13360  $curl = curl_init();
... ... @@ -13368,13 +13368,12 @@
13368 13368   CURLOPT_FOLLOWLOCATION => true,
13369 13369   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13370 13370   CURLOPT_CUSTOMREQUEST => 'PUT',
13371 - CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[
13372 - {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"},
13202 + CURLOPT_POSTFIELDS =>'{"Name":"Engagement Name", "Description":"Engagement Description", "Metrics":[
13203 + {"Name":[{"webinar ID 5":"Webinar 5"},{"webinar ID 4":"Webinar 4"}],"Type": "select"},
13373 13373   {"Price":[],"Type": "text"}
13374 - ]}',
13205 +]}',
13375 13375   CURLOPT_HTTPHEADER => array(
13376 - 'Appkey: {{ONECOUNT API KEY}}',
13377 - 'Content-Type: application/json'
13207 + 'Appkey: {{ONECOUNT API KEY}}'
13378 13378   ),
13379 13379  ));
13380 13380  
... ... @@ -13382,79 +13382,10 @@
13382 13382  
13383 13383  curl_close($curl);
13384 13384  echo $response;
13385 -
13386 13386  {{/code}}
13387 13387  
13388 13388  \\
13389 13389  
13390 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13391 -
13392 -{{code language="yml" theme="RDark" title="Update Engagement Response" collapse="true"}}
13393 -{
13394 - "result": {
13395 - "success": "1",
13396 - "error": {
13397 - "code": "",
13398 - "message": ""
13399 - }
13400 - },
13401 - "Engagements": [
13402 - {
13403 - "Id": "e0e816ec-77ba-4db1-bfc0-22d340337357",
13404 - "Name": "Test engagement 3",
13405 - "Metrics": [
13406 - {
13407 - "Name": "Attendance Status",
13408 - "Type": "select",
13409 - "Values": [
13410 - {
13411 - "text": "Attended",
13412 - "value": "attended"
13413 - },
13414 - {
13415 - "text": "Not Attended",
13416 - "value": "not_attended"
13417 - }
13418 - ]
13419 - },
13420 - {
13421 - "Name": "Price",
13422 - "Type": "text"
13423 - },
13424 - {
13425 - "Name": "Name",
13426 - "Type": "select",
13427 - "Values": [
13428 - {
13429 - "text": "Webinar 1",
13430 - "value": "Webinar_1"
13431 - },
13432 - {
13433 - "text": "Webinar 2",
13434 - "value": "Webinar_2"
13435 - }
13436 - ]
13437 - },
13438 - {
13439 - "Name": "Transaction Date",
13440 - "Type": "text"
13441 - },
13442 - {
13443 - "Name": "id",
13444 - "Type": "text"
13445 - },
13446 - {
13447 - "Name": "activity_time",
13448 - "Type": "text"
13449 - }
13450 - ]
13451 - }
13452 - ]
13453 -}
13454 -{{/code}}
13455 -
13456 -\\
13457 -
13458 13458  (% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13459 13459  == (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %) Add User to Engagement(%%) ==
13460 13460  
... ... @@ -13474,8 +13474,8 @@
13474 13474  
13475 13475  ----
13476 13476  
13477 -{{code language="yml" theme="RDark" title="Body"}}
13478 -{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","show id":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}
13238 +{{code language="yml" theme="RDark" title="Body" collapse="true"}}
13239 +{"Engagement id":"073b3a98-129b-440e-90b1-57957215ca67","Vendor id":1, "Engagement show id":"webinar ID 4","User id":"3143231","timestamp":1702319997, "data":{"Attendance Status":"not_attended","Price":10.00},"segment":["segment id 1"]}
13479 13479  {{/code}}
13480 13480  
13481 13481  ==== Example ====
... ... @@ -13484,7 +13484,7 @@
13484 13484  
13485 13485  (% style="color: rgb(107,107,107);" %)Request
13486 13486  
13487 -{{code language="php" theme="RDark" title="Add User to Engagement Request"}}
13248 +{{code language="php" theme="RDark" title="Add User to Engagement Request" collapse="true"}}
13488 13488   <?php
13489 13489  
13490 13490  $curl = curl_init();
... ... @@ -13498,7 +13498,7 @@
13498 13498   CURLOPT_FOLLOWLOCATION => true,
13499 13499   CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13500 13500   CURLOPT_CUSTOMREQUEST => 'POST',
13501 - CURLOPT_POSTFIELDS =>'{"engagement id":"e0e816ec-77ba-4db1-bfc0-22d340337357","show id":"Webinar_1","ocid":"1845775", "date":"2023-12-31 14:12:38", "data":{"price":"10","attendance_status":"not_attended"},"segment":{}}',
13262 + CURLOPT_POSTFIELDS =>'{"Engagement id":"073b3a98-129b-440e-90b1-57957215ca67","Vendor id":1, "Engagement show id":"webinar ID 4","User id":"3143231","timestamp":1702319997, "data":{"Attendance Status":"not_attended","Price":10.00},"segment":["segment id 1"]}',
13502 13502   CURLOPT_HTTPHEADER => array(
13503 13503   'Appkey: {{ONECOUNT API KEY}}'
13504 13504   ),
... ... @@ -13510,594 +13510,7 @@
13510 13510  echo $response;
13511 13511  {{/code}}
13512 13512  
13513 -\\
13514 -
13515 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13516 -
13517 -{{code language="yml" theme="RDark" title="Add Users to Engagement Response" collapse="true"}}
13518 - {
13519 - "result": {
13520 - "success": "1",
13521 - "error": {
13522 - "code": "",
13523 - "message": ""
13524 - }
13525 - },
13526 - "Users": {
13527 - "ocid": 1845775,
13528 - "uuid": {
13529 - "type": {
13530 - "name": "uuid"
13531 - },
13532 - "uuid": "a1425a04-4c0c-4790-bcd6-425bc7729fd7",
13533 - "version": 4
13534 - },
13535 - "blacklisted": null,
13536 - "demo": {
13537 - "1": "rayaan@one-count.com",
13538 - "2": "user_1701788987",
13539 - "3": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5"
13540 - },
13541 - "email": "rayaan@one-count.com",
13542 - "espid": null,
13543 - "known": {
13544 - "type": {
13545 - "name": "smallint"
13546 - },
13547 - "value": "1"
13548 - },
13549 - "ocid_hash": "57b81cf5536171c84e6e8a0b762251ee7819737b2e95f1390fed97acc11a277b",
13550 - "partners_hash": null,
13551 - "password": "5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5",
13552 - "payment_cc_exp": null,
13553 - "payment_vendor_token": null,
13554 - "products": {
13555 - "599": "447"
13556 - },
13557 - "remarks": null,
13558 - "resources": null,
13559 - "smartlink_hash": null,
13560 - "subscription_active_resource_info": null,
13561 - "subscription_active_term_info": {
13562 - "447": "{\"renewed\":1,\"expiration_month\":202512,\"product_status\":\"2\",\"expiration_date\":20251211}"
13563 - },
13564 - "subscription_log": {
13565 - "type": {
13566 - "valueType": {
13567 - "name": "varchar"
13568 - }
13569 - },
13570 - "values": [
13571 - "{\"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\"}",
13572 - "{\"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\"}",
13573 - "{\"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\"}"
13574 - ]
13575 - },
13576 - "subscription_log_by_resource": null,
13577 - "subscription_source_code": [
13578 - "83"
13579 - ],
13580 - "targets": null,
13581 - "timestamp": {
13582 - "type": {
13583 - "name": "bigint"
13584 - },
13585 - "value": "1701788987"
13586 - },
13587 - "unconfirmed": null,
13588 - "update_time": null,
13589 - "username": "user_1701788987",
13590 - "vendor_blacklisted": null,
13591 - "vendor_esp": null,
13592 - "vendor_unconfirmed": null
13593 - }
13594 -}
13595 -{{/code}}
13596 -
13597 -\\
13598 -
13599 13599  (% class="western" %)
13600 -=== **COMPONENT: Segments
13601 -** ===
13602 -
13603 -(% class="western" %)
13604 -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.
13605 -
13606 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13607 -(((
13608 -(% class="western" %)
13609 -**Method**
13610 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13611 -(((
13612 -(% class="western" %)
13613 -**Url**
13614 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13615 -(((
13616 -(% class="western" %)
13617 -**Action**
13618 -)))
13619 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13620 -(((
13621 -(% class="western" %)
13622 -GET
13623 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13624 -(((
13625 -(% class="western" %)
13626 -/(% style="color: rgb(33,33,33);" %)segments
13627 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13628 -(((
13629 -(% class="western" %)
13630 -Get all segments.
13631 -)))
13632 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13633 -(((
13634 -(% class="western" %)
13635 -GET
13636 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13637 -(((
13638 -(% class="western" %)
13639 -/(% style="color: rgb(33,33,33);" %)segments(%%)/(% class="resolvedVariable" style="text-decoration: none;" %)~{~{Segment id}}
13640 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13641 -(((
13642 -(% class="western" %)
13643 -Get specific segment based on segment id.
13644 -)))
13645 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13646 -(((
13647 -(% class="western" %)
13648 -POST
13649 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13650 -(((
13651 -(% class="western" %)
13652 -/(% style="color: rgb(33,33,33);" %)segments/addUsers
13653 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13654 -(((
13655 -(% class="western" %)
13656 -Add users to segment.
13657 -)))
13658 -(% class="" %)|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13659 -(((
13660 -(% class="western" %)
13661 -GET
13662 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13663 -(((
13664 -(% class="western" %)
13665 -/(% style="color: rgb(33,33,33);" %)segments/users/(% class="resolvedVariable" style="text-decoration: none;" %)~{~{ocid}}
13666 -)))|(% style="text-align: left;vertical-align: top;" %)(% style="text-align: left;vertical-align: top;" %)
13667 -(((
13668 -(% class="western" %)
13669 -Get all segment user has be subscribed based on user id.
13670 -)))
13671 -
13672 -\\
13673 -
13674 -(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13675 -== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)All Segments(%%) ==
13676 -
13677 -----
13678 -
13679 -----
13680 -
13681 -{{panel bgColor="#D3D3D3" width="100%"}}
13682 -(% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color: rgb(33,33,33);" %)/segments
13683 -{{/panel}}
13684 -
13685 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) ===
13686 -
13687 -----
13688 -
13689 -(% 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}}
13690 -
13691 -==== Example ====
13692 -
13693 -----
13694 -
13695 -(% style="color: rgb(107,107,107);" %)Request
13696 -
13697 -{{code language="php" theme="RDark" title="Get All Segments Request"}}
13698 -<?php
13699 -
13700 -$curl = curl_init();
13701 -
13702 -curl_setopt_array($curl, array(
13703 - CURLOPT_URL => 'https://api.onecount.net/v2/segments',
13704 - CURLOPT_RETURNTRANSFER => true,
13705 - CURLOPT_ENCODING => '',
13706 - CURLOPT_MAXREDIRS => 10,
13707 - CURLOPT_TIMEOUT => 0,
13708 - CURLOPT_FOLLOWLOCATION => true,
13709 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13710 - CURLOPT_CUSTOMREQUEST => 'GET',
13711 - CURLOPT_HTTPHEADER => array(
13712 - 'Appkey: {{ONECOUNT API KEY}}'
13713 - ),
13714 -));
13715 -
13716 -$response = curl_exec($curl);
13717 -
13718 -curl_close($curl);
13719 -echo $response;
13720 -{{/code}}
13721 -
13722 -\\
13723 -
13724 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13725 -
13726 -{{code language="yml" theme="RDark" title="Get All Segments Response" collapse="true"}}
13727 - {
13728 - "result": {
13729 - "success": "1",
13730 - "error": {
13731 - "code": "",
13732 - "message": ""
13733 - }
13734 - },
13735 - "Segments": [
13736 - {
13737 - "Id": "891aa4b6-9e0e-4706-b08a-e7acb54e7e43",
13738 - "Name": "2022 Use Cases PDF Download"
13739 - },
13740 - {
13741 - "Id": "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
13742 - "Name": "58-percent conversion-rate"
13743 - },
13744 - {
13745 - "Id": "43eefdc6-89ab-4472-88c3-e16fb9619138",
13746 - "Name": "Audience Marketing Pop-Up"
13747 - },
13748 - {
13749 - "Id": "68219b37-c155-4459-a5ce-497261286ffe",
13750 - "Name": "Bold Minds Reminders"
13751 - },
13752 - {
13753 - "Id": "6450defc-7658-4182-9c2a-a8f8420f801e",
13754 - "Name": "Demo - Aviator's Guide - NL Popup"
13755 - },
13756 - {
13757 - "Id": "28774f7c-9fd3-4dff-a42e-683460f437c0",
13758 - "Name": "Getting 80-Percent Conversion Rates Pop-up"
13759 - },
13760 - {
13761 - "Id": "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
13762 - "Name": "Holiday Special Offer - 3 mo. Pilot"
13763 - },
13764 - {
13765 - "Id": "16305ad0-8e65-4085-942e-04d99fd39207",
13766 - "Name": "Identity Resolution Test II"
13767 - },
13768 - {
13769 - "Id": "fcdfa9cb-baa2-4cc8-86b3-8f604471f2f3",
13770 - "Name": "Live ONEcount Popup Example Segment"
13771 - },
13772 - {
13773 - "Id": "2463b0a3-1e22-4fd0-97b2-bbdae30e585a",
13774 - "Name": "Live webinar - June 15 - Accelerate Revenue"
13775 - },
13776 - {
13777 - "Id": "d8d1bc9d-ede2-4c82-a747-10ab9fb979de",
13778 - "Name": "LIVE WEBINAR ONEcount BI Pop-up Campaign"
13779 - },
13780 - {
13781 - "Id": "d883ecdb-5307-416d-9558-c196472021c9",
13782 - "Name": "New Year - Increase Revenue 30-Percent"
13783 - },
13784 - {
13785 - "Id": "08abbc5b-aafe-4834-90f5-ac45fe025d73",
13786 - "Name": "OC Test"
13787 - },
13788 - {
13789 - "Id": "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
13790 - "Name": "Something big"
13791 - },
13792 - {
13793 - "Id": "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
13794 - "Name": "Something No Other Platform Has"
13795 - },
13796 - {
13797 - "Id": "5eaa0345-a825-4ba0-a787-336312a77744",
13798 - "Name": "Something Revolutionary"
13799 - },
13800 - {
13801 - "Id": "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
13802 - "Name": "Something that will change your life"
13803 - },
13804 - {
13805 - "Id": "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
13806 - "Name": "Something You Have Always Wanted"
13807 - },
13808 - {
13809 - "Id": "28361c73-e253-49bb-a791-5481be2070a0",
13810 - "Name": "Something You Never Thought Possible"
13811 - },
13812 - {
13813 - "Id": "86e7129a-a538-4c56-a731-7e9c08fa8814",
13814 - "Name": "Test behaviour "
13815 - },
13816 - {
13817 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13818 - "Name": "Test behaviour banner segment"
13819 - },
13820 - {
13821 - "Id": "78ffd6d7-0b40-4e5a-8f32-622a04fb5561",
13822 - "Name": "Test behaviour combo"
13823 - },
13824 - {
13825 - "Id": "0022394d-7901-4aff-98c2-0c8c04fcb27a",
13826 - "Name": "Test behaviour content"
13827 - },
13828 - {
13829 - "Id": "89424642-1363-476e-9842-4f0a2544151f",
13830 - "Name": "Test behaviour email"
13831 - },
13832 - {
13833 - "Id": "ca848e53-3f3e-43c6-ae61-f331f3135c6c",
13834 - "Name": "Test demographic segments"
13835 - },
13836 - {
13837 - "Id": "e11d11fa-7603-4dee-a361-c6e909249ecd",
13838 - "Name": "Test with unknown only selecting all filters"
13839 - }
13840 - ]
13841 -}
13842 -{{/code}}
13843 -
13844 -\\
13845 -
13846 -(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13847 -== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)specific Segments(%%) ==
13848 -
13849 -----
13850 -
13851 -{{panel bgColor="#D3D3D3" width="100%"}}
13852 - (% class="nolink nolink" %)https:~/~/api.onecount.net/v2(% class="nolink" style="color: rgb(33,33,33);" %)/segments/~{~{segment id}}
13853 -{{/panel}}
13854 -
13855 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) ===
13856 -
13857 -----
13858 -
13859 -(% 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}}
13860 -
13861 -==== Example ====
13862 -
13863 -----
13864 -
13865 -(% style="color: rgb(107,107,107);" %)Request
13866 -
13867 -{{code language="php" theme="RDark" title="Get specific Segment Request"}}
13868 - <?php
13869 -
13870 -$curl = curl_init();
13871 -
13872 -curl_setopt_array($curl, array(
13873 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/{{segment id}}',
13874 - CURLOPT_RETURNTRANSFER => true,
13875 - CURLOPT_ENCODING => '',
13876 - CURLOPT_MAXREDIRS => 10,
13877 - CURLOPT_TIMEOUT => 0,
13878 - CURLOPT_FOLLOWLOCATION => true,
13879 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13880 - CURLOPT_CUSTOMREQUEST => 'GET',
13881 - CURLOPT_HTTPHEADER => array(
13882 - 'Appkey: {{ONECOUNT API KEY}}'
13883 - ),
13884 -));
13885 -
13886 -$response = curl_exec($curl);
13887 -
13888 -curl_close($curl);
13889 -echo $response;
13890 -{{/code}}
13891 -
13892 -\\
13893 -
13894 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13895 -
13896 -{{code language="yml" theme="RDark" title="Get specific Segments Response" collapse="true"}}
13897 - {
13898 - "result": {
13899 - "success": "1",
13900 - "error": {
13901 - "code": "",
13902 - "message": ""
13903 - }
13904 - },
13905 - "Segments": {
13906 - "Id": "e5e53cd4-bbd0-465b-b426-e267964fd0b4",
13907 - "Demos": {
13908 - "_empty_": [],
13909 - "type": ""
13910 - },
13911 - "Description": "",
13912 - "Action": {
13913 - "action": {}
13914 - },
13915 - "Name": "Test behaviour banner segment",
13916 - "Behaviours": [
13917 - {
13918 - "end_date": "05/26/2022",
13919 - "date_type": "Future",
13920 - "sub_category_values": [],
13921 - "sub_category": "clicked",
13922 - "category": "1",
13923 - "targets": [
13924 - "all"
13925 - ],
13926 - "joining_logic": "AND",
13927 - "frequency": "1",
13928 - "start_date": "04/26/2022",
13929 - "day_count": "100"
13930 - }
13931 - ],
13932 - "Accounts": []
13933 - }
13934 -}
13935 -{{/code}}
13936 -
13937 -\\
13938 -
13939 -(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
13940 -== (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33, 33, 33); color: rgb(173, 122, 3)" %)POST(% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %) Add users to segments(%%) ==
13941 -
13942 -----
13943 -
13944 -{{panel bgColor="#D3D3D3" width="100%"}}
13945 -(% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/segments/addUsers
13946 -{{/panel}}
13947 -
13948 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) ===
13949 -
13950 -----
13951 -
13952 -(% 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}}
13953 -
13954 -=== (% style="color: rgb(33,33,33);" %)Body (% style="color: rgb(107,107,107);" %)raw (json)(%%) ===
13955 -
13956 -----
13957 -
13958 -{{code language="yml" theme="RDark" title="Body"}}
13959 -{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}
13960 -{{/code}}
13961 -
13962 -==== Example ====
13963 -
13964 -----
13965 -
13966 -(% style="color: rgb(107,107,107);" %)Request
13967 -
13968 -{{code language="php" theme="RDark" title="Add users to Segment Request"}}
13969 -<?php
13970 -
13971 -$curl = curl_init();
13972 -
13973 -curl_setopt_array($curl, array(
13974 - CURLOPT_URL => 'https://api.onecount.net/v2/segments/addUsers',
13975 - CURLOPT_RETURNTRANSFER => true,
13976 - CURLOPT_ENCODING => '',
13977 - CURLOPT_MAXREDIRS => 10,
13978 - CURLOPT_TIMEOUT => 0,
13979 - CURLOPT_FOLLOWLOCATION => true,
13980 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13981 - CURLOPT_CUSTOMREQUEST => 'POST',
13982 - CURLOPT_POSTFIELDS =>'{"Id":"78ffd6d7-0b40-4e5a-8f32-622a04fb5561","Users":[164499,676172,2134321]}',
13983 - CURLOPT_HTTPHEADER => array(
13984 - 'Appkey: {{ONECOUNT API KEY}}',
13985 - 'Content-Type: application/json'
13986 - ),
13987 -));
13988 -
13989 -$response = curl_exec($curl);
13990 -
13991 -curl_close($curl);
13992 -echo $response;
13993 -{{/code}}
13994 -
13995 -\\
13996 -
13997 -(% style="color: rgb(107,107,107);" %)Response  200 OK
13998 -
13999 -{{code language="yml" theme="RDark" title="Add users to segment Response" collapse="true"}}
14000 -{
14001 - "result": {
14002 - "success": "1",
14003 - "error": {
14004 - "code": "",
14005 - "message": ""
14006 - }
14007 - },
14008 - "Segments": {
14009 - "Error user ids": [
14010 - 676172,
14011 - 2134321
14012 - ],
14013 - "Inserted user ids": [
14014 - 164499
14015 - ]
14016 - }
14017 -}
14018 -{{/code}}
14019 -
14020 -\\
14021 -
14022 -(% style="margin-left: 0.0px;" class="sc-fznLPX cxTVKx" %)
14023 -== (% class="sc-fzoaKM imuBmi" style="color: rgb(0,127,49);" %)GET (% class="sc-fzomuh jbmEtY documentation-core-item-request-name" style="color: rgb(33,33,33);" %)all segments for a User(%%) ==
14024 -
14025 -----
14026 -
14027 -{{panel bgColor="#D3D3D3" width="100%"}}
14028 - (% class="nolink" %)https:~/~/api.onecount.net/v2(% style="color: rgb(33,33,33);" %)/segments/users/(% class="nolink resolvedVariable" style="text-decoration: none;" %)~{~{ocid}}
14029 -{{/panel}}
14030 -
14031 -=== (% class="core-title" style="color: rgb(33,33,33);" %)Request Headers(%%) ===
14032 -
14033 -----
14034 -
14035 -(% 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}}
14036 -
14037 -==== Example ====
14038 -
14039 -----
14040 -
14041 -(% style="color: rgb(107,107,107);" %)Request
14042 -
14043 -{{code language="php" theme="RDark" title="Get all segments for a user Request"}}
14044 -<?php
14045 -
14046 -$curl = curl_init();
14047 -
14048 -curl_setopt_array($curl, array(
14049 - CURLOPT_URL => 'rayaan.onecount.net/api/v2/segments/users/••••••',
14050 - CURLOPT_RETURNTRANSFER => true,
14051 - CURLOPT_ENCODING => '',
14052 - CURLOPT_MAXREDIRS => 10,
14053 - CURLOPT_TIMEOUT => 0,
14054 - CURLOPT_FOLLOWLOCATION => true,
14055 - CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
14056 - CURLOPT_CUSTOMREQUEST => 'GET',
14057 - CURLOPT_HTTPHEADER => array(
14058 - 'Appkey: {{ONECOUNT API KEY}}'
14059 - ),
14060 -));
14061 -
14062 -$response = curl_exec($curl);
14063 -
14064 -curl_close($curl);
14065 -echo $response;
14066 -{{/code}}
14067 -
14068 -\\
14069 -
14070 -(% style="color: rgb(107,107,107);" %)Response  200 OK
14071 -
14072 -{{code language="yml" theme="RDark" title="Get all Segments for a user Response" collapse="true"}}
14073 -{
14074 - "result": {
14075 - "success": "1",
14076 - "error": {
14077 - "code": "",
14078 - "message": ""
14079 - }
14080 - },
14081 - "Segments": [
14082 - "0d37c79e-deb2-4287-9444-ae4812a9d8f0",
14083 - "1bfb1c06-4b26-4ac3-a616-eb6b225e5f0e",
14084 - "24cf72e9-ad71-489c-89ef-b80d0c42e2e2",
14085 - "28361c73-e253-49bb-a791-5481be2070a0",
14086 - "28774f7c-9fd3-4dff-a42e-683460f437c0",
14087 - "5eaa0345-a825-4ba0-a787-336312a77744",
14088 - "71b655e6-a11a-46af-bed5-b9eb1d6ac3aa",
14089 - "a639cb1f-6509-447b-a1d7-93a8e8ef61b1",
14090 - "bcb403a2-c0a1-414f-90c1-277a41009c97",
14091 - "c905d313-8d5e-45c1-aaab-7f8c8adc2bea",
14092 - "d883ecdb-5307-416d-9558-c196472021c9",
14093 - "d8d1bc9d-ede2-4c82-a747-10ab9fb979de"
14094 - ]
14095 -}
14096 -{{/code}}
14097 -
14098 -\\
14099 -
14100 -(% class="western" %)
14101 14101  === **COMPONENT: Leads
14102 14102  ** ===
14103 14103  
Screen Shot 2020-02-26 at 11.14.29 AM.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiGuest
Size
... ... @@ -1,1 +1,0 @@
1 -397.9 KB
Content
Screen Shot 2020-02-26 at 11.15.52 AM.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiGuest
Size
... ... @@ -1,1 +1,0 @@
1 -50.1 KB
Content
Screen Shot 2020-02-26 at 11.22.13 AM.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiGuest
Size
... ... @@ -1,1 +1,0 @@
1 -159.8 KB
Content
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -108265477
1 +108265485
url
... ... @@ -1,1 +1,1 @@
1 -https://info.onecount.net//wiki/spaces/OD/pages/108265477/ONEcount API Documentation
1 +https://info.onecount.net//wiki/spaces/OD/pages/108265485/ONEcount API Documentation