MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / get_login_key

Function get_login_key

src/astroprint/api/cloud.py:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67@api.route('/astroprint/login-key', methods=['GET'])
68@restricted_access
69def get_login_key():
70 try:
71 key = astroprintCloud().get_login_key()
72 if key:
73 return jsonify(key)
74
75 except (AstroPrintCloudNoConnectionException, ConnectionError):
76 abort(503, "AstroPrint.com can't be reached")
77
78 abort(401)
79
80@api.route('/astroprint/upload-data', methods=['GET'])
81@restricted_access

Callers

nothing calls this directly

Calls 2

astroprintCloudFunction · 0.90
get_login_keyMethod · 0.80

Tested by

no test coverage detected