@globus/sdk provides modules for interacting with the various APIs that make up the Globus platform.
@globus/sdk
Promise
fetch
ServiceMethodOptions
Using the SDK to search for endpoints via Transfer API.
import { transfer } from "@globus/sdk";const result = await ( await globus.transfer.endpointSearch( { query: { filter_fulltext: "Globus Tutorial" } headers: { Authorization: "Bearer MY_ACCESS_TOKEN", }, }, { fetch: { // Provide parameters to the underlying `fetch` call. // https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters options: { priority: "high" }, }, } )).json(); Copy
import { transfer } from "@globus/sdk";const result = await ( await globus.transfer.endpointSearch( { query: { filter_fulltext: "Globus Tutorial" } headers: { Authorization: "Bearer MY_ACCESS_TOKEN", }, }, { fetch: { // Provide parameters to the underlying `fetch` call. // https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters options: { priority: "high" }, }, } )).json();
Using the SDK to fetch a single flow from the Flows API.
import { flows } from "@globus/sdk";const result = await (await flows.flows.get("452bbea3-5e3b-45a5-af08-50179839a4e8")).json(); Copy
import { flows } from "@globus/sdk";const result = await (await flows.flows.get("452bbea3-5e3b-45a5-af08-50179839a4e8")).json();
Generated using TypeDoc
Description
@globus/sdk
provides modules for interacting with the various APIs that make up the Globus platform.Key Concepts
Promise
that resolves to a Fetch API Response object.fetch
.ServiceMethodOptions
object to pass query parameters, a payload, and headers.fetch
call.Example
Using the SDK to search for endpoints via Transfer API.
Example
Using the SDK to fetch a single flow from the Flows API.