def main():

    r = "json"
    u = "changeme"
    p = "changeme"
    f = "marcuz"
    t = "44**********"

    msg = {'reqtype': r, 'api_secret': p, 'from': f, 'to': t, 'api_key': u}

    verify = copy.deepcopy(msg)

    try:
        if sys.argv[1] == 'verify':
            verify['number'] = sys.argv[2]
            verify['brand'] = sys.argv[3]
        elif sys.argv[1] == 'verify/check':
            verify['request_id'] = sys.argv[2]
            verify['code'] = sys.argv[3]
        elif sys.argv[1] == 'verify/search':
            verify['request_id'] = sys.argv[2]
        elif sys.argv[1] == 'verify/control':
            verify['request_id'] = sys.argv[2]
            verify['cmd'] = sys.argv[3]
        else:
            sys.exit('Request not supported: %s' % sys.argv[1])
    except __HOLE__:
        print('Missing parameters:')
        print('%s verify number brand' % sys.argv[0])
        print('%s verify/check request_id code' % sys.argv[0])
        print('%s verify/search request_id' % sys.argv[0])
        print('%s verify/control request_id cmd' % sys.argv[0])
        sys.exit()

    verify['type'] = sys.argv[1]
    r = NexmoVerify(verify)
    print("Details: %s") % (r.get_details())
    print r.send_request()
dataset/ETHPy150Open marcuz/libpynexmo/demos/simple/nexmo_verify.py/main