Socket
Socket
Sign inDemoInstall

@cjh1/sfapi

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cjh1/sfapi

A TypeScript client for the SF API. Generated from the OpenAPI specification. The generated code is automatically refactored using [ts-morph](https://ts-morph.com/) to provide more friendly naming.


Version published
Weekly downloads
60
decreased by-15.49%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 26 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc