Sha256: 4bdd89d466047381f068d33577d3f74ea4070eb9c1db861f496237032e2fd759

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

require 'json'

a = AmoCRM::Client.new url: ENV['AMOCRM_URL'] || 'https://kiosk.amocrm.ru'
a.authorize user_login: ENV['AMOCRM_LOGIN'], user_hash: ENV['AMOCRM_APIKEY']
account = a.get('accounts/current')['account']

File.write 'account.json', JSON.pretty_generate(account.as_json)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amo_crm-0.2.2 dump_amocrm_account.rb