API

Posted

Mon Jul 18 2011, 3:15pm

By caseorganic

Categories

API
News

Geoloqi Developer Site is Live!

We just released a developer site for the Geoloqi API, allowing you to create powerful location-based applications on the Geoloqi Platform. The platform is free for development, and you pay for only the API calls that are used in production. If you’d like to use Geoloqi for larger purposes, feel free to contact us.

Geoloqi Developer Site

Why use the Geoloqi platform? It’s ideal for development teams and entrepreneurs who want to build real-time location sharing or geofencing features into new or existing applications. You can can use the Geoloqi platform to monitor user locations and send messages based on activity, build location-aware applications that work on top of popular APIs such as Foursquare, Twitter and Facebook, and send messages to users when they are near a location at a certain time of day, or are travelling at a certain speed.

The platform includes a Geofencing API, location tracking API and a location-based messaging system. Full documentation and an API console are available on the developer site at https://developers.geoloqi.com/

About Geoloqi

Geoloqi is a private, real-time mobile and web platform for securely sharing location data, with features such as alerts based on proximity, and sharing real-time GPS maps with friends. The platform enables users to share real-time location information, allowing them to communicate where they have been, where they are, and where they will be. The Geoloqi platform makes it easy for companies to build powerful location-based applications. Geoloqi closed $350,000 in seed investment to build a platform and applications for location-aware applications this July.

Posted

Sun Jan 2 2011, 7:19pm

By Aaron Parecki

Categories

API

Tagged

Minor API Changes for Anonymous Accounts


If your app is creating anonymous accounts using the Geoloqi API, there is a minor change rolling out to the API in the next couple days.

Previously, access tokens returned from user/create_anon would not expire, so no refresh token was returned. This is changing to more closely match the user/create method.

Now, access tokens will expire after the default amount of time, so you will need to store the refresh token that is returned from the create method. If you have a good reason for not wanting to manage refreshing the access token, you can request a permanent access token by using the account/permanent_token method.

Note: As with access to the create_anon method, your application will need to be pre-approved to access this method. Please email us at [email protected] to request access to this method.

Posted

Sun Oct 3 2010, 12:12pm

By Aaron Parecki

Categories

API
Tutorials

Tagged

Geoloqi API Example

To quickly write an application for your Geoloqi account, you can request a permanent access token through the “Connections” screen on your account.

Once you have this access token, you don’t need to deal with refreshing the token using the standard OAuth 2 spec. You can use this access token in all requests indefinitely.

Here is an example of retrieving your user profile using the API.


<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.geoloqi.com/1/account/profile');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: OAuth ' . $oauth_token));
$response = json_decode(curl_exec($ch));
print_r($response);
?>

Alternatively, you can pass the oauth token in the query string.

<?php
print_r(json_decode(file_get_contents('https://api.geoloqi.com/1/account/profile?oauth_token=' . $oauth_token)));
?>

See more API methods on the API documentation.

Posted

Sat Oct 2 2010, 11:23pm

By caseorganic

Categories

API
Tutorials

Geoloqi API

If you’re looking to build an app that uses the Geoloqi API, you might find the following diagrams useful.

1. Your application can trigger an action when the user enters a location. To do this, you can simply instruct Geoloqi to notify your app when a user enters an area.

For example, your app can tell Geoloqi to let it know when the user is inside a region defined by a latitude, longitude and radius. Geoloqi will only give away the user’s location when his GPS enabled phone enters one of those areas, preserving privacy.

Your app sends Geoloqi a lat, long radius and callback URL, and Geoloqi stores the trigger, allowing your app to be notified of the user’s location without you having to track the user’s location yourself.

2. When the user runs Geoloqi or Instamapper, their phone continually reports its location to the Geoloqi API.

Geoloqi internally processes the user’s location and compares the location with your app’s location triggers.

If the user’s GPS enabled phone enters within one of the areas set as a trigger zone, the user gets a message or action.

3. When the user enters one of your triggers, Geoloqi sends an update to your callback URL.

You can instruct Tropo to send an SMS or make a phone call to the user’s phone, user’s friend’s phone , twitter or a variety of other sources.

Full image: click to enlarge.