This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/perl -w | |
#=================================================== | |
# Program Name: unwiredlabs_perl_example.pl | |
# Author: Eitan Keren ([email protected]) | |
# 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( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Sample script to test Unwired Labs API v1 - DEPRECATED | |
* | |
* Created: 20th July, 2013 | |
* Author: Unwired Labs | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Sample script to test Unwired Labs Geolocation API v2 | |
* | |
* Created: 20th July, 2013 | |
* Author: Unwired Labs | |
* | |
*/ |