Lines 200-277javascript
200 markdown: "## parse\n\n`client.camsKfintech.parse(password?: string, pdf_file?: string, pdf_url?: string): { demat_accounts?: object[]; insurance?: object; investor?: object; meta?: object; mutual_funds?: object[]; nps?: object[]; summary?: object; }`\n\n**post** `/v4/cams_kfintech/parse`\n\nThis endpoint specifically parses CAMS/KFintech CAS (Consolidated Account Statement) PDF files and returns data in a unified format.\nUse this endpoint when you know the PDF is from CAMS or KFintech.\n\n\n### Parameters\n\n- `password?: string`\n Password for the PDF file (if required)\n\n- `pdf_f ...
203 method: 'client.camsKfintech.parse',
204 example: "import CasParser from 'cas-parser-node';\n\nconst client = new CasParser({\n apiKey: process.env['CAS_PARSER_API_KEY'], // This is the default and can be omitted\n});\n\nconst unifiedResponse = await client.camsKfintech.parse();\n\nconsole.log(unifiedResponse.demat_accounts);",
207 method: 'cams_kfintech.parse',
208 example: 'import os\nfrom cas_parser import CasParser\n\nclient = CasParser(\n api_key=os.environ.get("CAS_PARSER_API_KEY"), # This is the default and can be omitted\n)\nunified_response = client.cams_kfintech.parse()\nprint(unified_response.demat_accounts)',
211 method: 'camsKfintech().parse',
212 example: 'package com.cas_parser.api.example;\n\nimport com.cas_parser.api.client.CasParserClient;\nimport com.cas_parser.api.client.okhttp.CasParserOkHttpClient;\nimport com.cas_parser.api.models.camskfintech.CamsKfintechParseParams;\nimport com.cas_parser.api.models.camskfintech.UnifiedResponse;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n CasParserClient client = CasParserOkHttpClient.fromEnv();\n\n UnifiedResponse unifiedResponse = client.camsKfintech().parse();\n }\n}',
215 method: 'client.CamsKfintech.Parse',
216 example: 'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/CASParser/cas-parser-go"\n\t"github.com/CASParser/cas-parser-go/option"\n)\n\nfunc main() {\n\tclient := casparser.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\tunifiedResponse, err := client.CamsKfintech.Parse(context.TODO(), casparser.CamsKfintechParseParams{})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}
219 method: 'camsKfintech->parse',
220 example: "<?php\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\n$client = new Client(apiKey: 'My API Key');\n\n$unifiedResponse = $client->camsKfintech->parse(\n password: 'password', pdfFile: 'pdf_file', pdfURL: 'https://example.com'\n);\n\nvar_dump($unifiedResponse);",
223 example: "curl https://api.casparser.in/v4/cams_kfintech/parse \\\n -H 'Content-Type: application/json' \\\n -H \"x-api-key: $CAS_PARSER_API_KEY\" \\\n -d '{}'",
229 endpoint: '/v4/cdsl/parse',
231 summary: 'Parse CDSL CAS PDF',
232 description: 'This endpoint specifically parses CDSL CAS (Consolidated Account Statement) PDF files and returns data in a unified format.\nUse this endpoint when you know the PDF is from CDSL.\n',
233 stainlessPath: '(resource) cdsl > (method) parse_pdf',
234 qualified: 'client.cdsl.parsePdf',
235 params: ['password?: string;', 'pdf_file?: string;', 'pdf_url?: string;'],
236 response: "{ demat_accounts?: { additional_info?: object; bo_id?: string; client_id?: string; demat_type?: 'NSDL' | 'CDSL'; dp_id?: string; dp_name?: string; holdings?: object; linked_holders?: linked_holder[]; value?: number; }[]; insurance?: { life_insurance_policies?: object[]; }; investor?: { address?: string; cas_id?: string; email?: string; mobile?: string; name?: string; pan?: string; pincode?: string; }; meta?: { cas_type?: 'NSDL' | 'CDSL' | 'CAMS_KFINTECH'; generated_at?: string; statement_period?: object; }; mutual_funds?: { additional_info?: object; amc?: string; folio_numbe ...
237 markdown: "## parse_pdf\n\n`client.cdsl.parsePdf(password?: string, pdf_file?: string, pdf_url?: string): { demat_accounts?: object[]; insurance?: object; investor?: object; meta?: object; mutual_funds?: object[]; nps?: object[]; summary?: object; }`\n\n**post** `/v4/cdsl/parse`\n\nThis endpoint specifically parses CDSL CAS (Consolidated Account Statement) PDF files and returns data in a unified format.\nUse this endpoint when you know the PDF is from CDSL.\n\n\n### Parameters\n\n- `password?: string`\n Password for the PDF file (if required)\n\n- `pdf_file?: string`\n Base64 encoded ...
240 method: 'client.cdsl.parsePdf',
241 example: "import CasParser from 'cas-parser-node';\n\nconst client = new CasParser({\n apiKey: process.env['CAS_PARSER_API_KEY'], // This is the default and can be omitted\n});\n\nconst unifiedResponse = await client.cdsl.parsePdf();\n\nconsole.log(unifiedResponse.demat_accounts);",
244 method: 'cdsl.parse_pdf',
245 example: 'import os\nfrom cas_parser import CasParser\n\nclient = CasParser(\n api_key=os.environ.get("CAS_PARSER_API_KEY"), # This is the default and can be omitted\n)\nunified_response = client.cdsl.parse_pdf()\nprint(unified_response.demat_accounts)',
248 method: 'cdsl().parsePdf',
249 example: 'package com.cas_parser.api.example;\n\nimport com.cas_parser.api.client.CasParserClient;\nimport com.cas_parser.api.client.okhttp.CasParserOkHttpClient;\nimport com.cas_parser.api.models.camskfintech.UnifiedResponse;\nimport com.cas_parser.api.models.cdsl.CdslParsePdfParams;\n\npublic final class Main {\n private Main() {}\n\n public static void main(String[] args) {\n CasParserClient client = CasParserOkHttpClient.fromEnv();\n\n UnifiedResponse unifiedResponse = client.cdsl().parsePdf();\n }\n}',
252 method: 'client.Cdsl.ParsePdf',
253 example: 'package main\n\nimport (\n\t"context"\n\t"fmt"\n\n\t"github.com/CASParser/cas-parser-go"\n\t"github.com/CASParser/cas-parser-go/option"\n)\n\nfunc main() {\n\tclient := casparser.NewClient(\n\t\toption.WithAPIKey("My API Key"),\n\t)\n\tunifiedResponse, err := client.Cdsl.ParsePdf(context.TODO(), casparser.CdslParsePdfParams{})\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}
256 method: 'cdsl->parsePdf',
257 example: "<?php\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\n$client = new Client(apiKey: 'My API Key');\n\n$unifiedResponse = $client->cdsl->parsePdf(\n password: 'password', pdfFile: 'pdf_file', pdfURL: 'https://example.com'\n);\n\nvar_dump($unifiedResponse);",
260 example: "curl https://api.casparser.in/v4/cdsl/parse \\\n -H 'Content-Type: application/json' \\\n -H \"x-api-key: $CAS_PARSER_API_KEY\" \\\n -d '{}'",
266 endpoint: '/v4/cdsl/fetch',
268 summary: 'CDSL CAS Fetch - Step 1 (Request OTP)',
269 description: "**Step 1 of 2**: Request OTP for CDSL CAS fetch.\n\nThis endpoint:\n1. Solves reCAPTCHA automatically (~15-20 seconds)\n2. Submits login credentials to CDSL portal\n3. Triggers OTP to user's registered mobile number\n\nAfter user receives OTP, call `/v4/cdsl/fetch/{session_id}/verify` to complete.\n",
270 stainlessPath: '(resource) cdsl.fetch > (method) request_otp',
271 qualified: 'client.cdsl.fetch.requestOtp',
272 params: ['bo_id: string;', 'dob: string;', 'pan: string;'],
273 response: '{ msg?: string; session_id?: string; status?: string; }',
274 markdown: "## request_otp\n\n`client.cdsl.fetch.requestOtp(bo_id: string, dob: string, pan: string): { msg?: string; session_id?: string; status?: string; }`\n\n**post** `/v4/cdsl/fetch`\n\n**Step 1 of 2**: Request OTP for CDSL CAS fetch.\n\nThis endpoint:\n1. Solves reCAPTCHA automatically (~15-20 seconds)\n2. Submits login credentials to CDSL portal\n3. Triggers OTP to user's registered mobile number\n\nAfter user receives OTP, call `/v4/cdsl/fetch/{session_id}/verify` to complete.\n\n\n### Parameters\n\n- `bo_id: string`\n CDSL BO ID (16 digits)\n\n- `dob: string`\n Date of birth ..
277 method: 'client.cdsl.fetch.requestOtp',
Long lines were clipped for display.