Sha256: f28337daa586ed0a920d24eea892d05847ac4d2965f25c0694d504852927f4f1
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
module UsosAuthCommon extend ActiveSupport::Concern def handle_request(access_token, access_token_secret, service_path) access_token = usos_authorizer.access_token(session, nil, access_token, access_token_secret) puts access_token response = access_token.get(service_path) JSON.parse(response.body) end private def usos_authorizer UsosAuthLib::UsosAuthorizer.new end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
usos_auth_lib-0.1.0 | app/models/concerns/usos_auth_common.rb |