diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4c9f80..643bb2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,5 +24,5 @@ jobs: - run: bundle install - env: CONVERT_API_SECRET: ${{ secrets.CONVERTAPI_SECRET }} - # CONVERT_API_TOKEN: ${{ secrets.CONVERTAPI_TOKEN }} + CONVERT_API_TOKEN: ${{ secrets.CONVERTAPI_TOKEN }} run: bundle exec rake spec diff --git a/lib/convert_api/client.rb b/lib/convert_api/client.rb index e028ef4..3027d1a 100644 --- a/lib/convert_api/client.rb +++ b/lib/convert_api/client.rb @@ -124,8 +124,8 @@ def build_form_data(params) end def authentication - return { Token: config.token } unless config.token.nil? return { Secret: config.api_secret } unless config.api_secret.nil? + return { Token: config.token } unless config.token.nil? nil end