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.2
- 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
- Actor
- Bookmark201Response
- Comment
- ConnectBluesky200Response
- ConnectBlueskyRequest
- Connection
- CreateComment201Response
- CreateCommentBody
- CreatePinterestBoard201Response
- CreatePinterestBoardRequest
- CreatePostBody
- CreatePostBodyDestinationsInner
- CreateWebhook201Response
- CreateWebhookBody
- DeleteComment200Response
- DestinationIdBody
- DestinationStatus
- Error
- ErrorError
- GetConnectionStats200Response
- GetPostInsights200Response
- GetPostInsights200ResponseInsights
- GetPostInsights200ResponseInsightsDestinationsInner
- GetPostInsightsTimeline200Response
- GetPostInsightsTimeline200ResponseTimeline
- GetPostInsightsTimeline200ResponseTimelineDestinationsInner
- GetPostInsightsTimeline200ResponseTimelineDestinationsInnerPointsInner
- GetTikTokCreatorInfo200Response
- GetTikTokCreatorInfo200ResponseCreatorInfo
- Like201Response
- ListComments200Response
- ListConnectionMedia200Response
- ListConnections200Response
- ListFacebookPages200Response
- ListFacebookPages200ResponsePagesInner
- ListMedia200Response
- ListPinterestBoards200Response
- ListPinterestBoards200ResponseBoardsInner
- ListPosts200Response
- ListRetweeters200Response
- ListRetweeters200ResponseRetweets
- ListRetweeters200ResponseRetweetsDestinationsInner
- ListWebhookDeliveries200Response
- ListWebhookEventTypes200Response
- ListWebhooks200Response
- MediaAsset
- MediaKind
- NormalizedMetrics
- Post
- PostDestination
- PostResponse
- PostStatus
- Quote201Response
- QuoteBody
- Retweet201Response
- SelectFacebookPage200Response
- SelectFacebookPageRequest
- StartOAuth200Response
- TestWebhook200Response
- UpdateWebhookBody
- UploadMedia201Response
- Webhook
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onepostly-0.2.2.tar.gz.
File metadata
- Download URL: onepostly-0.2.2.tar.gz
- Upload date:
- Size: 59.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
895d5c172c7f5f793a7a3137aae413fadde8b8069d8acf69c195ea9a1225b529
|
|
| MD5 |
70c43d33953158f3ed86987c086fab0d
|
|
| BLAKE2b-256 |
460b2b2f2205eb9c0e28f2999e0bdc847013a1c75654854c385307e9bbf1bae8
|
Provenance
The following attestation bundles were made for onepostly-0.2.2.tar.gz:
Publisher:
generate.yml on onepostly/onepostly-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
onepostly-0.2.2.tar.gz -
Subject digest:
895d5c172c7f5f793a7a3137aae413fadde8b8069d8acf69c195ea9a1225b529 - Sigstore transparency entry: 2662345010
- Sigstore integration time:
-
Permalink:
onepostly/onepostly-python@c5be05cf243e2705fb0fede95b44e4750b9c70da -
Branch / Tag:
refs/heads/main - Owner: https://github.com/onepostly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate.yml@c5be05cf243e2705fb0fede95b44e4750b9c70da -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file onepostly-0.2.2-py3-none-any.whl.
File metadata
- Download URL: onepostly-0.2.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85490326f9fafb3966e71b6f5f63d56a97cec1858888e663d48e4a72f76a6dd5
|
|
| MD5 |
08f7ca5b32767c191ab421b10538fa1c
|
|
| BLAKE2b-256 |
7f12b3a0d939d693255462071f445fbac33d16bc3a03f3cae9f85af74b657a04
|
Provenance
The following attestation bundles were made for onepostly-0.2.2-py3-none-any.whl:
Publisher:
generate.yml on onepostly/onepostly-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
onepostly-0.2.2-py3-none-any.whl -
Subject digest:
85490326f9fafb3966e71b6f5f63d56a97cec1858888e663d48e4a72f76a6dd5 - Sigstore transparency entry: 2662345050
- Sigstore integration time:
-
Permalink:
onepostly/onepostly-python@c5be05cf243e2705fb0fede95b44e4750b9c70da -
Branch / Tag:
refs/heads/main - Owner: https://github.com/onepostly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
generate.yml@c5be05cf243e2705fb0fede95b44e4750b9c70da -
Trigger Event:
workflow_dispatch
-
Statement type: