이 Laserfiche API SDK는 Swagger-Codegen V3에 의해 자동 생성됩니다.
이 프로젝트의 PYPI 페이지를 여기에서 찾을 수 있습니다.
Laserfiche API는 OpenAPI 3.0.0과 함께 작동하도록 제작되었습니다. 이로 인해 Swagger-Codegen v3을 사용해야합니다.
api_gen.sh 스크립트 API_GEN 폴더 아래의 스크립트는 swagger-codegen-cli-v3 실행하는 Docker 컨테이너를 회전시키고 laserfiche_api SDK를 동일한 이름의 폴더로 내 보냅니다.
결과 SDK 파일이 자체 PYPI Repo로 푸시되면 다음과 같이 설치할 수 있습니다.
pip install laserfiche-apiSetuptools를 통해 수동으로 설치할 수도 있습니다.
python setup.py install --user다음 문서는 Swagger-Codegen에 의해 자동 생성됩니다.
Laserfiche API Swagger Playground에 오신 것을 환영합니다. Live Laserfiche Cloud 계정에 대한 API 전화를 사용해 볼 수 있습니다. 자세한 내용은 개발자 센터를 방문하십시오. <a href = "https : //developer.laserfiche.com "> https://developer.laserfiche.com
변경 목록은 changelog를 방문하십시오.
빌드# : 41A7347C0662989661D7AB8105A70D36CB42518E_.20240124.4
이 파이썬 패키지는 Swagger Codegen 프로젝트에 의해 자동으로 생성됩니다.
파이썬 2.7 및 3.4+
Python 패키지가 Github에서 호스팅되면 Github에서 직접 설치할 수 있습니다.
pip install git+https://github.com/Layer8Err/laserfiche_api.git (루트 권한으로 pip 실행해야 할 수도 있습니다. sudo pip install git+https://github.com/Layer8Err/laserfiche_api.git )
그런 다음 패키지를 가져옵니다.
import laserfiche_api setuptools를 통해 설치하십시오.
python setup.py install --user (또는 sudo python setup.py install )
그런 다음 패키지를 가져옵니다.
import laserfiche_api 설치 절차를 따르고 다음을 실행하십시오.
from __future__ import print_function
import time
import laserfiche_api
from laserfiche_api . rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2 Authorization Code Flow
configuration = laserfiche_api . Configuration ()
configuration . access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = laserfiche_api . AttributesApi ( laserfiche_api . ApiClient ( configuration ))
repository_id = 'repository_id_example' # str | The requested repository ID.
attribute_key = 'attribute_key_example' # str | The requested attribute key.
everyone = false # bool | Indicates if attributes associated with the "Everyone" group or the currently authenticated user is returned. The default value is false. (optional) (default to false)
try :
# Returns an attribute object associated with the authenticated user.
api_response = api_instance . get_attribute ( repository_id , attribute_key , everyone = everyone )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling AttributesApi->get_attribute: %s n " % e )
# Configure OAuth2 access token for authorization: OAuth2 Authorization Code Flow
configuration = laserfiche_api . Configuration ()
configuration . access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = laserfiche_api . AttributesApi ( laserfiche_api . ApiClient ( configuration ))
repository_id = 'repository_id_example' # str | The requested repository ID.
everyone = false # bool | Indicates if attributes associated with the "Everyone" group or the currently authenticated user is returned. The default value is false. (optional) (default to false)
prefer = 'prefer_example' # str | An optional OData header. Can be used to set the maximum page size using odata.maxpagesize. (optional)
select = 'select_example' # str | Limits the properties returned in the result. (optional)
orderby = 'orderby_example' # str | Specifies the order in which items are returned. The maximum number of expressions is 5. (optional)
top = 56 # int | Limits the number of items returned from a collection. (optional)
skip = 56 # int | Excludes the specified number of items of the queried collection from the result. (optional)
count = true # bool | Indicates whether the total count of items within a collection are returned in the result. (optional)
try :
# Returns the attribute key value pairs associated with the authenticated user.
api_response = api_instance . list_attributes ( repository_id , everyone = everyone , prefer = prefer , select = select , orderby = orderby , top = top , skip = skip , count = count )
pprint ( api_response )
except ApiException as e :
print ( "Exception when calling AttributesApi->list_attributes: %s n " % e )모든 uris는 https://api.laserfiche.com/repository 와 관련이 있습니다
| 수업 | 방법 | HTTP 요청 | 설명 |
|---|---|---|---|
| 속성 | get_attribute | get /v2/repositories/{reposorityId}/attributes/{AttributeKey} | 인증 된 사용자와 관련된 속성 객체를 반환합니다. |
| 속성 | list_attributes | get /v2/repositories/{reposorityId}/속성 | 인증 된 사용자와 관련된 속성 키 값 쌍을 반환합니다. |
| AuditrissisApi | list_audit_ressals | get /v2/repositories/{reposorityId}/auditrassion | 인증 된 사용자와 관련된 감사 이유를 반환합니다. |
| Entriesapi | COPY_ENTRY | post /v2/repositories/{reposorityId}/entries/{entermer/copy | 폴더에 새 어린이 항목을 복사합니다. |
| Entriesapi | Create_entry | post /v2/repositories/{reposorityId}/entries/{entermder}/폴더/children | 폴더에 새 자녀 항목을 만듭니다. |
| Entriesapi | create_multipart_upload_urls | post /v2/repositories/{reposorityId}/entries/createmultipartuploadurls | 요청 URL을 업로드하여 대형 파일을 청크로 업로드합니다. |
| Entriesapi | delete_electronic_document | /v2/repositories/{reposorityId}/entries/{entermentid}/document/edoc을 삭제합니다 | 항목과 관련된 EDOC을 삭제합니다. |
| Entriesapi | delete_pages | /v2/repositories/{reposorityId}/entries/{entermentid}/document/pages를 삭제합니다 | 항목과 관련된 페이지를 삭제합니다. |
| Entriesapi | Export_entry | post /v2/repositories/{reposorityId}/entries/{entherid}/Export | 항목을 내 보냅니다. |
| Entriesapi | get_entry | get /v2/repositories/{reposorityId}/entries/{entermentid} | 단일 입력 객체를 반환합니다. |
| Entriesapi | get_entry_by_path | get /v2/repositories/{reposorityId}/entries/bypath | 입력 경로를 사용하여 단일 엔트리 객체를 반환합니다. |
| Entriesapi | import_entry | post /v2/repositories/{reposorityId}/entries/{entermder/intract/import | 파일을 폴더로 가져옵니다 (최대 길이 : 100MB). |
| Entriesapi | list_dynamic_field_values | post /v2/repositories/{reposorityId}/entries/{enterdId}/fields/getDynamicfieldLogicValue | 항목에 할당 된 동적 필드 로직 값을 반환합니다. |
| Entriesapi | List_entries | get /v2/repositories/{reposorityId}/entries/{enterdId}/폴더/children | 폴더의 어린이 항목을 반환합니다. |
| Entriesapi | list_fields | get /v2/repositories/{reposorityId}/entries/{enterdId}/필드 | 항목에 할당 된 필드를 반환합니다. |
| Entriesapi | list_links | get /v2/repositories/{reposorityId}/entries/{enliceid}/링크 | 항목에 할당 된 링크를 반환합니다. |
| Entriesapi | list_tags | get /v2/repositories/{reposorityId}/entries/{elentid}/tags | 항목에 할당 된 태그를 반환합니다. |
| Entriesapi | remove_template | /v2/repositories/{reposorityId}/entries/{entermentid}/템플릿을 삭제합니다 | 항목에서 현재 할당 된 템플릿을 제거합니다. |
| Entriesapi | set_fields | put /v2/repositories/{repositoryId}/entries/{entermentid}/필드 | 항목에 할당 된 필드 값을 업데이트합니다. |
| Entriesapi | set_links | put /v2/repositories/{reposorityId}/entries/{entherid}/링크 | 항목에 링크를 할당합니다. |
| Entriesapi | set_tags | put /v2/repositories/{reposorityId}/entries/{entermentid}/tags | 항목에 태그를 할당합니다. |
| Entriesapi | set_template | put /v2/repositories/{reposorityId}/entries/{entermplate}/템플릿 | 항목에 템플릿을 할당합니다. |
| Entriesapi | start_copy_entry | post /v2/repositories/{reposorityId}/entries/{entermder/폴더/copyAsync | 비동기 사본 작업을 시작하여 폴더에 항목을 복사합니다. |
| Entriesapi | start_delete_entry | 삭제 /v2/repositories/{reposorityId}/entries/{entherid} | 비동기식 삭제 작업을 시작하여 항목을 삭제합니다. |
| Entriesapi | start_export_entry | post /v2/repositories/{reposorityId}/entries/{entermentid}/ExportAsync | 항목을 내보내기 위해 비동기 내보내기 작업을 시작합니다. |
| Entriesapi | start_import_uploaded_parts | post /v2/repositories/{reposorityId}/entries/{enterdId}/폴더/importUploadedParts | 비동기식 가져 오기 작업을 시작하여 문서를 폴더로 가져옵니다. |
| Entriesapi | update_entry | Patch /v2/Repositories/{reposorityId}/entries/{entherid} | 항목을 업데이트하십시오. (이동 및/또는 이름 바꾸기) |
| FieldDefinitionSapi | get_field_definition | get /v2/repositories/{reposorityId}/fieldDefinitions/{fieldid} | 단일 필드 정의 객체를 반환합니다. |
| FieldDefinitionSapi | list_field_definitions | get /v2/repositories/{reposorityId}/fieldDefinitions | 저장소에서 사용 가능한 필드 정의의 PAGED 목록을 반환합니다. |
| LinkDefinitionSapi | get_link_definition | get /v2/repositories/{reposorityId}/linkDefinitions/{linkDefinitionId} | 단일 링크 정의 객체를 반환합니다. |
| LinkDefinitionSapi | list_link_definitions | get /v2/repositories/{reposorityId}/linkdefinitions | 저장소와 관련된 링크 정의를 반환합니다. |
| repositoriesapi | list_repositories | GET /V2 /리포지토리 | 사용자가 액세스 할 수있는 저장소 목록을 반환합니다. |
| searchesapi | list_search_context_hits | get /v2/repositories/{repositoryId}/search/{taskId}/results/{rownumber}/contexthits | 검색 결과 항목과 관련된 컨텍스트 히트를 반환합니다. |
| searchesapi | list_search_results | get /v2/repositories/{reposorityId}/search/{taskId}/results | 검색 작업과 관련된 결과 목록을 반환합니다. |
| searchesapi | start_search_entry | post /v2/repositories/{reposorityId}/searchs/searchAsync | 비동기 검색 작업을 시작합니다. |
| simplesearchesapi | search_entry | post /v2/repositories/{reposorityId}/simplesearches | a & quot; simple & quot; 검색 작업. |
| tagdefinitionsapi | get_tag_definition | get /v2/repositories/{reposorityId}/tagdefinitions/{tagid} | 단일 태그 정의 객체를 반환합니다. |
| tagdefinitionsapi | list_tag_definitions | get /v2/repositories/{reposorityId}/tagdefinitions | 저장소와 관련된 태그 정의를 반환합니다. |
| TaskSapi | 취소 _tasks | /v2/repositories/{reposorityId}/작업을 삭제합니다 | 하나 이상의 작업 세트에 대한 취소를 시작합니다. |
| TaskSapi | list_tasks | get /v2/repositories/{reposorityId}/tasks | 하나 이상의 작업 세트의 상태를 반환합니다. |
| TempleatedEfinitionSapi | get_template_definition | get /v2/repositories/{repositoryId}/templeatedEfinitions/{templateId} | 단일 템플릿 정의 객체를 반환합니다. |
| TempleatedEfinitionSapi | list_template_definitions | get /v2/repositories/{reposorityId}/templeatedEfinitions | 저장소와 관련된 템플릿 정의를 반환합니다. |
| TempleatedEfinitionSapi | list_template_field_definitions_by_template_id | get /v2/repositories/{reposorityId}/templatedEfinitions/{templateId}/fieldDefinitions | 지정된 필드 정의를 템플릿 정의 (템플릿 정의 ID)에 반환합니다. |
| TempleatedEfinitionSapi | list_template_field_definitions_by_template_name | get /v2/repositories/{reposorityId}/templeatedEfinitions/fieldDefinitions | 지정된 필드 정의를 템플릿 정의 (템플릿 정의 이름 별)에 반환합니다. |