Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Demonstration of how to use the Google Latitude API with PHP (CLI)

Notifications You must be signed in to change notification settings

harperreed/Google-Latitude-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README
======

Requirements
------------
 - PHP >= 5.2.0 (http://php.net/)
 - Zend OAuth libraries (http://framework.zend.com/)


Registering Your Application
----------------------------
 - Go to http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
 - Register your application
 - Edit config.php to provide your CONSUMER_KEY and CONSUMER_SECRET
 - Save the changes


Authorising your Application
-----------------_----------
 - open a terminal window
 - run 'php auth.php'
 - Your browser should open and you will be prompted to authorise the application
 - When you receive the authorisation token paste it back into the terminal window
 - You should then be returned to the command prompt
 - You will notice a new file: token.txt. This contains your auth token


Getting your current location
-----------------------------
 - open a terminal window
 - run 'php currentLocation.php'

About

Demonstration of how to use the Google Latitude API with PHP (CLI)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published