How do I use Google Cloud Datastore with Ruby? -
i'd use google cloud datastore rails app. ruby lib make easy?
you can use official google api client ruby:
https://github.com/google/google-api-ruby-client
# log in google-api oauth-2-login --client-id='...' --client-secret='...' --scope="https://www.googleapis.com/auth/datastore https://www.googleapis.com/auth/userinfo.email" # start interactive api session google-api irb >> ds = $client.discovered_api('datastore', 'v1beta1') >> $client.execute(ds.lookup, {'datasetid' => '...', 'keys' => [...]}) => # returns response api
Comments
Post a Comment