Top Level Namespace

Includes:
REXML

Defined Under Namespace

Modules: ApplicationHelper, CoursesHelper, DeliverablesHelper, EffortLogsHelper, GAppsProvisioning, Gem, HUBClassRosterHandler, IndexTank, JobsHelper, PeopleHelper, PeopleInACollection, Rails, ReminderHandler, TeamsHelper, TimeMachine, TmpUpdateFacultyAssignments Classes: Ability, AcademicCalendar, ActiveDirectory, ApplicationController, Assignment, AssignmentsController, Course, CourseMailer, CourseNavigationsController, CourseNumber, CourseNumbersController, CoursesController, DelayedSystemJob, DelayedSystemJobsController, Deliverable, DeliverableAttachment, DeliverablesController, EffortLog, EffortLogLineItem, EffortLogLineItemsController, EffortLogMailer, EffortLogsController, EffortReportsController, FacultyAssignment, GenericAjaxController, GenericMailer, GoogleMailingListJob, GoogleWrapper, Grade, GradesController, GradingRule, Job, JobEmployee, JobMailer, JobSupervisor, JobsController, MailingListsController, Page, PageAttachment, PageAttachmentsController, PageComment, PageCommentMailer, PageCommentType, PageCommentTypesController, PageCommentsController, PagesController, PasswordMailer, PasswordResetsController, PeerEvaluationController, PeerEvaluationEmail, PeerEvaluationLearningObjective, PeerEvaluationReport, PeerEvaluationReview, PeopleController, PeopleSearchDefault, Person, PersonJob, PersonMailer, Presentation, PresentationFeedback, PresentationFeedbackAnswer, PresentationQuestion, PresentationsController, RegisteredCourse, Registration, ReminderMailer, RssFeed, RssFeedsController, ScottyDogSaying, ScottyDogSayingsController, SearchController, SponsoredProject, SponsoredProjectAllocation, SponsoredProjectAllocationsController, SponsoredProjectEffort, SponsoredProjectEffortMailer, SponsoredProjectEffortsController, SponsoredProjectSponsor, SponsoredProjectSponsorsController, SponsoredProjectsController, StaticController, Suggestion, SuggestionsController, SystemController, TaskType, TaskTypesController, Team, TeamAssignment, TeamsController, User, UserPreference, WelcomeController

Constant Summary collapse

SCOPE =
[
  'https://www.googleapis.com/auth/admin.directory.user',
  'https://www.googleapis.com/auth/admin.directory.orgunit',
  'https://www.googleapis.com/auth/admin.directory.group'
]

Instance Method Summary collapse

Instance Method Details

#first_time_setupObject


13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/yammer.rb', line 13

def first_time_setup
#  Run this from IRB

#     consumer      = OAuth::Consumer.new(CONSUMER_KEY, SECRET, {:site=>"https://www.yammer.com"})
       consumer      = OAuth::Consumer.new("JUbt0bVxzf7WSbMvHACAA", "kZ8UzOCw3A3Fu696XU1lZWwoLvzgsHzTrAs5CRrxfo", {:site=>"https://www.yammer.com"})
     request_token = consumer.get_request_token
     request_token.authorize_url # go to that url and hit authorize.  then copy the oauth_verifier code on that page.
     access_token  = request_token.get_access_token(:oauth_verifier => "8DA8")
# access_token.token
# access_token.secret
#
end

#read_keyObject


11
12
13
14
15
16
17
18
19
# File 'lib/google_api_examples/works_for_admin_api_0.8.rb', line 11

def read_key
  if (ENV['WHITEBOARD_GOOGLE_PRIVATE_KEY'])
    key = OpenSSL::PKey::RSA.new(ENV['WHITEBOARD_GOOGLE_PRIVATE_KEY'], 'notasecret')
  else
    key = Google::APIClient::KeyUtils.load_from_pkcs12('/Users/tsedano/Documents/rails/googleauth_test/api-project-whiteboard.p12', 'notasecret')
  end

  return key
end