레일스 앱에서 Google Cloud Datastore를 사용하고 싶습니다. 쉽게 할 수있는 Ruby 라이브러리가 있습니까? 당신은 루비에 대한 공식 Google API 클라이언트를 사용할 수 있습니다Ruby에서 Google Cloud Datastore를 사용하려면 어떻게해야하나요?
2
A
답변
3
는 :
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 an interactive API session
google-api irb
>> ds = $client.discovered_api('datastore', 'v1beta1')
>> $client.execute(ds.lookup, {'datasetId' => '...', 'keys' => [...]})
=> # returns a response from the API
0
루비와 데이터 저장소를 사용하여 아주 작은 자원이 될 것 같다,하지만이 페이지는 아마 시작하는 가장 좋은 장소입니다 : 당신이 필요로하는
https://cloud.google.com/datastore/docs/getstarted/start_ruby/
관련 문제
- 1. Cloud Datastore를 '종류'로 정의하려면 어떻게해야하나요?
- 2. NDB API에서 Google Cloud Datastore를 사용 하시겠습니까?
- 3. Google Cloud Bucket을 검색하려면 어떻게해야하나요?
- 4. 요세미티에서 Creative Cloud (CC)를 사용하려면 어떻게해야하나요?
- 5. Kinvey의 NoSQL Datastore 또는 Google Cloud Datastore를 사용해야합니까?
- 6. 스칼라 앱에서 Google App Engine Datastore를 사용하려면 어떻게해야합니까?
- 7. Google Cloud Datastore와 Google App Engine
- 8. Google 캘린더 JSON 피드를 Phonegap에서 사용하려면 어떻게해야하나요?
- 9. 이전 Google 문서 도구를 사용하려면 어떻게해야하나요?
- 10. Google App Engine에서 .mo 파일을 사용하려면 어떻게해야하나요?
- 11. 플라스크 (Flask)에서 Google 스토리지를 사용하려면 어떻게해야하나요?
- 12. Google 크롬을 Android Studio에서 참조로 사용하려면 어떻게해야하나요?
- 13. Google Cloud Messaging을 데이터베이스와 함께 사용하려면 어떻게해야합니까?
- 14. Chrome DevTools 실험을 사용하려면 어떻게해야하나요?
- 15. 크롬 확장 기능을 사용하려면 어떻게해야하나요?
- 16. 모든보기에서 테마를 사용하려면 어떻게해야하나요?
- 17. UIScrollView에서 터치를 사용하려면 어떻게해야하나요?
- 18. iOS에서 영구보기를 사용하려면 어떻게해야하나요?
- 19. WebView에서 탄력성을 사용하려면 어떻게해야하나요?
- 20. 인상파 보석을 사용하려면 어떻게해야하나요?
- 21. Android를 사용하려면 어떻게해야하나요?
- 22. CKEDITOR - 하이픈을 사용하려면 어떻게해야하나요?
- 23. 스핑크스에서 수학을 사용하려면 어떻게해야하나요?
- 24. ActiveModel을 즉시 사용하려면 어떻게해야하나요?
- 25. hoxu로 gitstats를 사용하려면 어떻게해야하나요?
- 26. Google Cloud Datastore gcd 설치
- 27. Google Cloud Platform App Engine 인스턴스의 상태 알림을 설정하려면 어떻게해야하나요?
- 28. 새 Google Cloud Console에서 BLOBstore를 가져 오려면 어떻게해야하나요?
- 29. API를 통해 사용자의 Google Cloud 스토리지 프로젝트 목록을 얻으려면 어떻게해야하나요?
- 30. FTP to Google Cloud
주 모두'https : //로 www.googleapis.com/인증/datastore'과'은 https : //www.googleapi s.com/auth/userinfo.email' 범위에 있습니다. – proppy