Changes for page ONEcount API Documentation
Last modified by Rayaan Ahmed on 2025/02/09 22:20
From version 12.1
edited by Admin User
on 2024/04/29 14:06
on 2024/04/29 14:06
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.a dmin1 +XWiki.rayaan - Content
-
... ... @@ -330,6 +330,10 @@ 330 330 331 331 ---- 332 332 333 +{{panel bgColor="#D3D3D3" width="100%"}} 334 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users 335 +{{/panel}} 336 + 333 333 === (% class="core-title" style="color:#212121" %)Request Headers(%%) === 334 334 335 335 ---- ... ... @@ -864,6 +864,12 @@ 864 864 865 865 ---- 866 866 871 +{{panel bgColor="#D3D3D3" width="100%"}} 872 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/(% style="color:#212121" %)~{~{OCID}} 873 +{{/panel}} 874 + 875 +=== (% class="core-title" style="color:#212121" %)Request Headers(%%) === 876 + 867 867 ---- 868 868 869 869 (% class="Text__TextContainer-sc-1kqigik-0 cEvDCP iauueY item-key sc-fznXWL" style="color:#212121" %)Appkey (% class="Text__TextContainer-sc-1kqigik-0 iYynAw" style="color:#212121" %)~{~{ONECOUNT API KEY}} ... ... @@ -956,6 +956,10 @@ 956 956 957 957 ---- 958 958 969 +{{panel bgColor="#D3D3D3" width="100%"}} 970 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users(% class="nolink" style="color:#212121" %)/login 971 +{{/panel}} 972 + 959 959 === (% class="core-title" style="color:#212121" %)Request Headers(%%) === 960 960 961 961 ---- ... ... @@ -1026,6 +1026,10 @@ 1026 1026 1027 1027 ---- 1028 1028 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}} 1046 + 1029 1029 === (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1030 1030 1031 1031 ---- ... ... @@ -1102,6 +1102,10 @@ 1102 1102 1103 1103 ---- 1104 1104 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}} 1126 + 1105 1105 === (% class="core-title" style="color:#212121" %)Request Headers(%%) === 1106 1106 1107 1107 ---- ... ... @@ -1113,7 +1113,11 @@ 1113 1113 1114 1114 ---- 1115 1115 1138 +{{panel bgColor="#D3D3D3" width="100%"}} 1139 +(% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users 1140 +{{/panel}} 1116 1116 1142 + 1117 1117 (% class="western" %) 1118 1118 **POST method should be used to create users.** 1119 1119 ... ... @@ -1282,7 +1282,11 @@ 1282 1282 1283 1283 ---- 1284 1284 1311 +{{panel bgColor="#D3D3D3" width="100%"}} 1312 + (% class="nolink nolink" %)https:~/~/api.onecount.net/v2/users/~{~{OCID(% class="nolink" %)}} 1313 +{{/panel}} 1285 1285 1315 + 1286 1286 (% class="western" %) 1287 1287 **PUT method should be used to update users.** 1288 1288 ... ... @@ -10139,7 +10139,7 @@ 10139 10139 (% id="HCOMPONENT:SourceCodes" class="western" %) 10140 10140 === **COMPONENT: Source Codes** === 10141 10141 10142 -* 10172 +* 10143 10143 ** === 10144 10144 10145 10145 (% class="western" %) ... ... @@ -13368,7 +13368,7 @@ 13368 13368 13369 13369 {{code language="yml" title="Body"}} 13370 13370 {"Metrics":[ 13371 - {"Attendance Status":[{"text":"checks","value":"checks"},{"text":"c","value":"c"}]}, 13401 + {"Attendance Status":[{"text":"check's","value":"check's"},{"text":"c","value":"c"}]}, 13372 13372 {"lagacy status":[{"text":"c","value":"c"}]} 13373 13373 ]} 13374 13374 {{/code}} ... ... @@ -13379,7 +13379,7 @@ 13379 13379 13380 13380 (% style="color:#6b6b6b" %)Request 13381 13381 13382 -{{code language="php" title=" (% class=~"documentation-core-item-request-namejbmEtYsc-fzomuh~" style=~"color:#212121~" %)Add optionso metric"}}13412 +{{code language="php" title="Update Engagement Request"}} 13383 13383 <?php 13384 13384 13385 13385 $curl = curl_init(); ... ... @@ -13393,9 +13393,9 @@ 13393 13393 CURLOPT_FOLLOWLOCATION => true, 13394 13394 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 13395 13395 CURLOPT_CUSTOMREQUEST => 'PUT', 13396 - CURLOPT_POSTFIELDS =>'{"Metrics":[ 13397 - {"Attendance Status":[{"text":" checks","value":"checks"},{"text":"c","value":"c"}]},13398 - {" lagacy status":[{"text":"c","value":"c"}]}13426 + CURLOPT_POSTFIELDS =>'{"Name":"Test engagement 3", "Metrics":[ 13427 + {"Attendance Status":[{"text":"Attended","value":"attended"},{"text":"Not Attended","value":"not_attended"}],"Type": "select"}, 13428 + {"Price":[],"Type": "text"} 13399 13399 ]}', 13400 13400 CURLOPT_HTTPHEADER => array( 13401 13401 'Appkey: {{ONECOUNT API KEY}}', ... ... @@ -13413,7 +13413,7 @@ 13413 13413 13414 13414 (% style="color:#6b6b6b" %)Response 200 OK 13415 13415 13416 -{{code language="yml" t itle="(%class=~"documentation-core-item-request-namejbmEtYsc-fzomuh~" style=~"color:#212121~" %)Add optionsto metric"}}13446 +{{code language="yml" theme="RDark" collapse="true" title="Update Engagement Response"}} 13417 13417 { 13418 13418 "result": { 13419 13419 "success": "1", ... ... @@ -13438,14 +13438,6 @@ 13438 13438 { 13439 13439 "text": "Not Attended", 13440 13440 "value": "not_attended" 13441 - }, 13442 - { 13443 - "text":"checks", 13444 - "value":"checks" 13445 - }, 13446 - { 13447 - "text":"c", 13448 - "value":"c" 13449 13449 } 13450 13450 ] 13451 13451 }, ... ... @@ -13632,7 +13632,7 @@ 13632 13632 (% id="HCOMPONENT:Segments" class="western" %) 13633 13633 === **COMPONENT: Segments** === 13634 13634 13635 -* 13657 +* 13636 13636 ** === 13637 13637 13638 13638 (% class="western" %) ... ... @@ -14125,7 +14125,7 @@ 14125 14125 (% id="HCOMPONENT:Leads" class="western" %) 14126 14126 === **COMPONENT: Leads** === 14127 14127 14128 -* 14150 +* 14129 14129 ** === 14130 14130 14131 14131 (% class="western" %)