Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.13 KB

README.MD

File metadata and controls

33 lines (24 loc) · 1.13 KB

Zadarma API ruby client

Zadarma CRM API docs.

Simple Usage

zadarma_client = ZadarmaApi::Client.new(key: 'string', secret: 'string')
zadarma_client.call('/info/balance/', 'put', { id: 'YOURSIP', status: 'on'})

Config params

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

Call params

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