계량 라이선스
Contents
[
Hide
]Aspose.CAD는 개발자가 계량 키를 적용할 수 있도록 합니다. 이것은 새로운 라이선스 메커니즘입니다. 새로운 라이선스 메커니즘은 기존 라이선스 방법과 함께 사용됩니다. API 기능 사용에 기반하여 청구되기를 원하는 고객은 계량 라이선스를 사용할 수 있습니다. 추가 정보는 계량 라이선스 FAQ 섹션을 참조하십시오.
계량 라이선스
계량 클래스를 사용하기 위한 간단한 단계는 다음과 같습니다.
- Metered 클래스의 인스턴스를 만듭니다.
- SetMeteredKey 메서드에 공개 키 및 비공개 키를 전달합니다.
- 처리 작업을 수행합니다.
- Metered 클래스의 GetConsumptionQuantity 메서드를 호출합니다.
- 지금까지 소비한 API 요청의 양/수량을 반환합니다.
다음은 계량 공개 키와 비공개 키를 설정하는 방법을 보여주는 샘플 코드입니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.cad as cad | |
// Access the setMeteredKey property and pass public and private keys as parameters | |
Aspose.CAD.Metered.SetMeteredKey("PublicKey", "PrivateKey"); | |
// Get metered data amount before calling API | |
amountbefore = cad.Metered.get_consumption_quantity() | |
// Display information | |
print("Amount Consumed Before: " + amountbefore.ToString()); | |
// Do processing | |
image = cad.Image.load("file.dwg"); | |
// Get metered data amount After calling API | |
amountafter = cad.Metered.get_consumption_quantity() | |
// Display information | |
print("Amount Consumed After: " + amountafter); |