done with bulk sms
This commit is contained in:
@@ -59,3 +59,20 @@ def sms():
|
|||||||
}
|
}
|
||||||
|
|
||||||
return jsonify(response), 200
|
return jsonify(response), 200
|
||||||
|
|
||||||
|
|
||||||
|
@auth_bp.route("/bulk-sms", methods=["POST"])
|
||||||
|
def bulk_sms():
|
||||||
|
data = request.json
|
||||||
|
api_url = f"{current_app.config['API_BASE_URL']}/BulkSMS"
|
||||||
|
|
||||||
|
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||||
|
# return jsonify(response.json()), response.status_code
|
||||||
|
response = {
|
||||||
|
"data": "",
|
||||||
|
"statusCode": 200,
|
||||||
|
"IsSuccessful": True,
|
||||||
|
"errorMessage": None,
|
||||||
|
}
|
||||||
|
|
||||||
|
return jsonify(response), 200
|
||||||
|
|||||||
+24
@@ -74,6 +74,30 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: A successful response
|
description: A successful response
|
||||||
|
/bulk-sms:
|
||||||
|
post:
|
||||||
|
summary: Send a bulk SMS
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
example: "This is a test message for SMS request method."
|
||||||
|
dest:
|
||||||
|
type: string
|
||||||
|
example: "+2348039409144"
|
||||||
|
unicode:
|
||||||
|
type: boolean
|
||||||
|
example: true
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: A successful response
|
||||||
/eligibility/check:
|
/eligibility/check:
|
||||||
post:
|
post:
|
||||||
summary: Performs eligibility check on a user
|
summary: Performs eligibility check on a user
|
||||||
|
|||||||
Reference in New Issue
Block a user