Skip to content
An OkCupid API and CLI written in Ruby
Ruby
Find file
Latest commit dd01bb7 @razic 0.2.2
Failed to load latest commit information.
fixtures/vcr_cassettes
lib 0.2.2
spec OkCupid::Message
.gitignore
Gemfile
LICENSE.txt
README.md even cleaner
Rakefile initial commit
okcupid.gemspec

README.md

OkCupid

An OkCupid API and CLI written in Ruby

Installation

Add this line to your application's Gemfile:

gem 'okcupid'

And then execute:

bundle

Or install it yourself:

gem install okcupid

Usage

Ruby

Require It

require 'okcupid'

API

api = OkCupid::API.new(username, password)
Getting Messages
page_one_messages = api.messages
page_two_messages = api.messages(page_one_messages.length + 1)
Getting an Entire Thread of Messages
threadid = api.messages.first.threadid
messages = api.thread(threadid)
Deleting an Entire Thread of Messages
threadid = api.messages.first.threadid
api.delete_thread(threadid)
Something went wrong with that request. Please try again.