Skip to content

Commit

Permalink
Add logout method
Browse files Browse the repository at this point in the history
  • Loading branch information
baurmatt committed Sep 20, 2017
1 parent 6af62d6 commit 9dabbb9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ zbx = ZabbixApi.connect(
)
```

## Logout
```ruby
require "zabbixapi"

zbx = ZabbixApi.connect(
:url => 'http://localhost/zabbix/api_jsonrpc.php',
:user => 'Admin',
:password => 'zabbix'
)

# Do stuff

zbx.logout
```

## Create Host
```ruby
zbx.hosts.create(
Expand Down

0 comments on commit 9dabbb9

Please sign in to comment.