def createjsobj(self, data_str): json_obj = json.dumps(data_str) fob=open('mwrite' ,'w') fob.write(json_obj) fob.close() dropbox_api.main()
def SEND(self, data_str): json_obj = json.dumps([{"sender": "Desktop" , "reciever": "mobile", "command" : "sendSMS","data": data_str}]) fob=open('mwrite' ,'w') fob.write(json_obj) fob.close() dropbox_api.main()