0
我正在嘗試構建Google生成的用於與YouTube v3 Data API交互的類。我下載了他們這裏的工具包:使用Google的ServiceGenerator構建YouTube v3 API封裝
https://code.google.com/p/google-api-objectivec-client/
我建「ServiceGenerator」,但我想不出到底是什麼我應該傳遞到它。這顯然不起作用。使用該工具的文檔是最小的,而Google的文檔總體來說非常龐大,所以我無法跟蹤這個問題。
my-computer% ./ServiceGenerator https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest --outputDir generatedYouTubeAPI --verbose
===============================================================================
Generation Settings:
Output Directory: /svn/google-api-objectivec-client-read-only/generatedYouTubeAPI
Discovery RPC URL: https://www.googleapis.com/rpc?prettyPrint=false
Flags:
+ Use service name directory: NO
+ Remove unknown files: NO
+ Add 'Generated' directory: NO
+ Allow rootURL overrides: YES
Loading API URLs(s):
+ Fetching https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest
ERROR: The api description doesn't appear to be a discovery rpc description
Generating:
Writing:
- No changes from what is already on disk.
這看起來相關:http://stackoverflow.com/q/19122407/449161展望它... –