Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
6007 Visualizações

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!

Avatar
Cancelar
Autor Melhor resposta

Ill answer my own question!

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

Avatar
Cancelar
Melhor resposta

Did you made the connection Odoo + dropbox?

Avatar
Cancelar

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

Melhor resposta

Hi,

Try refer the following free app related to dropbox 

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

Regards

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jun. 25
2264
2
jun. 25
596
2
jul. 24
2792
3
jun. 24
3416
1
mai. 24
996