Beispiel #1
0
def auth_endpoint():
    imagekit = ImageKit(
        private_key=current_app.config['IMAGEKIT_PRIVATE_KEY'],
        public_key=current_app.config['IMAGEKIT_PUBLIC_KEY'],
        url_endpoint=current_app.config['IMAGEKIT_URL_ENDPOINT'])
    auth_params = imagekit.get_authentication_parameters()

    return jsonify(auth_params)
Beispiel #2
0
def get_image_kit_signature(request):
    image_kit = ImageKit(private_key='private_7zgXhRBx6JkdbiffUrT6Iz+RC70=',
                         public_key='public_7/xIjAxG2LvxezZFcU5XVjHQv50=',
                         url_endpoint=' https://ik.imagekit.io/quava')
    return JsonResponse(data=image_kit.get_authentication_parameters())