Skip to content

Instantly share code, notes, and snippets.

@juddlyon
Created June 26, 2014 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juddlyon/59050f5b0f589e5b562b to your computer and use it in GitHub Desktop.
Save juddlyon/59050f5b0f589e5b562b to your computer and use it in GitHub Desktop.
SiteCondor Client Example
#!/usr/bin/env ruby
require './sitecondor_client'
api_key = '<enter your API key here>'
job_id = '<enter Job ID here>'
# Initialize SiteCondor Client
sitecondor = SiteCondorClient.new(api_key)
# Get job info
job = sitecondor.get_job(job_id)
puts "Job: #{job}"
# Get all H1s for the job
headings = sitecondor.get_h1s(job_id)
headings.each do |heading|
puts "Heading: #{heading}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment