Skip to content

irjudson/gdata2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

291 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdata2

Historical Project — Written circa 2009–2012 when Google Data APIs v2 was current. Google has since migrated to Google APIs (v3+). This gem is preserved for reference.

A Ruby gem providing a client library for Google Data APIs v2. Originally developed at Montana State University, gdata2 wraps Google's XML-based GData protocol in a Ruby-friendly interface.

What It Supported

  • Google Apps Provisioning API — create, update, and delete user accounts in a Google Apps domain
  • Google Apps Email Settings API — configure email settings for domain users
  • Google Apps Calendar Data API (planned)
  • Google Contacts / Spreadsheets / Documents APIs (planned, per TODO)

The gem handled HTTPS connections to Google's GData endpoints, ClientLogin authentication, and XML serialization/deserialization.

Installation

# Gemfile (historical -- no longer published to RubyGems)
gem 'gdata2'

Or from source:

gem install hoe
rake install

Usage

require 'gdata'

# Connect to Google Apps Provisioning API
provisioning = GData::Apps::Provisioning.new(
  domain:   'example.com',
  login:    '[email protected]',
  password: 'secret'
)

provisioning.create_user(
  username:    'jsmith',
  given_name:  'Jane',
  family_name: 'Smith',
  password:    'changeme'
)

Historical Context

Google Data APIs v2 (GData) used an Atom/XML-over-HTTP protocol. This gem predates the OAuth 2.0 era -- authentication was done via Google's ClientLogin mechanism, which was deprecated in 2015. Google migrated all APIs to the v3 REST/JSON-based Google APIs client in the early 2010s.

Authors: Jerome Bousquie, Ivan R. Judson (Montana State University) License: Apache 2.0

About

Ruby client library for Google Data APIs v2, including Contacts, Calendar, and Picasa.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages