Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quintype-backend

Package Overview
Dependencies
Maintainers
7
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quintype-backend

client for accessing quintype API

  • 1.13.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

@quintype/backend

This library is used for making API calls to a Quintype API server

How to use this library

It is highly recommended that you use the object wrappers for each API call. For example, please use

Story.getStoryBySlug(client, "slug").then(story => story.domainFunction())

rather than

// Do not use this
client.getStoryBySlug("slug").then(story => doSomethingWithStoryJson(story))

Return Values

In cases where a 404 is possible (such as getting a story or a collection by slug), the following return types are possible (taking Story.getStoryBySlug as an example)

  • In case of a success, the promise resolves to an object of the Story class
  • In case of a 404, such as a not found slug, the promise resolves to null
  • In case of a 5xx or any other status code, the promise is rejected with an exception

Keywords

FAQs

Package last updated on 09 Oct 2018

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