Type Definitions

BalanceObject

Type:
  • object
Properties
NameTypeDescription
balance_stringstringBalance as string
balance_floatnumberBalance as float number
balance_numbernumberBalance as multiplied by 100 as integer number

InitProperties

Type:
  • object
Properties
NameTypeAttributesDefaultDescription
keystringService API key
urlstringService endpoint url
secondUrlstring<optional>
https://smshub.org/api.phpUsed for method `getListOfCountriesAndOperators` (only SMSHUB)
lang'en' | 'ru'<optional>
ruLang code, smshub can return results with russian or english (Only smshub)
service'smshub' | 'smsactivate'Service name
intervalnumber<optional>
2000Polling interval of getCode method

additionalServiceResponse

Type:
  • object
Properties
NameTypeDescription
idstringStatus code
numberstringText from SMS

fullSMSTextResponse

Type:
  • object
Properties
NameTypeAttributesDescription
statusstringStatus code
textstring<optional>
Text from SMS. Is returning _**only if status is not `STATUS_WAIT_CODE`, `STATUS_CANCEL`**_

getCodeResponse

Type:
  • object
Properties
NameTypeDescription
statusstringStatus code
codestring | undefinedCode from SMS

getCodeResponse

Type:
  • object
Properties
NameTypeDescription
statusstringStatus code
codestring | undefinedCode from SMS. Is returning _**only with `STATUS_WAIT_RETRY`, `STATUS_OK` statuses**_