public function createSend($sender='', $messages=array(), $scheduledate='')
    {
        $message_sender = array();
        $index = 0;

        $url = $this->_setEnvironment.'wcf/Service.svc/rest/CreateSend';

        if(is_array($messages)) {
            foreach($messages as $mobile => $message){
                $message_sender[$index]['Mobile'] = $mobile;
                $message_sender[$index]['Text'] = $message;
                $index++;
            }
        }

        $json = array(
            'UserName'      => $this->user,
            'Password'      => $this->password,
            'Sender'        => $sender,
            'Messages'      => $message_sender,
            'ScheduleDate'  => $scheduledate,
        );

        try {
            $response = $this->client->post($url,[
                    'headers' => [ 'Content-Type' => 'application/json','Accept' => 'application/json' ],
                    'body' => json_encode($json)
                ]
            );

            $result = json_decode($response->getBody()->getContents(), true);
            $result['Status'] = $response->getStatusCode();
            $result =json_decode(json_encode($result));
        } catch (RequestException $e) {
            $result = $this->StatusCodeHandling($e);
        }

        return $result;
    }