Skip to content

Instantly share code, notes, and snippets.

@unwiredlabs
unwiredlabs / gist:9543100
Last active November 27, 2023 18:48
.NET C# API sample
///Contributed by Stuart Eastland of RightFile.com
public static void GetNearest(string key, string mcc, string mnc, string lac, string cid)
{
try
{
string url = "http://us1.unwiredlabs.com/v2/process.php";
var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
httpWebRequest.ContentType = "application/json; charset=utf-8";
httpWebRequest.Method = "POST";
@unwiredlabs
unwiredlabs / unwiredlabs_perl_example.pl
Last active August 29, 2015 13:57
Perl APIv2 example
#!/usr/local/bin/perl -w
#===================================================
# Program Name: unwiredlabs_perl_example.pl
# Author: Eitan Keren (eitan.keren@gmail.com)
# Description: send HTTP POST JSON format request using LWP
#===================================================
use strict;
use LWP::UserAgent;
my $uri = 'http://us1.unwiredlabs.com/v2/process.php';
my $json = qq(
@unwiredlabs
unwiredlabs / LocationAPI.org API v2 Python version.py
Last active December 26, 2015 23:09
Unwired Labs API v2 script in Python contributed by Dangra (https://gist.github.com/dangra)
#!/usr/bin/env python
import sys
from argparse import ArgumentParser
from json import dumps
import requests
# Contributed by Dangra (https://gist.github.com/dangra)
# Example Usage:
#
@unwiredlabs
unwiredlabs / Unwired Labs API v1 example.php
Last active December 20, 2015 05:49
This script is a demo on how to use LocationAPI.org's Mobile Triangulation API v1.
<?php
/*
* Sample script to test Unwired Labs API v1 - DEPRECATED
*
* Created: 20th July, 2013
* Author: Unwired Labs
*
*/
@unwiredlabs
unwiredlabs / Unwired Labs API v2 Example.php
Last active September 14, 2022 05:18
This script is a demo on how to use LocationAPI.org's Mobile Triangulation API v2.
<?php
/*
* Sample script to test Unwired Labs Geolocation API v2
*
* Created: 20th July, 2013
* Author: Unwired Labs
*
*/