Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Use ActiveResource as a client

aflatter edited this page Sep 14, 2010 · 1 revision

Remember that you SHOULD be using SSL.


class Foo < ActiveResource::Base

  self.headers['authorization'] = begin
    header = OAuth2::Headers::Authorization.new
    header.token = 'YOUR SECRET TOKEN'
    header.to_s
  end

end