M4 API number pool create
From Kolmisoft Wiki
Revision as of 11:26, 28 November 2022 by Admin (talk | contribs) (Admin moved page M2 API number pool create to M4 API number pool create)
Description
M2 API for creating number pools.
Usage
- From M4 call: /api/number_pool_create
- Methods: POST, GET(if allowed, not recomended)
Parametres
- u - username to login. Required.
- name - Number Pool's name
- comment - Number Pool's comment
- hash – SHA1 hash constructed using API Secret Key ( More described in Constructing hash). Required.
Request
If API Secret Key = secret
You send:
HTML POST: http://<SERVER IP>/billing/api/number_pool_create?u=admin&name=test2&comment=test_comment&hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
Returns
Success
<?xml version="1.0" encoding="UTF-8"?> <page> <status> <success>Number Pool created</success> </status> </page>