new apico(client_sid, client_secret)
apico
Parameters:
Name | Type | Description |
---|---|---|
client_sid |
string | your Apico api login |
client_secret |
string | your Apico api password |
Methods
delete_app(app_id)
Parameters:
Name | Type | Description |
---|---|---|
app_id |
string | Application id. |
delete_number_callforwardings()
delete_subscriber()
get_app()
get_app_list()
get_app_number(number)
Parameters:
Name | Type | Description |
---|---|---|
number |
string | The phone number which is being rented. |
get_balance()
get_number_callforwardings(number)
Parameters:
Name | Type | Description |
---|---|---|
number |
string | The phone number. |
get_numbers(typeopt, limitopt, offsetopt, limitopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
type |
string |
<optional> |
SIP | The type of returning phone numbers. This parameter can either be NATIONAL or SIP. |
limit |
number |
<optional> |
1 | limit |
offset |
number |
<optional> |
0 | offset |
limit |
number |
<optional> |
1 | limit |
get_numbers_by_app()
get_numbers_list()
get_sip_numbers(offsetopt, limitopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
offset |
number |
<optional> |
0 | offset |
limit |
number |
<optional> |
1 | limit |
get_subscriber_info()
get_subscribers_list()
login(client_sid, client_secret, grant_typeopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
client_sid |
string | your Apico api login | ||
client_secret |
string | your Apico api password | ||
grant_type |
string |
<optional> |
client_credentials | your Apico api grant_type |
logout()
new_subscriber()
release_number(number)
Parameters:
Name | Type | Description |
---|---|---|
number |
string | The phone number which is being rented. |
rent_number(number, noteopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
number |
string | The phone number which is being rented. | ||
note |
string |
<optional> |
"Web SDK number" | A short description of the phone number |
save_app(name, description, url)
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Application name (255 characters max). |
description |
string | Application description (255 characters max). |
url |
string | The URL to the developer’s website or the page of the application on App Store or Google Play (255 characters max). |
set_number_callforwardings(number, redirects)
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
number |
string | The phone number which is being rented. | |||||||||||||||||||||
redirects |
array | An array with the redirection settings.
Properties
|
update_app(name, descriptionopt, url, app_id)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | Application name (255 characters max). | |
description |
string |
<optional> |
Application description (255 characters max). |
url |
string | The URL to the developer’s website or the page of the application on App Store or Google Play (255 characters max). | |
app_id |
string | Application id. |
update_number(number, noteopt, passwordopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
number |
string | The phone number which is being rented. | ||
note |
string |
<optional> |
"Web SDK number" | A short description of the phone number |
password |
string |
<optional> |
Password for this number. |