added missing service_key attribute, replaced pass with api_key