跳至內容
選單
此問題已被標幟
1 回覆
3920 瀏覽次數
The configuration of the Google API is not documented.
Account : [ 7077467779379@developer.gserviceaccount.com ]
Auto synchronize : [ x ]
Use local browser : [ x ]
Secrets path : [  ] << prefigured,  but where is this file ?
Credential path : [ credentials.dat ]  << prefigured,  but where is this file ?

(My karma is insufficient to post a link or a file.. :)) ) So please visit dl.dropboxusercontent.com/u/82752112/google_api.JPG to see what I mean.

but when I hit : "Authorize" I get     XmlHttpRequestError 

And its not fair ;)
頭像
捨棄
最佳答案

Hello Christian Eichert,

By default openerp set the field "secrets path" with value as a "client_secrets.json". But there was no file, we need to provide file name with path where JSON file located.

You can create and download json file from "console.developers.google.com". First create a new project and go to the “APIS & AUTH/ APIs” section. Enable “calendar API”.

Now go to the “Credentials” just below the APIs section of your project and click on “Download JSON" and save this file on a location where your Odoo/OpenERP system has access to it. 

In “Secrets path” enter the full path of downloaded json file/ (example: /home/openerp/google_calendar/client_secrets.json).

Enter path for “Credential path” field. When we authorize, google_api will create the credential file and fill data. (example: /home/openerp/google_calendar/credentials.dat). File should have read and write access.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 15
3503
0
3月 15
3345
0
8月 22
2159
1
3月 15
3880
0
2月 19
4759