
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Fetch users' contact lists without asking them to provide their passwords, as painlessly as possible.
Contacts provides adapters for:
First, register your application with the service providers you require. Instructions below under "Setting up your accounts".
Now, create a consumer:
consumer = Contacts::Google.new
consumer = Contacts::Yahoo.new
consumer = Contacts::WindowsLive.new
# OR by parameter:
# provider is one of :google, :yahoo, :windows_live
consumer = Contacts.new_consumer(provider)
Now, direct your user to:
consumer.authentication_url(return_url)
return_url
is the page the user will be redirected to by the service
once authorization has been granted. You should also persist the
consumer object so you can grab the contacts once the user returns:
session[:consumer] = consumer.serialize
Now in the request handler of the return_url above:
consumer = Contacts.deserialize(session[:consumer])
if consumer.authorize(params)
@contacts = consumer.contacts
else
# handle error
end
Here, params
is the hash of request parameters that the user returns
with. consumer.authorize
returns true if the authorization was
successful, false otherwise.
The list of @contacts
are Contacts::Contact
objects which have
these attributes:
Set up your projects here.
What this means:
Set up your projects here
What this means:
Set up your projects here.
What this means:
Copyright (c) 2010 George Ogata See LICENSE for details.
Derived from Mislav's Contacts, Copyright (c) 2009 Mislav Marohnić
FAQs
Unknown package
We found that lperichon-contacts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.