Created
June 26, 2014 15:30
-
-
Save juddlyon/59050f5b0f589e5b562b to your computer and use it in GitHub Desktop.
SiteCondor Client Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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