Rev 635 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 1292 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | 23 | ||
24 | json = requests.post(url, data = myobj).json() |
24 | json = requests.post(url, data = myobj).json() |
25 | 25 | ||
26 | if json['error'] != None: |
26 | if json['error'] != None: |
27 | print(json['error']); |
27 | print(json['error']); |
28 | elif json['status'] == 0: # OK |
28 | elif json['status'] >= 0: # OK |
29 | print("Insert OK"); |
- | |
30 | elif json['status'] == 1: # RaNotExisting |
- | |
31 | print("Insert OK"); |
- | |
32 | elif json['status'] == 2: # RaNotExistingNoInvitation |
- | |
33 | print("Insert OK"); |
29 | print("Insert OK"); |
34 | else: |
30 | else: |
35 | print("Error "+json); |
31 | print("Error "+json); |