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

toQueryParams

import { toQueryParams } from "https://raw.githubusercontent.com/snsinfu/deno-oauth-1.0a/main/mod.ts";

Composes URL query parameters or a form-encoded body.

const params = client.sign("GET", "https://api.example.com/profile", {
  token: { key: "spMmUxWb", secret: "SbovVfkxHTwcmupb" },
});
const query = toQueryParams(params);
console.log(query.toString());
function toQueryParams(params: SignedOAuthParams): URLSearchParams;
§
toQueryParams(params: SignedOAuthParams): URLSearchParams
[src]

§Parameters

§
  • OAuth protocol parameters with signature.

§Return Type

§
URLSearchParams
[src]

The parameters stored in a URLSearchParams object. The parameters are sorted as described in the RFC.