Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Client that talks to ENTP's tender
Ruby
branch: master

This branch is 4 commits ahead, 3 commits behind nkabbara:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
tender.gemspec

README.md

Tender API

It's in its infancy, but we'll add it to as we go.

Example Usage

Tender.configure do |t|
  t.auth_token = "my secret key" #Note: You want to use the api key of the account admin here, not just any old user
  t.api_endpoint        = "your_subdomain"
  t.default_from_email  = "support@yourdomain.com"

  #You can use the ssl_verify_peer configuration option if https is failing
  #for you and you have no other option
  # t.ssl_verify_peer = false
end

discussion_attributes = {
  :body         => "Just wanted to say, your app is amazing.",      
  :title        => "Nice!",
  :author_name  => "Happy User",
  :author_email => "happy@user.com",
  :extras => {
    :company_phone  => "33369"
  }
}

#You can get category, discussion, and queue IDs from the admin interface in
#tender. Look for the IDs in the urls as you hover over them in your browser 

discussion = Tender::Discussion.create( some_category_id, discussion_attributes)
Something went wrong with that request. Please try again.