跳至内容
菜单
此问题已终结
3 回复
5699 查看

Hi all, I am new to OpenERP and I am working on integrating Dropbox with OpenERP.

I am having trouble with the webhook feature of Dropbox this is why:

Upon creating the webhook address in Dropbox API, initially it sends out a GET with a challange that it wants bounced back to verify that you are in fact there listening. I was able to accomplish this with a controller

@http.httprequest

index(self, req, **kw):

if 'challenge' in kwargs:
return kwargs.get('challenge')

However, after this initial verif, dropbox then sends JSON POSTS to the same address.

The @http.httpresponse seems to not respond to any JSON whatssoever and @http.jsonrequest demands that there be a JSON request and will not work otherwise.

Any ideas? Thank you in advance!

形象
丢弃
编写者 最佳答案

Ill answer my own question!

Use req.httprequest.data as the JSON was in the body and not a RPC request.

形象
丢弃
最佳答案

Did you made the connection Odoo + dropbox?

形象
丢弃

For those who are searching Odoo <> DropBox sync module: https://apps.odoo.com/apps/modules/12.0/dropbox/

最佳答案

Hi,

Try refer the following free app related to dropbox 

https://apps.odoo.com/apps/modules/16.0/dropbox_integration/

Regards

形象
丢弃
相关帖文 回复 查看 活动
2
7月 24
2282
3
6月 24
3025
1
5月 24
719
0
4月 24
1800
1
3月 23
3427