basic JSON message structure Args: status: status (ok, failed) msg: the message content Returns: a JSON message
(status="", msg="")
| 5 | |
| 6 | |
| 7 | def msg_structure(status="", msg=""): |
| 8 | """ |
| 9 | basic JSON message structure |
| 10 | |
| 11 | Args: |
| 12 | status: status (ok, failed) |
| 13 | msg: the message content |
| 14 | |
| 15 | Returns: |
| 16 | a JSON message |
| 17 | """ |
| 18 | return { |
| 19 | "status": status, |
| 20 | "msg": msg |
| 21 | } |
| 22 | |
| 23 | |
| 24 | def all_mime_types(): |
no outgoing calls