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.examplefile to.envand 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
.envparameters, just put your value forDEV_PHONE_NUMBERvariable without+sign
- The main endpoint that allow you to send sms is
/api/v1/send-smsand 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 ๐

