Skip to content

CloudSponge.com provides a single point of access to your customer's address book.

Notifications You must be signed in to change notification settings

cloudsponge/cloudsponge-lib-ruby

Repository files navigation

http://www.cloudsponge.com

Spread the word with an email invite. Import contacts from Yahoo, Hotmail, MSN, Gmail, AOL, Outlook and Mac Address Book.

Problem

Websites looking to grow their customer base usually turn to traditional, paid methods of advertising like search engine keywords, media buys, and generic email lists. Though these methods can be effective at times, they are no match for the testimonial power your very own customers can bring. By encouraging your customers to promote your site to their family and friends, you have an inexpensive advertising channel to acquire customers. If one customer refers their friends, and their friends refer their friends, and so on, and so on, you now have a viral site!

Solution

CloudSponge.com is THE tool you need to go viral! Here's how it works:

  • Ask your customers to invite all their friends and family to your site.
  • Use CloudSponge.com to pull your customer's contact list with their permission.
  • Send an email invite to all the contacts provided by CloudSponge.com.
  • Sit back and watch your customer base grow virally!

Usage:

  contacts = nil
  importer = Cloudsponge::ContactImporter.new(DOMAIN_KEY, DOMAIN_PASSWORD)
  resp = importer.begin_import('YAHOO')
  puts "Navigate to #{resp[:consent_url]} and complete the authentication process."
  loop do
    events = importer.get_events
    break unless events.select{ |e| e.is_error? }.empty?
    unless events.select{ |e| e.is_complete? }.empty?
      contacts = importer.get_contacts
      break
    end
    # be nice and take a short break
    sleep 1
  end

REQUIREMENTS

JSON decoding package, currently supported are ActiveSupport::JSON and the JSON gem. Neither of these are required, but if you don't have either on your system, a runtime error will be generated.

Install

gem install cloudsponge

OR using bunder, add

# cloudsponge integration library
gem 'cloudsponge', github: 'cloudsponge/cloudsponge-lib-ruby'

to your Gemfile

License

(The MIT License)

Copyright (c) Cloud Copy, Inc.

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

CloudSponge.com provides a single point of access to your customer's address book.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages