Beispiel #1
0
def post(content, role, role_text, theme, background, channels, on_created=None, on_error=None):
    args = {
        'content': content,
        'role': role,
        'role_text': role_text,
        'theme': theme,
        'background': background,
        'channels': channels or []
    }
    post_helper(
        url=endpoint('post_post'),
        data=args,
        on_created=on_created,
        on_error=on_error)
Beispiel #2
0
def post(content,
         role,
         role_text,
         theme,
         background,
         channels,
         on_created=None,
         on_error=None):
    args = {
        'content': content,
        'role': role,
        'role_text': role_text,
        'theme': theme,
        'background': background,
        'channels': channels or []
    }
    post_helper(url=endpoint('post_post'),
                data=args,
                on_created=on_created,
                on_error=on_error)
Beispiel #3
0
def post(post_key, on_created=None, on_error=None):
    post_helper(endpoint('post_flag', post_key=post_key),
                on_created=on_created,
                on_error=on_error)
Beispiel #4
0
def post(content, on_created=None, on_error=None):
    post_helper(
        endpoint('post_feedback'),
        data=content,
        on_created=on_created,
        on_error=on_error)
Beispiel #5
0
def post(post_key, content, role, role_text, on_created=None, on_error=None):
    post_helper(
        endpoint('post_comment', post_key=post_key),
        {'content': content, 'role': role, 'role_text': role_text},
        on_created,
        on_error)
Beispiel #6
0
def post(post_key, on_created=None, on_error=None):
    post_helper(
        endpoint('post_flag', post_key=post_key),
        on_created=on_created,
        on_error=on_error)
Beispiel #7
0
def post_up(item_key, on_voted=None, on_error=None):
    post_helper(
        endpoint('post_voteup', item_key=item_key),
        None,
        on_voted,
        on_error)
Beispiel #8
0
def post(content, on_created=None, on_error=None):
    post_helper(endpoint('post_feedback'),
                data=content,
                on_created=on_created,
                on_error=on_error)
Beispiel #9
0
def post_up(item_key, on_voted=None, on_error=None):
    post_helper(endpoint('post_voteup', item_key=item_key), None, on_voted,
                on_error)