Difference between revisions of "M4 API number pool create"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with "=Description= M2 API for creating number pools. <br><br> =Usage= * From '''M4''' call: '''/api/number_pool_create''' * Methods: POST, GET(if allowed, not recomended) <br><br> ===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). '''Requir...")
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
=Description=
=Description=
[[M2 API]] for creating number pools.
API for creating number pools.




Line 7: Line 7:


* From '''M4''' call: '''/api/number_pool_create'''
* From '''M4''' call: '''/api/number_pool_create'''
* Methods: POST, GET(if allowed, not recomended)
* Methods: POST, GET(if allowed, not recommended)
<br><br>
<br><br>
===Parametres===
===Parametres===


* u - username to login. '''Required'''.
* u - username to log in. '''Required'''.
* name - Number Pool's name
* name - Number Pool's name
* comment - Number Pool's comment
* comment - Number Pool's comment
Line 32: Line 32:
   <status>
   <status>
     <success>Number Pool created</success>
     <success>Number Pool created</success>
    <number_pool_id>2</number_pool_id>
   </status>
   </status>
  </page>
  </page>
<br><br>
=See also=
* [[M4 API]]

Latest revision as of 07:30, 20 April 2023

Description

API for creating number pools.




Usage

  • From M4 call: /api/number_pool_create
  • Methods: POST, GET(if allowed, not recommended)



Parametres



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>
    <number_pool_id>2</number_pool_id>
  </status>
</page>



See also