解析 CSV - Excel API
PDF4me 解析 CSV 解析を可能にする CSV コンテンツを Excel エンコードと区切り文字のオプションを備えたワークブック。 API サービスが受け入れる CSV データ (文字列または Base64)そして Excel 文書。 API 受け取る CSV コンテンツを通じて REST API 通話を利用して Base64 該当する場合は、安全な送信のためのエンコード。このソリューションは、データインポート、ETLワークフロー、および CSV-に-Excel 変換。
関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →
認証 API リクエスト
あなたの API 認証リクエストにキーを入力してください PDF4me REST API。
主な機能
- CSV に Excel: 変換する CSV データ Excel ワークブック形式
- エンコードと区切り文字: さまざまなエンコーディングとフィールド区切り文字のサポート
REST API 終点
- 方法: POST
- 終点:
office/ApiV2Excel/ExcelParseCsv
REST API パラメータ
重要: アスタリスク (*) が付いているパラメータは必須です。すべてのリクエストで使用されます。 書類、 ドキュメントコンテンツ、 そして csvParseToExcelActionCSVの内容、出力ファイル名、区切り文字、エンコードなどは、アクションオブジェクトのプロパティです。
必須パラメータ(ルートレベル)
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| document | Required | Source file. `Name` must end in `.xlsx`, `.xls` or `.xlsm` (a `.csv` for `ExcelParseCsv`). | { "Name": "output.xlsx" } |
| document.Name | Required | File name including its extension. Type: string. | { "Name": "output.xlsx" } |
| docContent | Required | The source file, base64-encoded. Type: string. | Base64-encoded CSV string |
| isAsync | Optional | Process the request in the background. The call returns `202 Accepted`; poll the `Location` URL (`GetActionStatus`) for the result. Type: boolean. | |
| csvParseToExcelAction | Required | Object carrying this operation's settings. Its fields are the csvParseToExcelAction rows below. | See Payload example below |
| csvParseToExcelAction.delimiter | Optional | Column separator. Type: string. | |
| csvParseToExcelAction.columnHeaders | Optional | Comma-separated column names, e.g. `"Name,Price"`. Type: string. | |
| csvParseToExcelAction.skipFirstLine | Optional | Use the first line of the CSV as the column names. Type: boolean. | |
出力
の API 生成されたものを返します Excel ドキュメントとして Base64-エンコードされた文字列 JSON フォーマット (ドキュメント、ファイル名、成功、エラーメッセージ)。
リクエスト例
ヘッダ
Content-Type: application/json
Authorization: Basic YOUR_BASE64_ENCODED_API_KEY
ペイロード(基本)
{
"document": { "Name": "output.xlsx" },
"docContent": "TmFtZSxBZ2UKSm9obiwzMApKYW5lLDI4",
"csvParseToExcelAction": {
"outputFileName": "output.xlsx",
"delimiter": ",",
"encoding": "UTF-8"
}
}