+
Skip to content

cjh1/sfapi-ts

Repository files navigation

sfapi-ts

A TypeScript client for the SF API. Generated from the OpenAPI specification. The generated code is automatically refactored using ts-morph to provide more friendly naming.

Example usage

  client = new Client(
    OIDC_CLIENT_ID,
    new URL(REDIRECT_URL),
    new URL(AUTH_URL),
    new URL(TOKEN_URL),
    new URL(API_URL)
  );
  
  client.authorize()
  
  const status = await client.status.getStatus();
  console.log(status);

  const coriStatus = await client.status.getStatusBySystem("cori");
  console.log(coriStatus);

  const roles = await client.account.getRoles();
  console.log(roles);

API Documentation

The full API reference can be found here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载