0

私はこのコードを持っています

require 'google/api_client'
require 'google/api_client/client_secrets'
require 'google/api_client/auth/installed_app'

search_client = Google::APIClient.new(
  :application_name => 'Application'
)

google_search = search_client.discovered_api('customsearch')

# Load client secrets from your client_secrets.json.
client_secrets = Google::APIClient::ClientSecrets.load   

search_client.authorization = nil

response = search_client.execute(google_search.cse.list, 'q' => 'query')

そのファイルをIRBにロードした後、次のような結果が得られました

#<Google::APIClient::Result:0xad56844>
=> true

意味のあるものに解析するなど、その結果をどのように使用できますか?

4

1 に答える 1

1

最後の行の後に追加します。

status, headers, body = response
于 2014-05-19T04:15:51.907 に答える