(request: WSGIRequest)
return HttpResponse("Updated credentials")
Update jamendo credentials.
Update jamendo credentials.
Update jamendo credentials .
def set_jamendo_credentials(request: WSGIRequest) -> HttpResponse:
    """Update jamendo credentials."""
    client_id = request.POST.get("client_id")

    if not client_id:
        return HttpResponseBadRequest("All fields are required")

    storage.set("jamendo_client_id", client_id)

    system.update_mopidy_config("pulse")
    return HttpResponse("Updated credentials")
def set_jamendo_credentials ( request : WSGIRequest ) -> HttpResponse : client_id = request . POST . get ( "client_id" ) if not client_id : return HttpResponseBadRequest ( "All fields are required" ) storage . set ( "jamendo_client_id" , client_id ) system . update_mopidy_config ( "pulse" ) return HttpResponse ( "Updated credentials" )