CredentialsClient
import type { CredentialsClient } from "https://googleapis.deno.dev/v1/parallelstore:v1.ts";
Defines the root interface for all clients that generate credentials for calling Google APIs. All clients should implement this interface.
interface CredentialsClient {
projectId?: string | null;
getRequestHeaders(url?: string): Promise<Record<string, string>>;
}§Properties
§Methods
§
getRequestHeaders(url?: string): Promise<Record<string, string>>
[src]The main authentication interface. It takes an optional url which when present is the endpoint being accessed, and returns a Promise which resolves with authorization header fields.
The result has the form: { Authorization: 'Bearer <access_token_value>' }
@param url
The URI being authorized.