joshmarshall/jsonrpclib — pull request #18 by beli-sk (2012-10-08 14:43:29+00:00)
Title: adding extra fields to JSON RPC request structure

Adding custom fields to JSON RPC request.
For use with servers implementing authentication with 'auth' field containing session ID (Zabbix API for example):

```python
import jsonrpc
server = jsonrpclib.Server('http://www.example.org/zabbix/api_jsonrpc.php')

# call remote login method and read the session ID
sid = server.user.login(user = 'apitest', password = 'atest9')

# set the 'extra' module parameter to contain the session ID
jsonrpclib.jsonrpc.extra = { 'auth': sid }

# go on with other procedures which require authentication, e.g.
server.hostgroup.get(output = 'extend', sortfield = 'name')
```

This may not be the best place to put the extra parameter, if you'd suggest a better way, I'd be glad to rewrite my commit.