[Python] Problème avec mon API en python

Discussão em 'Python' iniciado por Stack, Abril 13, 2025.

  1. Stack

    Stack Membro Participativo

    Well, I am a work-study student and I am asked to create an API to retrieve data from their software. (I don't know much about API I discovered with this project, so please don't judge my stupid mistakes).

    The documentation : https://api.sellsy.fr/documentation/methodes

    try:
    infos = client.api(method='Client.getList', params={
    'search'={
    'periodecreated_start'={int(1577836800)}
    }
    })
    except sellsy_api.SellsyAuthenticateError as e:
    print('Authentication failed ! Details : {}'.format(e))
    except sellsy_api.SellsyError as e:
    print(e)


    I am getting this error:

    infos = client.api(method='Client.getList', params={
    ^
    SyntaxError: expression cannot contain assignment, perhaps you meant "=="?


    Here I am trying to get out the list of clients since 01/01/2020.

    Thank you in advance,

    Continue reading...

Compartilhe esta Página