Skip to content

jsgoecke/tripit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

Tripit Component for Adhearsion

Description

Provides a dialplan method for determining the user’s current time and GMT offset based on their Tripit Badge.

Requirements

Install

In the ~ahn_project/components directory:

git clone git://github.com/jsgoecke/tripit.git

Configuration

Add your users and their corresponding Tripit Badge Javascript URI to the tripit.yml file. Examples are already in the file, although you will need to add a valid URI.

Example

Here is an example for your dialplan.rb:


	adhearsion {
	  user_time = tripit_user_time?('guido')
	  if user_time
	    ahn_log.tripit.debug user_time
	  else
	    ahn_log.tripit.debug 'Error'
	  end

	  user_time = tripit_user_time?('jdoe')
	  if user_time
	    ahn_log.tripit.debug user_time
	  else
	    ahn_log.tripit.debug 'Error'
	  end
	}

License

The MIT License

Copyright © 2009 Jason Goecke

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

Adhearsion Component for determing user's timezone and GMT offset based on their Tripit badge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages