Beispiel #1
0
def save_post(client: ApiClient, media_id: str) -> bool:
    """Save a post.

    Args:
        client: your `ApiClient`
        media_id: the media_id of a post

    Returns:
        `True` if success else `False`
    """
    save = ps.Save(media_id=media_id)
    resp = client.post_save(save)
    logger.info(f"Saved post {media_id}")
    return is_resp_ok(resp)
Beispiel #2
0
def save_post(client: ApiClient, media_id: str) -> bool:
    save = ps.Save(media_id=media_id)
    resp = client.post_save(save)
    logger.info(f"Saved post {media_id}")
    return is_resp_ok(resp)
Beispiel #3
0
def save_post(client: ApiClient, media_id: str) -> bool:
    save = ps.Save(media_id=media_id)
    resp = client.post_save(save)
    return is_resp_ok(resp)