basePath: / host: myaccount.easyclicksms.com:446 info: x-logo: url: 'https://myaccount.easyclicksms.com/logo-sms.png' backgroundColor: '#FFFFFF' altText: 'EasyclickSMS BULK SMS' description: |- ## Overview The JSON REST API allows you to submit [EasyclickSMS](https://easyclicksms.com/) messages. You can also get access to past messages and see your account profile. The base URL to use for this service is `https://myaccount.easyclicksms.com:446`. The base URL cannot be used on its own. ### SEND SINGLE SMS To send SMS please use the GET method with URL `https://myaccount.easyclicksms.com:446/send_sms/Login={Login}&Password={Password}&From={From}&To={To}&Text={Text}` Where the values are: ``` {Login} is your myaccount login email {Password} is your myaccount login password {From} is sender number it can be also some string {To} is reciver number {Text} is the SMS message ``` More details you can find it in [SMS](#/SMS/SendSMS) section. termsOfService: https://easyclicksms.com/privacy-policy/ title: REST EasyclickSMS API contact: email: support@easyclicksms.com name: Support url: https://easyclicksms.com/contact-us/ version: 1.0.0 schemes: - https security: - Bearer: [] securityDefinitions: Bearer: in: header name: Authorization type: apiKey description: | The API uses HTTP Bearer Auth for authentication. You are requested to preemptively provide the `Authorization` header in your requests and not wait until the server has provided a `401 Unauthorized` response. ``` Authorization: Bearer EXAMPLE-APIKEY-GOES-HERE ``` paths: /get_balance: post: security: - Bearer: [] consumes: - application/json description: Returns a customer credit balance operationId: Balance produces: - application/json responses: "200": description: Customer balance returned in response schema: properties: Credit: description: Customer Credit blanace format: double type: number Message: description: Response details type: string type: object "401": description: Unauthorized response "500": description: Internal failed reason returned in response tags: - Customer x-code-samples: - lang: NodeJs - Axios source: | const axios = require('axios'); let config = { method: 'post', url: 'https://myaccount.easyclicksms.com:446/get_balance', headers: { 'Accept': 'application/json', 'Authorization': 'Bearer SAMPLE_TOKEN_GOES_HERE' } }; axios(config) .then((response) => { console.log(JSON.stringify(response.data)); }) .catch((error) => { console.log(error); }); - lang: Go source: | package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://myaccount.easyclicksms.com:446/get_balance" method := "POST" client := &http.Client { } req, err := http.NewRequest(method, url, nil) if err != nil { fmt.Println(err) return } req.Header.Add("Accept", "application/json") req.Header.Add("Authorization", "Bearer SAMPLE_TOKEN_GOES_HERE") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) } - lang: PHP - cURL source: | 'https://myaccount.easyclicksms.com:446/get_balance', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => array( 'Accept: application/json', 'Authorization: Bearer SAMPLE_TOKEN_GOES_HERE' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; - lang: cURL source: | curl --location --request POST 'https://myaccount.easyclicksms.com:446/get_balance' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer SAMPLE_TOKEN_GOES_HERE' - lang: C# source: | var client = new RestClient("https://myaccount.easyclicksms.com:446/get_balance"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Accept", "application/json"); request.AddHeader("Authorization", "Bearer SAMPLE_TOKEN_GOES_HERE"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); /send_sms/Login={Login}&Password={Password}&From={From}&To={To}&Text={Text}: get: security: - NoAuth: [] description: Send SMS message operationId: SendSMS consumes: - application/json produces: - application/json parameters: - description: The login is your myaccount login email in: path name: Login required: true type: string - description: The password is your myaccount login password in: path name: Password required: true type: string - description: Reciver number in: path name: From required: true type: string - description: SMS Message in: path name: To required: true type: string - description: Sender number it can be also some string in: path name: Text required: true type: string responses: "200": description: Success SMS Id returned in response schema: properties: Id: description: Customer Credit blanace type: string type: object "401": description: Unauthorized response "500": description: Internal failed reason returned in response tags: - SMS x-code-samples: - lang: NodeJs - Axios source: | const axios = require('axios'); let config = { method: 'get', url: 'https://myaccount.easyclicksms.com:446/send_sms/Login=test@email.com&Password=password&From=30698204458789&To=30698245487878&Text=Hello World', headers: { 'Accept': 'application/json' } }; axios(config) .then((response) => { console.log(JSON.stringify(response.data)); }) .catch((error) => { console.log(error); }); - lang: Go source: | package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://myaccount.easyclicksms.com:446/send_sms/Login=test@email.com&Password=password&From=30698204458789&To=30698245487878&Text=Hello%20World" method := "GET" client := &http.Client { } req, err := http.NewRequest(method, url, nil) if err != nil { fmt.Println(err) return } req.Header.Add("Accept", "application/json") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) } - lang: PHP - cURL source: | 'https://myaccount.easyclicksms.com:446/send_sms/Login=test@email.com&Password=password&From=30698204458789&To=30698245487878&Text=Hello%20World', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Accept: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; - lang: cURL source: | curl --location --request GET 'https://myaccount.easyclicksms.com:446/send_sms/Login=test@email.com&Password=password&From=30698204458789&To=30698245487878&Text=Hello World' \ --header 'Accept: application/json' - lang: C# source: | var client = new RestClient("https://myaccount.easyclicksms.com:446/send_sms/Login=test@email.com&Password=password&From=30698204458789&To=30698245487878&Text=Hello World"); client.Timeout = -1; var request = new RestRequest(Method.GET); request.AddHeader("Accept", "application/json"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); swagger: "2.0"