CuriousLearner / django-phone-verify

A Django app to support phone number verification using security code / One-Time-Password (OTP) sent via SMS.
https://www.sanyamkhurana.com/django-phone-verify/
GNU General Public License v3.0
258 stars 61 forks source link

adding smsir backend support #85

Open mojtabaakbari221b opened 1 year ago

mojtabaakbari221b commented 1 year ago

SMSIR is a large SMS panel in Iran. My codes add the Backend of connection with this panel.

CuriousLearner commented 1 year ago

Hey @mojtabaakbari221b Thank you for your contribution!

Can you please share the API docs of that provider here?

Thanks!

mojtabaakbari221b commented 1 year ago

Everything is similar to other package backends, only the settings are different:


PHONE_VERIFICATION = {
    . . .
    "BACKEND": "phone_verify.backends.smsir.SmsIrBackend",
    "OPTIONS": {
        "API_KEY": "fake",
        "LINENUMBER": "fake",
    },
    . . .
}
CuriousLearner commented 1 year ago

@mojtabaakbari221b I would like to see the associated docs on their website to know if it can the send the SMS.

Can you please provide me link to the docs on SMSIR site?

Thank you!

CuriousLearner commented 1 year ago

Also, the options for this BE would also need to be provided in the docs and tests.

mojtabaakbari221b commented 1 year ago

I myself am the maintainer of sending sms package with python. I am sure about this because I did the same tests in a personal project.

link: https://github.com/IPeCompany/SmsPanelV2.Python