### CoreIX Image URL Example Source: https://docs.bitiful.com/coreix/basic Shows the original image URL before applying CoreIX processing parameters. ```url https://demo.bitiful.com/girl.jpeg ``` -------------------------------- ### Example Response for Certificate Content Source: https://docs.bitiful.com/developer/api/certs This JSON structure represents the response when fetching certificate content. It includes the certificate (`crt`), private key (`key`), and a boolean indicating if it's an auto-generated certificate (`auto`). Be cautious about API-Token leakage in automated workflows. ```json // curl -H "Authorization: {API-Token}" "https://api.bitiful.com/cert/data/usercontents.somecdn.com-rsa-auto/content" { "crt": "-----BEGIN CERTIFICATE-----\n<证书内容>\n-----END CERTIFICATE-----", "key": "-----BEGIN PRIVATE KEY-----\n<私钥内容>\n-----END PRIVATE KEY-----", "auto": true //是否自动证书 } ``` -------------------------------- ### Basic Image Resizing with CoreIX Source: https://docs.bitiful.com/coreix/basic Demonstrates how to resize an image using CoreIX by appending width, height, and position parameters to the image URL. The `pos` parameter specifies the crop position when aspect ratios differ. ```url https://demo.bitiful.com/girl.jpeg?w=800&h=500&pos=top ``` -------------------------------- ### 证书内容获取 Source: https://docs.bitiful.com/developer/api/certs 获取指定证书的crt和key内容。建议在自有架构中定时运行此 API 并结合部署相关脚本,以实现全局自动应用最新的域名证书。 ```APIDOC ## 证书内容获取 ### Description 获取指定证书的crt和key内容。建议在自有架构中定时运行此 API 并结合部署相关脚本,以实现全局自动应用最新的域名证书。 ### Method GET ### Endpoint https://api.bitiful.com/cert/data//content ### Parameters #### Path Parameters - **cert_name** (string) - Required - The name of the certificate to retrieve content for. ### Request Example ```shell curl -H "Authorization: {API Token from: https://console.bitiful.com/apiToken}" "https://api.bitiful.com/cert/data//content" ``` ### Response #### Success Response (200) - **crt** (string) - The certificate content in PEM format. - **key** (string) - The private key content in PEM format. - **auto** (boolean) - Indicates if the certificate is automatically managed. #### Response Example ```json { "crt": "-----BEGIN CERTIFICATE-----\n<证书内容>\n-----END CERTIFICATE-----", "key": "-----BEGIN PRIVATE KEY-----\n<私钥内容>\n-----END PRIVATE KEY-----", "auto": true } ``` ``` -------------------------------- ### Fetch Certificate Content using cURL Source: https://docs.bitiful.com/developer/api/certs Use this cURL command to retrieve the content of a specific certificate. Ensure you replace `{API Token from: https://console.bitiful.com/apiToken}` with your actual API token and `` with the certificate's name. This is useful for automating certificate updates in your infrastructure. ```shell curl -H "Authorization: {API Token from: https://console.bitiful.com/apiToken}" "https://api.bitiful.com/cert/data//content" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.