Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi all,
Thanks to all in advance! =)
Hello my friend;
For this you need to work with XML_RPC or Curl.
Here are some examples and links to know how to work with:
XML_RPC:
Links:
https://doc.odoo.com/6.0/developer/6_22_XML-RPC_web_services/
http://thierry-godin.developpez.com/openerp/openerp-xmlrpc-php-fr/
http://thierry-godin.developpez.com/openerp/openerp-xmlrpc-php-en/
CURL:
Link:
https://www.odoo.com/fr_FR/forum/help-1/question/use-xmlrpc-webservice-through-cloud-version-of-odoo-55377
Example:
import pycurl, json
from StringIO import StringIO
github_url = 'Your_api_link
buffer = StringIO()
c = pycurl.Curl()
c.setopt(pycurl.URL, github_url)
c.setopt(pycurl.HTTPHEADER, ['X-Postmark-Server-Token: API_TOKEN_HERE','Accept: application/json'])
c.setopt(c.WRITEFUNCTION, buffer.write)
c.perform()
c.close()
body = buffer.getvalue()
#print(body)
resp = json.loads(body)
if resp['result'] != 'ok' :
print 'Error : (' + resp['error_code'] +')' + resp['error']
else :
#print resp['list']
for gr in resp['list'] :
print gr['name']
Good LUCK & Regards.
please vote :)
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 3 23
|
2254 | ||
|
0
thg 4 22
|
1406 | ||
|
1
thg 5 15
|
8899 | ||
|
2
thg 9 20
|
9243 | ||
|
4
thg 6 20
|
3868 |