(request, link)
return ClickMetaManager().add(link_id=link.id, **data)
Save public access info of short link.

    :param request:
    :param link:
    :return: ClickMeta
Save public access info of short link.
Save public access info of short link .
def save_clickmeta(request, link):
    """Save public access info of short link.

    :param request:
    :param link:
    :return: ClickMeta
    """
    from pygmy.core.request_parser import parse_request, parse_header
    pygmy_header_key = config.pygmy_internal['pygmy_header_key']
    if request.headers.get('Pygmy-Header-Key') == pygmy_header_key:
        data = parse_header(request)
    else:
        data = parse_request(request)
    return ClickMetaManager().add(link_id=link.id, **data)
def save_clickmeta ( request , link ) : from pygmy . core . request_parser import parse_request , parse_header pygmy_header_key = config . pygmy_internal [ 'pygmy_header_key' ] if request . headers . get ( 'Pygmy-Header-Key' ) == pygmy_header_key : data = parse_header ( request ) else : data = parse_request ( request ) return ClickMetaManager ( ) . add ( link_id = link . id , * * data )