Skip to content

Alternative converter parameter is case-sensitive #35

Closed

Description

@kostas-jonauskas

The customer complains that the "converter" parameter is case-sensitive and doesn't work as we described in our auto-generated code snippet:

image

This Python code doesn't switch Converter type - it stays default.

convertapi.api_secret = 'your-api-secret'
convertapi.convert('pdf', {
'File': '/path/to/my_file.csv',
'Converter': 'Printer'
}, from_format = 'csv').save_files('/path/to/dir')

But if I change the "Converter" key "converter" key - it starts working. In GitHub the function uses param["converter"]
https://github.com/ConvertAPI/convertapi-python/blob/master/convertapi/task.py

Activity

  1. tomasr78 commented on Feb 6, 2023

    @tomasr78
    Contributor

    @laurynas parameters name must be case-insensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions