postzen-sdk 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- postzen_sdk-1.0.0/PKG-INFO +178 -0
- postzen_sdk-1.0.0/README.md +159 -0
- postzen_sdk-1.0.0/postzen/__init__.py +138 -0
- postzen_sdk-1.0.0/postzen/api/__init__.py +9 -0
- postzen_sdk-1.0.0/postzen/api/accounts_api.py +659 -0
- postzen_sdk-1.0.0/postzen/api/connect_api.py +661 -0
- postzen_sdk-1.0.0/postzen/api/media_api.py +325 -0
- postzen_sdk-1.0.0/postzen/api/posts_api.py +343 -0
- postzen_sdk-1.0.0/postzen/api/profiles_api.py +1433 -0
- postzen_sdk-1.0.0/postzen/api_client.py +804 -0
- postzen_sdk-1.0.0/postzen/api_response.py +21 -0
- postzen_sdk-1.0.0/postzen/configuration.py +605 -0
- postzen_sdk-1.0.0/postzen/exceptions.py +218 -0
- postzen_sdk-1.0.0/postzen/models/__init__.py +57 -0
- postzen_sdk-1.0.0/postzen/models/account.py +123 -0
- postzen_sdk-1.0.0/postzen/models/account_profile_summary.py +94 -0
- postzen_sdk-1.0.0/postzen/models/accounts_list_response.py +102 -0
- postzen_sdk-1.0.0/postzen/models/api_post.py +119 -0
- postzen_sdk-1.0.0/postzen/models/api_post_account.py +97 -0
- postzen_sdk-1.0.0/postzen/models/api_post_platform_result.py +108 -0
- postzen_sdk-1.0.0/postzen/models/connect_complete_error_response.py +90 -0
- postzen_sdk-1.0.0/postzen/models/connect_complete_request.py +92 -0
- postzen_sdk-1.0.0/postzen/models/connect_complete_response.py +117 -0
- postzen_sdk-1.0.0/postzen/models/connect_start_response.py +90 -0
- postzen_sdk-1.0.0/postzen/models/create_post_replay_response.py +101 -0
- postzen_sdk-1.0.0/postzen/models/create_post_request.py +122 -0
- postzen_sdk-1.0.0/postzen/models/create_post_response.py +101 -0
- postzen_sdk-1.0.0/postzen/models/create_post_target.py +99 -0
- postzen_sdk-1.0.0/postzen/models/error_response.py +88 -0
- postzen_sdk-1.0.0/postzen/models/facebook_settings.py +90 -0
- postzen_sdk-1.0.0/postzen/models/instagram_settings.py +114 -0
- postzen_sdk-1.0.0/postzen/models/instagram_settings_user_tags_inner.py +92 -0
- postzen_sdk-1.0.0/postzen/models/linked_in_settings.py +98 -0
- postzen_sdk-1.0.0/postzen/models/media_presign_request.py +102 -0
- postzen_sdk-1.0.0/postzen/models/media_presign_response.py +101 -0
- postzen_sdk-1.0.0/postzen/models/message_response.py +88 -0
- postzen_sdk-1.0.0/postzen/models/pagination.py +95 -0
- postzen_sdk-1.0.0/postzen/models/payment_required_error.py +116 -0
- postzen_sdk-1.0.0/postzen/models/payment_required_error_details.py +92 -0
- postzen_sdk-1.0.0/postzen/models/pinterest_settings.py +94 -0
- postzen_sdk-1.0.0/postzen/models/post_media_item.py +90 -0
- postzen_sdk-1.0.0/postzen/models/post_platform_settings.py +221 -0
- postzen_sdk-1.0.0/postzen/models/profile.py +112 -0
- postzen_sdk-1.0.0/postzen/models/profile_create_request.py +106 -0
- postzen_sdk-1.0.0/postzen/models/profile_response.py +92 -0
- postzen_sdk-1.0.0/postzen/models/profile_update_request.py +113 -0
- postzen_sdk-1.0.0/postzen/models/profile_write_response.py +94 -0
- postzen_sdk-1.0.0/postzen/models/profiles_list_response.py +96 -0
- postzen_sdk-1.0.0/postzen/models/public_platform_input.py +44 -0
- postzen_sdk-1.0.0/postzen/models/public_platform_output.py +43 -0
- postzen_sdk-1.0.0/postzen/models/threads_settings.py +98 -0
- postzen_sdk-1.0.0/postzen/models/tik_tok_settings.py +118 -0
- postzen_sdk-1.0.0/postzen/models/x_settings.py +98 -0
- postzen_sdk-1.0.0/postzen/models/you_tube_settings.py +112 -0
- postzen_sdk-1.0.0/postzen/models/you_tube_settings_tags.py +143 -0
- postzen_sdk-1.0.0/postzen/py.typed +0 -0
- postzen_sdk-1.0.0/postzen/rest.py +263 -0
- postzen_sdk-1.0.0/postzen_sdk.egg-info/PKG-INFO +178 -0
- postzen_sdk-1.0.0/postzen_sdk.egg-info/SOURCES.txt +110 -0
- postzen_sdk-1.0.0/postzen_sdk.egg-info/dependency_links.txt +1 -0
- postzen_sdk-1.0.0/postzen_sdk.egg-info/requires.txt +4 -0
- postzen_sdk-1.0.0/postzen_sdk.egg-info/top_level.txt +1 -0
- postzen_sdk-1.0.0/pyproject.toml +95 -0
- postzen_sdk-1.0.0/setup.cfg +7 -0
- postzen_sdk-1.0.0/setup.py +47 -0
- postzen_sdk-1.0.0/test/test_account.py +79 -0
- postzen_sdk-1.0.0/test/test_account_profile_summary.py +58 -0
- postzen_sdk-1.0.0/test/test_accounts_api.py +45 -0
- postzen_sdk-1.0.0/test/test_accounts_list_response.py +93 -0
- postzen_sdk-1.0.0/test/test_api_post.py +88 -0
- postzen_sdk-1.0.0/test/test_api_post_account.py +60 -0
- postzen_sdk-1.0.0/test/test_api_post_platform_result.py +68 -0
- postzen_sdk-1.0.0/test/test_connect_api.py +45 -0
- postzen_sdk-1.0.0/test/test_connect_complete_error_response.py +53 -0
- postzen_sdk-1.0.0/test/test_connect_complete_request.py +56 -0
- postzen_sdk-1.0.0/test/test_connect_complete_response.py +81 -0
- postzen_sdk-1.0.0/test/test_connect_start_response.py +54 -0
- postzen_sdk-1.0.0/test/test_create_post_replay_response.py +92 -0
- postzen_sdk-1.0.0/test/test_create_post_request.py +71 -0
- postzen_sdk-1.0.0/test/test_create_post_response.py +92 -0
- postzen_sdk-1.0.0/test/test_create_post_target.py +56 -0
- postzen_sdk-1.0.0/test/test_error_response.py +52 -0
- postzen_sdk-1.0.0/test/test_facebook_settings.py +52 -0
- postzen_sdk-1.0.0/test/test_instagram_settings.py +62 -0
- postzen_sdk-1.0.0/test/test_instagram_settings_user_tags_inner.py +56 -0
- postzen_sdk-1.0.0/test/test_linked_in_settings.py +51 -0
- postzen_sdk-1.0.0/test/test_media_api.py +38 -0
- postzen_sdk-1.0.0/test/test_media_presign_request.py +56 -0
- postzen_sdk-1.0.0/test/test_media_presign_response.py +58 -0
- postzen_sdk-1.0.0/test/test_message_response.py +52 -0
- postzen_sdk-1.0.0/test/test_pagination.py +58 -0
- postzen_sdk-1.0.0/test/test_payment_required_error.py +64 -0
- postzen_sdk-1.0.0/test/test_payment_required_error_details.py +53 -0
- postzen_sdk-1.0.0/test/test_pinterest_settings.py +54 -0
- postzen_sdk-1.0.0/test/test_post_media_item.py +53 -0
- postzen_sdk-1.0.0/test/test_post_platform_settings.py +85 -0
- postzen_sdk-1.0.0/test/test_posts_api.py +38 -0
- postzen_sdk-1.0.0/test/test_profile.py +63 -0
- postzen_sdk-1.0.0/test/test_profile_create_request.py +54 -0
- postzen_sdk-1.0.0/test/test_profile_response.py +66 -0
- postzen_sdk-1.0.0/test/test_profile_update_request.py +54 -0
- postzen_sdk-1.0.0/test/test_profile_write_response.py +68 -0
- postzen_sdk-1.0.0/test/test_profiles_api.py +66 -0
- postzen_sdk-1.0.0/test/test_profiles_list_response.py +70 -0
- postzen_sdk-1.0.0/test/test_public_platform_input.py +33 -0
- postzen_sdk-1.0.0/test/test_public_platform_output.py +33 -0
- postzen_sdk-1.0.0/test/test_threads_settings.py +51 -0
- postzen_sdk-1.0.0/test/test_tik_tok_settings.py +61 -0
- postzen_sdk-1.0.0/test/test_x_settings.py +51 -0
- postzen_sdk-1.0.0/test/test_you_tube_settings.py +56 -0
- postzen_sdk-1.0.0/test/test_you_tube_settings_tags.py +50 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: postzen-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Official Python SDK for the PostZen Public API — manage profiles, connected social accounts, media uploads, and post publishing
|
|
5
|
+
Home-page: https://github.com/postzen-dev/postzen-python
|
|
6
|
+
Author: PostZen
|
|
7
|
+
Author-email: team@openapitools.org
|
|
8
|
+
Project-URL: Homepage, https://postzen.dev
|
|
9
|
+
Project-URL: Repository, https://github.com/postzen-dev/postzen-python
|
|
10
|
+
Keywords: postzen,social media,api,sdk,publishing
|
|
11
|
+
Requires-Python: >=3.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
14
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
15
|
+
Requires-Dist: pydantic>=2.11
|
|
16
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
17
|
+
Dynamic: author-email
|
|
18
|
+
Dynamic: home-page
|
|
19
|
+
|
|
20
|
+
# postzen-python
|
|
21
|
+
The PostZen Public API lets server-side integrations manage profiles, connected social accounts, OAuth connection flows, media uploads, and post creation.
|
|
22
|
+
|
|
23
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
24
|
+
|
|
25
|
+
- API version: 1.0.0
|
|
26
|
+
- Package version: 1.0.0
|
|
27
|
+
- Generator version: 7.23.0
|
|
28
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
29
|
+
|
|
30
|
+
## Requirements.
|
|
31
|
+
|
|
32
|
+
Python 3.10+
|
|
33
|
+
|
|
34
|
+
## Installation & Usage
|
|
35
|
+
### pip install
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pip install postzen-sdk
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Then import the package:
|
|
42
|
+
```python
|
|
43
|
+
import postzen
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### From source
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pip install git+https://github.com/postzen-dev/postzen-python.git
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Tests
|
|
53
|
+
|
|
54
|
+
Execute `pytest` to run the tests.
|
|
55
|
+
|
|
56
|
+
## Getting Started
|
|
57
|
+
|
|
58
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
|
|
62
|
+
import postzen
|
|
63
|
+
from postzen.rest import ApiException
|
|
64
|
+
from pprint import pprint
|
|
65
|
+
|
|
66
|
+
# Defining the host is optional and defaults to https://api.postzen.dev
|
|
67
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
68
|
+
configuration = postzen.Configuration(
|
|
69
|
+
host = "https://api.postzen.dev"
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
# The client must configure the authentication and authorization parameters
|
|
73
|
+
# in accordance with the API server security policy.
|
|
74
|
+
# Examples for each auth method are provided below, use the example that
|
|
75
|
+
# satisfies your auth use case.
|
|
76
|
+
|
|
77
|
+
# Configure Bearer authorization: bearerAuth
|
|
78
|
+
configuration = postzen.Configuration(
|
|
79
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
# Enter a context with an instance of the API client
|
|
84
|
+
with postzen.ApiClient(configuration) as api_client:
|
|
85
|
+
# Create an instance of the API class
|
|
86
|
+
api_instance = postzen.AccountsApi(api_client)
|
|
87
|
+
account_id = 'account_id_example' # str | PostZen account id.
|
|
88
|
+
|
|
89
|
+
try:
|
|
90
|
+
# Disconnect an account
|
|
91
|
+
api_response = api_instance.disconnect_account(account_id)
|
|
92
|
+
print("The response of AccountsApi->disconnect_account:\n")
|
|
93
|
+
pprint(api_response)
|
|
94
|
+
except ApiException as e:
|
|
95
|
+
print("Exception when calling AccountsApi->disconnect_account: %s\n" % e)
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Documentation for API Endpoints
|
|
100
|
+
|
|
101
|
+
All URIs are relative to *https://api.postzen.dev*
|
|
102
|
+
|
|
103
|
+
Class | Method | HTTP request | Description
|
|
104
|
+
------------ | ------------- | ------------- | -------------
|
|
105
|
+
*AccountsApi* | [**disconnect_account**](docs/AccountsApi.md#disconnect_account) | **DELETE** /v1/accounts/{accountId} | Disconnect an account
|
|
106
|
+
*AccountsApi* | [**list_accounts**](docs/AccountsApi.md#list_accounts) | **GET** /v1/accounts | List accounts
|
|
107
|
+
*ConnectApi* | [**complete_connect**](docs/ConnectApi.md#complete_connect) | **POST** /v1/connect/{platform} | Complete an OAuth connection
|
|
108
|
+
*ConnectApi* | [**create_connect_url**](docs/ConnectApi.md#create_connect_url) | **GET** /v1/connect/{platform} | Create an OAuth connect URL
|
|
109
|
+
*MediaApi* | [**create_media_presign**](docs/MediaApi.md#create_media_presign) | **POST** /v1/media/presign | Create a presigned media upload URL
|
|
110
|
+
*PostsApi* | [**create_post**](docs/PostsApi.md#create_post) | **POST** /v1/posts | Create a post
|
|
111
|
+
*ProfilesApi* | [**create_profile**](docs/ProfilesApi.md#create_profile) | **POST** /v1/profiles | Create a profile
|
|
112
|
+
*ProfilesApi* | [**delete_profile**](docs/ProfilesApi.md#delete_profile) | **DELETE** /v1/profiles/{profileId} | Delete a profile
|
|
113
|
+
*ProfilesApi* | [**get_profile**](docs/ProfilesApi.md#get_profile) | **GET** /v1/profiles/{profileId} | Get a profile
|
|
114
|
+
*ProfilesApi* | [**list_profiles**](docs/ProfilesApi.md#list_profiles) | **GET** /v1/profiles | List profiles
|
|
115
|
+
*ProfilesApi* | [**update_profile**](docs/ProfilesApi.md#update_profile) | **PUT** /v1/profiles/{profileId} | Update a profile
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## Documentation For Models
|
|
119
|
+
|
|
120
|
+
- [Account](docs/Account.md)
|
|
121
|
+
- [AccountProfileSummary](docs/AccountProfileSummary.md)
|
|
122
|
+
- [AccountsListResponse](docs/AccountsListResponse.md)
|
|
123
|
+
- [ApiPost](docs/ApiPost.md)
|
|
124
|
+
- [ApiPostAccount](docs/ApiPostAccount.md)
|
|
125
|
+
- [ApiPostPlatformResult](docs/ApiPostPlatformResult.md)
|
|
126
|
+
- [ConnectCompleteErrorResponse](docs/ConnectCompleteErrorResponse.md)
|
|
127
|
+
- [ConnectCompleteRequest](docs/ConnectCompleteRequest.md)
|
|
128
|
+
- [ConnectCompleteResponse](docs/ConnectCompleteResponse.md)
|
|
129
|
+
- [ConnectStartResponse](docs/ConnectStartResponse.md)
|
|
130
|
+
- [CreatePostReplayResponse](docs/CreatePostReplayResponse.md)
|
|
131
|
+
- [CreatePostRequest](docs/CreatePostRequest.md)
|
|
132
|
+
- [CreatePostResponse](docs/CreatePostResponse.md)
|
|
133
|
+
- [CreatePostTarget](docs/CreatePostTarget.md)
|
|
134
|
+
- [ErrorResponse](docs/ErrorResponse.md)
|
|
135
|
+
- [FacebookSettings](docs/FacebookSettings.md)
|
|
136
|
+
- [InstagramSettings](docs/InstagramSettings.md)
|
|
137
|
+
- [InstagramSettingsUserTagsInner](docs/InstagramSettingsUserTagsInner.md)
|
|
138
|
+
- [LinkedInSettings](docs/LinkedInSettings.md)
|
|
139
|
+
- [MediaPresignRequest](docs/MediaPresignRequest.md)
|
|
140
|
+
- [MediaPresignResponse](docs/MediaPresignResponse.md)
|
|
141
|
+
- [MessageResponse](docs/MessageResponse.md)
|
|
142
|
+
- [Pagination](docs/Pagination.md)
|
|
143
|
+
- [PaymentRequiredError](docs/PaymentRequiredError.md)
|
|
144
|
+
- [PaymentRequiredErrorDetails](docs/PaymentRequiredErrorDetails.md)
|
|
145
|
+
- [PinterestSettings](docs/PinterestSettings.md)
|
|
146
|
+
- [PostMediaItem](docs/PostMediaItem.md)
|
|
147
|
+
- [PostPlatformSettings](docs/PostPlatformSettings.md)
|
|
148
|
+
- [Profile](docs/Profile.md)
|
|
149
|
+
- [ProfileCreateRequest](docs/ProfileCreateRequest.md)
|
|
150
|
+
- [ProfileResponse](docs/ProfileResponse.md)
|
|
151
|
+
- [ProfileUpdateRequest](docs/ProfileUpdateRequest.md)
|
|
152
|
+
- [ProfileWriteResponse](docs/ProfileWriteResponse.md)
|
|
153
|
+
- [ProfilesListResponse](docs/ProfilesListResponse.md)
|
|
154
|
+
- [PublicPlatformInput](docs/PublicPlatformInput.md)
|
|
155
|
+
- [PublicPlatformOutput](docs/PublicPlatformOutput.md)
|
|
156
|
+
- [ThreadsSettings](docs/ThreadsSettings.md)
|
|
157
|
+
- [TikTokSettings](docs/TikTokSettings.md)
|
|
158
|
+
- [XSettings](docs/XSettings.md)
|
|
159
|
+
- [YouTubeSettings](docs/YouTubeSettings.md)
|
|
160
|
+
- [YouTubeSettingsTags](docs/YouTubeSettingsTags.md)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<a id="documentation-for-authorization"></a>
|
|
164
|
+
## Documentation For Authorization
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
Authentication schemes defined for the API:
|
|
168
|
+
<a id="bearerAuth"></a>
|
|
169
|
+
### bearerAuth
|
|
170
|
+
|
|
171
|
+
- **Type**: Bearer authentication
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## Author
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# postzen-python
|
|
2
|
+
The PostZen Public API lets server-side integrations manage profiles, connected social accounts, OAuth connection flows, media uploads, and post creation.
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 1.0.0
|
|
7
|
+
- Package version: 1.0.0
|
|
8
|
+
- Generator version: 7.23.0
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 3.10+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
### pip install
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pip install postzen-sdk
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Then import the package:
|
|
23
|
+
```python
|
|
24
|
+
import postzen
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### From source
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pip install git+https://github.com/postzen-dev/postzen-python.git
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Tests
|
|
34
|
+
|
|
35
|
+
Execute `pytest` to run the tests.
|
|
36
|
+
|
|
37
|
+
## Getting Started
|
|
38
|
+
|
|
39
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
|
|
43
|
+
import postzen
|
|
44
|
+
from postzen.rest import ApiException
|
|
45
|
+
from pprint import pprint
|
|
46
|
+
|
|
47
|
+
# Defining the host is optional and defaults to https://api.postzen.dev
|
|
48
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
49
|
+
configuration = postzen.Configuration(
|
|
50
|
+
host = "https://api.postzen.dev"
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
# The client must configure the authentication and authorization parameters
|
|
54
|
+
# in accordance with the API server security policy.
|
|
55
|
+
# Examples for each auth method are provided below, use the example that
|
|
56
|
+
# satisfies your auth use case.
|
|
57
|
+
|
|
58
|
+
# Configure Bearer authorization: bearerAuth
|
|
59
|
+
configuration = postzen.Configuration(
|
|
60
|
+
access_token = os.environ["BEARER_TOKEN"]
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# Enter a context with an instance of the API client
|
|
65
|
+
with postzen.ApiClient(configuration) as api_client:
|
|
66
|
+
# Create an instance of the API class
|
|
67
|
+
api_instance = postzen.AccountsApi(api_client)
|
|
68
|
+
account_id = 'account_id_example' # str | PostZen account id.
|
|
69
|
+
|
|
70
|
+
try:
|
|
71
|
+
# Disconnect an account
|
|
72
|
+
api_response = api_instance.disconnect_account(account_id)
|
|
73
|
+
print("The response of AccountsApi->disconnect_account:\n")
|
|
74
|
+
pprint(api_response)
|
|
75
|
+
except ApiException as e:
|
|
76
|
+
print("Exception when calling AccountsApi->disconnect_account: %s\n" % e)
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Documentation for API Endpoints
|
|
81
|
+
|
|
82
|
+
All URIs are relative to *https://api.postzen.dev*
|
|
83
|
+
|
|
84
|
+
Class | Method | HTTP request | Description
|
|
85
|
+
------------ | ------------- | ------------- | -------------
|
|
86
|
+
*AccountsApi* | [**disconnect_account**](docs/AccountsApi.md#disconnect_account) | **DELETE** /v1/accounts/{accountId} | Disconnect an account
|
|
87
|
+
*AccountsApi* | [**list_accounts**](docs/AccountsApi.md#list_accounts) | **GET** /v1/accounts | List accounts
|
|
88
|
+
*ConnectApi* | [**complete_connect**](docs/ConnectApi.md#complete_connect) | **POST** /v1/connect/{platform} | Complete an OAuth connection
|
|
89
|
+
*ConnectApi* | [**create_connect_url**](docs/ConnectApi.md#create_connect_url) | **GET** /v1/connect/{platform} | Create an OAuth connect URL
|
|
90
|
+
*MediaApi* | [**create_media_presign**](docs/MediaApi.md#create_media_presign) | **POST** /v1/media/presign | Create a presigned media upload URL
|
|
91
|
+
*PostsApi* | [**create_post**](docs/PostsApi.md#create_post) | **POST** /v1/posts | Create a post
|
|
92
|
+
*ProfilesApi* | [**create_profile**](docs/ProfilesApi.md#create_profile) | **POST** /v1/profiles | Create a profile
|
|
93
|
+
*ProfilesApi* | [**delete_profile**](docs/ProfilesApi.md#delete_profile) | **DELETE** /v1/profiles/{profileId} | Delete a profile
|
|
94
|
+
*ProfilesApi* | [**get_profile**](docs/ProfilesApi.md#get_profile) | **GET** /v1/profiles/{profileId} | Get a profile
|
|
95
|
+
*ProfilesApi* | [**list_profiles**](docs/ProfilesApi.md#list_profiles) | **GET** /v1/profiles | List profiles
|
|
96
|
+
*ProfilesApi* | [**update_profile**](docs/ProfilesApi.md#update_profile) | **PUT** /v1/profiles/{profileId} | Update a profile
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## Documentation For Models
|
|
100
|
+
|
|
101
|
+
- [Account](docs/Account.md)
|
|
102
|
+
- [AccountProfileSummary](docs/AccountProfileSummary.md)
|
|
103
|
+
- [AccountsListResponse](docs/AccountsListResponse.md)
|
|
104
|
+
- [ApiPost](docs/ApiPost.md)
|
|
105
|
+
- [ApiPostAccount](docs/ApiPostAccount.md)
|
|
106
|
+
- [ApiPostPlatformResult](docs/ApiPostPlatformResult.md)
|
|
107
|
+
- [ConnectCompleteErrorResponse](docs/ConnectCompleteErrorResponse.md)
|
|
108
|
+
- [ConnectCompleteRequest](docs/ConnectCompleteRequest.md)
|
|
109
|
+
- [ConnectCompleteResponse](docs/ConnectCompleteResponse.md)
|
|
110
|
+
- [ConnectStartResponse](docs/ConnectStartResponse.md)
|
|
111
|
+
- [CreatePostReplayResponse](docs/CreatePostReplayResponse.md)
|
|
112
|
+
- [CreatePostRequest](docs/CreatePostRequest.md)
|
|
113
|
+
- [CreatePostResponse](docs/CreatePostResponse.md)
|
|
114
|
+
- [CreatePostTarget](docs/CreatePostTarget.md)
|
|
115
|
+
- [ErrorResponse](docs/ErrorResponse.md)
|
|
116
|
+
- [FacebookSettings](docs/FacebookSettings.md)
|
|
117
|
+
- [InstagramSettings](docs/InstagramSettings.md)
|
|
118
|
+
- [InstagramSettingsUserTagsInner](docs/InstagramSettingsUserTagsInner.md)
|
|
119
|
+
- [LinkedInSettings](docs/LinkedInSettings.md)
|
|
120
|
+
- [MediaPresignRequest](docs/MediaPresignRequest.md)
|
|
121
|
+
- [MediaPresignResponse](docs/MediaPresignResponse.md)
|
|
122
|
+
- [MessageResponse](docs/MessageResponse.md)
|
|
123
|
+
- [Pagination](docs/Pagination.md)
|
|
124
|
+
- [PaymentRequiredError](docs/PaymentRequiredError.md)
|
|
125
|
+
- [PaymentRequiredErrorDetails](docs/PaymentRequiredErrorDetails.md)
|
|
126
|
+
- [PinterestSettings](docs/PinterestSettings.md)
|
|
127
|
+
- [PostMediaItem](docs/PostMediaItem.md)
|
|
128
|
+
- [PostPlatformSettings](docs/PostPlatformSettings.md)
|
|
129
|
+
- [Profile](docs/Profile.md)
|
|
130
|
+
- [ProfileCreateRequest](docs/ProfileCreateRequest.md)
|
|
131
|
+
- [ProfileResponse](docs/ProfileResponse.md)
|
|
132
|
+
- [ProfileUpdateRequest](docs/ProfileUpdateRequest.md)
|
|
133
|
+
- [ProfileWriteResponse](docs/ProfileWriteResponse.md)
|
|
134
|
+
- [ProfilesListResponse](docs/ProfilesListResponse.md)
|
|
135
|
+
- [PublicPlatformInput](docs/PublicPlatformInput.md)
|
|
136
|
+
- [PublicPlatformOutput](docs/PublicPlatformOutput.md)
|
|
137
|
+
- [ThreadsSettings](docs/ThreadsSettings.md)
|
|
138
|
+
- [TikTokSettings](docs/TikTokSettings.md)
|
|
139
|
+
- [XSettings](docs/XSettings.md)
|
|
140
|
+
- [YouTubeSettings](docs/YouTubeSettings.md)
|
|
141
|
+
- [YouTubeSettingsTags](docs/YouTubeSettingsTags.md)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
<a id="documentation-for-authorization"></a>
|
|
145
|
+
## Documentation For Authorization
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
Authentication schemes defined for the API:
|
|
149
|
+
<a id="bearerAuth"></a>
|
|
150
|
+
### bearerAuth
|
|
151
|
+
|
|
152
|
+
- **Type**: Bearer authentication
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
## Author
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
PostZen Public API
|
|
7
|
+
|
|
8
|
+
The PostZen Public API lets server-side integrations manage profiles, connected social accounts, OAuth connection flows, media uploads, and post creation.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"AccountsApi",
|
|
22
|
+
"ConnectApi",
|
|
23
|
+
"MediaApi",
|
|
24
|
+
"PostsApi",
|
|
25
|
+
"ProfilesApi",
|
|
26
|
+
"ApiResponse",
|
|
27
|
+
"ApiClient",
|
|
28
|
+
"Configuration",
|
|
29
|
+
"OpenApiException",
|
|
30
|
+
"ApiTypeError",
|
|
31
|
+
"ApiValueError",
|
|
32
|
+
"ApiKeyError",
|
|
33
|
+
"ApiAttributeError",
|
|
34
|
+
"ApiException",
|
|
35
|
+
"Account",
|
|
36
|
+
"AccountProfileSummary",
|
|
37
|
+
"AccountsListResponse",
|
|
38
|
+
"ApiPost",
|
|
39
|
+
"ApiPostAccount",
|
|
40
|
+
"ApiPostPlatformResult",
|
|
41
|
+
"ConnectCompleteErrorResponse",
|
|
42
|
+
"ConnectCompleteRequest",
|
|
43
|
+
"ConnectCompleteResponse",
|
|
44
|
+
"ConnectStartResponse",
|
|
45
|
+
"CreatePostReplayResponse",
|
|
46
|
+
"CreatePostRequest",
|
|
47
|
+
"CreatePostResponse",
|
|
48
|
+
"CreatePostTarget",
|
|
49
|
+
"ErrorResponse",
|
|
50
|
+
"FacebookSettings",
|
|
51
|
+
"InstagramSettings",
|
|
52
|
+
"InstagramSettingsUserTagsInner",
|
|
53
|
+
"LinkedInSettings",
|
|
54
|
+
"MediaPresignRequest",
|
|
55
|
+
"MediaPresignResponse",
|
|
56
|
+
"MessageResponse",
|
|
57
|
+
"Pagination",
|
|
58
|
+
"PaymentRequiredError",
|
|
59
|
+
"PaymentRequiredErrorDetails",
|
|
60
|
+
"PinterestSettings",
|
|
61
|
+
"PostMediaItem",
|
|
62
|
+
"PostPlatformSettings",
|
|
63
|
+
"Profile",
|
|
64
|
+
"ProfileCreateRequest",
|
|
65
|
+
"ProfileResponse",
|
|
66
|
+
"ProfileUpdateRequest",
|
|
67
|
+
"ProfileWriteResponse",
|
|
68
|
+
"ProfilesListResponse",
|
|
69
|
+
"PublicPlatformInput",
|
|
70
|
+
"PublicPlatformOutput",
|
|
71
|
+
"ThreadsSettings",
|
|
72
|
+
"TikTokSettings",
|
|
73
|
+
"XSettings",
|
|
74
|
+
"YouTubeSettings",
|
|
75
|
+
"YouTubeSettingsTags",
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
# import apis into sdk package
|
|
79
|
+
from postzen.api.accounts_api import AccountsApi as AccountsApi
|
|
80
|
+
from postzen.api.connect_api import ConnectApi as ConnectApi
|
|
81
|
+
from postzen.api.media_api import MediaApi as MediaApi
|
|
82
|
+
from postzen.api.posts_api import PostsApi as PostsApi
|
|
83
|
+
from postzen.api.profiles_api import ProfilesApi as ProfilesApi
|
|
84
|
+
|
|
85
|
+
# import ApiClient
|
|
86
|
+
from postzen.api_response import ApiResponse as ApiResponse
|
|
87
|
+
from postzen.api_client import ApiClient as ApiClient
|
|
88
|
+
from postzen.configuration import Configuration as Configuration
|
|
89
|
+
from postzen.exceptions import OpenApiException as OpenApiException
|
|
90
|
+
from postzen.exceptions import ApiTypeError as ApiTypeError
|
|
91
|
+
from postzen.exceptions import ApiValueError as ApiValueError
|
|
92
|
+
from postzen.exceptions import ApiKeyError as ApiKeyError
|
|
93
|
+
from postzen.exceptions import ApiAttributeError as ApiAttributeError
|
|
94
|
+
from postzen.exceptions import ApiException as ApiException
|
|
95
|
+
|
|
96
|
+
# import models into sdk package
|
|
97
|
+
from postzen.models.account import Account as Account
|
|
98
|
+
from postzen.models.account_profile_summary import AccountProfileSummary as AccountProfileSummary
|
|
99
|
+
from postzen.models.accounts_list_response import AccountsListResponse as AccountsListResponse
|
|
100
|
+
from postzen.models.api_post import ApiPost as ApiPost
|
|
101
|
+
from postzen.models.api_post_account import ApiPostAccount as ApiPostAccount
|
|
102
|
+
from postzen.models.api_post_platform_result import ApiPostPlatformResult as ApiPostPlatformResult
|
|
103
|
+
from postzen.models.connect_complete_error_response import ConnectCompleteErrorResponse as ConnectCompleteErrorResponse
|
|
104
|
+
from postzen.models.connect_complete_request import ConnectCompleteRequest as ConnectCompleteRequest
|
|
105
|
+
from postzen.models.connect_complete_response import ConnectCompleteResponse as ConnectCompleteResponse
|
|
106
|
+
from postzen.models.connect_start_response import ConnectStartResponse as ConnectStartResponse
|
|
107
|
+
from postzen.models.create_post_replay_response import CreatePostReplayResponse as CreatePostReplayResponse
|
|
108
|
+
from postzen.models.create_post_request import CreatePostRequest as CreatePostRequest
|
|
109
|
+
from postzen.models.create_post_response import CreatePostResponse as CreatePostResponse
|
|
110
|
+
from postzen.models.create_post_target import CreatePostTarget as CreatePostTarget
|
|
111
|
+
from postzen.models.error_response import ErrorResponse as ErrorResponse
|
|
112
|
+
from postzen.models.facebook_settings import FacebookSettings as FacebookSettings
|
|
113
|
+
from postzen.models.instagram_settings import InstagramSettings as InstagramSettings
|
|
114
|
+
from postzen.models.instagram_settings_user_tags_inner import InstagramSettingsUserTagsInner as InstagramSettingsUserTagsInner
|
|
115
|
+
from postzen.models.linked_in_settings import LinkedInSettings as LinkedInSettings
|
|
116
|
+
from postzen.models.media_presign_request import MediaPresignRequest as MediaPresignRequest
|
|
117
|
+
from postzen.models.media_presign_response import MediaPresignResponse as MediaPresignResponse
|
|
118
|
+
from postzen.models.message_response import MessageResponse as MessageResponse
|
|
119
|
+
from postzen.models.pagination import Pagination as Pagination
|
|
120
|
+
from postzen.models.payment_required_error import PaymentRequiredError as PaymentRequiredError
|
|
121
|
+
from postzen.models.payment_required_error_details import PaymentRequiredErrorDetails as PaymentRequiredErrorDetails
|
|
122
|
+
from postzen.models.pinterest_settings import PinterestSettings as PinterestSettings
|
|
123
|
+
from postzen.models.post_media_item import PostMediaItem as PostMediaItem
|
|
124
|
+
from postzen.models.post_platform_settings import PostPlatformSettings as PostPlatformSettings
|
|
125
|
+
from postzen.models.profile import Profile as Profile
|
|
126
|
+
from postzen.models.profile_create_request import ProfileCreateRequest as ProfileCreateRequest
|
|
127
|
+
from postzen.models.profile_response import ProfileResponse as ProfileResponse
|
|
128
|
+
from postzen.models.profile_update_request import ProfileUpdateRequest as ProfileUpdateRequest
|
|
129
|
+
from postzen.models.profile_write_response import ProfileWriteResponse as ProfileWriteResponse
|
|
130
|
+
from postzen.models.profiles_list_response import ProfilesListResponse as ProfilesListResponse
|
|
131
|
+
from postzen.models.public_platform_input import PublicPlatformInput as PublicPlatformInput
|
|
132
|
+
from postzen.models.public_platform_output import PublicPlatformOutput as PublicPlatformOutput
|
|
133
|
+
from postzen.models.threads_settings import ThreadsSettings as ThreadsSettings
|
|
134
|
+
from postzen.models.tik_tok_settings import TikTokSettings as TikTokSettings
|
|
135
|
+
from postzen.models.x_settings import XSettings as XSettings
|
|
136
|
+
from postzen.models.you_tube_settings import YouTubeSettings as YouTubeSettings
|
|
137
|
+
from postzen.models.you_tube_settings_tags import YouTubeSettingsTags as YouTubeSettingsTags
|
|
138
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from postzen.api.accounts_api import AccountsApi
|
|
5
|
+
from postzen.api.connect_api import ConnectApi
|
|
6
|
+
from postzen.api.media_api import MediaApi
|
|
7
|
+
from postzen.api.posts_api import PostsApi
|
|
8
|
+
from postzen.api.profiles_api import ProfilesApi
|
|
9
|
+
|