我与谷歌的任务连接器玩,结束了以下错误谷歌的任务/日历
The content of element 'google-tasks:config-with-oauth' is not complete. One of '{" http://www.mulesoft.org/schema/mule/core ":annotations, " http://www.mulesoft.org/schema/mule/google-tasks ":oauth-callback-config}' is expected.
这里是我的配置
<google-tasks:config-with-oauth name="Google_Tasks"
consumerKey="sagitec.mygbiz.com"
consumerSecret="oeX9wb_GhldQJYjHKLDqC-EB" doc:name="Google Tasks"/>
<flow name="google_taskFlow1" doc:name="google_taskFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/>
<google-tasks:authorize config-ref="Google_Tasks" accessTokenUrl="https://accounts.google.com/o/oauth2/token"
authorizationUrl="https://accounts.google.com/o/oauth2/auth"
access_type="online" force_prompt="auto" doc:name="Google Tasks"/>
<logger level="INFO" doc:name="Logger" message="#[payload]"/> </flow>
如果我的域名输入“本地主机”(其被指定为可选),在Oauth标签下为google-tasks:config-with-oauth
,我没有收到任何生成错误。
所以我的第一个问题是,我必须在域名下输入什么值,以及我可以从哪里获得。
2)Consumer Key/Secret和ClientKey/secret之间有什么区别。
3)在其中一个样本中,我看到了${google.apiKey}
。这是什么,如果这是一个变量,wgere以及如何声明它。
如果提供任何样品,这将是非常好的。
由于提前, 卡纳安