text 来自surveymonkey的回调

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 来自surveymonkey的回调相关的知识,希望对你有一定的参考价值。

Surveymonkey callback success, params=<ActionController::Parameters {"controller"=>"parent/surveys", "action"=>"callback"} permitted: false>
#<ActionDispatch::Response:0x000055a73ab27528 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055a73ab27460>, @header={"X-Frame-Options"=>"SAMEORIGIN", "X-XSS-Protection"=>"1; mode=block", "X-Content-Type-Options"=>"nosniff"}, @stream=#<ActionDispatch::Response::Buffer:0x000055a73ab27348 @response=#<ActionDispatch::Response:0x000055a73ab27528 ...>, @buf=[], @closed=false, @str_body=nil>, @status=200, @cv=#<MonitorMixin::ConditionVariable:0x000055a73ab27280 @monitor=#<ActionDispatch::Response:0x000055a73ab27528 ...>, @cond=#<Thread::ConditionVariable:0x000055a73ab27230>>, @committed=false, @sending=false, @sent=false, @cache_control={}, @request=#<ActionDispatch::Request:0x000055a73aa8a228 @env={"REMOTE_ADDR"=>"127.0.0.1", "REQUEST_METHOD"=>"POST", "REQUEST_PATH"=>"/parent/surveys/callback", "PATH_INFO"=>"/parent/surveys/callback", "REQUEST_URI"=>"/parent/surveys/callback", "SERVER_PROTOCOL"=>"HTTP/1.0", "HTTP_VERSION"=>"HTTP/1.0", "HTTP_X_FORWARDED_PROTO"=>"https", "HTTP_X_FORWARDED_FOR"=>"64.191.16.134, 64.191.16.134", "HTTP_HOST"=>"xlu.cognoa-staging.com", "HTTP_CONNECTION"=>"close", "CONTENT_LENGTH"=>"376", "HTTP_X_FORWARDED_PORT"=>"443", "HTTP_X_AMZN_TRACE_ID"=>"Root=1-5ade34b2-7ef459c007e142a0adb52eb0", "HTTP_ACCEPT_ENCODING"=>"gzip, deflate", "HTTP_ACCEPT"=>"*/*", "HTTP_USER_AGENT"=>"python-requests/2.18.4", "HTTP_SM_EVENTID"=>"10004602043", "HTTP_SM_SIGNATURE"=>"Ii+Kq4SZxJYE+tLvAfbsXNjqn0U=", "HTTP_X_DATADOG_PARENT_ID"=>"7038434274455443980", "HTTP_SM_APIKEY"=>"MheotGOvT8mBqfm_rwjuYw", "HTTP_X_DATADOG_TRACE_ID"=>"214729036053246707", "CONTENT_TYPE"=>"application/vnd.surveymonkey.response.v1+json", "HTTP_SM_EVENTTYPE"=>"ResponseEvent", "rack.url_scheme"=>"https", "SERVER_NAME"=>"xlu.cognoa-staging.com", "SERVER_PORT"=>"443", "QUERY_STRING"=>"", "rack.input"=>#<Unicorn::TeeInput:0x000055a73a718090 @len=376, @chunked=false, @socket=#<Kgio::Socket:fd 9>, @parser=#<Unicorn::HttpParser:0x000055a733ce39e0>, @buf="", @rbuf="{\"event_datetime\":\"2018-04-23T19:32:02.531164+00:00\",\"resources\":{\"respondent_id\":\"6847756771\",\"recipient_id\":\"0\",\"user_id\":\"115909956\",\"collector_id\":\"173746989\",\"survey_id\":\"133726625\"},\"name\":\"CHOC Dummy Xlu Webhook\",\"object_id\":\"6847756771\",\"filter_id\":\"133726625\",\"event_id\":\"10004602043\",\"object_type\":\"response\",\"filter_type\":\"survey\",\"event_type\":\"response_completed\"}", @bytes_read=376, @tmp=#<StringIO:0x000055a73a718018>>, "unicorn.socket"=>#<Kgio::Socket:fd 9>, "rack.hijack"=>#<Unicorn::HttpParser:0x000055a733ce39e0>, "rack.errors"=>#<File:/home/ubuntu/cognoa//shared/log/unicorn.stderr.log>, "rack.multiprocess"=>true, "rack.multithread"=>false, "rack.run_once"=>false, "rack.version"=>[1, 2], "rack.hijack?"=>true, "SCRIPT_NAME"=>"", "SERVER_SOFTWARE"=>"Unicorn 5.4.0", "rack.logger"=>#<Logger:0x000055a73383f830 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x000055a73383f790 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x000055a73383f6f0 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<File:/home/ubuntu/cognoa//shared/log/unicorn.stderr.log>, @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055a73383f628>>, @thread_hash_level_key=:"ThreadSafeLogger#47088306093080@level">, "newrelic.transaction_started"=>true, "action_dispatch.parameter_filter"=>[:password, :otp_attempt, :cc_number, :cc_exp], "action_dispatch.redirect_filter"=>[], "action_dispatch.secret_token"=>nil, "action_dispatch.secret_key_base"=>"4a40a406bea5df10900fc554a4565dae2816b4ef4107b2e8c4a00c478ace4a4b397d86b57405ea540746a73ce51d4da851e603008606f3bc88b83b328b4fb335", "action_dispatch.show_exceptions"=>true, "action_dispatch.show_detailed_exceptions"=>false, "action_dispatch.logger"=>#<Logger:0x000055a738e38b60 @level=1, @progname=nil, @default_formatter=#<Logger::Formatter:0x000055a738e38b10 @datetime_format=nil>, @formatter=#<ActiveSupport::Logger::SimpleFormatter:0x000055a738e38a48 @datetime_format=nil, @thread_key="activesupport_tagged_logging_tags:47088351167780">, @logdev=#<Logger::LogDevice:0x000055a738e38ac0 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<File:/home/ubuntu/cognoa//shared/log/unicorn.stdout.log>, @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000055a738e38a70>>, @thread_hash_level_key=:"ThreadSafeLogger#47088351167920@level">, "action_dispatch.backtrace_cleaner"=>#<Rails::BacktraceCleaner:0x000055a73a96c670 @filters=[#<Proc:0x000055a73a96c530@/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/railties-5.0.6/lib/rails/backtrace_cleaner.rb:14>, #<Proc:0x000055a73a96c508@/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/railties-5.0.6/lib/rails/backtrace_cleaner.rb:15>, #<Proc:0x000055a73a96c4e0@/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/railties-5.0.6/lib/rails/backtrace_cleaner.rb:16>, #<Proc:0x000055a736f3a650@/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/railties-5.0.6/lib/rails/backtrace_cleaner.rb:29>], @silencers=[#<Proc:0x000055a736f3a100@/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/railties-5.0.6/lib/rails/backtrace_cleaner.rb:19>], @root="/home/ubuntu/cognoa/releases/20180423191512/">, "action_dispatch.key_generator"=>#<ActiveSupport::CachingKeyGenerator:0x000055a739f1f780 @key_generator=#<ActiveSupport::KeyGenerator:0x000055a739f1f7a8 @secret="4a40a406bea5df10900fc554a4565dae2816b4ef4107b2e8c4a00c478ace4a4b397d86b57405ea540746a73ce51d4da851e603008606f3bc88b83b328b4fb335", @iterations=1000>, @cache_keys=#<Concurrent::Map:0x0055a739f1f758 entries=2 default_proc=nil>>, "action_dispatch.http_auth_salt"=>"http authentication", "action_dispatch.signed_cookie_salt"=>"signed cookie", "action_dispatch.encrypted_cookie_salt"=>"encrypted cookie", "action_dispatch.encrypted_signed_cookie_salt"=>"signed encrypted cookie", "action_dispatch.cookies_serializer"=>nil, "action_dispatch.cookies_digest"=>nil, "action_dispatch.routes"=>#<ActionDispatch::Routing::RouteSet:0x000055a738821240>, "ROUTES_47088347973920_SCRIPT_NAME"=>"", "ORIGINAL_FULLPATH"=>"/parent/surveys/callback", "ORIGINAL_SCRIPT_NAME"=>"", "action_dispatch.request_id"=>"3bdd9c9d-e54f-48d1-8e31-c50e8823968d", "action_dispatch.remote_ip"=>#<ActionDispatch::RemoteIp::GetIp:0x00007f45dc1444b0 @req=#<ActionDispatch::Request:0x00007f45dc1444d8 @env={...}, @filtered_parameters=nil, @filtered_env=nil, @filtered_path=nil, @protocol=nil, @port=nil, @method=nil, @request_method=nil, @remote_ip=nil, @original_fullpath=nil, @fullpath=nil, @ip=nil>, @check_ip=true, @proxies=[#<IPAddr: IPv4:127.0.0.1/255.255.255.255>, #<IPAddr: IPv6:0000:0000:0000:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>, #<IPAddr: IPv6:fc00:0000:0000:0000:0000:0000:0000:0000/fe00:0000:0000:0000:0000:0000:0000:0000>, #<IPAddr: IPv4:10.0.0.0/255.0.0.0>, #<IPAddr: IPv4:172.16.0.0/255.240.0.0>, #<IPAddr: IPv4:192.168.0.0/255.255.0.0>], @ip="64.191.16.134">, "rack.session"=>#<ActionDispatch::Request::Session:0x7f45dc1440f0 not yet loaded>, "rack.session.options"=>#<ActionDispatch::Request::Session::Options:0x00007f45dc1440a0 @by=#<ActionDispatch::Session::ActiveRecordStore:0x000055a7380d8038 @app=#<NewRelic::Agent::Instrumentation::MiddlewareProxy:0x000055a7380d8100 @target=#<Rack::Head:0x000055a7380d8128 @app=#<NewRelic::Agent::Instrumentation::MiddlewareProxy:0x000055a7380d81f0 @target=#<Rack::ConditionalGet:0x000055a7380d8218 @app=#<NewRelic::Agent::Instrumentation::MiddlewareProxy:0x000055a7380d82e0 @target=#<Rack::ETag:0x000055a7380d8308 @app=#<NewRelic::Agent::Instrumentation::MiddlewareProxy:0x000055a7380d83d0 @target=#<Warden::Manager:0x000055a7380d8498 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:two_factor_backupable, :two_factor_authenticatable, :rememberable, :two_factor_backupable, :two_factor_authenticatable]}, :intercept_401=>false, :failure_app=>#<Devise::Delegator:0x000055a7359a0a10>}, @app=#<NewRelic::Rack::BrowserMonitoring:0x000055a7380d8560 @app=#<NewRelic::Rack::AgentHooks:0x000055a7380d8628 @app=#<NewRelic::Agent::Instrumentation::MiddlewareProxy:0x000055a7380d86f0 @target=#<OmniAuth::Strategies::Facebook>, @is_app=false, @category=:middleware, @target_class_name="OmniAuth::Strategies::Facebook", @transaction_name="Middleware/Rack/OmniAuth::Strategies::Facebook/call", @transaction_options={:transaction_name=>"Middleware/Rack/OmniAuth::Strategies::Facebook/call"}>, @category=:middleware, @target=#<NewRelic::Rack::AgentHooks:0x000055a7380d8628 ...>, @transaction_options={:transaction_name=>"Middleware/Rack/NewRelic::Rack::AgentHooks/call"}>, @category=:middleware, @target=#<NewRelic::Rack::BrowserMonitoring:0x000055a7380d8560 ...>, @transaction_options={:transaction_name=>"Middleware/Rack/NewRelic::Rack::BrowserMonitoring/call"}>>, @is_app=false, @category=:middleware, @target_class_name="Warden::Manager", @transaction_name="Middleware/Rack/Warden::Manager/call", @transaction_options={:transaction_name=>"Middleware/Rack/Warden::Manager/call"}>, @cache_control="max-age=0, private, must-revalidate", @no_cache_control="no-cache">, @is_app=false, @category=:middleware, @target_class_name="Rack::ETag", @transaction_name="Middleware/Rack/Rack::ETag/call", @transaction_options={:transaction_name=>"Middleware/Rack/Rack::ETag/call"}>>, @is_app=false, @category=:middleware, @target_class_name="Rack::ConditionalGet", @transaction_name="Middleware/Rack/Rack::ConditionalGet/call", @transaction_options={:transaction_name=>"Middleware/Rack/Rack::ConditionalGet/call"}>>, @is_app=false, @category=:middleware, @target_class_name="Rack::Head", @transaction_name="Middleware/Rack/Rack::Head/call", @transaction_options={:transaction_name=>"Middleware/Rack/Rack::Head/call"}>, @default_options={:path=>"/", :domain=>nil, :expire_after=>2 weeks, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}, @key="_cognoa_staging_session", @cookie_only=true>, @delegate={:path=>"/", :domain=>nil, :expire_after=>2 weeks, :secure=>false, :httponly=>true, :defer=>false, :renew=>false}>, "warden"=>Warden::Proxy:47088366018160 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:two_factor_backupable, :two_factor_authenticatable, :rememberable, :two_factor_backupable, :two_factor_authenticatable]}, :intercept_401=>false, :failure_app=>#<Devise::Delegator:0x000055a7359a0a10>}, "action_dispatch.request.path_parameters"=>{:controller=>"parent/surveys", :action=>"callback"}, "action_controller.instance"=>#<Parent::SurveysController:0x000055a73ab26fb0 @_action_has_layout=true, @_routes=nil, @_request=#<ActionDispatch::Request:0x000055a73aa8a228 ...>, @_response=#<ActionDispatch::Response:0x000055a73ab27528 ...>, @_lookup_context=#<ActionView::LookupContext:0x000055a73ab26b78 @details_key=nil, @cache=true, @prefixes=["parent/surveys", "application"], @rendered_format=nil, @details={:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :svg, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip, :gzip], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}, @view_paths=#<ActionView::PathSet:0x000055a73ab26970 @paths=[#<ActionView::OptimizedFileSystemResolver:0x000055a738df3060 @pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}", @cache=#<ActionView::Resolver::Cache:0x55a738df3038 keys=0 queries=0>, @path="/home/ubuntu/cognoa/releases/20180423191512/app/views">, #<ActionView::OptimizedFileSystemResolver:0x000055a738df3d08 @pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}", @cache=#<ActionView::Resolver::Cache:0x55a738df3ce0 keys=0 queries=0>, @path="/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/resque-web-0.0.12/app/views">, #<ActionView::OptimizedFileSystemResolver:0x000055a735d53d38 @pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}", @cache=#<ActionView::Resolver::Cache:0x55a735d53b80 keys=0 queries=0>, @path="/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/twitter-bootstrap-rails-4.0.0/app/views">, #<ActionView::OptimizedFileSystemResolver:0x000055a738ddcc48 @pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}", @cache=#<ActionView::Resolver::Cache:0x55a738ddcc20 keys=0 queries=0>, @path="/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/devise-4.4.1/app/views">, #<ActionView::OptimizedFileSystemResolver:0x000055a738dddc38 @pattern=":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}", @cache=#<ActionView::Resolver::Cache:0x55a738dddc10 keys=0 queries=0>, @path="/home/ubuntu/cognoa/shared/bundle/ruby/2.5.0/gems/kaminari-core-1.1.1/app/views">]>>, @_action_name="callback", @_response_body=nil, @current_user=nil, @_params=<ActionController::Parameters {"controller"=>"parent/surveys", "action"=>"callback"} permitted: false>>, "action_dispatch.request.content_type"=>#<Mime::Type:0x000055a73ab03808 @synonyms=[], @symbol=nil, @string="application/vnd.surveymonkey.response.v1+json", @hash=2849703863841526378>, "action_dispatch.request.request_parameters"=>{}, "rack.request.query_string"=>"", "rack.request.query_hash"=>{}, "action_dispatch.request.query_parameters"=>{}, "action_dispatch.request.parameters"=>{"controller"=>"parent/surveys", "action"=>"callback"}, "action_dispatch.request.accepts"=>[#<Mime::Type:0x000055a73ab02250 @synonyms=[], @symbol=nil, @string="*/*", @hash=3839000531821595968>], "action_dispatch.request.formats"=>[#<Mime::Type:0x000055a73ab02250 @synonyms=[], @symbol=nil, @string="*/*", @hash=3839000531821595968>], "rack.request.cookie_hash"=>{}, "action_dispatch.cookies"=>#<ActionDispatch::Cookies::CookieJar:0x000055a73aaec018 @set_cookies={}, @delete_cookies={}, @request=#<ActionDispatch::Request:0x000055a73aaec040 @env={...}, @filtered_parameters=nil, @filtered_env=nil, @filtered_path=nil, @protocol=nil, @port=nil, @method=nil, @request_method=nil, @remote_ip=nil, @original_fullpath=nil, @fullpath=nil, @ip=nil>, @cookies={}, @committed=false, @signed=#<ActionDispatch::Cookies::SignedCookieJar:0x000055a73aaebe38 @parent_jar=#<ActionDispatch::Cookies::CookieJar:0x000055a73aaec018 ...>, @verifier=#<ActiveSupport::MessageVerifier:0x000055a73aaebbb8 @secret="%x\xBC$3#\"\xB6\xDAs\x91\xB5_\xA4-\x03`\xAC\x97\xAC\b\x89\x1Dj{\x98j\x11\xC7\n\xF0\"\xD5\xEE\x1F(Z1R\xDFgq\xD24\xB9Y_\xA9\xCA\xEC-R0<J\x9D\xEA\xE2\xE4 \xF58\xE6t", @digest="SHA1", @serializer=ActiveSupport::MessageEncryptor::NullSerializer>>>}, @filtered_parameters={"controller"=>"parent/surveys", "action"=>"callback"}, @filtered_env=nil, @filtered_path=nil, @protocol=nil, @port=nil, @method="POST", @request_method="POST", @remote_ip="64.191.16.134", @original_fullpath=nil, @fullpath="/parent/surveys/callback", @ip=nil>>
Surveymonkey callback response= #<ActionDispatch::Response:0x000055a73ab27528>

以上是关于text 来自surveymonkey的回调的主要内容,如果未能解决你的问题,请参考以下文章

使用 Pandas 的 SurveyMonkey 数据格式化

使用 R 解析出 Surveymonkey csv 文件

使用surveymonkey api向调查发布电子邮件

XSLT以递归方式重组XML Children

SurveyMonkey API v3 创建消息,返回错误:“用户没有发出此请求所需的计划”

如何在 SurveyMonkey v3 响应/批量中按 date_modified 以外的字段排序