Accept API options in options object

fixes #35