Zadarma CRM API docs.
zadarma_client = ZadarmaApi::Client.new(key: 'string', secret: 'string')
zadarma_client.call('/info/balance/', 'put', { id: 'YOURSIP', status: 'on'})
ZadarmaApi::Client.new(:key, :secret, :sandbox, :api_version)
option | type | description | default | required |
---|---|---|---|---|
key | string | you key | true | |
secret | string | you secret | true | |
sandbox | boolean | enable\desable sandbox | false | false |
api_version | string | zadarma api version | v1 | false |
zadarma_client.call(path, method, params)
option | type | description | default | required |
---|---|---|---|---|
path | string | path | true | |
method | string | get, post, put, delete | get | true |
params | hash | request params | {} | false |