1- # FastComments API Client
1+ # fastcomments-python
2+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator )
23
3- The FastComments API client for Python. This package is automatically generated by the [ OpenAPI Generator] ( https://openapi-generator.tech ) project.
4+ This Python package is automatically generated by the [ OpenAPI Generator] ( https://openapi-generator.tech ) project:
45
5- - API version: 0.0.1
6+ - API version: 0.0.0
67- Package version: 0.0.1
78- Generator version: 7.11.0
89- Build package: org.openapitools.codegen.languages.PythonClientCodegen
910
10- ** Note:** This is a submodule of the ` fastcomments-python ` package. For general usage, please refer to the [ main package README] ( ../README.md ) .
11-
1211## Requirements.
1312
1413Python 3.8+
1514
1615## Installation & Usage
1716### pip install
1817
19- Install the main package:
18+ If the python package is hosted on a repository, you can install directly using :
2019
2120``` sh
22- pip install fastcomments-python
21+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
2322```
23+ (you may need to run ` pip ` with root permission: ` sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git ` )
2424
25- Then import the client module :
25+ Then import the package :
2626``` python
27- from client import ApiClient, Configuration, DefaultApi, PublicApi
27+ import client
2828```
2929
3030### Setuptools
3131
32- Or install from source:
32+ Install via [ Setuptools ] ( http://pypi.python.org/pypi/setuptools ) .
3333
3434``` sh
35- pip install -e .
35+ python setup.py install --user
3636```
37+ (or ` sudo python setup.py install ` to install the package for all users)
3738
38- Then import the client module :
39+ Then import the package :
3940``` python
40- from client import ApiClient, Configuration, DefaultApi, PublicApi
41+ import client
4142```
4243
4344### Tests
@@ -50,21 +51,25 @@ Please follow the [installation procedure](#installation--usage) and then run th
5051
5152``` python
5253
53- from client import ApiClient, Configuration, PublicApi
54- from client.exceptions import ApiException
54+ import client
55+ from client.rest import ApiException
5556from pprint import pprint
5657
57- # Configure the host (defaults to FastComments production API)
58- configuration = Configuration(
59- host = " https://fastcomments.com/api"
58+ # Defining the host is optional and defaults to https://fastcomments.com
59+ # See configuration.py for a list of all supported configuration parameters.
60+ configuration = client.Configuration(
61+ host = " https://fastcomments.com"
6062)
6163
64+
65+
6266# Enter a context with an instance of the API client
63- with ApiClient(configuration) as api_client:
67+ with client. ApiClient(configuration) as api_client:
6468 # Create an instance of the API class
65- api_instance = PublicApi(api_client)
66- tenant_id = ' YOUR_TENANT_ID' # str | Your FastComments tenant ID
67- url_id = ' my-page' # str | The URL identifier for the page
69+ api_instance = client.PublicApi(api_client)
70+ tenant_id = ' tenant_id_example' # str |
71+ comment_id = ' comment_id_example' # str |
72+ public_block_from_comment_params = client.PublicBlockFromCommentParams() # PublicBlockFromCommentParams |
6873 sso = ' sso_example' # str | (optional)
6974
7075 try :
0 commit comments