Advertisement
Guest User

Untitled

a guest
Aug 20th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "id": 8,
  3.   "method": "model.ir.model.read",
  4.   "params":
  5.   [
  6.     1,
  7.     "qdnWWyRL6mgnuIJrnxTFxGaWX7xc6o/BH+QnWZbFcgU=",
  8.     [47, 71],
  9.     ["info", "model", "name", "module", "_timestamp"],
  10.     {
  11.       "language": "fr_FR", "locale": {
  12.         "date": "%d.%m.%Y", "thousands_sep": "", "grouping": [],
  13.         "decimal_point": ","
  14.       },
  15.       "language_direction": "ltr", "groups": [1], "timezone": null
  16.     }
  17.   ]
  18. }
  19.  
  20. /*
  21. {
  22.   "id": id of the request,
  23.   "method": name of the method,
  24.   "params": [
  25.     first parameter,
  26.     second parameter,
  27.     third parameter,
  28.     context
  29.   ]
  30. }
  31. */
  32.  
  33. /*
  34. If the request needs authentication:
  35. - first parameter is the user id
  36. - second parameter is the cookie
  37.  
  38. user id and cookie can be fetched with a call to "common.db.login(username, password)"
  39. Session can be closed with a call to "common.db.logout(user id, cookie)"
  40.  
  41. Data could be manipulated with authenticated calls, these calls are "model.<modelname>.(search|read|create|write|delete|copy)".
  42. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement