MOR API device rules get

From Kolmisoft Wiki
Revision as of 13:06, 15 April 2019 by Nerijuss (talk | contribs) (Created page with '=Description= MOR API device rules get <br><br> =Usage= * Call: /api/device_rules_get * Methods: POST, GET(if allowed, not recomended) <br><br> ===Parameters=== Parameter…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

MOR API device rules get

Usage

  • Call: /api/device_rules_get
  • Methods: POST, GET(if allowed, not recomended)



Parameters

Parameters which are included into hash:

  • device_id - List rules of this Device. Required.



Parameters which are not included into hash:

  • hash - SHA1 hash constructed using parameters which are listed above. Note that parameters are shown in the same order as they have to be when generating the hash. Last parameter in a row is API_Secret_Key ( More described in Constructing hash). Required.
  • u - username for authentication. Required.



Request

We have device_id = 2, API Secret Key = secret

We send:

HTML POST: http://<SERVER_IP>/billing/api/device_rules_get?u=admin&device_id=2&hash=6e79d4a82f68102f43be11d873177f47817f84df



Returns

Success





Errors


Example:

<?xml version="1.0" encoding="UTF-8"?>
<page>
  <error>Error message</error>
</page>



See also