t-shirt curvy t-shirt straight

46elks T-shirt challenge

Send an SMS to 076 - 686 83 34 with “Tshirt” as the sender and get a T-shirt!

Tshirt

I would like size L with a curvy fit please

curl https://api.46elks.com/a1/sms \
  -u API_USERNAME:API_PASSWORD \
  -d to=+46766868334 \
  -d message="I would like size L with a curvy fit please" \
  -d from=Tshirt
$sms = array(
  "to"      => "+46766868334",
  "message" => "I would like size L with a curvy fit please",
  "from"    => "Tshirt"
);

$USER = "API_USERNAME";
$PASS = "API_PASSWORD";

$url  = "https://api.46elks.com/a1/sms";
$auth = 'Authorization: Basic '.
base64_encode($USER.':'.$PASS)."\r\n".
"Content-type: application/x-www-form-urlencoded\r\n";

$context = stream_context_create(array(
  'http' => array(
    'method' => 'POST',
    'header'  => $auth,
    'content' => http_build_query($sms),
    'timeout' => 10
)));

file_get_contents($url, false, $context);
import requests

requests.post('https://api.46elks.com/a1/sms',
  auth = ('API_USERNAME', 'API_PASSWORD'),
  data = {
    'to':      '+46766868334',
    'message': "I would like size L with a curvy fit please",
    'from':    'Tshirt'
  }
)
const https = require('https')
const querystring = require('querystring')

const username = 'API-username'
const password = 'API-password'
const auth_str = username + ':' + password
const postFields = {
  to:      "+46766868334",
  message: "I would like size L with a curvy fit please",
  from:    "Tshirt",
}

const key = new Buffer(auth_str).toString('base64')
const postData = querystring.stringify(postFields)

const options = {
  hostname: 'api.46elks.com',
  path:     '/a1/SMS',
  method:   'POST',
  headers:  {
    'Authorization': 'Basic ' + key
  }
}

const callback = (response) => {
  var result = ''
  response.on('data', (chunk) => {
    result += chunk
  })

  response.on('end', () => {
    console.log(result)
  })
}

var request = https.request(options, callback)
request.write(postData)
request.end()
  1. Create an account 46elks.

  2. Find your API credentials in the dashboard.

  3. Send the SMS  🚀

    In the message you can write if you want a curvy
    or a straight T-shirt and what size you'd like.

    Psst! In case you need help we are here for you.

    Soon your T-shirt will arrive in the mail  👏🏼

The T-shirts are available sizes XS - 4XL.
You can choose wether you want a curvy or straight fit.

t-shirt curvy t-shirt straight

You can also

Schedule SMS with Just Send

With the tool Just Send you can schedule SMS. You can also send SMS to multiple recipients.

Send SMS with Google Sheets

We have a tutorial where you can find useful tips for how to schedule SMS with Google Sheets

You can easily automate telephony with 46elks.

With just a few lines of code you can send and receive SMS and MMS.
You can also make and receive phone calls!  📞

Got questions?
Please contact us at +4676-686 10 04 or send an email to hej@46elks.com.