Sha256: 793160a7f5b9ee56a4061d0834ed442952d84fb7c3e5ac94a822fe049f498047
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
module Okezoneid module SSOActivity include SSOOkezone mattr_accessor :api_activity_path self.api_activity_path = '/api/v1/activities/' def sso_post_activity(params) activity = {:body => {:request_url => params['request_url'], :okezone_id => params['okezone_id'], :ip_address => request.remote_ip, :browser => request.user_agent, :log_type => params['log_type'], :refferer => params['refferer'], :author => params['author'], :editor => params['editor'], :published => params['published']}} token = sso_get_token response = token.post(api_activity_path, activity) return response.body end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
okezoneid-0.0.1 | lib/okezoneid/sso_activity.rb |