SMSTemplateSerializer¶
-
class
apirest.sms_template_serializers.
SMSTemplateSerializer
(instance=None, data=None, files=None, context=None, partial=False, many=False, allow_add_remove=False, **kwargs)¶ Read:
CURL Usage:
curl -u username:password -H 'Accept: application/json' http://localhost:8000/rest-api/sms-template/
Response:
{ "count": 1, "next": null, "previous": null, "results": [ { "url": "http://127.0.0.1:8000/rest-api/sms-template/1/", "label": "sms_test", "template_key": "sms_test", "sender_phonenumber": "9427164510", "sms_text": "hello test", "created_date": "2013-12-16T06:43:29.475Z" } ] }