curl --request POST \
  --url 'https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0' \
  --data '{"items": [{"timestamp": 1480510819000,"position": {"latitude": 17.421189,"longitude": 78.400668,"accuracy": 10.0,"altitude": 100.0,"altitudeAccuracy": 50.0, "speed": 10.2, "heading": 35.5},"cells": [{"radio": "lte","mcc": 405,"mnc": 854,"lac": 124,"cid": 315952,"serving": 1,"signal": -81, "pci": 299}, {"radio": "lte","mcc": 405,"mnc": 854,"lac": 2681,"cid": 55462,"signal": -87}],"wifi": [{"bssid": "92:2a:a8:95:ba:f7","channel": 0,"frequency": 5180,"signal": -66}, {"bssid": "92:2a:a8:95:ba:f6"}]}]}'
wget --quiet \
  --method POST \
  --body-data '{"items": [{"timestamp": 1480510819000,"position": {"latitude": 17.421189,"longitude": 78.400668,"accuracy": 10.0,"altitude": 100.0,"altitudeAccuracy": 50.0, "speed": 10.2, "heading": 35.5},"cells": [{"radio": "lte","mcc": 405,"mnc": 854,"lac": 124,"cid": 315952,"serving": 1,"signal": -81, "pci": 299}, {"radio": "lte","mcc": 405,"mnc": 854,"lac": 2681,"cid": 55462,"signal": -87}],"wifi": [{"bssid": "92:2a:a8:95:ba:f7","channel": 0,"frequency": 5180,"signal": -66}, {"bssid": "92:2a:a8:95:ba:f6"}]}]}' \
  --output-document \
  - 'https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0'
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"items\": [{\"timestamp\": 1480510819000,\"position\": {\"latitude\": 17.421189,\"longitude\": 78.400668,\"accuracy\": 10.0,\"altitude\": 100.0,\"altitudeAccuracy\": 50.0, \"speed\": 10.2, \"heading\": 35.5},\"cells\": [{\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 124,\"cid\": 315952,\"serving\": 1,\"signal\": -81, \"pci\": 299}, {\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 2681,\"cid\": 55462,\"signal\": -87}],\"wifi\": [{\"bssid\": \"92:2a:a8:95:ba:f7\",\"channel\": 0,\"frequency\": 5180,\"signal\": -66}, {\"bssid\": \"92:2a:a8:95:ba:f6\"}]}]}",
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
import requests

url = "https://d1.unwiredlabs.com/geosubmit.php"

payload = "{\"items\": [{\"timestamp\": 1480510819000,\"position\": {\"latitude\": 17.421189,\"longitude\": 78.400668,\"accuracy\": 10.0,\"altitude\": 100.0,\"altitudeAccuracy\": 50.0, \"speed\": 10.2, \"heading\": 35.5},\"cells\": [{\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 124,\"cid\": 315952,\"serving\": 1,\"signal\": -81, \"pci\": 299}, {\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 2681,\"cid\": 55462,\"signal\": -87}],\"wifi\": [{\"bssid\": \"92:2a:a8:95:ba:f7\",\"channel\": 0,\"frequency\": 5180,\"signal\": -66}, {\"bssid\": \"92:2a:a8:95:ba:f6\"}]}]}"
response = requests.request("POST", url, data=payload)

print(response.text)
var unirest = require("unirest");

var req = unirest("POST", "https://d1.unwiredlabs.com/geosubmit.php");

req.query({
  "id": "DEVICE_ID",
  "key": "YOUR_API_KEY",
  "sbox": "0"
});

req.type("json");
req.send({
  "items": [
    {
      "timestamp": 1480510819000,
      "position": {
        "latitude": 17.421189,
        "longitude": 78.400668,
        "accuracy": 10,
        "altitude": 100,
        "altitudeAccuracy": 50,
        "speed": 10.2,
        "heading": 35.5
      },
      "cells": [
        {
          "radio": "lte",
          "mcc": 405,
          "mnc": 854,
          "lac": 124,
          "cid": 315952,
          "serving": 1,
          "signal": -81,
          "pci": 299
        },
        {
          "radio": "lte",
          "mcc": 405,
          "mnc": 854,
          "lac": 2681,
          "cid": 55462,
          "signal": -87
        }
      ],
      "wifi": [
        {
          "bssid": "92:2a:a8:95:ba:f7",
          "channel": 0,
          "frequency": 5180,
          "signal": -66
        },
        {
          "bssid": "92:2a:a8:95:ba:f6"
        }
      ]
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
var request = require("request");

var options = { method: 'POST',
  url: 'https://d1.unwiredlabs.com/geosubmit.php',
  qs: { id: 'DEVICE_ID', key: 'YOUR_API_KEY', sbox: '0' },
  body: 
   { items: 
      [ { timestamp: 1480510819000,
          position: 
           { latitude: 17.421189,
             longitude: 78.400668,
             accuracy: 10,
             altitude: 100,
             altitudeAccuracy: 50,
             speed: 10.2,
             heading: 35.5 },
          cells: 
           [ { radio: 'lte',
               mcc: 405,
               mnc: 854,
               lac: 124,
               cid: 315952,
               serving: 1,
               signal: -81,
               pci: 299 },
             { radio: 'lte',
               mcc: 405,
               mnc: 854,
               lac: 2681,
               cid: 55462,
               signal: -87 } ],
          wifi: 
           [ { bssid: '92:2a:a8:95:ba:f7',
               channel: 0,
               frequency: 5180,
               signal: -66 },
             { bssid: '92:2a:a8:95:ba:f6' } ] } ] },
  json: true };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "d1.unwiredlabs.com",
  "port": null,
  "path": "/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0",
  "headers": {}
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ items: 
   [ { timestamp: 1480510819000,
       position: 
        { latitude: 17.421189,
          longitude: 78.400668,
          accuracy: 10,
          altitude: 100,
          altitudeAccuracy: 50,
          speed: 10.2,
          heading: 35.5 },
       cells: 
        [ { radio: 'lte',
            mcc: 405,
            mnc: 854,
            lac: 124,
            cid: 315952,
            serving: 1,
            signal: -81,
            pci: 299 },
          { radio: 'lte',
            mcc: 405,
            mnc: 854,
            lac: 2681,
            cid: 55462,
            signal: -87 } ],
       wifi: 
        [ { bssid: '92:2a:a8:95:ba:f7',
            channel: 0,
            frequency: 5180,
            signal: -66 },
          { bssid: '92:2a:a8:95:ba:f6' } ] } ] }));
req.end();
HttpResponse<String> response = Unirest.post("https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0")
  .body("{\"items\": [{\"timestamp\": 1480510819000,\"position\": {\"latitude\": 17.421189,\"longitude\": 78.400668,\"accuracy\": 10.0,\"altitude\": 100.0,\"altitudeAccuracy\": 50.0, \"speed\": 10.2, \"heading\": 35.5},\"cells\": [{\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 124,\"cid\": 315952,\"serving\": 1,\"signal\": -81, \"pci\": 299}, {\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 2681,\"cid\": 55462,\"signal\": -87}],\"wifi\": [{\"bssid\": \"92:2a:a8:95:ba:f7\",\"channel\": 0,\"frequency\": 5180,\"signal\": -66}, {\"bssid\": \"92:2a:a8:95:ba:f6\"}]}]}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request.body = "{\"items\": [{\"timestamp\": 1480510819000,\"position\": {\"latitude\": 17.421189,\"longitude\": 78.400668,\"accuracy\": 10.0,\"altitude\": 100.0,\"altitudeAccuracy\": 50.0, \"speed\": 10.2, \"heading\": 35.5},\"cells\": [{\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 124,\"cid\": 315952,\"serving\": 1,\"signal\": -81, \"pci\": 299}, {\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 2681,\"cid\": 55462,\"signal\": -87}],\"wifi\": [{\"bssid\": \"92:2a:a8:95:ba:f7\",\"channel\": 0,\"frequency\": 5180,\"signal\": -66}, {\"bssid\": \"92:2a:a8:95:ba:f6\"}]}]}"

response = http.request(request)
puts response.read_body
#import <Foundation/Foundation.h>
NSDictionary *parameters = @{ @"items": @[ @{ @"timestamp": @1480510819000, @"position": @{ @"latitude": @17.421189, @"longitude": @78.400668, @"accuracy": @10, @"altitude": @100, @"altitudeAccuracy": @50, @"speed": @10.2, @"heading": @35.5 }, @"cells": @[ @{ @"radio": @"lte", @"mcc": @405, @"mnc": @854, @"lac": @124, @"cid": @315952, @"serving": @1, @"signal": @-81, @"pci": @299 }, @{ @"radio": @"lte", @"mcc": @405, @"mnc": @854, @"lac": @2681, @"cid": @55462, @"signal": @-87 } ], @"wifi": @[ @{ @"bssid": @"92:2a:a8:95:ba:f7", @"channel": @0, @"frequency": @5180, @"signal": @-66 }, @{ @"bssid": @"92:2a:a8:95:ba:f6" } ] } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0"

	payload := strings.NewReader("{\"items\": [{\"timestamp\": 1480510819000,\"position\": {\"latitude\": 17.421189,\"longitude\": 78.400668,\"accuracy\": 10.0,\"altitude\": 100.0,\"altitudeAccuracy\": 50.0, \"speed\": 10.2, \"heading\": 35.5},\"cells\": [{\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 124,\"cid\": 315952,\"serving\": 1,\"signal\": -81, \"pci\": 299}, {\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 2681,\"cid\": 55462,\"signal\": -87}],\"wifi\": [{\"bssid\": \"92:2a:a8:95:ba:f7\",\"channel\": 0,\"frequency\": 5180,\"signal\": -66}, {\"bssid\": \"92:2a:a8:95:ba:f6\"}]}]}")

	req, _ := http.NewRequest("POST", url, payload)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0",
  "method": "POST",
  "headers": {},
  "processData": false,
  "data": "{\"items\": [{\"timestamp\": 1480510819000,\"position\": {\"latitude\": 17.421189,\"longitude\": 78.400668,\"accuracy\": 10.0,\"altitude\": 100.0,\"altitudeAccuracy\": 50.0, \"speed\": 10.2, \"heading\": 35.5},\"cells\": [{\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 124,\"cid\": 315952,\"serving\": 1,\"signal\": -81, \"pci\": 299}, {\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 2681,\"cid\": 55462,\"signal\": -87}],\"wifi\": [{\"bssid\": \"92:2a:a8:95:ba:f7\",\"channel\": 0,\"frequency\": 5180,\"signal\": -66}, {\"bssid\": \"92:2a:a8:95:ba:f6\"}]}]}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
var client = new RestClient("https://d1.unwiredlabs.com/geosubmit.php?id=DEVICE_ID&key=YOUR_API_KEY&sbox=0");
var request = new RestRequest(Method.POST);
request.AddParameter("undefined", "{\"items\": [{\"timestamp\": 1480510819000,\"position\": {\"latitude\": 17.421189,\"longitude\": 78.400668,\"accuracy\": 10.0,\"altitude\": 100.0,\"altitudeAccuracy\": 50.0, \"speed\": 10.2, \"heading\": 35.5},\"cells\": [{\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 124,\"cid\": 315952,\"serving\": 1,\"signal\": -81, \"pci\": 299}, {\"radio\": \"lte\",\"mcc\": 405,\"mnc\": 854,\"lac\": 2681,\"cid\": 55462,\"signal\": -87}],\"wifi\": [{\"bssid\": \"92:2a:a8:95:ba:f7\",\"channel\": 0,\"frequency\": 5180,\"signal\": -66}, {\"bssid\": \"92:2a:a8:95:ba:f6\"}]}]}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);