This is a simple and small microservice
with the ORANGE SMS API
fully integrated.
-
Python
-
FastAPI
After pull or clone this repo you need to :
-
Install required dependecies by running the following command :
pip install -r requirements.txt
-
Rename
.env.example
file to.env
and fill parameters or variable defined in it -
Run the following command :
uvicorn main:app
-
Go to http://localhost:8000
-
You can visit http://localhost:8000/docs or http://localhost:8000/docs in order to visualize the
API Documentation
-
While filling
.env
parameters, just put your value forDEV_PHONE_NUMBER
variable without+
sign
- The main endpoint that allow you to send sms is
/api/v1/send-sms
and need this payload :
{
"phone_number": "the recipient's number",
"message": "your message here"
}
- Dockerize the service
Feel free to make a PR or report an issue 😃
Oh, one more thing, please do not forget to put a description when you make your PR 🙂