Skip to main content

onepostly

One API for all social media. Authenticate with a workspace API key (op_…).

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 0.2.3
  • Generator version: 7.25.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://onepostly.com

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import onepostly

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import onepostly

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import onepostly
from onepostly.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.onepostly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = onepostly.Configuration(
    host = "https://api.onepostly.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyHeader
configuration.api_key['ApiKeyHeader'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyHeader'] = 'Bearer'

# Configure Bearer authorization (op_): ApiKeyBearer
configuration = onepostly.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
async with onepostly.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = onepostly.CommentsApi(api_client)
    id = 'id_example' # str | 
    create_comment_body = onepostly.CreateCommentBody() # CreateCommentBody | 

    try:
        # Create reply
        api_response = await api_instance.create_comment(id, create_comment_body)
        print("The response of CommentsApi->create_comment:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling CommentsApi->create_comment: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.onepostly.com

Class Method HTTP request Description
CommentsApi create_comment POST /v1/posts/{id}/comments Create reply
CommentsApi delete_comment DELETE /v1/posts/{id}/comments/{commentId} Delete own comment
CommentsApi list_comments GET /v1/posts/{id}/comments List comments
ConnectionsApi connect_bluesky POST /v1/connections/bluesky/connect Connect Bluesky via App Password
ConnectionsApi create_pinterest_board POST /v1/connections/{id}/pinterest/boards Create Pinterest board
ConnectionsApi get_connection_stats GET /v1/connections/{id}/stats Get connection account stats
ConnectionsApi get_tik_tok_creator_info GET /v1/connections/{id}/tiktok/creator-info Get TikTok creator info
ConnectionsApi list_connection_media GET /v1/connections/{id}/media List creator media
ConnectionsApi list_connections GET /v1/connections List connections
ConnectionsApi list_facebook_pages GET /v1/connections/oauth/facebook/pages List Facebook Pages for pending connect
ConnectionsApi list_pinterest_boards GET /v1/connections/{id}/pinterest/boards List Pinterest boards
ConnectionsApi select_facebook_page POST /v1/connections/oauth/facebook/select Select Facebook Page and finish connect
ConnectionsApi start_o_auth GET /v1/connections/oauth/{platform}/start Start OAuth connect
EngagementApi bookmark POST /v1/posts/{id}/bookmarks Bookmark
EngagementApi like POST /v1/posts/{id}/likes Like
EngagementApi list_retweeters GET /v1/posts/{id}/retweets List retweeters
EngagementApi quote POST /v1/posts/{id}/quotes Quote tweet
EngagementApi remove_bookmark DELETE /v1/posts/{id}/bookmarks Remove bookmark
EngagementApi retweet POST /v1/posts/{id}/retweets Retweet
EngagementApi undo_retweet DELETE /v1/posts/{id}/retweets Undo retweet
EngagementApi unlike DELETE /v1/posts/{id}/likes Unlike
InsightsApi get_post_insights GET /v1/posts/{id}/insights Get insights
InsightsApi get_post_insights_timeline GET /v1/posts/{id}/insights/timeline Get daily insights timeline
MediaApi delete_media DELETE /v1/media/{id} Delete media
MediaApi list_media GET /v1/media List media
MediaApi upload_media POST /v1/media Upload media
PostsApi cancel_post DELETE /v1/posts/{id} Cancel post
PostsApi create_post POST /v1/posts Create post
PostsApi delete_post_destination DELETE /v1/posts/{id}/destinations/{destinationId} Remote-delete destination
PostsApi get_post GET /v1/posts/{id} Get post
PostsApi list_posts GET /v1/posts List posts
WebhooksApi create_webhook POST /v1/webhooks Create webhook
WebhooksApi delete_webhook DELETE /v1/webhooks/{id} Delete webhook
WebhooksApi get_webhook GET /v1/webhooks/{id} Get webhook
WebhooksApi list_webhook_deliveries GET /v1/webhooks/{id}/deliveries List webhook deliveries
WebhooksApi list_webhook_event_types GET /v1/webhooks/events List webhook event types
WebhooksApi list_webhooks GET /v1/webhooks List webhooks
WebhooksApi rotate_webhook_secret POST /v1/webhooks/{id}/rotate-secret Rotate webhook secret
WebhooksApi test_webhook POST /v1/webhooks/{id}/test Send test event
WebhooksApi update_webhook PATCH /v1/webhooks/{id} Update webhook

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyHeader

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

ApiKeyBearer

  • Type: Bearer authentication (op_)

Author

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onepostly-0.2.3.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onepostly-0.2.3-py3-none-any.whl (137.1 kB view details)

Uploaded Python 3

File details

Details for the file onepostly-0.2.3.tar.gz.

File metadata

  • Download URL: onepostly-0.2.3.tar.gz
  • Upload date:
  • Size: 58.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for onepostly-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cc0108146d864b20193430c2ab5a288ec0df7b61610cb2de0b6df441e5bce396
MD5 d2ceaa9919b82b6f390d25b49ee07376
BLAKE2b-256 1dbfe0b0497d8f87f86a0a04af1b0d5e6ecc1e5960b3bb363ee86a0d0bffcf1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for onepostly-0.2.3.tar.gz:

Publisher: generate.yml on onepostly/onepostly-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file onepostly-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: onepostly-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 137.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for onepostly-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2d1dfe5ea5dca362df812004dcd7c904ed3da41f6cd985ad3c848c19e19b5f9a
MD5 e9bdb4091d89a96d87d64f400122c0a4
BLAKE2b-256 2c5fa299dc40d033c2b0235b4cdcc24f094949d9fbc8a5dd3155019f54ccad65

See more details on using hashes here.

Provenance

The following attestation bundles were made for onepostly-0.2.3-py3-none-any.whl:

Publisher: generate.yml on onepostly/onepostly-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.5

2 files

0.2.4

2 files

This release

0.2.3 This release

2 files

0.2.2

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page