pajikos / sms-gammu-gateway

Simple SMS REST API gateway for sending SMS from gammu supported devices
Apache License 2.0
116 stars 31 forks source link

Add Reset function #16

Closed MuadDibVV closed 3 years ago

MuadDibVV commented 3 years ago

Hello, Thanks for your work.

Is it possible to add the reset function (I need it because my key is not enough table). In run.py 👍 ...

class Reset(Resource):
    def __init__(self, sm):
        self.machine = sm

    def get(self):
        machine.Reset(False)
        return {"status":200, "message": "Reset effectue"}, 200

... api.add_resource(Reset, '/reset', resource_class_args=[machine])

Thanks a lot