Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong arg name used in the exemple #8

Closed

Conversation

0xNath
Copy link

@0xNath 0xNath commented Mar 19, 2025

No description provided.

@bfontaine
Copy link
Owner

Hello, thank you but both password and passwd are accepted:

def __init__(self, user, password=None, passwd=None):
"""
Create a new Free Mobile SMS API client. Each client is tied to a phone number.
:param user: username
:param password: password
:param passwd: alias for ``password``.
"""
self._user = user
self._password = password or passwd

@0xNath
Copy link
Author

0xNath commented Mar 19, 2025

Hello, ho effectively.
the code here is not the same as the one on PyPI :

class FreeClient(object):
    BASE_URL = 'https://smsapi.free-mobile.fr/sendmsg'

    def __init__(self, user, passwd):
        """
        Create a new Free Mobile SMS API client. Each client is tied to a phone
        number.
        """
        self._user = user
        self._passwd = passwd

https://files.pythonhosted.org/packages/c4/66/7eab9c01148d0120b795946f9c003c5a9421768b22946f59cf2beb821830/freesms-0.2.0.tar.gz

I tried to use the code from PyPI and use the exemple from the github, that's why I got greeted with an error on this argument.

@bfontaine
Copy link
Owner

Wow, I hadn’t noticed that I had some unreleased changes here on the repo. I released version 0.2.0 on May 17, 2021, and did these changes the day after but never cut a new release.

I just released:

  • version 0.2.1, using the same build system as the 0.2.0, which required some hacks because most of these things are unsupported nowadays
  • version 0.3.0 using a more modern workflow. It's exactly the same code, but it drops support for Python 3.3-3.7.

@0xNath
Copy link
Author

0xNath commented Mar 20, 2025

Thanks !

@0xNath 0xNath closed this Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants