Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
5602 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 24
2096
3
มิ.ย. 24
2814
1
พ.ค. 24
609
0
เม.ย. 24
1623
1
มี.ค. 23
3142