{ "info": { "_postman_id": "e345ff2d-7ee5-4003-b14e-b8b12486ba3c", "name": "TextSMS", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "auth", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"secret\":\"{{secret}}\",\n\t\"username\":\"{{username}}\",\n\t\"pass_type\":\"plain\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/auth/", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "auth", "" ] } }, "response": [] }, { "name": "mnostatus", "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/mnostatus/", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "mnostatus", "" ] } }, "response": [] }, { "name": "sendBulk POST", "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"count\": 1,\n \"smslist\": [\n {\n \"partnerID\": \"{{partnerID}}\",\n \"apikey\": \"{{apikey}}\",\n \"pass_type\": \"plain\",\n \"clientsmsid\": 1234,\n \"mobile\": \"{{mobile}}\",\n \"message\": \"This is a test message 0\",\n \"shortcode\": \"{{shortcode}}\"\n }\n ]\n}" }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/sendbulk/", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "sendbulk", "" ] }, "description": "Send Bulk messages in one call." }, "response": [] }, { "name": "sendSMS POST", "event": [ { "listen": "prerequest", "script": { "exec": [ "const dateNow= new Date();\r", "pm.environment.set('currentDate', dateNow.toString());" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\t\"apikey\":\"{{apikey}}\",\n\t\"partnerID\":\"{{partnerID}}\",\n\t\"mobile\":\"{{mobile}}\",\n\t\"message\":\"TESTING AT {{currentDate}}\",\n\t\"shortcode\":\"{{shortcode}}\",\n\t\"pass_type\":\"plain\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/sendsms/", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "sendsms", "" ] } }, "response": [] }, { "name": "sendSMS GET", "event": [ { "listen": "prerequest", "script": { "exec": [ "const dateNow= new Date();\r", "pm.environment.set('currentDate', dateNow.toISOString());" ], "type": "text/javascript" } } ], "request": { "method": "GET", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "url": { "raw": "https://{{textsms.co.ke}}/api/services/sendsms/?apikey={{ apikey }}&partnerID={{ partnerId }}&message=Test Message sent at {{currentDate}}&shortcode={{ shortcode }}&mobile={{ mobile }}", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "sendsms", "" ], "query": [ { "key": "apikey", "value": "{{ apikey }}" }, { "key": "partnerID", "value": "{{ partnerId }}" }, { "key": "message", "value": "Test Message sent at {{currentDate}}" }, { "key": "shortcode", "value": "{{ shortcode }}" }, { "key": "mobile", "value": "{{ mobile }}" }, { "key": "timeToSend", "value": "2020-02-12 11:49:00", "disabled": true } ] } }, "response": [ { "name": "sendSMS-GET", "originalRequest": { "method": "GET", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "url": { "raw": "https://{{textsms.co.ke}}/api/services/sendsms/?apikey={{apikey}}&partnerID={{partnerID}}&message=Test Message&shortcode={{shortcode}}&mobile={{mobile}}", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "sendsms", "" ], "query": [ { "key": "apikey", "value": "{{apikey}}" }, { "key": "partnerID", "value": "{{partnerID}}" }, { "key": "message", "value": "Test Message" }, { "key": "shortcode", "value": "{{shortcode}}" }, { "key": "mobile", "value": "{{mobile}}" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Fri, 31 Jan 2020 09:46:22 GMT" }, { "key": "Server", "value": "Apache" }, { "key": "X-Frame-Options", "value": "sameorigin" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubtextsms.co.kes;" }, { "key": "Content-Length", "value": "130" }, { "key": "Keep-Alive", "value": "timeout=5, max=100" }, { "key": "Connection", "value": "Keep-Alive" }, { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"responses\": [\n {\n \"respose-code\": 200,\n \"response-description\": \"Success\",\n \"mobile\": \"254713482448\",\n \"messageid\": 78726470,\n \"networkid\": \"1\"\n }\n ]\n}" } ] }, { "name": "getDLR POST", "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n\t\"apikey\":\"{{apikey}}\",\r\n\t\"partnerID\":\"{{partnerID}}\",\r\n \"messageID\":\"95367513\"\r\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/getdlr/", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "getdlr", "" ] } }, "response": [] }, { "name": "getDLR GET", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/getdlr/?apikey={{apiKey}}&partnerID={{partnerID}}&messageID={{messageid}}", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "getdlr", "" ], "query": [ { "key": "apikey", "value": "{{apiKey}}" }, { "key": "partnerID", "value": "{{partnerID}}" }, { "key": "messageID", "value": "{{messageid}}" } ] } }, "response": [] }, { "name": "checkAccountBalance POST", "request": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"apikey\":\"{{apikey}}\",\n \"partnerID\":\"{{partnerId}}\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/getbalance/", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "getbalance", "" ] }, "description": "Check Account balance" }, "response": [ { "name": "checkAccountBalance POST", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"apikey\":\"{{apikey}}\",\n \"partnerID\":\"{{partnerID}}\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{textsms.co.ke}}/api/services/getbalance/", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "getbalance", "" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Wed, 12 Feb 2020 10:37:53 GMT" }, { "key": "Server", "value": "Apache" }, { "key": "X-Frame-Options", "value": "sameorigin" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubtextsms.co.kes;" }, { "key": "Content-Length", "value": "64" }, { "key": "Keep-Alive", "value": "timeout=5, max=100" }, { "key": "Connection", "value": "Keep-Alive" }, { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n" } ] }, { "name": "checkAccountBalance GET", "request": { "method": "GET", "header": [ { "key": "Content-Type", "name": "Content-Type", "type": "text", "value": "application/json" } ], "url": { "raw": "https://{{textsms.co.ke}}/api/services/getbalance/index.php?apikey={{apikey}}&partnerID={{partnerID}}", "protocol": "https", "host": [ "{{textsms.co.ke}}" ], "path": [ "api", "services", "getbalance", "index.php" ], "query": [ { "key": "apikey", "value": "{{apikey}}" }, { "key": "partnerID", "value": "{{partnerID}}" } ] }, "description": "Check Account balance" }, "response": [] } ] }