Update api.py

Add allowed params from API reference according to the documentation.
Merge pull request #454 from arudmin/patch-1

Update api.py