basically implemented the python example with authentication using API_KEY and API_KEY_SECRET