IRN Meetings client library for Python
Project description
IRN Meetings client library for Python
Allows users to extract, create, update and configure IRN data.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1
- Package version: 0.20.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements
- Python >= 3.6
Installation
Poetry
poetry add fds.sdk.utils fds.sdk.IRNMeetings
pip
pip install fds.sdk.utils fds.sdk.IRNMeetings
Usage
- Generate authentication credentials.
- Setup Python environment.
-
Install and activate python 3.6+. If you're using pyenv:
pyenv install 3.9.7 pyenv shell 3.9.7
-
(optional) Install poetry.
-
- Install dependencies.
- Run the following:
from fds.sdk.utils.authentication import ConfidentialClient
import fds.sdk.IRNMeetings
from fds.sdk.IRNMeetings.api import attachments_api
from fds.sdk.IRNMeetings.model.attachment_summary_dto import AttachmentSummaryDto
from fds.sdk.IRNMeetings.model.new_item_dto import NewItemDto
from fds.sdk.IRNMeetings.model.problem_details import ProblemDetails
from pprint import pprint
# See configuration.py for a list of all supported configuration parameters.
# Examples for each supported authentication method are below,
# choose one that satisfies your use case.
# (Preferred) OAuth 2.0: FactSetOAuth2
# See https://github.com/FactSet/enterprise-sdk#oauth-20
# for information on how to create the app-config.json file
# See https://github.com/FactSet/enterprise-sdk-utils-python#authentication
# for more information on using the ConfidentialClient class
configuration = fds.sdk.IRNMeetings.Configuration(
fds_oauth_client=ConfidentialClient('/path/to/app-config.json')
)
# Basic authentication: FactSetApiKey
# See https://github.com/FactSet/enterprise-sdk#api-key
# for information how to create an API key
# configuration = fds.sdk.IRNMeetings.Configuration(
# username='USERNAME-SERIAL',
# password='API-KEY'
# )
# Enter a context with an instance of the API client
with fds.sdk.IRNMeetings.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = attachments_api.AttachmentsApi(api_client)
meeting_id = "meetingId_example" # str | Meeting Id
file = open('/path/to/file', 'rb') # file_type |
# Get response
try:
# Create an attachment for a existing meeting
api_response = api_instance.create_attachment(meeting_id, file)
pprint(api_response)
except fds.sdk.IRNMeetings.ApiException as e:
print("Exception when calling AttachmentsApi->create_attachment: %s\n" % e)
# Get response, http status code and response headers
# try:
# # Create an attachment for a existing meeting
# api_response, http_status_code, response_headers = api_instance.create_attachment_with_http_info(meeting_id, file)
# pprint(api_response)
# pprint(http_status_code)
# pprint(response_headers)
# except fds.sdk.IRNMeetings.ApiException as e:
# print("Exception when calling AttachmentsApi->create_attachment: %s\n" % e)
# Get response asynchronous
# try:
# # Create an attachment for a existing meeting
# async_result = api_instance.create_attachment_async(meeting_id, file)
# api_response = async_result.get()
# pprint(api_response)
# except fds.sdk.IRNMeetings.ApiException as e:
# print("Exception when calling AttachmentsApi->create_attachment: %s\n" % e)
# Get response, http status code and response headers asynchronous
# try:
# # Create an attachment for a existing meeting
# async_result = api_instance.create_attachment_with_http_info_async(meeting_id, file)
# api_response, http_status_code, response_headers = async_result.get()
# pprint(api_response)
# pprint(http_status_code)
# pprint(response_headers)
# except fds.sdk.IRNMeetings.ApiException as e:
# print("Exception when calling AttachmentsApi->create_attachment: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://api-sandbox.factset.com/research/irn
Class | Method | HTTP request | Description |
---|---|---|---|
AttachmentsApi | create_attachment | POST /v1/meetings/{meetingId}/attachments | Create an attachment for a existing meeting |
AttachmentsApi | download_attachment | GET /v1/meetings/{meetingId}/attachments/{attachmentId}/download | Download an attachment from a Meeting |
AttachmentsApi | get_attachments | GET /v1/meetings/{meetingId}/attachments | Get all the attachments belonging to a meeting |
AttachmentsApi | soft_delete_meeting_attachment | DELETE /v1/meetings/{meetingId}/attachments/{attachmentId} | Delete attachment from meeting |
CommentsApi | create_comment | POST /v1/meetings/{meetingId}/comments | Create a comment to a Meeting |
CommentsApi | create_comment_attachment | POST /v1/meetings/{meetingId}/comments/{commentId}/attachments | Create a comment attachment to a Meeting |
CommentsApi | delete_comment | DELETE /v1/meetings/{meetingId}/comments/{commentId} | Delete a Comment from a Meeting |
CommentsApi | download_comment_attachment_for_comment | GET /v1/meetings/{meetingId}/comments/{commentId}/attachments/{attachmentId}/download | Download single attachment detail of a comment belonging to a meeting |
CommentsApi | get_comment | GET /v1/meetings/{meetingId}/comments/{commentId} | Get details of a comment belonging to a meeting |
CommentsApi | get_comment_attachments | GET /v1/meetings/{meetingId}/comments/{commentId}/attachments | Get attachments summary of a comment belonging to a meeting |
CommentsApi | get_comments | GET /v1/meetings/{meetingId}/comments | Get all comments for a meeting |
CommentsApi | patch_comment | PATCH /v1/meetings/{meetingId}/comments/{commentId} | Edit a comment for a meeting |
EventsApi | get_events | GET /v1/meetings/{meetingId}/events | Get all the record events that belong to a meeting |
EventsApi | get_record_event | GET /v1/meetings/{meetingId}/events/{recordEventId} | Get details of a record event of a meeting |
MeetingsApi | create_meeting | POST /v1/meetings | Create a meeting |
MeetingsApi | delete_meeting | DELETE /v1/meetings/{meetingId} | Delete a Meeting |
MeetingsApi | get_meeting | GET /v1/meetings/{meetingId} | Get details of a meeting |
MeetingsApi | get_meetings | GET /v1/meetings | Get all the meetings in the specified date range filtered on the given identifiers |
MeetingsApi | update_meeting | PUT /v1/meetings/{meetingId} | Update meeting |
Documentation For Models
- AttachmentSummaryDto
- AttendeeDto
- CommentDto
- CommentSummaryDto
- CreateBodyDto
- CreateCommentDto
- CreateCustomFieldValueDto
- CreateMeetingDto
- CustomFieldValueDto
- LocationDto
- MeetingDto
- MeetingEventDto
- MeetingSummaryDto
- NewItemDto
- Operation
- OperationType
- ProblemDetails
- RecordChangeDto
- RecordEventSummaryDto
- ReferenceAttendeeDto
- RelatedRecordsDto
- SubcommentSummaryDto
- UpdateMeetingDto
- UserSerialDto
Documentation For Authorization
FactSetApiKey
- Type: HTTP basic authentication
FactSetOAuth2
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: N/A
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in fds.sdk.IRNMeetings.apis and fds.sdk.IRNMeetings.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from fds.sdk.IRNMeetings.api.default_api import DefaultApi
from fds.sdk.IRNMeetings.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import fds.sdk.IRNMeetings
from fds.sdk.IRNMeetings.apis import *
from fds.sdk.IRNMeetings.models import *
Contributing
Please refer to the contributing guide.
Copyright
Copyright 2022 FactSet Research Systems Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for fds.sdk.IRNMeetings-0.20.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf41f586e7b3e995c65071cefa7563163f9f26ff4e6dbb2fe205115ab9e5a485 |
|
MD5 | 187a407e54521bbd1dcb0542181254b3 |
|
BLAKE2b-256 | 65f9768d7531d92912f99e417c96fa33fc0b493fbf22b9e7b561d4d4091d3a0d |