Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DeveloperKnowledge

import { DeveloperKnowledge } from "https://googleapis.deno.dev/v1/developerknowledge:v1.ts";

The Developer Knowledge API provides access to Google's developer knowledge.

class DeveloperKnowledge {
constructor(client?: CredentialsClient, baseUrl?: string);
async documentsBatchGet(opts?: DocumentsBatchGetOptions): Promise<BatchGetDocumentsResponse>;
async documentsGet(name: string, opts?: DocumentsGetOptions): Promise<Document>;
async documentsSearchDocumentChunks(opts?: DocumentsSearchDocumentChunksOptions): Promise<SearchDocumentChunksResponse>;
}

§Constructors

§
new DeveloperKnowledge(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
documentsBatchGet(opts?: DocumentsBatchGetOptions): Promise<BatchGetDocumentsResponse>
[src]

Retrieves multiple documents, each with its full Markdown content.

§
documentsGet(name: string, opts?: DocumentsGetOptions): Promise<Document>
[src]

Retrieves a single document with its full Markdown content.

@param name

Required. Specifies the name of the document to retrieve. Format: documents/{uri_without_scheme} Example: documents/docs.cloud.google.com/storage/docs/creating-buckets

§
documentsSearchDocumentChunks(opts?: DocumentsSearchDocumentChunksOptions): Promise<SearchDocumentChunksResponse>
[src]

Searches for developer knowledge across Google's developer documentation. Returns DocumentChunks based on the user's query. There may be many chunks from the same Document. To retrieve full documents, use DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments with the DocumentChunk.parent returned in the SearchDocumentChunksResponse.results.