Single-sign-on and self-serve account management. https://netsyms.biz/apps/accounthub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. $APIS = [
  8. "ping" => [
  9. "load" => "ping.php",
  10. "vars" => [
  11. ],
  12. "permission" => [
  13. ]
  14. ],
  15. "auth" => [
  16. "load" => "auth.php",
  17. "vars" => [
  18. "username" => "string",
  19. "password" => "string"
  20. ]
  21. ],
  22. "userinfo" => [
  23. "load" => "userinfo.php",
  24. "vars" => [
  25. "OR" => [
  26. "username" => "string",
  27. "uid" => "numeric"
  28. ]
  29. ]
  30. ],
  31. "userexists" => [
  32. "load" => "userexists.php",
  33. "vars" => [
  34. "OR" => [
  35. "username" => "string",
  36. "uid" => "numeric"
  37. ]
  38. ]
  39. ],
  40. "hastotp" => [
  41. "load" => "hastotp.php",
  42. "vars" => [
  43. "username" => "string"
  44. ]
  45. ],
  46. "verifytotp" => [
  47. "load" => "verifytotp.php",
  48. "vars" => [
  49. "username" => "string",
  50. "code" => "string"
  51. ]
  52. ],
  53. "acctstatus" => [
  54. "load" => "acctstatus.php",
  55. "vars" => [
  56. "username" => "string"
  57. ]
  58. ],
  59. "login" => [
  60. "load" => "login.php",
  61. "vars" => [
  62. "username" => "string",
  63. "password" => "string"
  64. ]
  65. ],
  66. "ismanagerof" => [
  67. "load" => "ismanagerof.php",
  68. "vars" => [
  69. "manager" => "string",
  70. "employee" => "string",
  71. "uid (optional)" => "numeric"
  72. ]
  73. ],
  74. "getmanaged" => [
  75. "load" => "getmanaged.php",
  76. "vars" => [
  77. "OR" => [
  78. "username" => "string",
  79. "uid" => "numeric"
  80. ],
  81. "get (optional)" => "string"
  82. ]
  83. ],
  84. "getmanagers" => [
  85. "load" => "getmanagers.php",
  86. "vars" => [
  87. "OR" => [
  88. "username" => "string",
  89. "uid" => "numeric"
  90. ]
  91. ]
  92. ],
  93. "usersearch" => [
  94. "load" => "usersearch.php",
  95. "vars" => [
  96. "search" => "string"
  97. ]
  98. ],
  99. "permission" => [
  100. "load" => "permission.php",
  101. "vars" => [
  102. "OR" => [
  103. "username" => "string",
  104. "uid" => "numeric"
  105. ],
  106. "code" => "string"
  107. ]
  108. ],
  109. "mobileenabled" => [
  110. "load" => "mobileenabled.php"
  111. ],
  112. "mobilevalid" => [
  113. "load" => "mobilevalid.php",
  114. "vars" => [
  115. "username" => "string",
  116. "code" => "string"
  117. ]
  118. ],
  119. "alertemail" => [
  120. "load" => "alertemail.php",
  121. "vars" => [
  122. "username" => "string",
  123. "appname (optional)" => "string"
  124. ]
  125. ],
  126. "codelogin" => [
  127. "load" => "codelogin.php",
  128. "vars" => [
  129. "code" => "string"
  130. ]
  131. ],
  132. "listapps" => [
  133. "load" => "listapps.php"
  134. ],
  135. "getusersbygroup" => [
  136. "load" => "getusersbygroup.php",
  137. "vars" => [
  138. "gid" => "numeric",
  139. "get (optional)" => "string"
  140. ]
  141. ],
  142. "getgroupsbyuser" => [
  143. "load" => "getgroupsbyuser.php",
  144. "vars" => [
  145. "OR" => [
  146. "uid" => "numeric",
  147. "username" => "string"
  148. ]
  149. ]
  150. ],
  151. "getgroups" => [
  152. "load" => "getgroups.php"
  153. ],
  154. "groupsearch" => [
  155. "load" => "groupsearch.php",
  156. "vars" => [
  157. "search" => "string"
  158. ]
  159. ],
  160. "checkpin" => [
  161. "load" => "checkpin.php",
  162. "vars" => [
  163. "pin" => "string",
  164. "OR" => [
  165. "uid" => "numeric",
  166. "username" => "string"
  167. ]
  168. ]
  169. ],
  170. "getnotifications" => [
  171. "load" => "getnotifications.php",
  172. "vars" => [
  173. "OR" => [
  174. "uid" => "numeric",
  175. "username" => "string"
  176. ]
  177. ]
  178. ],
  179. "readnotification" => [
  180. "load" => "readnotification.php",
  181. "vars" => [
  182. "OR" => [
  183. "uid" => "numeric",
  184. "username" => "string"
  185. ],
  186. "id" => "numeric"
  187. ]
  188. ],
  189. "addnotification" => [
  190. "load" => "addnotification.php",
  191. "vars" => [
  192. "OR" => [
  193. "uid" => "numeric",
  194. "username" => "string"
  195. ],
  196. "title" => "string",
  197. "content" => "string",
  198. "timestamp (optional)" => "string",
  199. "url (optional)" => "string",
  200. "sensitive (optional)" => "string"
  201. ]
  202. ],
  203. "deletenotification" => [
  204. "load" => "deletenotification.php",
  205. "vars" => [
  206. "OR" => [
  207. "uid" => "numeric",
  208. "username" => "string"
  209. ],
  210. "id" => "numeric"
  211. ]
  212. ],
  213. "getloginkey" => [
  214. "load" => "getloginkey.php",
  215. "vars" => [
  216. "appname" => "string",
  217. "appicon (optional)" => "string"
  218. ]
  219. ],
  220. "checkloginkey" => [
  221. "load" => "checkloginkey.php",
  222. "vars" => [
  223. "code" => "string"
  224. ]
  225. ]
  226. ];