Bug fixes and syntax correction

- SSL in curl issue fixed
- Undefined api key and retrieve options error fixed