#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests

text = u' This a test SMS.'
endpoint = 'https://rest.nexmo.com/sms/json'

data = {
    'username': '7fca3406',
    'password': 'b5wiiM8i8bdBqqth',
    'from': 'tyest',
    'to': '393313632601',
    'type': 'unicode',
    'text': text,
    'status-report-req': 1,
    'client-ref': '1'
}

r = requests.post(endpoint, data=data)
print r.text