mirror of
https://github.com/retailcrm/api-client-ruby.git
synced 2024-11-22 13:06:06 +03:00
Update README.md
This commit is contained in:
parent
4358a6e815
commit
978f2f0509
@ -17,7 +17,7 @@ gem install retailcrm
|
|||||||
```ruby
|
```ruby
|
||||||
require 'retailcrm'
|
require 'retailcrm'
|
||||||
|
|
||||||
api = Retailcrm.new('https://yourcrmname.retailcrm.ru', 'yourApiKeyHere')
|
api = Retailcrm.new('https://yourcrmname.retailcrm.pro', 'yourApiKeyHere')
|
||||||
|
|
||||||
response = api.orders_get(345, 'id').response
|
response = api.orders_get(345, 'id').response
|
||||||
order = response[:order]
|
order = response[:order]
|
||||||
@ -29,7 +29,7 @@ order = response[:order]
|
|||||||
```ruby
|
```ruby
|
||||||
require 'retailcrm'
|
require 'retailcrm'
|
||||||
|
|
||||||
api = Retailcrm.new('https://yourcrmname.retailcrm.ru', 'yourApiKeyHere')
|
api = Retailcrm.new('https://yourcrmname.retailcrm.pro', 'yourApiKeyHere')
|
||||||
|
|
||||||
order = {
|
order = {
|
||||||
:externalId => 171,
|
:externalId => 171,
|
||||||
@ -71,5 +71,5 @@ order_id = response[:id]
|
|||||||
|
|
||||||
#### Documentation
|
#### Documentation
|
||||||
|
|
||||||
* http://www.retailcrm.ru/docs/Developers/ApiVersion3
|
* http://www.retailcrm.pro/docs/Developers/ApiVersion3
|
||||||
* http://www.rubydoc.info/gems/retailcrm
|
* http://www.rubydoc.info/gems/retailcrm
|
||||||
|
Loading…
Reference in New Issue
Block a user